1 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
3 * docs/grub.texi (Networking commands): Add documentation for
4 network related commands.
6 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
10 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
12 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
14 Reported by: Leif Lindholm
16 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
17 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
22 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
24 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
25 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
27 2013-09-18 Douglas Ray <dougray@cpan.org>
29 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
32 2013-09-18 Aleš Nesrsta <starous@volny.cz>
34 * docs/grub.texi: Fix broken link.
36 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
38 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
39 to break endless loop.
41 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
43 * util/grub-fstest.c: Fix several printf formats.
44 * util/grub-mkimage.c: Likewise.
45 * util/grub-mkimagexx.c: Likewise.
46 * util/grub-script-check.c: Likewise.
48 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
50 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
53 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
55 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
57 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
59 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
60 removed in current versions cygwin_conv_*.
62 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
64 * configure.ac: Disable efiemu runtime on cygwin.
66 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
68 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
69 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
71 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
73 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
76 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
78 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
80 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
83 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
85 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
86 when on x86 and not cygwin.
87 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
90 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
92 * configure.ac: Set CPP to build one when checkoing for freetype for
95 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
97 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
98 [!GRUB_BUILD]: Remove has_argument.
100 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
102 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
103 Replace with a dummy.
105 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
107 * configure.ac: Don't change host_os from mingw to cygwin.
109 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
111 * configure.ac: Change target_os from windows to cygwin.
113 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
115 Handle grub-pe2elf and grub-mkfont for cases when build != host.
117 * Makefile.am (build-grub-mkfont): Don't include gnulib.
118 (build-grub-gen-asciih): Likewise.
119 (build-grub-gen-widthspec): Likewise.
120 * Makefile.util.def (grub-pe2elf): Remove.
121 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
122 * configure.ac: Separate tests for build.
123 Move ./build-grub-pe2elf to grub-core.
125 * grub-core/Makefile.am (build-grub-pe2elf): New target.
126 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
128 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
130 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
131 * util/grub-pe2elf.c: Simplify not to rely on getopt.
132 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
134 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
136 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
137 mingw32 as well based on grub_util_get_disk_size.
138 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
139 grub_util_get_fd_size.
141 (fsync): Moved to ...
142 * grub-core/kern/emu/misc.c (fsync): ... here.
144 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
146 * include/grub/mm.h (grub_extend_alloc): Remove.
147 * grub-core/loader/i386/pc/plan9.c: Use own version of
148 grub_extend_alloc with appropriate types.
150 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
152 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
154 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
156 * util/getroot.c: Include sys/wait.h only when we need waitpid.
158 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
160 Fix dependencies on cygwin.
162 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
163 dependencies when used and defined.
164 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
166 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
168 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
169 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
171 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
173 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
174 implementation available to cause compile-time rather than runtime
177 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
179 * util/grub-fstest.c: Don't check for symlinks on windows.
181 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
183 * INSTALL: Mention unavailability of man pages when cross-compiling.
185 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
187 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
189 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
191 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
193 * INSTALL: Document cross-compilation.
194 * acinclude.m4: Determine whether nm support -P and --defined-only.
195 * configure.ac: Add TARGET_ to all variables pertaining to target
196 that don't have it yet.
197 * gentpl.py: Likewise.
198 * grub-core/Makefile.am: Likewise.
199 * grub-core/genmod.sh.in: Likewise.
200 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
203 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
205 * configure.ac: Remove -Wempty-body. It's not essential and needs
208 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
210 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
211 * util/getroot.c: Likewise.
213 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
215 * grub-core/disk/ahci.c: Add needed explicit cast.
216 * grub-core/lib/backtrace.c: Likewise.
217 * grub-core/net/ip.c: Likewise.
218 * grub-core/net/tcp.c: Likewise.
219 * grub-core/net/udp.c: Likewise.
221 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
223 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
225 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
227 * util/import_gcry.py: Add final newline in visibility.h.
229 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
231 * conf/Makefile.common: Fix typo.
233 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
235 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
237 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
239 * Makefile.am (widthspec.h): Fix typo.
240 * util/grub-gen-widthspec.c: Likewise.
242 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
244 Move ascii.h and widthspec.h generation to a separate build-time-only
247 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
249 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
250 Always fill bootdisk info and improve check for NetBSD disklabel.
252 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
254 * conf/Makefile.extra-dist: Add util/bin2h.c.
255 Reported by: floppym.
257 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
259 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
261 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
263 * configure.ac: Disable unifont and starfield if no freetype was found.
265 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
267 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
268 on NetBSD and OpenBSD.
270 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
272 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
274 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
276 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
277 reduced. Inheritant options are processed during the theme loading.
279 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
281 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
283 2013-08-14 Avik Sil <aviksil@in.ibm.com>
285 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
287 2013-08-14 Avik Sil <aviksil@in.ibm.com>
289 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
292 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
294 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
297 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
299 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
300 unused attribute from pull argument.
302 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
304 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
307 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
309 * util/getroot.c (pull_lvm_by_command): add --separator option
310 to vgs call to disable padding of output to 10 characters.
312 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
314 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
316 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
319 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
321 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
324 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
326 Fix handling of build-time grub-bin2h and grub-mkfont when doing
327 full Canadian cross. Tested with build=x86_64, host=arm,
330 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
332 * configure.ac: Error if no $BUILD_CC could be found.
335 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
337 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
340 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
342 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
343 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
345 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
347 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
348 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
349 falling back to the partition device, otherwise a later call to this
350 function may fail spuriously.
351 Reported by Axel Beckert. Fixes Debian bug #708614.
353 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
355 * autogen.sh: Replace find -not by the POSIX-compliant find !.
357 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
359 Prevent shadowing of stdlib's devname(3) on BSD.
361 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
362 and devlast to diskname and disklast, respectively.
364 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
366 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
368 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
370 * docs/grub.texi: Introduce terminal window position options:
371 terminal-left: terminal window's left position
372 terminal-top: terminal window's top position
373 terminal-width: terminal window's width
374 terminal-height: terminal window's height
375 terminal-border: terminal window's border width
376 * grub-core/gfxmenu/theme-loader.c: Likewise.
377 * include/grub/gfxmenu_view.h: Likewise.
378 * po/exlude.pot: Likewise.
379 * grub-core/gfxmenu/view.c: Likewise.
380 Also updated minimal window size.
381 Also terminal_sanity_check function has been introduced.
382 * grub-core/tests/checksums.h: Update (terminal window height
383 is adjusted now for low resolution screen)
385 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
387 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
390 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
392 * po/exclude.pot: Add few recent exceptions.
394 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
396 * tests/grub_func_test.in: Add unicode.pf2.
398 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
400 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
401 standard rather than noral color, in line with other terminals.
403 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
405 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
408 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
410 * grub-core/loader/arm/linux.c: Change printf to dprintf.
412 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
414 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
415 inappropriate printf.
417 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
419 * .bzrignore: Remove grub-core/lib/dtc-grub,
420 grub-core/Makefile.libfdt.def
421 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
423 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
425 * include/grub/video.h (grub_video_register): Keep double-linked as
426 well as single-linked invariants.
427 Reported by: qwertial.
429 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
431 * grub-core/commands/nativedisk.c (get_uuid): Handle
432 GRUB_DISK_DEVICE_UBOOTDISK_ID.
434 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
436 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
437 maximum of NW, N, NE heights instead of N's height and maximum of
438 NW, W, SW widths instead of W's width. (So the box will be always
441 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
443 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
444 Fix misuse of variable count.
446 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
447 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
448 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
450 New ports to arm-uboot and arm-efi.
451 Mostly by Leif Lindholm with some additions from
452 Francesco Lavra and cleanup by Vladimir Serbinenko.
454 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
456 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
458 Reported by: Leon Drugi.
460 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
462 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
463 Reported by: Paulo Flabiano Smorigo.
465 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
467 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
469 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
471 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
473 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
475 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
477 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
479 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
481 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
483 * grub-core/net/bootp.c: Export net_* variables.
484 * grub-core/net/net.c: Likewise.
486 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
488 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
490 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
492 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
494 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
496 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
498 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
500 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
502 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
504 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
507 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
509 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
512 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
514 * grub-core/fs/zfs/zfs_lz4.c: New file.
515 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
517 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
519 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
521 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
523 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
524 (check_pool_label): Likewise.
525 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
527 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
529 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
531 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
533 * docs/grub.texi (Commands): Document postition parameters
534 for menuentry command.
536 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
538 * util/grub-mknetdir.in: Remove stray line from help output.
540 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
542 Remove early sm712 init as there is no reason for it (the "watchdog"
543 effect was due to wrong GPIO map).
545 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
547 * grub-core/commands/pcidump.c: Remove static variables.
549 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
551 * grub-core/commands/sleep.c: Refresh screen before sleeping.
553 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
555 * configure.ac: Move delimiter after the infos.
557 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
559 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
561 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
563 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
564 not filling whole 8x16 space.
566 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
568 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
570 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
572 * configure.ac: Indicate which liblzma is used if any.
574 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
575 2013-06-21 Craig Sanders <savannah@taz.net.au>
577 * util/grub-reboot.in: Document submenu usage.
579 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
581 * .bzrignore: Update with a number of new test-related files.
583 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
585 * util/grub-script-check.c: Fail on scripts containing no
586 commands, to guard against corrupted grub-mkconfig setups that
587 produce no useful output.
588 * tests/grub_script_no_commands.in: New test.
589 * Makefile.util.def (grub_script_no_commands): Add.
590 Reported by Hans Putter. Fixes Debian bug #713886.
592 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
594 * grub-core/disk/diskfilter.c: Forgot to remove comment
595 from previous commit.
597 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
599 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
600 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
602 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
604 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
606 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
608 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
609 rescan diskfilter devices until nothing new is found.
611 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
613 Fix casts when compiling coreboot-specific code for 64-bit EFI.
615 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
617 Don't try to detect cbfs on *-emu.
619 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
621 * grub-core/term/gfxterm.c: USe right background color when scrolling.
623 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
625 Add support for processed coreboot payload chainloading.
627 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
629 Enable coreboot information commands even when not loaded as
630 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
632 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
634 Support for cbfs. Also factor out the part which is common
635 for all archives to a separate module. This splits tar from cpio
636 as they are very different but keeps cpio, cpio_be, odc and newc
637 together since they're very similar.
639 2013-06-15 David Michael <fedora.dm0@gmail.com>
641 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
642 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
644 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
646 * tests/grub_script_eval.in: Really add the eval test.
648 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
650 Move flavour-specific parts out of common cpio.c file and
651 rename remaining to cpio_common.c
653 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
655 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
656 off new function grub_script_execute_new_scope. Change callers to use
657 either of them as appropriate.
658 * grub-core/commands/eval.c: New command eval.
659 * docs/grub.texi (Commands): Document it.
661 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
663 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
664 to fetch values when listing.
666 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
668 Fix make dist on non-pc.
670 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
672 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
673 without a device name.
675 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
677 Remove enable_executable_check as it's not needed anymore.
678 Reported by: dougray.
680 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
682 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
683 ambigouos RAID before discovering RAIDs on top of it.
686 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
688 Fix typo (failback vs fallback).
690 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
692 * util/grub.d/30_os-prober.in: Add support for probing EFI
693 System Partition (as of os-prober 1.58).
695 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
697 * configure.ac: Add yet another path to unifont. For parabola.
699 2013-05-30 Josh Triplett <josh@joshtriplett.org>
701 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
702 handling to copy the killed characters to the kill buffer as
703 UCS4 stored as grub_uint32_t rather than as 8-bit characters
704 stored as char. Eliminates UCS4 truncation and corruption
705 observed when killing characters with Ctrl-u and yanking them
708 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
710 Detach optional parts of gfxterm and integrate in with coreboot init.
712 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
714 Move blit and fill dispatcher to appropriate files to decrease export
715 and relocation overhead.
717 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
719 * grub-core/font/font.c, include/grub/font.h: Inline simple font
722 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
724 * grub-core/Makefile.am: Fix compilation problem with some
727 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
729 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
731 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
733 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
736 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
738 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
741 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
743 * grub-core/partmap/dfly.c: New partition map.
745 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
747 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
749 Reported by: Francesco Lavra.
751 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
753 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
754 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
756 * conf/Makefile.common: define dist_grubconf_DATA
758 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
760 Progressively skip menu elements on small terminals rather
763 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
765 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
766 to avoid losing last column.
768 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
770 * po/exclude.pot: Add missing string "%C".
772 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
774 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
777 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
779 * util/grub-install.in: Gettextize "Not found" message.
781 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
784 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
786 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
788 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
790 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
792 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
794 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
796 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
798 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
799 attribute since structure is not necessarily aligned.
801 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
803 * docs/grub.texi (Device syntax): Clarify description of network
806 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
808 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
809 for vasprintf presence.
811 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
813 * util/grub-install.in: Handle efibootmgr presence check.
814 Reported by: Leif Lindholm.
816 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
818 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
819 new strings to translate.
821 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
823 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
824 yet another string (pun intended) to translate.
826 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
828 * po/POTFILES-shell.in: Autogenerate it.
830 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
832 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
834 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
836 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
839 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
841 * docs/grub.texi (Network): Add description of net_default_interface,
842 net_default_ip and net_default_mac. Rewrite variables description
843 to emphasize that they are per-interface.
845 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
847 New test: cmdline and cat.
849 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
851 * grub-core/commands/cat.c: Show UTF-8 characters.
853 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
855 * conf/Makefile.common: Poison float and double on non-emu.
857 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
859 * configure.ac: Don't disable extended registers on emu.
861 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
863 * configure.ac: Don't use extended registers on x86_64.
864 Reported by: Peter Jones.
866 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
868 * grub-core/term/efi/console.c: Fix compile error.
870 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
872 Compressed HFS+ support.
874 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
876 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
879 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
883 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
885 * grub-core/tests/setjmp_test.c: New test.
887 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
889 New variables 'net_default_*' to determine MAC/IP of default interface.
891 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
893 * tests/gettext_strings_test.in: A test to check for strings not
894 marked for translation.
896 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
898 * autogen.sh: Exclude unused libgcrypt files from translation.
900 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
902 Simplify few strings.
904 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
906 Mark few forgotten strings for translation.
908 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
910 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
913 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
915 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
917 * grub-core/video/readers/tga.c: Likewise.
919 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
921 * tests/priority_queue_unit_test.cc: New test.
923 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
925 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
928 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
930 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
931 variable for one time boot menu entry.
933 2013-05-05 Bean <bean123ch@gmail.com>
935 * grub-core/commands/testspeed.c: New command testspeed.
937 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
939 Factor-out human-size printing.
941 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
943 Agglomerate more mallocs to speed-up gfxterm.
945 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
947 Speed-up gfxterm by slightly agglomerating mallocs.
949 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
953 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
955 Speed-up gfxterm by saving intermediate results in index+alpha
958 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
960 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
963 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
965 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
966 line of timeout as it may contain the rest of long line.
968 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
970 * grub-core/normal/main.c: Fix freed memory dereference.
972 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
974 Fix several memory leaks.
976 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
978 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
980 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
982 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
984 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
986 Fix test -a and -o precedence.
987 Reported by: adrian15.
989 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
991 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
993 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
995 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
996 and add it as source to functional_test module.
998 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1000 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
1002 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1004 New series of tests for gfxterm and gfxmenu.
1006 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1008 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
1009 the theme path relative to $prefix/themes.
1011 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1013 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
1015 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
1017 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1019 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
1022 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1024 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
1025 grub_gfxmenu_timeout_notifications.
1026 (grub_gfxmenu_view_destroy): Likewise.
1028 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1030 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
1032 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1034 Several fixes to ieee1275 and big-endian video.
1036 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1038 Add missing exports on mips.
1040 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1042 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
1043 if no unifont is found.
1044 Restore original keyboard.
1046 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1048 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
1049 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
1051 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1053 First automated video test (running videotest and comparing results)
1055 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1057 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
1058 instead of 2 to have full RGB/CMY test pattern.
1060 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1064 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1066 * include/grub/arc/arc.h: Account for missing "other" peripheral on
1067 ARCS. All users updated.
1069 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1071 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
1073 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1075 * grub-core/partmap/amiga.c: Fix size of checksummed block.
1077 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1079 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
1080 Reported by: qwertial.
1082 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
1084 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
1085 with syntax "XXX deg"/"XXX °".
1087 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1089 Make PCI init in i386-qemu port more robust.
1091 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
1093 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
1094 cached view is reused.
1095 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
1098 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1100 Unify more code in grub-install_header.
1102 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1106 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1108 Enforce disabling of firmware disk drivers when native drivers kick in.
1110 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1112 * grub-core/commands/nativedisk.c: Customize the list of modules on
1113 platform. Don't try to search for disks already using native drivers.
1115 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1117 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
1120 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1122 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
1123 handling of variables containing backslash.
1125 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1127 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
1129 Reported by: qwertial.
1131 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1133 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
1135 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1137 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
1139 Reported by: qwertial.
1141 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1143 * docs/grub.texi: Add a comment about usefullness of nativedisk.
1145 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1147 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
1149 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1151 New command `nativedisk'.
1153 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1155 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
1156 * grub-core/loader/i386/bsd.c: Likewise.
1158 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1160 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
1162 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1164 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
1165 grub_get_unaligned16 rather than shifts.
1167 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1169 * grub-core/kern/file.c: Use const char * rather than casting to
1172 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1174 * grub-core/commands/probe.c: Add missing grub_device_close.
1176 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1178 * INSTALL: Document linguas.sh.
1180 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1182 Remove POTFILES.in and regenerate it in autogen.sh.
1184 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1186 Move --directory/--override-directorry to grub-install_header and unify.
1188 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1190 * grub-core/term/morse.c: Macroify dih and dah.
1192 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1194 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
1196 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1198 * grub-core/term/ns8250.c: Systematically probe ports by writing
1199 to SR before using them.
1201 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1203 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
1205 (check_sas): Get sas_adress info.
1207 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1209 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
1212 2013-04-27 Leon Drugi <eyak>
1214 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
1217 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1219 Core compression test.
1221 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1223 Implement grub_machine_get_bootlocation for ARC.
1225 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1227 Improve AHCI detection and command issuing.
1229 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1233 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1235 Make 'make check' work on emu.
1237 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1239 Replace libcurses with our own vt100 handling for the ease of testing
1240 and decreasing prerequisites.
1242 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1244 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
1246 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1248 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
1249 compile when not needed.
1251 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1253 * tests/pseries_test.in: New test.
1255 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1257 Add test to check that different boot mediums work.
1259 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1261 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
1262 ofw limited ISO support.
1264 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1266 * configure.ac: Fix loongson conditional.
1268 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1272 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1274 Add serial on ARC platform.
1276 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1278 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
1281 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1283 * tests/partmap_test.in: Add missing double semicolon.
1285 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1287 * util/grub-mkrescue.in: Fix loongson filename.
1289 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1291 * util/grub-mkrescue.in: Move all files that don't have a location
1292 set in stone under /boot/grub. Use ISO hard links rather than copies
1295 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1297 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
1300 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1302 Make check work on mips-arc.
1304 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1306 * util/grub-mkrescue.in: Alias sashARCS as sash.
1308 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1310 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
1313 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1315 * util/grub-install.in: Fix target fo qemu_mips.
1316 Fix extension on EFI.
1318 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1320 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
1321 in front of chosen entry to mark it even if highlighting is lost.
1323 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1325 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
1326 gfxpayload=keep if cbfb is active.
1328 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1330 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
1332 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1334 Add missing video ids to coreboot and ieee1275 video.
1336 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1338 * util/grub-mkrescue.in: Add mips-arc support.
1340 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1342 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
1344 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1346 Move mips-arc link address. Previous link address was chosen
1347 in belief that RAM on SGI platforms grows down while in fact it
1348 grows up from an unusual base.
1350 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1352 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
1353 Fix a type which prevented CD-ROM and floppy boot.
1355 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1357 Support coreboot framebuffer.
1359 * grub-core/video/i386/coreboot/cbfb.c: New file.
1361 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1363 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
1364 detecting too small regions.
1366 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1368 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
1370 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1372 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
1374 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
1376 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1378 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
1379 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
1380 * grub-core/loader/powerpc/ieee1275/linux.c
1381 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
1383 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1385 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
1386 Look for /boot-rom as well as /rom/boot-rom.
1388 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1390 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
1391 handling when creating text_layer failed.
1392 * grub-core/video/video.c (grub_video_create_render_target):
1393 Set result to 0 on error.
1394 (grub_video_delete_render_target): Do not dereference NULL.
1396 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1398 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
1399 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
1400 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
1401 (grub_linux_load64): Mask out 2 high bits.
1403 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
1405 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
1408 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1410 Add support for pseries and other bootinfo machines to grub-mkrescue.
1412 Tested by: Paulo Flabiano Smorigo.
1414 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1416 * util/grub-mkrescue.in: Add GPT for EFI boot.
1418 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1420 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
1421 It improves performance in qemu.
1423 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1425 * build-aux/snippet: Add missing gnulib files.
1427 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
1429 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
1431 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
1433 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
1435 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1436 2013-04-15 Peter Jones <pjones@redhat.com>
1438 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
1440 Based on patch by Peter Jones.
1442 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1444 Fix DMRAID partition handling.
1446 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1448 * tests/grub_cmd_date.in: Skip on sparc64.
1450 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1452 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
1453 firmware error messages.
1455 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1457 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
1458 source and destination differ.
1460 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1462 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
1465 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1467 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
1468 match config-util.h to avoid warnings and increase compatibility.
1470 2013-04-14 Szymon Janc <szymon@janc.net.pl>
1471 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1473 Add option to compress files on install/image creation.
1475 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1477 * docs/grub-dev.texi: Rearrange menu to match the section order.
1478 Reported by: Bryan Hundven.
1480 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1482 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
1484 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1486 Move GRUB out of system area when using xorriso 1.2.9 or later.
1488 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1490 * tests/grub_cmd_date.in: Add missing exit 1.
1492 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1494 * tests/partmap_test.in: Skip on sparc64.
1496 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1498 Support grub-shell on sparc64.
1500 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1502 Support mkrescue on sparc64.
1504 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1506 Allow IEEE1275 ports on path even if it wasn't detected automatically.
1507 Needed on OpenBIOS due to incomplete device tree.
1509 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1511 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
1512 would be otherwise excluded.
1514 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1516 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
1517 Inline name defines used only once.
1519 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
1521 Fix memory leaks in ofnet.
1522 Reported by: Francesco Lavra.
1524 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1526 * docs/man/grub-glue-efi.h2m: Add missing file.
1528 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1530 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
1532 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1534 Better support Apple Intel Macs on CD.
1536 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1538 Replace stpcpy with grub_stpcpy in tools.
1540 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1542 Handle Japanese special keys.
1543 Reported by: Hiroyuki YAMAMORI.
1544 Codes supplied by: Hiroyuki YAMAMORI.
1546 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1548 * util/grub-mkimage.c: Document memdisk implying --prefix.
1550 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1552 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
1553 much we can do about it anyway.
1555 2013-04-12 Aleš Nesrsta <starous@volny.cz>
1557 Fix handling of split transfers.
1559 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1561 * grub-core/net/http.c: Fix bad free.
1563 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1565 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
1568 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1570 Disable partmap check on i386-ieee1275 due to openfirmware issues.
1572 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1574 * tests/util/grub-shell.in: Fix it on powerpc.
1576 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1578 Turn off QEMU ACPI-way since new releases don't have shutdown port
1581 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1583 * docs/grub.texi: Update coreboot status info.
1585 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1587 * tests/grub_cmd_date.in: New test for datetime.
1589 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1591 * tests/partmap_test.in: Fix missing qemudisk setting.
1593 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1595 Support i386-ieee1275 grub-mkrescue and make check on it.
1597 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1599 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
1602 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1604 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
1605 GRUB_CMDLINE_XEN_DEFAULT.
1606 Reported by: Marc Warne (GigaTux) <gigatux>
1608 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1612 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1614 Use ACPI shutdown intests as traditional port was removed.
1616 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
1618 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
1621 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1623 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
1624 Fix few warining messages and leaks while on it.
1626 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
1628 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
1629 links under grub-core/lib/libgcrypt-grub/mpi.
1631 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1633 Fix ia64-efi image generation on big-endian machines. Deduplicate
1634 some code while on it.
1635 Reported by: Leif Lindholm.
1637 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1639 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
1642 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1644 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
1646 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
1648 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
1651 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1653 * grub-core/normal/term.c: Few more fixes for menu entry editor
1655 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1657 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
1659 * grub-core/normal/term.c: Few more fixes for menu entry editor
1661 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1663 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1665 * conf/Makefile.extra-dist (EXTRA_DIST): Add
1666 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
1668 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1670 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
1671 instead of hardcoding grub.mo.
1673 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
1675 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
1677 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1679 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
1680 grub-core/disk/geli.c.
1682 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1684 * util/grub-mkfont.c: Prefer enum to #define.
1686 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1688 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
1690 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1692 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
1694 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1696 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
1698 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1700 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
1702 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1704 * include/grub/bsdlabel.h: Use enums.
1706 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1708 Move GRUB_CHAR_BIT to types.h.
1710 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1712 * docs/grub.texi: Document more user commands.
1714 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1716 * docs/grub.texi: Document menuentry --id option.
1718 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
1720 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
1722 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1724 Unify file copying setup across different install scripts. Add
1725 options for performing partial install.
1727 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1728 2013-04-04 Peter Jones <pjones@redhat.com>
1730 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
1732 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1734 Use TSC as a possible time source on i386-ieee1275.
1736 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1738 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
1741 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1743 * util/grub-setup.c (setup): Handle some corner cases.
1745 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1747 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
1749 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1751 * grub-core/commands/verify.c: Save verified file to avoid it being
1752 tampered with after verification was done.
1754 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1756 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
1757 reported width by one to compensate for curesor algorithm problem.
1759 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1761 Fix screen corruption in menu entry editor and simplify the code
1764 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
1766 * util/grub-mount.c (fuse_init): Return error if fuse_main
1769 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
1771 * include/grub/elf.h: Add missing ARM relocation codes and fix
1774 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1776 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
1778 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1779 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1781 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
1782 into account when calculating radius.
1784 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1786 * grub-core/gfxmenu/view.c: Fix off-by-one error.
1788 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1790 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
1792 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1794 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
1795 missing closing bracket.
1797 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1799 * INSTALL: Mention xorriso requirement.
1801 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
1803 * grub-core/commands/verify.c: Fix hash algorithms values for
1804 the first three hashes - they start with 1, not with 0.
1806 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1808 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
1809 Try terminating EFI services several times due to quirks in some
1812 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
1814 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
1815 skipping Event, Device, Processor, PowerRes, ThermalZone, and
1816 BankField extended opcodes.
1817 (get_sleep_type): Add minimal scope handling (just enough to
1818 handle setting the scope to the root path).
1819 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
1820 * include/grub/acpi.h: Add enumeration values for Event, Device,
1821 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
1823 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
1825 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
1828 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1830 * grub-core/disk/ahci.c: Give more time for AHCI request.
1832 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1834 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
1837 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1839 Replace the region at 0 from coreboot tables to available in BSD
1842 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1844 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
1847 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1849 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
1852 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1854 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1855 handling of multi-device filesystems.
1857 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1859 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
1862 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1864 Add new 'proc' filesystem framework and put luks_script into it.
1866 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1868 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
1871 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1873 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
1875 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1877 Add ability to generate newc additions on runtime.
1879 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1881 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
1884 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
1886 * po/POTFILES.in: Regenerate.
1888 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1890 * grub-core/commands/verify.c (hashes): Add several hashes
1893 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1895 Slight improve in USB-related boot-time checkpoints.
1897 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1899 * grub-core/commands/boottime.c: Fix copyright header.
1901 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1903 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
1904 coreboot tables content. Support for cbmemc.
1906 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1908 Fix a conflict between ports structures with 2 controllers of
1911 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1913 * include/grub/boottime.h: Add missing file.
1915 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1917 Initialize USB ports in parallel to speed-up boot.
1919 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1921 Fix USB devices not being detected when requested
1922 due to delayed attach.
1924 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1926 Implement boot time analysis framework.
1928 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1930 Remove get_endpoint_descriptor and change all functions needing
1931 descriptor to just receive it as argument rather than endpoint
1934 2013-03-19 Aleš Nesrsta <starous@volny.cz>
1936 Better estimate the maximum USB transfer size.
1938 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
1940 Resend a packet if we got the wrong buffer in status.
1942 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1944 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
1945 multiplication rather than division.
1947 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1949 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
1952 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1954 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
1955 operations to have intended shifts and not divisions.
1957 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1959 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
1960 intended shifts rather than division.
1962 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1964 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
1965 computation for some years before epoch. Avode confusing division
1968 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1970 * grub-core/video/i386/pc/vbe.c
1971 (grub_video_vbe_print_adapter_specific_info): Replace division by
1974 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1976 Adjust types in gdb module to have intended unsigned shifts rather than
1979 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1981 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
1982 maximum size is 4G - 1 on hfs
1984 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1986 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
1988 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1990 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
1993 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
1995 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
1996 causing gcc error with gcc 4.7.1.
1998 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
2000 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
2001 dereference null pointer. While the code is technically correct, gcc
2002 may eliminate a null check if pointer is already dereferenced.
2004 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
2006 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
2008 * grub-core/normal/term.c (read_terminal_list): Likewise.
2010 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2012 Lift up core size limits on some platforms. Fix potential memory
2013 corruption with big core on small memory systems. Document remaining
2016 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2018 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
2021 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2023 Remove all trampoline support. Add -Wtrampolines when
2024 present. Remove symbols used for trampolines to make
2025 link fail if trampolines are present.
2027 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2029 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
2030 append out of its parent.
2032 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2034 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
2037 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2039 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
2040 all vars to a macro. All users updated.
2042 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2044 * grub-core/disk/ieee1275/nand.c: Fix compilation on
2047 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2049 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
2051 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2053 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
2055 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2057 Move to more hookless approach in IEEE1275 devices handling.
2059 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2061 * grub-core/kern/term.c (grub_term_normal_color),
2062 (grub_term_highlight_color): Add back lost defaults.
2064 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2066 Make elfload not use hooks. Opt for flags and iterators instead.
2068 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2070 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
2071 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
2073 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2075 * grub-core/script/execute.c (gettext_append): Remove nested functions.
2077 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2079 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
2080 hook pass-through parameter. All users updated and unnested.
2082 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2084 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
2087 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2089 * grub-core/fs/hfs.c: Remove nested functions.
2091 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2093 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
2094 the context through.
2095 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
2097 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2099 * util/grub-editenv.c (list_variables): Move print_var out of its
2102 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2104 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
2107 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2109 * grub-core/gentrigtables.c: Make tables const.
2111 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2113 Remove nested functions from videoinfo iterators.
2115 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2117 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
2118 for 64-bit platforms.
2120 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2122 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
2123 a FOR_CHILDREN macro.
2125 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2127 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
2128 platform from firmware path.
2130 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2132 Enable linux16 on non-BIOS systems for i.a. memtest.
2134 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
2136 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
2138 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2140 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
2141 Fix end of table condition.
2143 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2145 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
2148 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2150 * grub-core/fs/jfs.c: Remove nested functions.
2152 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2154 * grub-core/fs/minix.c: Remove nested functions.
2156 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2158 * grub-core/fs/iso9660.c: Remove nested functions.
2160 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2162 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
2165 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2167 * util/grub-fstest.c: Remove nested functions.
2169 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
2171 * grub-core/loader/machoXX.c: Remove nested functions.
2173 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
2175 Remove nested functions from disk and file read hooks.
2177 * include/grub/disk.h (grub_disk_read_hook_t): New type.
2178 (struct grub_disk): Add read_hook_data member.
2179 * include/grub/file.h (struct grub_file): Likewise.
2180 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
2185 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
2187 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
2188 Fix off by one error in enumerating extended partitions.
2190 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
2192 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
2193 memory leak if device name is not found.
2195 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2197 * grub-core/normal/menu_entry.c (update_screen): remove
2198 unused variable `off' which caused scroll down arrow to be always shown.
2200 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2202 * grub-core/normal/menu_entry.c (insert_string): fix off by one
2203 access to unallocated memory.
2205 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2207 * Makefile.util.def: Add partmap/msdos.c to common library.
2208 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
2209 * grub-core/disk/ldm.c: Check for existence of
2210 GRUB_PC_PARTITION_TYPE_LDM.
2212 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2214 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
2215 sizes and display sector size.
2217 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2219 Implement new command cmosdump.
2221 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2223 Support Openfirmware disks with non-512B sectors.
2225 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
2227 * (grub_ofdisk_get_block_size): New function.
2228 * (grub_ofdisk_prepare): Use the correct block size.
2229 * (grub_ofdisk_read): Likewise.
2230 * (grub_ofdisk_write): Likewise.
2231 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
2234 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2236 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
2238 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2240 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
2243 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2245 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
2248 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2250 Implement USBDebug (full USB stack variant).
2252 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2254 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
2255 unless they have unexpected values.
2257 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2259 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
2262 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2264 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
2265 zero-out of port structure.
2267 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2269 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
2270 of extended attributes.
2272 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
2274 * util/grub-install.in: change misleading comment about
2277 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2279 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
2280 when menu highlight color isn't set.
2282 2013-01-27 C. Masloch <pushbx@38.de>
2284 Improve FreeDOS direct loading support compatibility.
2286 * include/grub/i386/relocator.h (grub_relocator16_state):
2288 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
2290 (grub_relocator16_boot): Handle %ebp.
2291 * grub-core/lib/i386/relocator16.S: Likewise.
2292 * grub-core/loader/i386/pc/freedos.c:
2293 Load BPB to pass kernel which partition to load from.
2294 Check that kernel file is not too large.
2295 Set register dl to BIOS unit number as well.
2297 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
2299 * util/grub-reboot.in (usage): Document the need for
2301 * util/grub-set-default.in (usage): Likewise.
2302 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
2304 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2306 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
2307 than defining WORDS_BIGENDIAN manually.
2309 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2311 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
2314 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2316 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
2318 (blit_comb: add_device_width): Likewise.
2320 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2322 Remove nested functions from USB iterators.
2324 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
2325 (grub_usb_controller_iterate_hook_t): Likewise.
2326 (grub_usb_iterate): Add hook_data argument.
2327 (grub_usb_controller_iterate): Likewise.
2328 (struct grub_usb_controller_dev.iterate): Likewise.
2330 Update all implementations and callers.
2332 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2334 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
2335 margin when not needed.
2337 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2339 Make color variables global instead of it being per-terminal.
2341 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2343 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
2346 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2348 Fix powerpc and sparc64 build failures caused by un-nesting memory
2351 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2353 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
2354 parameter declarations.
2356 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2358 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
2360 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2362 Improve spkmomdem reliability by adding a separator between bytes.
2364 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2366 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
2367 an Acer registration utility with several sightings in the wild.
2368 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
2370 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2372 Remove nested functions from filesystem directory iterators.
2374 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
2375 (struct grub_fs.dir): Add hook_data argument.
2377 Update all implementations and callers.
2379 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2381 * docs/grub.texi (Multi-boot manual config): Fix typo for
2384 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
2386 * util/grub-mkimage.c (main): Postpone freeing arguments.output
2387 until after its use in generate_image.
2389 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2391 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
2392 initrd size to addr_min, since the initrd will be allocated after
2395 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
2397 * conf/Makefile.common: Fix autogen rules to pass definition
2398 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
2400 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
2402 * include/grub/elf.h: Update ARM definitions based on binutils.
2404 2013-01-20 Aleš Nesrsta <starous@volny.cz>
2406 Split long USB transfers into short ones.
2408 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
2410 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
2411 is interrupted by ESC.
2413 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2415 * util/grub-script-check.c (main): Uniform the error message.
2417 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2419 Remove nested functions from ELF iterators.
2421 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2423 Remove nested functions from device iterators.
2425 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
2426 (grub_arc_iterate_devs): Add hook_data argument.
2427 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
2428 (struct grub_ata_dev.iterate): Add hook_data argument.
2429 * include/grub/device.h (grub_device_iterate_hook_t): New type.
2430 (grub_device_iterate): Add hook_data argument.
2431 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
2432 (struct grub_disk_dev.iterate): Add hook_data argument.
2433 (grub_disk_dev_iterate): Likewise.
2434 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
2436 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
2438 * include/grub/partition.h (grub_partition_iterate_hook_t): New
2440 (struct grub_partition_map.iterate): Add hook_data argument.
2441 (grub_partition_iterate): Likewise.
2442 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
2443 (struct grub_scsi_dev.iterate): Add hook_data argument.
2447 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2449 Fix typos for "developer" and "development".
2451 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2453 Add license header to spkmodem-recv.c.
2455 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
2457 Rewrite spkmodem to use PIT for timing. Double the speed.
2459 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2461 Add new command pcidump.
2463 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2465 New terminal outputs using serial: morse and spkmodem.
2467 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2469 Improve bidi handling in entry editor.
2471 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2473 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
2474 argument to prevent name collision.
2476 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
2478 Remove nested functions from script reading and parsing.
2480 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
2481 getline_data argument, passed to getline.
2482 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
2483 getline_data argument, passed to grub_parser_split_cmdline.
2484 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
2485 lexerstate->getline_data to lexerstate->getline.
2486 (grub_script_lexer_init): Add getline_data argument, saved in
2487 lexerstate->getline_data.
2488 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
2489 argument, passed to grub_script_parse.
2490 * grub-core/script/script.c (grub_script_parse): Add getline_data
2491 argument, passed to grub_script_lexer_init.
2492 * include/grub/parser.h (grub_parser_split_cmdline): Update
2493 prototype. Update all callers to pass appropriate getline data.
2494 (struct grub_parser.parse_line): Likewise.
2495 (grub_rescue_parse_line): Likewise.
2496 * include/grub/reader.h (grub_reader_getline_t): Add void *
2498 * include/grub/script_sh.h (struct grub_lexer_param): Add
2499 getline_data member.
2500 (grub_script_parse): Update prototype. Update all callers to pass
2501 appropriate getline data.
2502 (grub_script_lexer_init): Likewise.
2503 (grub_normal_parse_line): Likewise.
2505 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
2507 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
2508 static instead of nested. Rename to ...
2509 (grub_parser_execute_getline): ... this.
2510 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
2512 * grub-core/normal/main.c (read_config_file: getline): Make static
2513 instead of nested. Rename to ...
2514 (read_config_file_getline): ... this.
2515 (grub_normal_read_line): Add unused data argument.
2516 * grub-core/script/execute.c (grub_script_execute_sourcecode:
2517 getline): Make static instead of nested. Rename to ...
2518 (grub_script_execute_sourcecode_getline): ... this.
2519 * util/grub-script-check.c (main: get_config_line): Make static
2522 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
2524 Remove nested functions from memory map iterators.
2526 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
2527 argument, passed to hook.
2528 * grub-core/kern/i386/coreboot/mmap.c
2529 (grub_linuxbios_table_iterate): Likewise.
2530 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
2532 (grub_machine_mmap_iterate): Add hook_data argument.
2533 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
2534 Add hook_data argument, passed to hook.
2535 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
2537 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
2539 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
2541 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
2543 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
2545 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
2547 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
2548 (grub_machine_mmap_iterate): Likewise.
2549 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
2550 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
2552 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
2553 Remove NESTED_FUNC_ATTR from here and from all users.
2554 (grub_mmap_iterate): Update prototype.
2555 (grub_efi_mmap_iterate): Update prototype. Update all callers to
2556 pass appropriate hook data.
2557 (grub_machine_mmap_iterate): Likewise.
2559 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
2560 static instead of nested.
2561 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
2563 (lsmmap_hook): ... this.
2564 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
2566 (grub_efiemu_mmap_fill: fill_hook): Likewise.
2567 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
2568 heap_init): Likewise.
2569 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
2571 (mmap_iterate_hook): ... this.
2572 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
2574 * grub-core/lib/ieee1275/relocator.c
2575 (grub_relocator_firmware_get_max_events: count): Likewise.
2576 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
2578 (grub_relocator_firmware_fill_events_iter): ... this.
2579 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
2580 hook): Likewise. Rename to ...
2581 (grub_relocator_alloc_chunk_align_iter): ... this.
2582 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
2584 (generate_e820_mmap_iter): ... this.
2585 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
2587 (count_hook): ... this.
2588 (grub_linux_boot: hook): Likewise. Rename to ...
2589 (grub_linux_boot_mmap_find): ... this.
2590 (grub_linux_boot: hook_fill): Likewise. Rename to ...
2591 (grub_linux_boot_mmap_fill): ... this.
2592 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
2593 hook): Likewise. Rename to ...
2594 (grub_fill_multiboot_mmap_iter): ... this.
2595 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
2596 hook): Likewise. Rename to ...
2597 (count_hook): ... this.
2598 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
2599 hook): Likewise. Rename to ...
2600 (grub_fill_multiboot_mmap_iter): ... this.
2601 * grub-core/loader/powerpc/ieee1275/linux.c
2602 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
2603 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
2604 Likewise. Rename to ...
2605 (alloc_phys_choose): ... this.
2606 (determine_phys_base: get_physbase): Likewise.
2607 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
2608 find_hook): Likewise.
2609 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
2610 (malloc_hook: count_hook): Likewise.
2611 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
2612 Likewise. Rename to ...
2613 (lower_hook): ... this.
2614 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2615 (upper_hook): ... this.
2616 (grub_mmap_get_post64: hook): Likewise. Rename to ...
2617 (post64_hook): ... this.
2618 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
2619 Likewise. Rename to ...
2620 (lower_hook): ... this.
2621 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2622 (upper_hook): ... this.
2623 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
2624 (grub_mmap_iterate: fill_hook): Likewise.
2625 (fill_mask): Pass addr and mask within a single struct.
2626 (grub_cmd_badram: hook): Make static instead of nested. Rename
2628 (badram_iter): ... this.
2629 (grub_cmd_cutmem: hook): Likewise. Rename to ...
2630 (cutmem_iter): ... this.
2632 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2634 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
2635 delimit path in strings using quotes.
2636 * util/getroot.c (grub_guess_root_devices): Likewise.
2637 (grub_make_system_path_relative_to_its_root): Likewise.
2638 * util/grub-probe.c (probe): Likewise.
2639 * util/ieee1275/ofpath.c (find_obppath): Likewise.
2640 (xrealpath): Likewise.
2642 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2644 Fix compilation with older compilers.
2646 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
2647 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
2649 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
2650 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
2651 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
2653 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
2654 * include/grub/crypto.h: Add type defines.
2655 * util/import_gcrypth.sed: Remove duplicate type defines.
2657 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2659 New command list_trusted.
2661 * grub-core/commands/verify.c (grub_cmd_list): New function.
2663 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
2665 * util/grub-mkimage.c (generate_image): Fix "size of public key"
2668 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
2670 Remove nested functions from PCI iterators.
2672 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
2673 passed to hook. Update all callers to pass appropriate hook data.
2674 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
2675 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
2676 Remove NESTED_FUNC_ATTR from here and from all users.
2677 (grub_pci_iterate): Update prototype.
2678 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
2679 instead of nested. Rename to ...
2680 (grub_cs5536_find_iter): ... this.
2681 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
2682 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
2684 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
2686 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
2688 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
2690 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
2691 * grub-core/video/radeon_fuloong2e.c
2692 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
2693 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
2694 find_card): Likewise.
2695 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
2698 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2700 * grub-core/commands/verify.c: Mark messages for translating.
2702 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2704 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
2707 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2709 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
2712 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2714 * autogen.sh: Do not try to delete nonexistant files.
2715 * util/import_gcrypth.sed: Add some missing header removals.
2717 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
2719 Clean up dangling references to grub-setup.
2720 Fixes Ubuntu bug #1082045.
2722 * docs/grub.texi (Images): Refer generally to grub-install rather
2723 than directly to grub-setup.
2724 (Installing GRUB using grub-install): Remove direct reference to
2726 (Device map) Likewise.
2727 (Invoking grub-install): Likewise.
2728 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
2729 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
2730 * util/grub-install.in (usage): Likewise.
2732 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
2733 Apply to grub-bios-setup and grub-sparc64-setup rather than to
2735 * configure.ac: Remove grub_setup output variable.
2737 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
2739 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
2740 grub-setup to grub-sparc64-setup.
2742 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2744 Import gcrypt public-key cryptography and implement signature checking.
2746 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2748 * grub-core/fs/ntfs.c: Ue more appropriate types.
2749 * grub-core/fs/ntfscomp.c: Likewise.
2750 * include/grub/ntfs.h: Likewise.
2752 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2754 Support Apple FAT binaries on non-Apple platforms.
2756 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
2757 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
2759 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
2762 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2764 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
2767 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
2769 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
2770 explicitly zeroing elements.
2771 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
2772 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
2773 of elements in a structure already allocated using grub_zalloc.
2774 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2776 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
2778 * docs/grub.texi (grub_cpu): New subsection.
2779 (grub_platform): Likewise.
2781 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2783 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
2785 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2787 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
2790 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2792 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
2793 * grub-core/fs/ntfscomp.c: Likewise.
2794 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
2795 (grub_ntfs_comp): Likewise.
2797 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2799 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
2801 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
2802 of groups_per_block. All users updated.
2804 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2806 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
2807 grub_error properly.
2808 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
2809 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
2811 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2813 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
2814 always in /boot/zfs.
2815 Reported by: Yuta Satoh.
2817 2013-01-03 Yuta Satoh <nigoro>
2819 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
2822 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2824 * configure.ac: Extend -Wno-trampolines to host.
2826 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2828 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
2831 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
2833 * docs/grub.texi (Invoking grub-mkrelpath): New section.
2834 (Invoking grub-script-check): Likewise.
2836 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
2838 * docs/grub.texi (Invoking grub-mount): New section.
2839 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
2841 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
2843 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
2844 test failures, so that a failing unit test correctly causes 'make
2847 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
2849 Fix failing printf test.
2851 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
2852 '$' in the correct order when collecting type information.
2854 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
2856 * docs/grub.texi (configfile): Explain environment variable
2858 (source): New section.
2859 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
2861 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
2863 Remove several trivially-unnecessary uses of nested functions.
2865 * grub-core/commands/i386/pc/sendkey.c
2866 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
2868 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
2870 (legacy_file_getline): ... this.
2871 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
2873 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
2874 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
2876 (probe_dummy_iter): ... this.
2877 * grub-core/kern/i386/coreboot/mmap.c
2878 (grub_linuxbios_table_iterate: check_signature): Likewise.
2879 * grub-core/kern/parser.c (grub_parser_split_cmdline:
2880 check_varstate): Likewise. Mark inline.
2881 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
2882 an additional parameter.
2883 (find_long: fnd_long): Likewise. Pass two additional parameters.
2884 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
2885 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
2886 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
2887 Likewise. Rename to ...
2888 (grub_cmos_find_port_iter): ... this.
2889 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
2891 (find_rtc_iter): ... this.
2893 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
2894 function directly into the function body, since it is only called
2897 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
2899 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
2900 __attribute__ ((unused)).
2901 * grub-core/video/bochs.c (find_card): Likewise.
2902 * grub-core/video/cirrus.c (find_card): Likewise.
2903 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
2904 * grub-core/video/sis315pro.c (find_card): Likewise.
2905 * grub-core/video/sm712.c (find_card): Likewise.
2907 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
2909 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
2910 Fixes Savannah bug #37821.
2912 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
2914 Apply program name transformations at build-time rather than at
2915 run-time. Fixes Debian bug #696465.
2917 * acinclude.m4 (grub_TRANSFORM): New macro.
2918 * configure.ac: Create output variables with transformed names for
2920 * util/bash-completion.d/grub-completion.bash.in: Use
2921 pre-transformed variables for program names.
2922 * util/grub-install.in: Likewise.
2923 * util/grub-kbdcomp.in: Likewise.
2924 * util/grub-mkconfig.in: Likewise.
2925 * util/grub-mkconfig_lib.in: Likewise.
2926 * util/grub-mknetdir.in: Likewise.
2927 * util/grub-mkrescue.in: Likewise.
2928 * util/grub-mkstandalone.in: Likewise.
2929 * util/grub-reboot.in: Likewise.
2930 * util/grub-set-default.in: Likewise.
2931 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2932 * tests/util/grub-shell-tester.in: Remove unused assignment.
2933 * tests/util/grub-shell.in: Likewise.
2934 * util/grub.d/00_header.in: Likewise.
2936 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
2938 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
2940 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
2942 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
2944 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
2946 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
2947 Reported by: Eriks Latosheks <foresterlv>.
2949 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2951 * docs/grub.texi (Network): Update instructions on generating netboot
2954 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2956 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
2957 around device name if necessarry.
2959 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2961 * util/grub-install.in: Follow the symbolic link parameter added
2962 to the file command.
2964 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
2966 * util/grub-install.in: Remove stale TODO.
2968 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2970 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
2971 dynamic allocation for the bootpath buffer.
2973 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
2975 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
2978 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2980 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
2981 argument rather than font name. All users updated.
2982 (grub_gfxterm_set_window): Likewise.
2984 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
2986 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
2989 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2991 * util/getroot.c (convert_system_partition_to_system_disk): Support
2994 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2996 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
2997 infinite loop on corrupted FS.
2999 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
3001 Fix big-endian mtime.
3003 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
3004 together sec and usec.
3005 (grub_ufs_dir): Use correct byteswapping for UFS time.
3007 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
3009 Support big-endian UFS1.
3011 * Makefile.util.def (libgrubmods): Add ufs_be.c
3012 * grub-core/Makefile.core.def (ufs1_be): New module.
3013 * grub-core/fs/ufs_be.c: New file.
3014 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
3017 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
3019 * include/grub/types.h: Fix functionality unaffecting typo in
3020 GRUB_TARGET_WORDSIZE conditional macro.
3022 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3024 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
3026 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
3028 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
3029 that /netbsd appears first (when it exists).
3031 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
3033 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
3034 Fixes Savannah bug #37558.
3036 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
3038 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
3039 description of extract_entries_configfile.
3041 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
3043 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
3045 (grub_cmd_linux): Likewise.
3046 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
3047 preferred_lifetime. Update all users.
3049 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
3051 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
3052 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
3054 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
3056 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
3057 errors from grub-probe to /dev/null, not stdout.
3059 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
3061 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
3064 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
3066 * util/grub-install.in: Make the error message if $source_dir
3067 doesn't exist more useful.
3069 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
3071 Fix grub-emu build on FreeBSD.
3073 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
3074 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
3076 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
3077 implementation is currently Linux-specific.
3078 * util/getroot.c (exec_pipe): Define only on Linux or when either
3079 libzfs or libnvpair is unavailable.
3080 (find_root_devices_from_poolname): Remove unused path variable.
3082 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
3084 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
3085 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
3086 should fit before end == 63.
3088 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
3090 * util/grub-setup.c (write_rootdev): Remove unused core_img
3091 parameter. Update all callers.
3092 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
3093 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
3096 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3098 * util/grub-mkconfig_lib.in (grub_tab): New variable.
3099 (grub_add_tab): New function.
3100 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
3101 * util/grub.d/10_illumos.in: Likewise.
3102 * util/grub.d/10_kfreebsd.in: Likewise.
3103 * util/grub.d/10_linux.in: Likewise.
3104 * util/grub.d/10_netbsd.in: Likewise.
3105 * util/grub.d/10_windows.in: Likewise.
3106 * util/grub.d/10_xnu.in: Likewise.
3107 * util/grub.d/20_linux_xen.in: Likewise.
3108 * util/grub.d/30_os-prober.in: Likewise.
3110 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3112 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3113 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
3114 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
3115 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
3116 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
3118 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
3119 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
3121 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3123 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
3125 Reported by: BURETTE, Bernard.
3127 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
3129 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
3132 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
3134 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
3135 IEEE1275 machines. Fixes powerpc-emu compilation.
3136 * include/grub/terminfo.h: Likewise.
3138 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3140 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
3142 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
3144 (efiemu_set_variable): Make vendor_guid a const pointer.
3146 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3148 Don't require grub-mkconfig_lib to generate manpages for programs.
3150 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
3151 dependencies, don't add grub-mkconfig_lib.
3152 (program): Pass empty adddeps.
3153 (script): Pass grub-mkconfig_lib as adddeps.
3155 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3157 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
3158 * util/getroot.c (grub_find_device): Likewise.
3159 (get_mdadm_uuid): Likewise.
3160 (grub_util_is_imsm): Likewise.
3161 (grub_util_pull_device): Likewise.
3162 * util/grub-probe.c (probe): Likewise.
3164 2012-09-10 Benoit Gschwind <gschwind>
3166 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
3167 (devs): Add devpath_8.
3169 2012-09-08 Peter Jones <pjones@redhat.com>
3171 * grub-core/Makefile.core.def (efifwsetup): New module.
3172 * grub-core/commands/efi/efifwsetup.c: New file.
3173 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
3174 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
3176 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
3178 2012-09-05 Jiri Slaby <jslaby@suse.cz>
3180 * configure.ac: Add SuSe path.
3182 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3186 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3188 * util/import_gcry.py: Sort cipher_files, to make build system
3189 generation more deterministic.
3191 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3193 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
3194 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
3195 (grub_set_datetime): Likewise.
3197 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3199 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
3202 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3204 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
3206 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3208 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
3210 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3212 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
3213 required for checkouts from bzr, but it may be useful for users or
3214 distributors wishing to update translations against a tarball
3215 distribution, and it can be helpful for the tarball to be a superset
3218 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3220 * Makefile.am (EXTRA_DIST): Add
3221 grub-core/tests/boot/linux.init-mips.S,
3222 grub-core/tests/boot/linux.init-ppc.S, and
3223 grub-core/tests/boot/linux-ppc.cfg.
3225 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3227 * grub-core/mmap/mips/loongson: Remove empty directory.
3229 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3231 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
3234 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3236 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
3239 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
3241 * configure.ac: Strengthen the test for working -nostdinc -isystem.
3243 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
3245 * po/POTFILES.in: Regenerated.
3247 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
3249 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
3250 (NetBSD): New subsection.
3252 2012-07-22 Ales Nesrsta <starous@volny.cz>
3254 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
3255 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
3257 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3259 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
3260 * util/grub.d/10_hurd.in: Add missing quoting.
3261 * util/grub.d/10_illumos.in: Likewise.
3262 * util/grub.d/10_kfreebsd.in: Likewise.
3263 * util/grub.d/10_linux.in: Likewise.
3264 * util/grub.d/20_linux_xen.in: Likewise.
3266 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3268 New command `lsefi'.
3270 * grub-core/Makefile.core.def (lsefi): New module.
3271 * grub-core/commands/efi/lsefi.c: New file.
3272 * include/grub/efi/api.h: Add more GUIDs.
3274 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3276 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
3277 (grub_bsd_elf32_hook): Likewise.
3278 (grub_bsd_elf64_size_hook): Likewise.
3279 (grub_bsd_elf64_hook): Likewise.
3280 (grub_bsd_load_elf): Likewise.
3282 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3284 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
3285 if hash function is unavailable.
3286 (dec_stream_header): Likewise.
3288 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3290 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
3293 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3295 Fix coreboot compilation.
3297 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
3298 (grub_vga_text_init_real): ... this.
3299 (grub_vga_text_fini): Rename to ...
3300 (grub_vga_text_fini_real): ... this.
3302 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3304 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
3306 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3308 * grub-core/lib/legacy_parse.c: Support clear and testload.
3310 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3312 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
3314 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3316 * grub-core/fs/ext2.c: Experimental support for 64-bit.
3318 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3320 * grub-core/net/tftp.c (ack): Fix endianness problem.
3321 (tftp_receive): Likewise.
3322 Reported by: Michael Davidsaver.
3324 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3326 * gentpl.py: Make mans depend on grub-mkconfig_lib.
3328 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3330 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
3331 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
3332 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
3334 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3336 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
3338 Reported by: Stuart Hayes.
3340 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
3342 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
3344 * grub-core/Makefile.core.def (mda_text): New module.
3345 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
3346 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
3347 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
3348 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
3350 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
3351 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
3352 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
3354 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
3356 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
3358 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
3360 * grub-core/term/i386/vga_common.c: Removed.
3361 * include/grub/i386/vga_common.h: Likewise.
3362 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
3363 (grub_vga_cr_bw_read): Likewise.
3364 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
3365 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
3366 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
3367 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
3368 grub_vga_cr_read/grub_vga_cr_write.
3369 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
3371 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3373 * configure.ac: Bump version to 2.00.
3374 * grub-core/normal/main.c (features): Add feature_200_final.
3376 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3377 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
3379 * NEWS: Fix unclarity and language mistakes.
3381 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3383 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
3384 additional size to 3 pages.
3385 Reported by: Stuart Hayes.
3387 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3389 * NEWS: Add 2.00 entry.
3391 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3393 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
3394 put explicit "/" for empty path.
3395 (wildcard_expand): Improve dprintf.
3397 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3399 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
3400 it's equal to currnode. This can happen with "" symlink.
3402 2012-06-27 Yves Blusseau <blusseau@zetam.org>
3404 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
3405 echo shell command by printf command.
3407 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3409 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
3410 the value returned by firmware is the maximal position, not diumension.
3411 (grub_terminfo_output_state): Use a more sane fallback.
3413 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3415 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
3417 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3419 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
3420 frequency to 150 MHz.
3422 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3426 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
3428 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
3430 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
3432 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3434 Handle slash in HFS label.
3436 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
3437 (grub_hfs_dir): Tanslate slash.
3438 (grub_hfs_label): Don't translate slash.
3440 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3442 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
3443 network protocol listing since it introduces problematic dependency on
3446 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3448 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
3450 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3452 Init video early on yeeloong to avoid being rebooted by watchdog.
3454 * grub-core/Makefile.am (gensm712): New target.
3455 (sm712_start.S): Likewise.
3456 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
3457 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
3458 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
3460 * include/grub/vga.h: Move registry definitions to...
3461 * include/grub/vgaregs.h: ... here.
3463 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3465 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
3468 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3470 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
3471 platforms with firmware disk drivers in the core.
3473 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3475 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
3476 informative verbose message.
3477 (read_lv): Handle 64-bit segment size.
3479 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3481 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
3483 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3485 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
3486 character but still remove trainling spaces.
3487 (grub_fat_label): Ignore archive flag.
3489 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3491 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
3492 cast between linux_kernel_header and linux_kernel_params.
3494 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3496 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
3498 (grub_raid6_recover_func_t): Likewise.
3499 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
3500 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
3502 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3504 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
3506 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3510 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
3511 [__NetBSD__]: Add explicit cast before bitshift.
3513 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3515 * configure.ac: Bump to 2.00~rc1.
3517 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3519 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
3522 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3523 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
3525 * docs/grub.texi: Fix search syntax.
3526 (Multi-boot manual config): Put msdos rather than GPT example.
3527 Grammar corrections.
3529 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3531 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
3533 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3535 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
3537 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3539 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
3540 message on double free. Put the value of magic in case of mismatch.
3542 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3544 Speed-up video on yeeloong.
3546 * grub-core/video/sm712.c (framebuffer): Remove render_target and
3548 (grub_video_sm712_video_fini): Unmap cached_ptr.
3549 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
3550 (grub_video_sm712_set_active_render_target): Removed.
3551 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3552 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
3555 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3557 Avoid flushing the same line multiple times on loongson.
3559 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
3560 Step in 32 bytes and not 1 byte.
3561 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
3564 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3566 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
3569 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3571 Implement flow control for http.
3573 * grub-core/net/http.c (parse_line): Handle response 206.
3574 (http_receive): Stall if too many packets are in the queue.
3575 (http_establish): Fix range header.
3576 (http_seek): Fix double free.
3577 (http_close): Likewise.
3578 (http_packets_pulled): New function.
3579 (grub_http_protocol): Set http_seek
3580 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
3581 (ack_real): Set window depending on i_stall.
3582 (grub_net_send_tcp_packet): Likewise.
3583 (grub_net_tcp_stall): New function.
3584 (grub_net_tcp_unstall): Likewise.
3585 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
3586 (grub_net_tcp_unstall): Likewise.
3588 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3590 * grub-core/net/tftp.c: Decrease stall to 50 packets.
3592 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3594 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
3596 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3598 * tests/util/grub-shell.in: Fix a typo.
3600 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3602 Implement flow control for tftp.
3604 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
3605 packets but stop only if stop condition is satisfied.
3606 (grub_net_fs_read_real): Call packets_pulled after real read. Use
3607 `stall' instead of `eof' as stop condition.
3608 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
3609 (http_err): Likewise.
3610 * grub-core/net/tftp.c (ack): Replace the first argument with data
3612 (tftp_receive): Stall if too many packets are in wait queue.
3613 (tftp_packets_pulled): New function.
3614 (grub_tftp_protocol): Set packets_pulled.
3615 * include/grub/net.h (grub_net_packets): New field count.
3616 (grub_net_put_packet): Increment count.
3617 (grub_net_remove_packet): Likewise.
3618 (grub_net_app_protocol): New field `packets_pulled'.
3619 (grub_net): New field `stall'.
3621 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3623 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
3624 sync part to handle them.
3626 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3628 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
3629 * grub-core/net/drivers/ieee1275/ofnet.c
3630 (grub_ieee1275_net_config_real): Likewise.
3632 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3634 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
3635 the direct route for server/gateway.
3637 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3639 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
3640 IP address to server name since we may not hame the DNS.
3642 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3644 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
3645 freeing random buffer on failure.
3646 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
3648 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3650 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
3652 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3654 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
3656 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
3657 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
3658 Handle malloc error correctly.
3660 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3662 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3665 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3667 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
3670 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3672 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
3673 none is explicitly specified.
3675 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3677 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
3680 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3682 Respect netmask from bootp/dhcp.
3684 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
3685 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
3686 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
3688 (grub_net_add_ipv4_local): ... this.
3689 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
3690 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
3691 (grub_net_add_ipv4_local): New proto.
3693 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3695 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
3696 determining EFI memory map size.
3698 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3700 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
3702 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3704 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
3705 when looking for partition separator.
3707 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3709 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3712 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3714 Restructure FAT driver to avoid hook in label reading as it hits a
3717 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
3718 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
3719 (grub_fat_iterate_dir): Split into ...
3720 (grub_fat_iterate_init): ... this, ...
3721 (grub_fat_iterate_fini): ... this, ...
3722 (grub_fat_iterate_dir_next): ... and this. All users updated.
3724 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3726 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3727 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
3728 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3729 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
3730 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
3731 New fields last_key and last_key_time.
3732 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
3733 extended key-esc into extended key-extended key.
3735 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3737 Avoid unnecessary memcpy of whole video buffer.
3739 * grub-core/video/fb/video_fb.c (dirty): New struct.
3740 (framebuffer): Add members current_dirty and previous_dirty.
3741 (dirty): New function.
3742 (grub_video_fb_fill_rect): Update dirty.
3743 (common_blitter): Likewise.
3744 (grub_video_fb_scroll): Likewise.
3745 (doublebuf_blit_update_screen): Copy only dirty part.
3746 (doublebuf_pageflipping_update_screen): Likewise.
3747 (grub_video_fb_doublebuf_blit_init): Init dirty.
3748 (doublebuf_pageflipping_init): Likewise.
3749 (grub_video_fb_setup): Likewise.
3751 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3753 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
3756 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3758 Fix wildcard regexp dot and other special characters handling.
3759 Reported by: Robert Mabee.
3761 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
3762 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
3763 (split_path): Trigger expansion on '?'.
3764 (unescape): New function.
3765 (wildcard_expand): Unescape parts copied without globbing.
3766 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
3767 (grub_script_arglist_to_argv): Don't unescape expansions.
3769 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3771 * include/grub/net.h (grub_net_card): New member txbufsize.
3772 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
3773 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3774 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
3775 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
3777 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
3778 compatible property to check for macs. Set
3779 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3780 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
3781 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
3782 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
3783 (send_card_buffer): Use txbuf.
3784 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
3785 nested function out of the parent while on it.
3787 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3789 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
3791 (grub_ieee1275_net_config_real): Fix config pointer.
3793 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3795 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
3796 filename parsing to non-block devices.
3798 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3800 * grub-core/kern/device.c (grub_device_open): Remove dead code.
3802 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3804 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
3807 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3809 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
3810 UUID search command even if hints probing failed.
3812 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3814 * po/POTFILES.in: Regenerated.
3816 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3818 Speed-up video on fuloong.
3820 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
3822 (grub_pci_device_unmap_range): Handle non-cached address.
3823 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
3825 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
3826 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
3827 (grub_video_sis315pro_set_active_render_target): Removed.
3828 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
3829 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3830 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
3832 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
3835 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3837 * docs/grub.texi (Multi-boot manual config): New section.
3839 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3841 Avoid slow read-back from VRAM.
3843 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3845 * grub-core/video/fb/video_fb.c
3846 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
3847 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
3848 (front_target): Remove front_target. Add pages.
3849 (grub_video_fb_init): Skip setting front_pages.
3850 (grub_video_fb_fini): Likewise.
3851 (doublebuf_blit_update_screen): Use pages.
3852 (grub_video_fb_doublebuf_blit_init): Likewise.
3853 (doublebuf_pageflipping_init): Allocate offscreen buffer.
3854 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
3855 (grub_video_fb_setup): Prefer doublebuffing.
3857 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3859 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
3862 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3866 * tests/util/grub-shell.in: Handle loongson.
3867 * tests/partmap_test.in: Add loongson to the list of platform using ATA
3869 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
3870 Reboot instead of shutdown if REBOOT is defined.
3872 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3874 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
3875 sized ports since unlike on real hardware qemu supports only 32-bit
3878 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3880 * Makefile.util.def (grub-mkrescue): Enable on loongson.
3881 * util/grub-mkrescue.in: Handle loongson.
3883 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
3885 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
3886 Set is_part appropriately.
3887 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
3888 names. Canonicalize partition without full disk.
3890 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3892 Revert usb-quiesce since it's wrong.
3894 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
3895 (grub_ofdisk_init): Don't do quiesce.
3897 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3899 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
3900 PowerMac workaround to Xserves as well.
3901 Information supplied by: Benjamin Herrenschmidt.
3903 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3905 Don't assume that beginning address is also the entry point on ppc.
3907 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
3908 (grub_linux_boot): Use linux_entry.
3909 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
3910 (grub_linux_load64): Likewise.
3912 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3914 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
3916 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3918 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
3919 needlessly lose the console.
3921 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3923 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
3926 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3928 Remove non-functional EFI grub_get_rtc. Put a better fatal message
3929 than current grub_get_rtc() not implemented when booted with
3930 coreboot without TSC.
3932 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
3933 Add machine/time.h to kernel headers on loongson.
3934 * grub-core/Makefile.core.def (kernel): Remove
3935 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
3936 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
3937 (grub_get_rtc): Likewise.
3938 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
3939 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
3940 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
3941 * grub-core/kern/i386/tsc.c (grub_tsc_init)
3942 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
3943 rather than installing known non-working time source.
3944 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
3945 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
3946 * include/grub/time.h: Don't include machine/time.h.
3947 * include/grub/efi/time.h: Removed.
3948 * include/grub/i386/efi/time.h: Likewise.
3949 * include/grub/i386/ieee1275/time.h: Likewise.
3950 * include/grub/powerpc/ieee1275/time.h: Likewise.
3951 * include/grub/sparc64/ieee1275/time.h: Likewise.
3952 * include/grub/x86_64/efi/time.h: Likewise.
3954 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3956 Remove dot on i and j when combining with above diacritics.
3958 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
3960 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
3961 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
3962 with dotless variants when any combining above is present.
3964 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3966 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
3967 text and not binary.
3969 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3971 Stop polling as soon as we have the packet we were waiting for.
3973 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
3975 * grub-core/net/arp.c (have_pending): New var.
3976 (pending_req): Likewise.
3977 (grub_net_arp_send_request): Fill pending_req and use have_pending as
3979 (grub_net_arp_receive): Set have_pending.
3980 * grub-core/net/dns.c (recv_data): New field stop.
3981 (recv_hook): Set stop.
3982 (grub_net_dns_lookup): Init stop and use as stop condition.
3983 * grub-core/net/http.c (http_establish): Use headers_recv as stop
3985 * grub-core/net/net.c (grub_net_poll_cards): New argument
3986 stop_condition. Stop when it goes true.
3987 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
3989 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
3991 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3993 Keep TX and RX buffers on EFI rather than always allocate new ones.
3995 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
3996 card. All users updated.
3997 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
3998 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
3999 (get_card_packet): Likewise.
4000 (grub_efinet_findcards): Init new fields.
4002 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4004 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
4005 compilation error on sparc64.
4007 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4009 Use ITC on IA64 rather than broken routine based on daytime.
4011 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
4013 (grub_get_rtc) [__ia64__]: Likewise.
4014 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
4015 (get_itc): New function.
4016 (grub_rtc_get_time_ms): Likewise.
4017 (grub_machine_init): Calibrate ITC.
4018 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
4019 Keep only on non-ia64. Don't export since it's broken and used only
4020 if TSC is unavailable.
4022 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4024 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
4026 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
4027 Skip if parent is unused.
4029 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4031 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
4033 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4035 Fix wildcard escaping.
4037 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
4038 * grub-core/script/execute.c (wildcard_escape): .. to here.
4040 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
4041 * grub-core/script/execute.c (wildcard_unescape): .. to here.
4043 * grub-core/script/execute.c (gettext_append): Always escape.
4044 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
4045 * grub-core/script/yylex.l: Don't cut away the escaping.
4046 * tests/grub_script_echo1.in: Add tests with wildcard.
4048 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4050 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
4051 (ftdi_hw_configure): Likewise.
4052 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
4054 (real_config): Handle 1.5 stop bits.
4055 (pl2303_hw_configure): Likewise.
4057 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4059 * Makefile.am: Add ppc linux bootcheck.
4060 * grub-core/tests/boot/linux-ppc.cfg: New file.
4061 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
4063 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4065 * tests/grub_script_expansion.in: Skip network protocols.
4067 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4069 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
4071 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4073 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
4077 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4079 ESCC serial driver for conducting sautomated tests in qemu.
4080 Not tested on real hardware.
4082 * include/grub/serial.h (grub_serial_port): New field escc_desc.
4083 * grub-core/term/ieee1275/escc.c: New file.
4084 * grub-core/Makefile.core.def (escc): New module.
4086 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4088 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
4090 (serial_hw_fetch): Don't read invalid handle.
4091 (serial_hw_put): Don't write into invalid handle.
4093 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4095 Add a 1.5 stop bits value.
4097 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
4098 * include/grub/serial.h (grub_serial_stop_bits_t): Add
4099 GRUB_SERIAL_STOP_BITS_1_5.
4101 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4103 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
4104 value rather than let it uninited.
4106 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4108 * grub-core/commands/wildcard.c (+check_file): New function.
4109 (wildcard_expand): Don't expand to non-existing files, expand with
4110 suffix and not attempt to expand if not needed.
4112 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4114 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
4115 out of partitions containing other partitions.
4117 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4119 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
4120 on some qemu versions with GRUB.
4122 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
4124 (grub_openbsd_bootarg_pcibios): New struct.
4125 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
4128 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4130 * tests/util/grub-shell.in: Trim firmware output on EFI.
4132 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4134 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
4135 and coreboot since it's already in kernel.
4137 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4139 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
4140 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4141 to here. New return value start. All users updated.
4142 Recursively scan linear mappings.
4143 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
4145 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
4146 Use grub_util_get_dm_node_linear_info.
4147 * util/getroot.c (convert_system_partition_to_system_disk): Use
4148 grub_util_info rather than grub_dprintf.
4149 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
4151 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4153 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
4155 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
4156 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
4158 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4160 * include/grub/types.h (grub_set_unaligned64): New function.
4161 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
4164 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4166 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
4167 (grub_ofdisk_fini): Quiesce USB devices.
4169 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4171 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
4174 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4176 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
4178 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4180 * grub-core/disk/pata.c (grub_pata_pio_read)
4181 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
4182 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
4184 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4186 Extend automated tests to qemu-mips.
4188 * Makefile.am: reorganise tests and enable qemu-mips.
4189 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
4190 * grub-core/tests/boot/linux.init-mips.S: New file.
4191 * tests/partmap_test.in: Handle ata0 disks.
4192 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
4195 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4197 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
4199 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
4202 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4204 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
4205 (grub_halt): Likewise.
4206 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
4208 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4210 * grub-core/term/serial.c (grub_serial_register)
4211 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
4212 the behaviour in line with x86 platforms.
4214 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4216 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
4217 (grub_ata_strncpy): Likewise.
4218 (grub_ata_identify): Add missing byteswaps.
4220 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4222 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
4224 (screen_read_char): Likewise.
4225 (grub_vga_text_cls): Likewise.
4227 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4229 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
4231 (make_file_path): Likewise.
4233 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4235 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
4237 Tested by: Paulo Flabiano Smorigo.
4238 Crucial information about API supplied by: Coleen <Last name unknown>.
4239 Reviewed by: Coleen <Last name unknown>.
4241 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4243 * util/grub-mkimage.c: Disable -Wcast-align.
4245 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4247 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
4250 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4252 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
4254 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4256 * util/grub-probe.c (escape_of_path): Fix double free.
4258 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4260 * grub-core/commands/videoinfo.c (hook): Show pitch.
4262 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4264 * util/grub.d/20_linux_xen.in: Skip xen-syms.
4266 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4268 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
4269 (probe): Add ieee1275 to OFW devices.
4271 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4273 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
4275 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4277 Handle IBM OFW path.
4279 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
4281 (of_path_of_scsi): Handle vdevice.
4283 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
4285 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
4286 Allocate in multiples of 16 to avoid adding a few bytes free region the
4289 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
4291 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
4292 Allocate in multiples of 16 to avoid adding a few bytes free region the
4294 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
4296 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4298 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
4300 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
4301 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
4303 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
4305 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
4307 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4309 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
4310 resulted in \\ at the end of the line.
4312 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4314 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
4315 (grub_parser_cmdline_state): Likewise.
4316 (grub_parser_split_cmdline): Likewise.
4318 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4320 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
4321 /dev/root and /dev/dm-*.
4323 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4325 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
4326 fix partially stale display.
4328 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4330 * grub-core/normal/menu_entry.c (backward_char): Use right line for
4333 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4335 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
4336 Fix MBR remapping workaround.
4337 (grub_util_biosdisk_read) [__linux__]: Likewise.
4339 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
4341 * util/grub-install.in: Check for ieee1275 and not ieee1276.
4343 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4345 * configure.ac: Bump to beta6.
4347 2012-05-31 Christer Weinigel <christer@weinigel.se>
4349 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
4351 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4353 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
4354 (grub_cmd_linux): Likewise.
4356 2012-05-31 Christer Weinigel <christer@weinigel.se>
4360 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
4361 (GRUB_EHCI_MULT_TWO): Likewise.
4362 (GRUB_EHCI_MULT_THREE): Likewise.
4363 (GRUB_EHCI_CMASK_MASK): New enum value.
4364 (GRUB_EHCI_SMASK_MASK): Likewise.
4365 (GRUB_EHCI_CMASK_OFF): Likewise.
4366 (GRUB_EHCI_SMASK_OFF): Likewise.
4367 (grub_ehci_pci_iter): Enable periodic schedule.
4368 (grub_ehci_parse_notrun): Likewise.
4369 (grub_ehci_restore_hw): Likewise.
4370 (grub_ehci_setup_qh): Set flags for low speed transfers.
4371 (grub_ehci_find_qh): Use periodic list for low speed.
4372 (grub_ehci_setup_transfer): Check periodic queue as well.
4373 (grub_ehci_check_transfer): Likewise.
4374 (grub_ehci_cancel_transfer): Cancel periodic transfer.
4376 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4378 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
4381 2012-05-31 Peter Jones <pjones@redhat.com>
4383 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
4384 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
4385 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
4387 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4389 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
4390 uninited variable. Allocate at least setup_sects.
4392 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4394 Fix handling of EFI with big memory maps.
4396 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
4397 (real_mode_mem): Likewise.
4398 (real_mode_target): Likewise.
4399 (real_mode_pages): Likewise.
4400 (prot_mode_pages): Likewise.
4401 (linux_params): New var.
4402 (linux_cmdline): Likewise.
4403 (free_pages): Don't set real mode variables.
4404 (allocate_pages): Don't allocate real mode memory.
4405 (grub_e820_add_region): Remove the limit.
4406 (grub_linux_boot): Allocate and copy real mode memory.
4407 (grub_linux_unload): Free linux_cmdline.
4408 (grub_cmd_linux): Use temporary storage for parameters.
4409 (grub_cmd_initrd): Likewise.
4410 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
4411 (linux_kernel_params): Make it 1K big.
4413 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4415 * Makefile.util.def: Remove -Wno-format.
4416 * grub-core/Makefile.core.def: Likewise.
4418 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4420 * tests/cmp_unit_test.c: Add missing failure message.
4421 * tests/example_unit_test.c: Likewise.
4422 * tests/printf_unit_test.c: Likewise.
4424 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4426 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
4427 relaxation of protective MBR requirements.
4429 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4431 * configure.ac: Add condition for COND_HOST_XNU.
4432 * Makefile.util.def (10_xnu): New script.
4433 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
4435 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4437 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
4440 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4442 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
4443 Binary on other platforms stays identical.
4445 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4447 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
4450 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4452 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
4454 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4456 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
4457 rather than defining size_t ourselves to avoid conflict.
4459 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4461 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
4462 initialisation to avoid __bzero reference.
4464 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4466 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
4468 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
4469 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
4470 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
4471 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
4472 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
4474 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4476 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
4477 * grub-core/kern/misc.c: Likewise.
4478 * grub-core/loader/i386/xnu.c: Likewise.
4479 * include/grub/i386/tsc.h: Likewise.
4480 * include/grub/symbol.h: Likewise.
4482 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4484 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
4485 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
4488 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4490 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
4491 Implement Apple flavour.
4492 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
4494 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4496 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
4497 (memmove) [__APPLE__]: Likewise.
4498 (memcpy) [__APPLE__]: Likewise.
4499 (memset) [__APPLE__]: Likewise.
4500 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
4501 (memmove) [__APPLE__]: Likewise.
4502 (memcpy) [__APPLE__]: Likewise.
4503 (memset) [__APPLE__]: Likewise.
4505 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4507 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
4510 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4512 * grub-core/normal/main.c (read_config_file): Provide config_file and
4514 * util/grub.d/41_custom.in: Use config_directoy when available.
4516 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4518 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
4519 (grub_bfs_dir): Likewise.
4521 2012-05-27 Peter Jones <pjones@redhat.com>
4523 The old code gives arguments to a printf function which can't work
4524 correctly, and the compiler complains.
4526 * grub-core/tests/example_functional_test.c (example_test): Add
4528 * grub-core/tests/lib/test.c (add_failure): Rewrite.
4529 * include/grub/test.h (grub_test_assert_helper): New declaration.
4530 (grub_test_assert): Use grub_test_assert_helper.
4532 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4534 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
4535 (exfctest): ... this to avoid overlong filenames.
4538 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4540 Handle "." and ".." on squashfs.
4542 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
4543 Make inode numbers into stack.
4544 (grub_squash_read_symlink): Use stack.
4545 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
4546 (make_root_node): Fill stack.
4547 (grub_squash_open): Use stack.
4549 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4551 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
4554 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4556 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
4557 stderr on test calls.
4559 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4561 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
4563 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4565 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
4567 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4569 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
4572 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4574 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
4575 (grub_hfsplus_iterate_dir): Add "." and "..".
4577 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4579 * grub-core/fs/cpio.c (canonicalize): Handle "..".
4580 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
4582 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4584 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
4585 (find_path): Handle "." and "..".
4587 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4589 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
4590 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
4591 (grub_affs_iterate_dir): Handle hardlinks.
4593 2012-05-26 Matthew Garrett <mjg@redhat.com>
4595 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
4596 (grub_efi_console_fini): Likewise.
4597 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
4598 (grub_video_gop_fill_mode_info): Rename to ...
4599 (grub_video_gop_fill_real_mode_info): ... this.
4600 (grub_video_gop_fill_mode_info): New function.
4601 (grub_video_gop_setup): Setup double framebuffer.
4602 (grub_video_gop_get_info_and_fini): Use original framebuffer.
4604 (grub_video_gop_swap_buffers): Copy framebuffer.
4605 (grub_video_gop_fini): Free offscreen buffer.
4606 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
4608 (grub_efi_gop_blt_pixel): New struct.
4610 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4612 * gentpl.py: Remove error disabling for objconv.
4614 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4616 * configure.ac: Remove -Wunitialized as it's not available on older
4619 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4621 Fix extent overflow comparator.
4623 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
4624 (grub_hfsplus_read_block): Set type.
4625 (grub_hfsplus_cmp_extkey): Compare type.
4627 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
4629 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
4631 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4633 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
4636 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4638 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
4639 (dejavu_bold_14.pf2): New target.
4641 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4643 * configure.ac: Fix djvu font detection.
4645 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4647 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
4648 ext* instead of ext2.
4650 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4652 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
4655 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
4657 * docs/grub-dev.texi: Remove dot from .png.
4659 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4661 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
4662 protective entry in any slot.
4663 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
4664 if protective entry is found in any slot.
4666 Protective entry in non-first slot make no sense but is a widespread
4669 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4671 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
4673 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4675 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
4677 (grub_reiserfs_open): Don't free root.
4679 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4681 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
4682 after freeing for safety.
4684 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4686 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
4687 Reported by: Jordan Uggla.
4689 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
4691 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
4692 actual implementation. Specifically, clarify that the grub menu will
4693 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
4696 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
4698 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
4701 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4703 Remove unjustified hard dependency of normal.mod on gfxterm.
4705 * include/grub/term.h (grub_term_output): New member fullscreen.
4706 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
4707 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
4708 (grub_gfxterm): Set .fullscreen.
4709 * grub-core/normal/menu.c (menu_init): Use fullscreen.
4710 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
4712 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4714 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
4715 mentioning possible problems with non-ASCII (non-compliant) ISOs.
4716 Mention case-insensitive AFFS, SFS and JFS.
4718 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4720 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
4722 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4724 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4727 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4729 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
4730 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
4732 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4734 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
4735 (grub_jfs_mount): Fill caseins.
4736 (grub_jfs_find_file): Respect caseins.
4738 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4740 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
4743 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4745 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
4746 New argument origpath. All users updated.
4748 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4750 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
4751 (read_attr): Ensure that we read start of possibly compressed block.
4753 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4755 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
4756 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
4759 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4761 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
4762 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
4763 (dejavu.pf2): Replace with ...
4764 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
4767 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4769 * util/grub.d/20_linux_xen.in: Add missing line.
4771 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4773 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
4774 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
4775 (grub_utf16_to_utf8): Likewise.
4777 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4779 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
4780 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
4781 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4782 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
4783 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4784 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
4786 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4788 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4791 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4793 * grub-core/fs/udf.c (read_string): Bail out on size=0.
4794 (grub_udf_read_symlink): Handle read_string failure.
4796 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4798 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
4801 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4803 Fix handling of UDF symlinks.
4805 * grub-core/fs/udf.c (read_string): New argument outbuf.
4807 (grub_ufs_read_symlink): Rename to ...
4808 (grub_udf_read_symlink): ... this. All users updated.
4809 Handle symlinks with more than one component.
4811 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4813 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
4814 symlinks. Replace leading colon with a slash.
4816 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4818 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
4821 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4823 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
4824 match in inner node.
4826 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4828 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
4829 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
4830 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
4831 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
4832 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
4833 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
4834 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
4835 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
4836 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
4838 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4840 Use grub-probe and not cmp to check that disk is empty.
4842 * util/grub-install.in: Use grub-probe for zero-check.
4843 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
4844 (probe): Handle PRINT_ZERO_CHECK.
4845 (argp_parser): Handle -t zero_check.
4847 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4849 Flush block cache on adding disk to device map.
4851 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
4852 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
4854 (read_device_map): Likewise.
4855 (open_device): Flush on opening.
4857 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4859 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
4860 (handle_symlink): Fix off-by-one error.
4861 Canonicalize the target.
4862 (grub_cpio_dir): Canonicalize the name.
4865 (grub_cpio_open): Canonicalize the name.
4867 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4869 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
4872 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4874 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
4875 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
4877 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4879 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
4880 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
4883 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4885 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
4888 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4890 Fix UFS1 big file support.
4892 * grub-core/fs/ufs.c (INODE): Removed.
4893 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
4895 (INODE_MODE): Simplify.
4896 (grub_ufs_inode): Use uint64_t for size and not int64_t.
4897 (grub_ufs_lookup_symlink): Don't use INODE.
4899 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4901 Fix minixfs with non-power-of-two blocks since it's supported by minix.
4903 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
4904 (grub_minix_data): Replace log_block_size with block_size.
4905 (grub_minix_read_file): Use block_size but avoid 64-bit division.
4906 (grub_minix_mount): Fill block_size.
4908 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4910 * configure.ac: Bump to beta5.
4912 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4914 Fix wrapped HFS+ handling.
4916 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
4917 blocks_start. All users updated.
4918 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
4920 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
4922 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4924 Fix long symlinks on reiserfs.
4926 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
4927 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
4928 (grub_reiserfs_iterate_dir): Save size for non-directories.
4929 (grub_reiserfs_open): Don't reread stat block as we already know the
4931 (grub_reiserfs_read): Split into...
4932 (grub_reiserfs_read_real): ... and ...
4933 (grub_reiserfs_read): ...this.
4935 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4937 Fix non-indexed JFS.
4939 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
4940 (grub_jfs_data): New field namecomponentlen.
4941 (grub_jfs_mount): Fill namecomponentlen.
4942 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
4944 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4946 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
4947 * tests/grub_script_echo1.in: Add tests.
4949 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4951 * util/grub-install.in: Ignore empty devicetree directory.
4953 2012-05-08 Bean <bean123ch@gmail.com>
4955 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
4957 (free_rsm): Free header as well.
4958 (free_old_fragments): Fix memory leak.
4959 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
4960 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
4961 (destroy_pq): Likewise.
4962 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
4964 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4966 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
4967 resulting hash as a precaution.
4969 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4971 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
4972 '_' in variable names.
4973 * grub-core/net/net.c (grub_net_network_level_interface_register):
4976 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4978 Fix AFFS with non-512B blocks.
4980 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
4981 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
4982 (grub_affs_data): Replace blocksize with log_blocksize.
4983 (grub_affs_read_block): Fix non-512B blocks.
4984 (grub_affs_read_symlink): Likewise.
4985 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
4986 (grub_affs_read): Fix non-512B blocks.
4987 (grub_affs_label): Likewise.
4988 (grub_affs_mtime): Likewise.
4989 (grub_affs_mount): Fix block detection routine.
4991 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4993 Add filesystem mtime to AFFS.
4995 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
4996 (aftime2ctime): New function.
4997 (grub_affs_dir): Use aftime2ctime.
4998 (grub_affs_label): Fix return value.
4999 (grub_affs_mtime): New function.
5000 (grub_affs_fs): Add mtime.
5002 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5004 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
5007 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5009 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
5012 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5014 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
5016 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5018 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
5020 (FLAGS_CASE_SENSITIVE): New enum value.
5021 (cache_entry): New struct.
5022 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
5023 cache_size and cache.
5024 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
5025 Add log_blocksize and fshelp_flags.
5026 (grub_sfs_read_extent): Handle non-512 blocks.
5027 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
5028 (grub_sfs_read_file): Handle non-512 blocks.
5029 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
5031 (grub_sfs_read_symlink): Handle non-512 blocks.
5032 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
5033 (grub_sfs_dir): Free cache.
5034 (grub_sfs_close): Likewise.
5036 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5038 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
5041 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5043 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
5045 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5047 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
5049 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5051 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
5052 (grub_sfs_read_extent): Likewise.
5053 (grub_sfs_read_block): Likewise.
5054 (grub_sfs_mount): Likewise.
5055 (grub_sfs_iterate_dir): Likewise.
5056 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
5057 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
5059 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5061 Fix errors on compressed NTFS with 512B clusters.
5063 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
5065 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
5067 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
5068 Relax check for inline extents.
5069 (ntfscomp): Return correct -1 on error and not 0.
5071 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5073 * util/grub-install.in: Fix handling of prefix containing spaces.
5075 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5077 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
5078 (grub_squash_read_data): Fix offset byte-swapping.
5080 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5082 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
5083 per common usage and preffered in several parts of code.
5084 (grub_memcmp): Likewise.
5085 (grub_strncmp): Likewise.
5086 * include/grub/misc.h (grub_strcasecmp): Likewise.
5087 (grub_strncasecmp): Likewise.
5088 * Makefile.util.def (cmp_test): New test.
5089 (grub_script_strcmp): Likewise.
5090 * tests/cmp_unit_test.c: New file.
5091 * tests/grub_script_strcmp.in: Likewise.
5092 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
5094 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5096 * include/grub/pci.h: Move enums into no-asm part.
5098 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5100 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
5102 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5104 * util/getroot.c (find_hurd_root_device): Try to make error message
5105 and comments to translators clearer.
5107 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5109 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
5111 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5113 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
5116 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5118 * docs/grub.cfg: Update.
5120 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5122 * docs/grub.texi (PXE): Remove not present variables.
5124 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5126 * grub-core/net/net.c (defserver_set_env): New function.
5127 (defserver_get_env): Likewise.
5128 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
5130 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5132 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
5135 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5137 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
5138 * grub-core/kern/emu/hostdisk.c: Likewise.
5140 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5142 Handle hurd userspace partitions.
5144 * util/getroot.c (find_hurd_root_device): New function.
5145 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
5147 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5149 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
5151 Reported by: Bastian Blank.
5153 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5155 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
5156 crossing page boundary.
5158 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5160 Fix B-tree search in BFS, especially in presence of non-ASCII
5163 * grub-core/fs/bfs.c (bfs_strcmp): New function.
5164 (find_in_b_tree): Use standard bsearch + btree algorithm.
5166 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5168 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
5171 2012-05-03 Matthew Garrett <mjg@redhat.com>
5172 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5174 Suspend broadcom cards in order to stop their DMA.
5176 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
5177 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
5178 (pci): Don't build on x86 EFI.
5179 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
5180 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
5182 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
5183 stop_broadcom if running on EFI.
5184 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
5185 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
5186 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
5187 (grub_pci_find_capability): New proto.
5189 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5191 * docs/grub.texi: Remove dot from the extension as it apparently
5192 doesn't work with some makeinfo versions.
5194 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5196 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
5197 with GRUB expectance.
5199 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5201 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
5203 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5205 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
5206 zero after directory block since last entry may be not 0-terminated if
5207 it ends on block boundary. Use continue instead of if spanning whole
5210 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5212 Support 4K sectors UDF inline files.
5214 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
5215 (grub_udf_extended_file_entry): Likewise.
5216 (grub_fshelp_node): Name the anonymous union. Put block at the end.
5218 (get_fshelp_size): New function.
5219 (grub_udf_read_icb): Read whole block.
5220 (grub_udf_iterate_dir): Likewise.
5221 (grub_udf_dir): Likewise.
5222 (grub_udf_open): Likewise.
5224 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5226 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
5228 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5230 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
5231 inline symlinks in addition to workaround.
5233 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5235 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
5237 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5239 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
5241 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5243 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
5245 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5247 Fix reiserfs big seek times.
5249 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
5250 exact. All users updated.
5251 (grub_reiserfs_read): Use nearest btree search for seeking.
5252 Fix return value on error.
5254 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5256 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
5258 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
5259 * docs/grub.texi: Update menuentry description.
5261 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5263 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
5264 crash when embedding onto filesystem.
5266 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5268 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
5271 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5273 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
5275 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5277 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
5280 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5281 2012-05-01 Bean <bean123ch@gmail.com>
5283 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
5285 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5287 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
5288 Special behaviour for len = 0 to read whole file isn't used anywhere and
5289 can cause buffer ovewrflows in several places.
5291 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5293 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
5295 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5297 Handle RAIDZ on non-512B sectors.
5299 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
5300 max_children_ashift.
5301 (fill_vdev_info_real): Fill max_children_ashift.
5302 (read_device): Use max_children_ashift.
5304 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5306 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
5308 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5310 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
5312 * docs/grub.texi: Update device.map parts.
5314 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5316 Don't scan into non-diskfilter devices having diskfilter names.
5318 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
5319 (scan_disk): New argument accept_diskfilter. Fix recursion depth
5321 (scan_disk_hook): New function.
5323 2012-04-29 Bean <bean123ch@gmail.com>
5325 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
5328 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
5330 * configure.ac: Detect starfield theme font path
5331 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
5333 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5335 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
5336 geometry on serial consoles.
5338 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5340 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
5341 because of network consoles.
5343 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5345 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
5348 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5350 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
5353 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5355 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
5356 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
5358 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5360 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
5361 Allocate at lest 8192 for temporary buffer as required for lzo.
5363 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5365 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
5366 to cluster_bits, since it's already added in.
5367 (grub_fat_read_data): Likewise.
5369 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5371 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
5372 as long as cluster size is multiple of 512 bytes.
5374 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
5376 * util/grub-mkrescue.in: Fix locale directory.
5378 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
5380 * grub-core/kern/emu/hostdisk.c (map): Make static.
5382 2012-04-23 Bean <bean123ch@gmail.com>
5384 * util/grub-fstest.c (fstest): Add missing break.
5386 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
5390 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
5391 not define nr variable.
5392 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
5393 find_root_devices_from_poolname, find_root_devices_from_libzfs,
5394 grub_find_device): Do not define.
5396 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5398 Fix kfreebsd compile and behaviour.
5400 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
5402 * util/getroot.c: Fix wait.h include.
5403 (grub_guess_root_devices): Error if grub_find_device fails.
5404 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
5405 (grub_util_get_dev_abstraction): Likewise.
5406 (grub_util_pull_device): Likewise.
5407 (grub_util_get_grub_dev): Likewise.
5408 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
5410 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5412 Fix and unify wholedisk detection.
5414 * util/getroot.c (convert_system_partition_to_system_disk): New argument
5415 is_part. All users updated.
5416 (device_is_wholedisk): Removed.
5417 (grub_util_biosdisk_get_grub_dev): Use is_part.
5419 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5421 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
5424 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5426 * configure.ac: Bump to beta4.
5428 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5430 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
5431 --fs-uuid --set UUID syntax.
5433 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5435 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
5438 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5440 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
5442 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
5444 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
5446 2012-04-18 Mike Gilbert <floppym@gentoo.org>
5448 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
5450 2012-04-18 Bean <bean123ch@gmail.com>
5452 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
5455 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5457 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
5459 (grub_util_biosdisk_read): Handle Linux partitions not exactly
5460 corresponding to GRUB partitions.
5461 (grub_util_biosdisk_write): Likewise.
5463 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5465 Scan mdraid before LVM.
5467 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
5468 (grub_diskfilter_register_front): ... this.
5469 (grub_diskfilter_register_back): New function.
5470 All users of grub_diskfilter_register updated.
5472 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5474 * util/grub-install.in: Fix an automatic target detection bug.
5476 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5478 * util/grub-install.in: New option --efi-directory.
5480 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5482 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
5483 boot services if we have no other choice.
5485 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5487 * util/grub-mknetdir.in: Rename --override-directory to --directory and
5489 * tests/util/grub-shell.in: Update to --directory.
5491 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5493 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
5495 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5497 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
5498 (grub_minix_read_file): Likewise.
5499 (grub_minix_read_inode): Likewise.
5500 (grub_minix_find_file): Likewise.
5501 (grub_minix_dir): Likewise.
5503 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5505 * util/grub-setup.c (setup): Fix partition handling and blocklist
5508 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5510 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
5511 redundant buggy overlap check.
5513 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5515 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
5518 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5520 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
5521 kh.loadflags on pre-2.00 kernels.
5523 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5525 Terminate UNDI and PXE before launching the payload to avoid problems
5528 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
5529 (grub_loader_flags): ... this. All users updated.
5530 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
5531 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
5532 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
5533 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
5535 (grub_pxe_restore): Likewise.
5536 (fini_hnd): New var.
5537 (GRUB_MOD_INIT): Register shutdown hook.
5538 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
5539 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
5540 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
5541 (grub_loader_set): Rename second argument to flags.
5543 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5545 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
5547 (grub_get_num_of_utf8_bytes): New function.
5548 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
5549 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
5551 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
5552 (grub_ucs4_to_utf8): Change return type.
5554 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5556 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
5558 * grub-core/fs/bfs.c (hop_level): Likewise.
5559 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
5561 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5563 * grub-core/lib/adler32.c: Recode due to license unclearness.
5565 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5567 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
5568 (test_header): Likewise.
5570 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5572 Fix --help formatting.
5574 * util/grub-mkconfig_lib.in (print_option_help): New function.
5575 (grub_fmt): Likewise.
5576 * util/grub-install.in: Use print_option_help and grub_fmt.
5577 * util/grub-kbdcomp.in: Likewise.
5578 * util/grub-mkconfig.in: Likewise.
5579 * util/grub-mknetdir.in: Likewise.
5580 * util/grub-mkrescue.in: Likewise.
5581 * util/grub-mkstandalone.in: Likewise.
5582 * util/grub-reboot.in: Likewise.
5583 * util/grub-set-default.in: Likewise.
5584 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5586 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5588 * linguas.sh: Remove autogenerated *.po.
5590 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5592 * po/README: Move language fetcing to ...
5593 * linguas.sh: ... here.
5594 * po/README: Point to linguas.sh.
5596 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5598 * po/README: Exclude ko.po due to disclaimer problems.
5600 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5602 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
5604 (grub_gettext_translate_real): Handle 0th string.
5605 (grub_gettext_translate): Ensure that "" isn't translated.
5607 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5609 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
5610 TRANSLATORS comment.
5611 (grub_diskfilter_print_partmap): Propagate changing of error into
5614 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5616 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
5617 to uint64_t to prevent overflow.
5618 (grub_diskfilter_lv): Increase start_extent and extent_count
5619 to uint64_t to prevent overflow.
5621 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5623 * configure.ac: Increase version.
5625 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5627 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
5629 * po/Rules-translit: New file.
5630 * po/arabic.sed: Likewise.
5631 * po/cyrillic.sed: Likewise.
5632 * po/greek.sed: Likewise.
5633 * po/hebrew.sed: Likewise.
5634 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
5635 * po/Makefile.in.in: Add extra_dist4.
5637 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5639 Handle big-endian minixfs (fixes minixfs tests on bigendian).
5641 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
5642 modify names. Introduce MODE_BIGENDIAN.
5643 * grub-core/fs/minix_be.c: New file.
5644 * grub-core/fs/minix2_be.c: Likewise
5645 * grub-core/fs/minix3_be.c: Likewise.
5646 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
5648 * grub-core/Makefile.core.def (minix_be): New module.
5649 (minix2_be): Likewise.
5650 (minix3_be): Likewise.
5652 2012-04-01 Felix <email@hamburg.de>
5654 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
5655 (devs): Add MBP 2011.
5657 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5659 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
5661 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5663 * grub-core/normal/cmdline.c (print_completion): New field
5665 (grub_cmdline_get): Handle width properly.
5667 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5669 * grub-core/commands/lsacpi.c (options): Add missing terminator.
5671 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5673 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
5674 after 29th of February.
5676 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5678 Fix exfat endianness handling.
5680 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
5681 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
5682 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
5683 Byte-swap utf16 when necessary.
5684 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
5686 2012-03-31 Anton Blanchard <anton@samba.org>
5687 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5689 Fix btrfs endianness handling.
5691 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
5692 (lower_bound): Make root uint64_t. Use root in le.
5693 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
5694 (find_path): Fix template key init.
5695 (grub_btrfs_dir): Fix mtime byteswap.
5696 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
5698 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5700 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
5701 recursion_depth. Break infinite resursions. All users updated.
5703 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5705 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
5707 Reported by: Peter Jones.
5709 2012-03-31 Anton Blanchard <anton@samba.org>
5711 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
5714 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5716 * util/grub-install.in: Fix nvram call for PreP.
5718 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5720 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
5721 the error when some elements are missing into a warning.
5723 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5725 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
5727 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
5729 * docs/grub.texi (Invoking grub-probe): New section.
5730 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
5732 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
5734 Fix tab and wide character handling in editor and menu.
5736 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
5737 agglomerate control characters with combining marks.
5738 (bidi_line_wrap): Allow break on tab.
5739 (grub_unicode_get_comb_start): New function.
5740 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
5742 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
5744 * grub-core/normal/term.c (print_ucs4_terminal): New argument
5745 fixed_tab_size. All users updated.
5746 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
5747 (grub_term_getcharwidth): Handle \t.
5748 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
5751 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5753 Handle big-endian mdraid.
5755 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
5756 * grub-core/Makefile.core.def (mdraid09_be): New module.
5757 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
5758 rather than grub_le_to_cpu* and grub_cpu_to_le*.
5759 * grub-core/disk/mdraid_linux_be.c: New file.
5761 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5763 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
5765 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5767 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5768 missing quotes which caused confusion among translators.
5770 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5772 * util/grub-mkconfig_lib.in: Fix typo.
5774 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5776 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
5778 * tests/grub_script_leading_whitespace.in: New file.
5779 * Makefile.util.def (grub_script_leading_whitespace): New test.
5781 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5783 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
5786 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5788 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
5789 starts with control character.
5791 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5793 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
5795 (grub_gdb_outbuf): Likewise.
5797 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5799 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
5800 zero terminator. Fixes a crash.
5802 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5804 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
5806 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
5807 images independently of preffered adderss field.
5809 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5811 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
5812 * grub-core/commands/regexp.c: Likewise.
5813 * grub-core/loader/i386/linux.c: Likewise.
5814 * grub-core/partmap/msdos.c: Likewise.
5815 * grub-core/script/execute.c: Likewise.
5816 * grub-core/term/gfxterm.c: Likewise.
5818 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5820 Add variable parsing in $"..." and fix several mismatches with bash.
5822 * Makefile.util.def (grub_script_gettext): New test.
5823 * grub-core/script/execute.c (parse_string): New function.
5824 (gettext_append): Likewise.
5825 (grub_script_arglist_to_argv): Use gettext_append.
5826 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
5827 * tests/grub_script_gettext.in: New file.
5829 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5831 Fix handling of leading spaces in scripts.
5833 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
5835 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
5836 other than skipping \r. All users updated.
5837 * tests/grub_script_echo1.in: Add space-related tests.
5838 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
5840 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5842 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
5844 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5846 * configure.ac: Bump up the version to beta2.
5848 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5850 Fix gettext reload bugs (e.g. inability to disable gettext
5853 * grub-core/gettext/gettext.c: Encapsulate all static variables in
5854 main_context and secondary_context. All functions updated.
5855 (grub_gettext_translate): Rename to ...
5856 (grub_gettext_translate_real): ... this. Return NULL on failed
5858 (grub_gettext_translate): Handle secondary context.
5859 (grub_gettext_delete_list): Close file and zero-out the context.
5860 (grub_mofile_open): Don't call grub_gettext_delete_list.
5862 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
5863 if locale="" to avoid pointless error message.
5864 (grub_gettext_env_write_lang): Update lang even if load fails.
5865 Handle secondary context.
5866 (grub_gettext_reread_prefix): New function.
5867 (read_main): Likewise.
5868 (read_secondary): Likewise.
5869 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
5870 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
5871 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
5872 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
5874 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5876 * configure.ac: Decrease warning level to avoid spurious warnings and
5877 to be able to compile with GCC 4.2.
5878 * Makefile.util.def: Remove -Wno-error=logical-op.
5880 2012-03-10 William Bittner <william.bittner@gmail.com>
5882 * util/import_unicode.py: Add missing brackets around string for
5885 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5887 Fix efi chainloader on network root.
5889 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
5891 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
5894 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5896 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
5897 unused show_text member.
5898 * docs/grub.texi: Document "text" property.
5900 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5902 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
5905 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5907 Fix IMSM handling on Fedora.
5909 * util/getroot.c (grub_util_is_imsm): New function.
5910 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
5912 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5914 * Makefile.am: Strip gold section.
5915 * conf/Makefile.common: Likewise.
5916 * gentpl.py: Likewise.
5917 * grub-core/Makefile.core.def: Likewise.
5918 * grub-core/genmod.sh.in: Likewise.
5920 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5922 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
5923 * util/grub.d/20_linux_xen.in: Likewise.
5924 Based on Debian patch.
5926 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5928 * util/grub.d/10_linux.in: Fix syntax error resulting in
5929 Richard Laager's patch.
5930 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
5932 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5934 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
5937 2012-03-10 Richard Laager <rlaager@wiktel.com>
5939 * util/grub.d/10_linux.in: Fix ZFS root passing.
5941 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5943 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
5944 * grub-core/commands/xnu_uuid.c: Likewise.
5945 * grub-core/loader/efi/appleloader.c: Likewise.
5946 * grub-core/script/execute.c: Likewise.
5947 * grub-core/script/main.c: Likewise.
5948 * util/grub-mkfont.c: Likewise.
5950 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5952 * util/grub-mkfont.c (options): Use more appropriate "select" that
5953 "set" for face index.
5955 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5957 * util/grub-editenv.c (options): Gettextize command summaries.
5959 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5961 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
5962 "out of memory" error messagge.
5964 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5966 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
5967 of diskfilter for diskfilter on diskfilter support.
5969 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5971 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
5973 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5975 * util/grub-install.in: Check for themes/starfield/theme.txt and not
5978 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5980 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
5982 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5984 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
5986 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5988 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
5991 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
5993 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
5995 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
5997 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
5999 * util/grub-install.in: Fix and gettextize error message.
6001 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6003 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
6005 * util/grub-mount.c (options): Likewise.
6007 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6009 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
6011 * grub-core/commands/search_wrap.c (options): Likewise.
6013 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6015 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
6017 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6019 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
6021 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
6024 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6026 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
6027 "temporary" since it's used in identifier and is limited in space.
6029 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6031 * po/POTFILES.in: Regenerate. Include *.h since they contain
6032 translatable strings as well.
6034 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6036 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
6037 byte-swap on big-endian.
6038 Reported by: Lennart Sorensen
6040 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6042 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
6043 (allocate_pages): Improve dprintf.
6044 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
6045 code32_start. Fill code32_start and kernel_alignment in params.
6046 (grub_cmd_initrd): Use prot_init_space.
6048 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6050 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
6052 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6054 * util/grub-install.in: Add missing dot at the end of sentence.
6056 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6058 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
6059 * grub-core/commands/videotest.c: Likewise.
6060 * grub-core/loader/i386/linux.c: Likewise.
6062 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6064 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
6066 Reported by: Milo Casagrande.
6068 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6070 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
6071 * grub-core/commands/gptsync.c: Likewise.
6072 * grub-core/commands/hashsum.c: Likewise.
6073 * grub-core/commands/i386/pc/sendkey.c: Likewise.
6074 * grub-core/commands/legacycfg.c: Likewise.
6075 * grub-core/io/gzio.c: Likewise.
6076 * grub-core/net/net.c: Likewise.
6077 * grub-core/term/gfxterm.c: Likewise.
6078 * grub-core/term/terminfo.c: Likewise.
6079 * grub-core/tests/test_blockarg.c: Likewise.
6080 * grub-core/video/video.c: Likewise.
6081 * util/grub-install.in: Likewise.
6082 * util/grub-mkfont.c: Likewise.
6084 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6086 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
6088 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6090 * grub-core/commands/search_wrap.c (options): Fix a typo.
6091 Reported by: David Prévot.
6093 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6095 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
6098 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6100 * util/grub-script-check.c (main): Fix a syntax error message which was
6103 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6105 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
6107 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6109 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
6112 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6114 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
6116 * util/grub-mount.c (options): Likewise.
6118 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6120 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
6122 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6124 * grub-core/net/http.c: Add TRANSLATORS comments.
6125 * grub-core/normal/cmdline.c: Likewise.
6126 * grub-core/normal/misc.c: Likewise.
6127 * grub-core/partmap/msdos.c: Likewise.
6128 * grub-core/parttool/msdospart.c: Likewise.
6129 * grub-core/script/execute.c: Likewise.
6130 * grub-core/script/main.c: Likewise.
6131 * grub-core/term/terminfo.c: Likewise.
6132 * grub-core/video/bitmap.c: Likewise.
6133 * util/grub-install.in: Likewise.
6134 * util/grub-mkimage.c: Likewise.
6135 * util/grub-mklayout.c: Likewise.
6136 * util/grub-setup.c: Likewise.
6138 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6140 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
6141 with similar messages in grub-fstest.
6143 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6145 * util/grub-install.in: Unify "option requires an argument" message
6146 with similar messages in other files.
6147 * util/grub-mkconfig.in: Likewise.
6149 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6151 * util/grub-set-default.in: Replace printf with gettext_printf (the
6152 string in in question is already translated from grub-reboot)
6154 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6156 * configure.ac: Bump up the version to beta1.
6158 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6160 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
6161 case when min_align = 0.
6163 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6165 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
6166 and fix a case when line_start overflows.
6168 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6170 * util/grub-reboot.in (usage): Mention id posibility.
6171 * util/grub-set-default.in (usage): Likewise.
6173 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6175 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
6176 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
6177 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
6178 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
6179 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6180 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6181 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6183 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6185 * grub-core/commands/menuentry.c (options): Remove
6186 GRUB_ARG_OPTION_REPEATABLE.
6187 Reported by: Andreas Vogel
6189 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
6191 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
6193 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
6195 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
6198 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6200 Use sort -V by the idea of Georgi Georgiev.
6202 * util/grub-mkconfig_lib.in (version_sort): New function.
6203 (version_test_numeric): Use version_sort.
6205 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6207 Use submenus in grub-mkconfig.
6209 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
6210 * util/grub-mkconfig_lib.in (grub_quote): New function.
6211 (gettext_printf): Use gettext and not gettext_quoted to fix several
6213 * util/grub.d/10_hurd.in: Use submenus.
6214 * util/grub.d/10_kfreebsd.in: Likewise.
6215 * util/grub.d/10_linux.in: Likewise.
6216 * util/grub.d/10_netbsd.in: Likewise.
6217 * util/grub.d/20_linux_xen.in: Likewise.
6218 * util/grub.d/30_os-prober.in: Likewise.
6219 * util/grub.d/10_illumos.in: Add missing quoting.
6220 * util/grub.d/10_windows.in: Likewise.
6222 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6224 Fix menu title instability bug.
6226 * grub-core/commands/menuentry.c (options): New option --id.
6227 (grub_normal_add_menu_entry): New argument id. All users updated.
6228 (grub_cmd_menuentry): Handle --id.
6229 (grub_menu_init): Accept unknown arguments.
6230 * grub-core/normal/main.c (features): Add feature_menuentry_id and
6231 feature_menuentry_options.
6232 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
6234 (get_entry_number): Match with id as well.
6235 * include/grub/menu.h (grub_menu_entry): New member id.
6236 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
6237 * util/grub.d/00_header.in: Define menuentry_id_option.
6238 * util/grub.d/10_hurd.in: Define id.
6239 * util/grub.d/10_illumos.in: Likewise.
6240 * util/grub.d/10_kfreebsd.in: Likewise.
6241 * util/grub.d/10_linux.in: Likewise.
6242 * util/grub.d/10_netbsd.in: Likewise.
6243 * util/grub.d/10_windows.in: Likewise.
6244 * util/grub.d/20_linux_xen.in: Likewise.
6245 * util/grub.d/30_os-prober.in: Likewise.
6247 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6249 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
6250 "scope" with "body".
6252 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6254 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
6255 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
6256 prot_size and prot_file_size.
6258 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6260 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
6261 All users updated. If easily=1 require raid-5/-6 to be full.
6262 (is_node_readable): Likewise.
6263 (scan_devices): Scan incomplete but readable LVs at the end.
6264 (grub_diskfilter_memberlist): Pull missing devices.
6265 (insert_array): Skip scanning until device is complete or scan is
6267 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
6269 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
6270 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
6272 2012-03-03 Matthew Garrett <mjg@redhat.com>
6273 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6275 Avoid EFI boot services when loading Linux.
6277 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
6278 avoid_efi_bootservices. All users updated.
6279 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
6280 argument avoid_efi_bootservices. All users updated.
6281 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
6282 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
6283 align, min_align, relocatable, prefered_address. All users updated.
6284 Allocate avoiding boot services if kernel is relocatable.
6285 (grub_cmd_linux): Check if kernel is relocatable.
6286 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
6287 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
6288 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
6289 avoid_efi_boot_services.
6290 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
6291 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
6292 (linux_kernel_params): Likewise.
6294 2012-03-03 Matthew Garrett <mjg@redhat.com>
6295 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6299 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
6301 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
6302 modes. Set gop_handle.
6303 (grub_video_gop_get_edid): New function.
6304 (grub_gop_get_preferred_mode): Likewise.
6305 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
6306 (grub_video_efi_gop_adapter): Set .get_edid.
6307 * include/grub/efi/edid.h: New file.
6308 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
6310 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6312 * util/grub-install.in: Load efivars unconditionally.
6314 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6316 * po/Rules-piglatin: Change suffix from .po-update-en to
6317 .po-update-en-piglatin.
6319 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6323 * po/piglatin.sed: New file.
6324 * po/en@piglatin.header: Likewise.
6325 * po/Rules-piglatin: Likewise.
6326 * po/README: Add en@piglatin to autogenerated languages.
6328 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6330 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
6332 * grub-core/commands/hdparm.c (options): Use "Display" rather than
6333 "Check" since we don't check anything.
6334 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
6336 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
6337 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
6338 (grub_md_sha512_real): Likewise.
6340 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6342 * grub-core/commands/gptsync.c: Fix typographic quoting.
6343 * grub-core/commands/ieee1275/suspend.c: Likewise.
6344 * grub-core/commands/parttool.c: Likewise.
6345 * grub-core/commands/search_wrap.c: Likewise.
6346 * grub-core/commands/videoinfo.c: Likewise.
6347 * grub-core/gfxmenu/gui_label.c: Likewise.
6348 * grub-core/hello/hello.c: Likewise.
6349 * grub-core/kern/emu/main.c: Likewise.
6350 * grub-core/net/net.c: Likewise.
6351 * grub-core/normal/menu.c: Likewise.
6352 * grub-core/normal/menu_text.c: Likewise.
6353 * grub-core/normal/misc.c: Likewise.
6354 * util/grub-editenv.c: Likewise.
6355 * util/grub-install.in: Likewise.
6356 * util/grub-kbdcomp.in: Likewise.
6357 * util/grub-mkconfig.in: Likewise.
6358 * util/grub-mknetdir.in: Likewise.
6359 * util/grub-mkrescue.in: Likewise.
6360 * util/grub-mkstandalone.in: Likewise.
6361 * util/grub-reboot.in: Likewise.
6362 * util/grub-set-default.in: Likewise.
6363 * util/grub-setup.c: Likewise.
6364 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6366 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6368 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
6369 * grub-core/commands/keystatus.c: Likewise.
6370 * grub-core/commands/loadenv.c: Likewise.
6371 * grub-core/commands/probe.c: Likewise.
6372 * grub-core/commands/regexp.c: Likewise.
6373 * grub-core/commands/true.c: Likewise.
6374 * grub-core/commands/videoinfo.c: Likewise.
6375 * grub-core/disk/cryptodisk.c: Likewise.
6376 * grub-core/disk/ldm.c: Likewise.
6377 * grub-core/disk/loopback.c: Likewise.
6378 * grub-core/disk/luks.c: Likewise.
6379 * grub-core/fs/zfs/zfsinfo.c: Likewise.
6380 * grub-core/kern/disk.c: Likewise.
6381 * grub-core/kern/emu/hostdisk.c: Likewise.
6383 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6385 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
6386 * util/grub-install.in: Add missing quote in the comment.
6388 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6390 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
6391 * grub-core/commands/lsmmap.c: Likewise.
6392 * grub-core/commands/minicmd.c: Likewise.
6393 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
6394 * grub-core/commands/regexp.c: Likewise.
6395 * grub-core/gdb/gdb.c: Likewise.
6396 * grub-core/term/gfxterm.c: Likewise.
6397 * util/grub-mkconfig.in: Likewise.
6398 * util/grub-mkfont.c: Likewise.
6399 * util/grub-mklayout.c: Likewise.
6400 * util/grub-mknetdir.in: Likewise.
6401 * util/grub-mkrescue.in: Likewise.
6402 * util/grub.d/30_os-prober.in: Likewise.
6404 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6406 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
6407 with "Direct color" and "Packed" with "Packed pixel".
6408 (grub_cmd_videoinfo): Simplify legend.
6410 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6412 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
6413 absolutely unclear error message.
6415 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6417 * util/grub-mkstandalone.in: Remove confusing leftover print.
6419 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6421 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
6423 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
6424 (GRUB_MOD_INIT): Likewise.
6425 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
6427 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
6429 * util/grub-install.in (usage): Likewise.
6430 Spell ID in whole letters.
6431 Add missing ending dot.
6433 * util/grub-reboot.in: Fix capitalisation.
6434 * util/grub-set-default.in: Likewise.
6436 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6438 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
6439 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
6440 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
6441 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
6442 Disable -Werror for -Wdeprecated-declarations.
6443 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
6444 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
6445 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
6446 (grub_util_get_grub_dev): Make luks handling dependent on
6447 HAVE_DEVICE_MAPPER and not __linux__.
6448 (get_win32_path): Fix format security.
6449 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
6450 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
6451 Don't try grub_find_zpool_from_dir.
6452 (grub_make_system_path_relative_to_its_root) [!__linux__]:
6453 #ifdef-out paresdir.
6455 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6457 * util/grub-pe2elf.c (usage): Add missing noreturn.
6458 (write_section_data): Rename name to shname to avoid shadowing.
6459 (write_symbol_table): Rename name to symname to avoid shadowing.
6460 Fix write_reloc_section call.
6462 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6464 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
6465 to ensure that it's after the last byte of .text.
6467 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6469 * util/ieee1275/ofpath.c (my_isdigit): New function.
6470 (trailing_digits): Use my_isdigit.
6471 (strip_trailing_digits): Likewise.
6473 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6475 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
6476 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
6478 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6480 * grub-core/kern/i386/pc/startup.S: Define __start.
6482 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6484 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
6485 strip already transforms he format.
6487 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6489 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
6491 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6493 * util/grub-install.in: Add missing gettext init.
6494 * util/grub-kbdcomp.in: Likewise.
6495 * util/grub-mkconfig.in: Likewise.
6496 * util/grub-mknetdir.in: Likewise.
6497 * util/grub-mkrescue.in: Likewise.
6498 * util/grub-mkstandalone.in: Likewise.
6499 * util/grub-reboot.in: Likewise.
6500 * util/grub-set-default.in: Likewise.
6501 * util/grub.d/00_header.in: Likewise.
6502 * util/grub.d/10_hurd.in: Likewise.
6503 * util/grub.d/10_windows.in: Likewise.
6504 * util/grub.d/30_os-prober.in: Likewise.
6505 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6507 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6509 * po/Rules-swiss: Fix header comment.
6511 2012-02-29 Andreas Vogel <anvoit>
6513 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
6514 resulted in leak of arguments.
6516 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6518 * grub-core/boot/i386/pc/startup_raw.S: Use separate
6519 reed_solomon_size const definition instead of computing it since
6520 Apple assembler doesn't support the later.
6522 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6524 * gentpl.py (kernel): Rewrite Apple part.
6526 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6528 * include/grub/kernel.h (FOR_MODULES): Check module magic.
6530 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6532 * util/grub-mkimagexx.c (locate_sections): Support non-standard
6534 (load_image): Likewise.
6536 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6538 * configure.ac: Fix a typo in previous commit.
6540 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6542 Don't add -Wl,-N on Apple platform.
6544 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
6545 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
6547 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6549 * grub-core/Makefile.core.def (lzma_decompress): Use
6550 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
6552 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6554 * grub-core/genmod.sh.in: Rewrite the Apple part.
6556 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6558 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
6561 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6563 * acinclude.m4 (grub_CHECK_PIC): New test.
6564 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
6566 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6568 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
6569 to avoid the warning.
6571 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6573 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
6574 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
6575 after. All users updated.
6577 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6579 Use the common size routine in hostfs so we can read disks as well.
6581 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
6582 (grub_util_get_fd_size): ... this. Return size in bytes.
6584 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
6585 grub_util_get_fd_size.
6587 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6589 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
6590 Add blocksize retrieval.
6592 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6594 * configure.ac: Restore CFLAGS after efiemu check.
6596 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6598 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
6601 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6603 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
6605 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6607 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
6608 (grub_cmd_halt): Likewise.
6610 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6612 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
6613 for local arithmetics.
6614 Break %sp init into 2 instructions.
6615 Add 0 byte at the end.
6617 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6619 * grub-core/disk/diskfilter.c (read_segment): Initialise err
6622 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6624 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
6627 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6629 * grub-core/disk/ldm.c (make_vg): Init part.name.
6630 (grub_ldm_detect): Silence spurious warning.
6631 (grub_util_is_ldm): Likewise.
6633 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6635 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
6636 sane value to avoid a spurious warning.
6638 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6640 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
6641 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
6643 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6645 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
6646 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
6648 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6650 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
6651 hardcoding the relevant info.
6653 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6655 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
6656 missing const qualifiers.
6657 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
6659 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6661 * util/getroot.c [__APPLE__]: Add missing includes.
6662 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
6664 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6666 * util/grub-mkimage.c (generate_image): Silence spurious warning.
6668 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6670 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
6673 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6675 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
6677 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6679 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
6680 and grub_file_close call.
6682 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6684 Add LZSS Mach-O support (needed for new xnu kernelcache).
6686 * grub-core/Makefile.core.def (xnu): Add file lzss.c
6687 * grub-core/loader/lzss.c: New file.
6688 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
6689 on Mach-O open failure.
6690 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
6691 Don't free cmdsXX in uncompressedXX is set.
6692 (grub_macho_file): Init new fields.
6693 New argument is_64bit. All users updated.
6694 Handle compressed. Error out if no suitable architecture is found.
6696 (grub_macho_open): New argument is_64bit. All users updated.
6697 * grub-core/loader/macho32.c: Add defines for new fields.
6698 * grub-core/loader/macho64.c: Likewise.
6699 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
6700 (grub_macho_parse): Handle compressed.
6701 Defer actual processing if compressed.
6702 (grub_macho_cmds_iterate): Decompress if compressed. New argument
6703 "filename". All users updated.
6704 (grub_macho_size): New argument "filename". All users updated.
6705 (grub_macho_get_entry_point): Likewise.
6706 (grub_macho_load): Handle compressed.
6707 * include/grub/macho.h (grub_macho_lzss_header): New struct.
6708 (GRUB_MACHO_LZSS_OFFSET): New define.
6709 (grub_decompress_lzss): New proto.
6710 * include/grub/machoload.h (grub_macho_file): New fields to handle
6712 (grub_macho_contains_macho64): Remove proto.
6713 (grub_macho_contains_macho32): Likewise.
6714 * util/grub.d/30_os-prober.in: Use kernel cache if available.
6716 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6718 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
6720 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6724 * Makefile.am (starfield_theme_files): New var.
6725 (starfield_DATA): Use starfield_theme_files.
6726 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
6727 Add bootcheck-related files.
6728 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
6729 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
6730 and font_char_metrics.txt.
6731 * grub-core/Makefile.core.def (kernel): Update extra_dist.
6732 (setjmp): Add lib/ia64/longjmp.S.
6733 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
6734 * po/POTFILES.in: Regenerate.
6735 * po/Rules-swiss: use DISTFILES.common.extra2 and not
6736 DISTFILES.common.extra1.
6737 * util/devicemap.c: Removed.
6738 * grub-core/lib/i386/relocator_backward.S: Likewise.
6739 * util/import_gcry.py: Remove unused files. Add extra_dist for
6742 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6744 * grub-core/gettext/gettext.c (grub_mofile_open): Call
6745 grub_gettext_delete_list before changing grub_gettext_max to avoid
6746 running out of array bounds.
6748 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6750 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
6751 grub_vga_text_init/grub_vga_text_fini.
6753 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6755 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
6757 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6759 * configure.ac: Bump to 2.00~beta0.
6761 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6763 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
6764 missing initialisation.
6766 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6768 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
6770 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6772 Support v2 xnu boot arguments.
6774 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
6775 New argument fsbfreq_out.
6776 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
6777 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
6779 * grub-core/loader/machoXX.c (grub_macho_load): New argument
6781 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
6782 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
6783 (grub_xnu_boot_params): Rename to ...
6784 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
6785 (grub_xnu_boot_params_v2): New struct.
6787 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6789 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
6790 zeroing of CRC field before computing CRC.
6792 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6794 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
6795 Change order of allocations to decrease fragmentation.
6797 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6799 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
6801 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
6803 Use write-combining MTRR to speed up video with buggy BIOSes.
6805 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
6806 (cpuid): New define.
6809 (mtrr_base): Likewise.
6810 (mtrr_mask): Likewise.
6811 (grub_vbe_enable_mtrr_entry): New function.
6812 (grub_vbe_enable_mtrr): Likewise.
6813 (grub_vbe_disable_mtrr): Likewise.
6814 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
6815 control off to BIOS.
6816 (grub_video_vbe_init): Fill mtrr.
6817 (grub_video_vbe_fini): Disable mtrr.
6818 (grub_video_vbe_get_info_and_fini): Likewise.
6819 (grub_video_vbe_setup): Enable mtrr.
6821 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
6823 * include/grub/partition.h (grub_partition_map): Change prototype of
6824 embed to take a maximum value for nsectors.
6825 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
6826 * include/grub/fs.h (grub_fs): Likewise.
6827 * grub-core/partmap/msdos.c (embed_signatures): New array.
6828 (pc_partition_map_embed): Check for and avoid sectors matching any
6829 of the signatures in embed_signatures, up to max_nsectors.
6830 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
6831 returned sector map to max_nsectors.
6832 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
6833 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
6834 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
6835 * util/grub-setup.c (setup): Allow for the embedding area being
6836 split into multiple blocklists. Tell dest_partmap->embed the
6837 maximum number of sectors we care about.
6839 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6841 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
6842 Specify blocklist_install and reserver_first_sector for all fs.
6843 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
6846 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6848 * util/grub-install.in: Clarify strings.
6849 Fix source dir check.
6851 2012-02-27 Richard Laager <rlaager@wiktel.com>
6853 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
6854 "zfs" and "fuse.zfs" as synonyms.
6856 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6858 * configure.ac: Put platform and target_cpu substitutions back since
6859 they are used for directories.
6861 2012-02-27 Richard Laager <rlaager@wiktel.com>
6862 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6864 * util/grub.d/10_linux.in: Add ZFS-related arguments.
6865 * util/grub.d/20_linux_xen.in: Likewise.
6867 2012-02-27 Richard Laager <rlaager@wiktel.com>
6869 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
6872 2012-02-27 Richard Laager <rlaager@wiktel.com>
6874 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
6877 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6879 Don't use insecure popen in getroot.
6881 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
6882 (exec_pipe): ... here.
6883 (find_root_devices_from_poolname): Use exec_pipe.
6885 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6887 Remove platform and target_cpu replacement.
6889 * configure.ac: Remove platform and target_cpu substitutions.
6890 * tests/util/grub-shell.in: Use modinfo.
6891 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
6894 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6896 Autodetect platform in grub-install but allow override.
6898 * util/grub-install.in: Autodetect platform. Support --target and
6899 --directory. Read platform from modinfo.sh.
6901 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6903 Support btrfs multi-volume probe.
6905 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
6906 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
6907 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
6908 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
6909 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
6910 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
6911 grub_find_root_devices_from_btrfs if on btrfs.
6913 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6915 Remove any awareness of *.c util files about target.
6917 * Makefile.util.def (grub-setup): Split to ...
6918 (grub-bios-setup): ... and this.
6919 (grub-sparc64-setup): ... and this.
6920 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
6921 * docs/man/grub-setup.h2m: Split into ...
6922 * docs/man/grub-sparc64-setup.h2m: ... this.
6923 * docs/man/grub-bios-setup.h2m: ... and this.
6924 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
6925 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
6926 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
6927 (grub_target_addr_t): Remove.
6928 (grub_target_size_t): Remove.
6929 (grub_target_ssize_t): Remove.
6930 * util/grub-install.in: Use new grub-*-setup.
6931 * util/grub-mkimagexx.c (Elf_Word): New define.
6932 (Elf_Half): Likewise.
6933 (Elf_Section): Likewise.
6934 (ELF_ST_TYPE): Likewise.
6935 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
6936 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
6938 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6940 Replace grub_target_addr with more appropriate types.
6942 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
6943 grub_target_addr with grub_addr.
6944 * grub-core/commands/iorw.c (grub_cmd_read): Replace
6945 grub_target_addr with grub_port.
6946 (grub_cmd_write): Likewise.
6947 * grub-core/commands/memrw.c (grub_cmd_read): Replace
6948 grub_target_addr with grub_addr.
6949 (grub_cmd_write): Likewise.
6950 * grub-core/video/efi_uga.c (find_line_len): Likewise.
6952 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6954 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
6955 const qualifier for vendor_guid.
6957 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6959 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
6961 (efiemu_memequal): Likewise.
6962 (find_variable): Likewise.
6964 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6966 Fix missing console prototype on qemu-mips.
6968 * include/grub/mips/qemu_mips/console.h: New file.
6970 2012-02-27 Matthew Garrett <mjg@redhat.com>
6971 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6973 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
6974 * include/grub/efi/efi.h: Likewise.
6975 * include/grub/efi/api.h: Add guid for EFI-specified variables.
6976 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
6977 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
6978 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
6979 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
6980 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
6982 2012-02-27 Matthew Garrett <mjg@redhat.com>
6984 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
6986 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6988 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
6991 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6993 * configure.ac: Remove inappropriate use of program_transform_name
6994 on grubdir and bootdir but allow explicit specification of those
6997 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6999 * util/grub-mknetdir.in (grub_prefix): Removed.
7000 (subdir): Use @bootdirname@ and @grubdirname@.
7002 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7004 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
7006 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7008 * po/POTFILES.in: Regenerated.
7010 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7012 Remove improper use of program_transform_name on pkglibrootdir.
7014 * configure.ac (pkglibrootdir): Removed.
7015 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
7016 * util/grub-mkimage.c: Likewise.
7018 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7020 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
7023 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7025 * util/grub-install.in: Use file identifier if no UUID is available
7026 or user explicitly prompted for it.
7028 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
7030 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
7031 (freebsd_get_zfs): New function.
7032 (grub_freebsd_boot): Pass zfs UUID.
7033 (grub_cmd_freebsd): Set zfs UUID.
7035 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7037 * conf/Makefile.common (platformdir): Base on pkglibdir and not
7040 2012-02-27 Mike Gilbert <floppym@gentoo.org>
7042 Add configure flag to control libzfs integration.
7044 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
7046 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7048 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
7050 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
7053 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7055 Remove grub_{modname}_init and grub_{modname}_fini. They should never
7056 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
7057 be used on non-modules.
7059 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
7060 Rename to grub_boot_init.
7061 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
7062 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
7063 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
7064 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
7065 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
7066 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
7067 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
7068 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
7070 (grub_machine_init): Remove empty inits.
7071 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
7073 (grub_machine_init): Remove empty inits.
7074 * grub-core/term/arc/console.c: Remove explicit proto.
7075 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
7076 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
7077 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7078 grub_at_keyboard_fini.
7079 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
7080 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
7081 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7083 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
7084 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
7085 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7087 * grub-core/term/ieee1275/console.c: Remove explicit proto.
7088 * grub-core/term/serial.c (GRUB_MOD_INIT)
7089 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
7090 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7092 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
7093 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
7094 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7096 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
7097 (GRUB_MOD_FINI): Likewise.
7098 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
7099 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
7100 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7101 grub_video_radeon_fuloong2e_fini.
7102 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
7103 [LOONGSON]: Rename to grub_video_sis315pro_init.
7104 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7105 grub_video_sis315pro_fini.
7106 * grub-core/video/sm712.c (GRUB_MOD_INIT)
7107 [LOONGSON]: Rename to grub_video_sm712_init.
7108 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7109 grub_video_sm712_fini.
7110 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
7111 (grub_at_keyboard_fini): Likewise.
7112 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
7113 Don't declare grub_{modname}_init.
7114 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
7115 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
7117 (grub_keylayouts_fini) [!EMU]: Likewise.
7118 * include/grub/serial.h (grub_serial_init) [!EMU]:
7120 (grub_serial_fini) [!EMU]: Likewise.
7121 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
7123 (grub_terminfo_fini) [!EMU]: Likewise.
7124 * include/grub/video.h (grub_font_init) [!EMU]:
7126 (grub_font_fini) [!EMU]: Likewise.
7127 (grub_gfxterm_init) [!EMU]: Likewise.
7128 (grub_gfxterm_fini) [!EMU]: Likewise.
7129 (grub_video_sm712_init) [!EMU]: Likewise.
7130 (grub_video_sm712_fini) [!EMU]: Likewise.
7131 (grub_video_sis315pro_init) [!EMU]: Likewise.
7132 (grub_video_sis315pro_fini) [!EMU]: Likewise.
7133 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
7134 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
7136 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7138 Make nand a prefix for nand devices.
7140 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
7142 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7144 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
7145 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
7147 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7149 * include/grub/env.h (grub_env_find): Remove prototype.
7150 * grub-core/kern/env.c (grub_env_find): Make static.
7151 (grub_env_set): Remove useless set.
7153 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7155 * grub-core/kern/i386/realmode.S: Remove useless align.
7157 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7159 * include/grub/dl.h (grub_dl_load_file): Don't export.
7161 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7163 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
7166 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7168 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
7170 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
7171 not reloading whole superblock but only the part which is really needed.
7172 Remove useless grub_errors.
7173 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
7176 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7178 Don't export grub_get_rtc.
7180 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
7181 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
7183 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7185 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
7187 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7189 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
7190 argument since it can be deduced from diskfilter. All users updated.
7192 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7196 * include/grub/list.h (grub_prio_list): Removed.
7197 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
7198 GRUB_COMMAND_PRIO_MASK.
7199 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
7200 GRUB_COMMAND_FLAG_ACTIVE.
7201 (grub_prio_list_insert): Removed.
7202 (grub_prio_list_remove): Likewise.
7203 (GRUB_AS_PRIO_LIST): Likewise.
7204 (GRUB_AS_PRIO_LIST_P): Likewise.
7205 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
7206 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
7207 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
7208 * grub-core/kern/command.c (grub_register_command_prio): Inline
7210 (grub_unregister_command): Likewise.
7212 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7214 Fix interrupt mixup from previous commit.
7216 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
7217 (grub_realidt): New var.
7218 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
7220 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
7222 (grub_relocator16_boot): Set grub_relocator16_idt.
7223 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
7224 (LOCAL(realidt)): ... this.
7225 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
7226 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
7227 (grub_realidt): New variable.
7229 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7231 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
7232 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
7233 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
7234 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
7236 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
7237 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
7238 * po/POTFILES.in: Regenerate.
7240 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7242 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
7245 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7247 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
7249 (add_length): Likewise.
7251 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7252 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
7254 GDB serial and backtrace support.
7256 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
7257 (prot_to_real): Likewise.
7258 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
7259 * grub-core/Makefile.core.def (backtrace): New module.
7261 * grub-core/gdb/cstub.c: New file.
7262 * grub-core/gdb/gdb.c: Likewise.
7263 * grub-core/gdb/i386/idt.c: Likewise.
7264 * grub-core/gdb/i386/machdep.S: Likewise.
7265 * grub-core/gdb/i386/signal.c: Likewise.
7266 * grub-core/lib/i386/backtrace.c: Likewise.
7267 * grub-core/lib/backtrace.c: Likewise.
7268 * include/grub/backtrace.h: Likewise.
7269 * include/grub/gdb.h: Likewise.
7270 * include/grub/i386/gdb.h: Likewise.
7272 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7274 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
7276 (add_length): Likewise.
7277 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
7278 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
7280 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
7281 __argp_get_display_len.
7283 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7285 $"..." support in scripts.
7287 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
7288 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
7289 * grub-core/script/yylex.l: Likewise.
7290 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
7293 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7295 * gentpl.py: Remove obsolete pkglib_DATA handling.
7297 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7299 Don't transform PACKAGE_TARNAME following a discussion on autoconf
7302 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
7303 * util/grub-kbdcomp.in: Likewise.
7304 * util/grub-mkconfig.in: Likewise.
7305 * util/grub-mkconfig_lib.in: Likewise.
7306 * util/grub-mknetdir.in: Likewise.
7307 * util/grub-mkrescue.in: Likewise.
7308 * util/grub-mkstandalone.in: Likewise.
7309 * util/grub-reboot.in: Likewise.
7310 * util/grub-set-default.in: Likewise.
7311 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7313 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7317 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
7318 * util/grub.d/00_header.in: Compute prefix in the only place it's still
7319 used for backward compatibility.
7321 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7323 Add new all_video module.
7325 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
7326 * grub-core/Makefile.core.def (all_video): New module.
7327 * grub-core/genmoddep.awk: Generate dependency of all_video from
7329 * grub-core/lib/fake_module.c: New file.
7330 * grub-core/normal/main.c (features): Add feature_all_video_module.
7331 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
7332 don't do explicit search again.
7333 insmod all_video in load_video if available.
7335 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7337 Another round of string clarification and adding TRANSLATORS comments.
7339 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7341 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
7343 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7345 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
7347 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
7348 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
7350 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7352 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
7353 trailing newline implicitly. All users updated.
7355 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7357 Implement serial on IEEE1275 and EFI.
7359 * docs/grub.texi (Platform-specific limitations): Fix the columen video
7360 on emu. Mention arc and emu as the only platforms without serial
7362 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
7364 * grub-core/term/efi/serial.c: New file.
7365 * grub-core/term/ieee1275/serial.c: Likewise.
7366 * grub-core/term/serial.c (grub_serial_find): Disable direct port
7367 specification if no ns8250 driver is available.
7368 (grub_cmd_serial): Likewise.
7369 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
7370 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
7371 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
7372 (grub_efi_parity_type_t): New type.
7373 (grub_efi_stop_bits_t): Likewise.
7374 (grub_efi_serial_io_interface): New struct.
7375 * include/grub/serial.h (grub_serial_port): Make 'broken' field
7376 available for all interfaces.
7377 Add EFI and IEEE1275 fields.
7378 (grub_ofserial_init): New proto.
7379 (grub_efiserial_init): Likeiwse.
7380 * util/grub.d/00_header.in: Don't check for the presence of serial
7383 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7385 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
7386 name as if it was an alias.
7388 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7390 * grub-core/commands/lsacpi.c (options): Fix typo.
7392 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7394 Convert grub-emu to argp.
7396 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
7398 * util/argp_common.c: Rename to ...
7399 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
7400 Add missing includes.
7401 * grub-core/kern/emu/main.c: Convert to argp.
7402 * po/POTFILES.in: Regenerate.
7403 * util/grub-install.in (usage): Make first letter lowcase in messages
7405 * util/grub-setup.c (options): Likewise.
7407 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7409 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
7410 Put back accidently commented-out code.
7412 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7414 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
7415 loop check using Brent algorithm.
7416 (grub_hfsplus_btree_search): Likewise.
7418 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7420 * util/grub-install.in: Fix usage of wrong device for PreP install.
7422 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7424 * conf/Makefile.common (CFLAGS_GNULIB): Add
7425 -Wno-unsafe-loop-optimizations.
7426 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
7428 * grub-core/commands/legacycfg.c: Add pragma to skip
7429 -Wunsafe-loop-optimizations.
7430 (check_password_md5_real): Fix loop counter type.
7431 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
7433 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
7434 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
7436 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
7437 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
7438 * grub-core/net/net.c (grub_net_route_address): Add safety loop
7440 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
7441 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
7442 avoid possible infinite loops.
7443 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
7444 and -Wunsafe-loop-optimizations.
7445 * grub-core/script/yylex.l: Likewise.
7446 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
7447 (print_glyphs): Avoid infinite loops.
7448 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
7450 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
7452 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
7453 to avoid infinite loop.
7454 (disp_acpi_rsdt_table): Likewise.
7456 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7458 * grub-core/font/font.c (grub_font_load): Add support for default
7459 path for fonts ($prefix/fonts).
7460 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
7461 for checking if string is a path.
7462 * grub-core/normal/main.c (features): Add feature_default_font_path.
7463 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
7464 * util/grub.d/00_header.in: Use default directory if possible.
7465 * util/grub-install.in: Install unicode.pf2.
7467 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7469 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
7470 * po/Rules-swiss: New file.
7471 * po/swiss.sed: Likewise.
7473 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
7475 * grub-core/fs/btrfs.c (find_device): Fix typos.
7476 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
7477 * util/grub-mkrelpath.c (argp_parser): Likewise.
7478 Reported by: Yuri Chornoivan.
7480 2012-02-23 Dalet Omega <daletomega@gmail.com>
7482 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
7483 for usual informative messages.
7485 2012-02-23 Dalet Omega <daletomega@gmail.com>
7489 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
7490 * conf/Makefile.common: Define starfielddir.
7491 * configure.ac: Configure starfield.
7492 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
7493 * themes/starfield/README: Likewise.
7494 * themes/starfield/blob_w.png: Likewise.
7495 * themes/starfield/boot_menu_c.png: Likewise.
7496 * themes/starfield/boot_menu_e.png: Likewise.
7497 * themes/starfield/boot_menu_n.png: Likewise.
7498 * themes/starfield/boot_menu_ne.png: Likewise.
7499 * themes/starfield/boot_menu_nw.png: Likewise.
7500 * themes/starfield/boot_menu_s.png: Likewise.
7501 * themes/starfield/boot_menu_se.png: Likewise.
7502 * themes/starfield/boot_menu_sw.png: Likewise.
7503 * themes/starfield/boot_menu_w.png: Likewise.
7504 * themes/starfield/slider_c.png: Likewise.
7505 * themes/starfield/slider_n.png: Likewise.
7506 * themes/starfield/slider_s.png: Likewise.
7507 * themes/starfield/src/blob_nw.xcf: Likewise.
7508 * themes/starfield/src/bootmenu/: Likewise.
7509 * themes/starfield/src/bootmenu/center.xcf: Likewise.
7510 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
7511 * themes/starfield/src/bootmenu/side.xcf: Likewise.
7512 * themes/starfield/src/slider_c.xcf: Likewise.
7513 * themes/starfield/src/slider_n.xcf: Likewise.
7514 * themes/starfield/src/slider_s.xcf: Likewise.
7515 * themes/starfield/src/terminalbox/: Likewise.
7516 * themes/starfield/src/terminalbox/center.xcf: Likewise.
7517 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
7518 * themes/starfield/src/terminalbox/side.xcf: Likewise.
7519 * themes/starfield/starfield.png: Likewise.
7520 * themes/starfield/terminal_box_c.png: Likewise.
7521 * themes/starfield/terminal_box_e.png: Likewise.
7522 * themes/starfield/terminal_box_n.png: Likewise.
7523 * themes/starfield/terminal_box_ne.png: Likewise.
7524 * themes/starfield/terminal_box_nw.png: Likewise.
7525 * themes/starfield/terminal_box_s.png: Likewise.
7526 * themes/starfield/terminal_box_se.png: Likewise.
7527 * themes/starfield/terminal_box_sw.png: Likewise.
7528 * themes/starfield/terminal_box_w.png: Likewise.
7529 * themes/starfield/theme.txt: Likewise.
7531 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
7533 * util/grub.d/00_header.in: Add missing export theme.
7535 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7537 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
7539 Reported by: Eren D.
7541 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7543 * conf/Makefile.common (grubdatadir): Removed.
7544 (Makefile.am): Move eveything grubdata to pkgdata.
7546 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7548 * grub-core/commands/acpihalt.c (get_sleep_type):
7549 Remove unused variable.
7551 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7553 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
7554 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
7555 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
7556 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
7557 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
7558 i18n with gettext no-op.
7559 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
7560 GRUB_ACPI_OPCODE_STRING_CONST.
7561 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
7562 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
7564 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7566 * po/POTFILES.in: Regenerate.
7568 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7570 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
7571 -Wno-error=missing-noreturn.
7573 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7575 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
7576 condition to avoid possibly infinite loops.
7577 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
7578 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
7580 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7582 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
7583 condition to avoid possibly infinite loops.
7585 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7587 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
7590 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7592 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
7594 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7596 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
7598 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7600 * util/bin2h.c (usage): Add missing attribute noreturn.
7602 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7604 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
7605 if the size isn't divisible by 512.
7607 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7609 Make list_push and list_remove functions rather than inline functions
7610 to decrease size and avoid aliasing violations.
7612 * include/grub/list.h (grub_list_push): Move to ...
7613 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
7614 * include/grub/list.h (grub_list_remove): Move to ...
7615 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
7617 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7619 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
7620 and -Wunused-result.
7622 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7624 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
7625 Reported by: Seth Goldberg
7627 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7629 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
7631 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7633 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
7634 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
7636 * docs/grub.texi (Simple configuration): Document
7637 GRUB_CMDLINE_GNUMACH.
7639 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
7641 * conf/Makefile.common (platform_SCRIPTS): New variable.
7642 (platform_PROGRAMS): Likewise.
7643 * gentpl.py: Mark *,module and *.image for install.
7644 * grub-core/gdb_grub.in: Add a notice of expected environment.
7645 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
7646 (gmodule.pl): Likewise.
7648 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
7650 Replace grub_checkkey with grub_getkey_noblock.
7652 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
7653 (grub_getkey_noblock): ... this. All users updated.
7655 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
7657 * grub-core/kern/emu/console.c: Move to ...
7658 * grub-core/term/emu/console.c: ...here.
7659 (grub_ncurses_getkey): Fix return value if no key is detected.
7661 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7663 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
7664 (grub_unit_test_fini): Likewise.
7665 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
7667 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7669 * include/grub/test.h (GRUB_UNIT_TEST)
7671 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7673 * grub-core/script/execute.c (grub_script_break): Clarify logic.
7674 Better error handling.
7675 (grub_script_return): Likewise.
7676 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
7678 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7680 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
7681 rimplicit redifinition.
7683 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7685 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
7688 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7690 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
7691 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
7694 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7696 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
7697 as GRUB_ERR_BUG. Don't malloc if no device is available.
7699 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7701 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
7702 Mark calling with invalid term as GRUB_ERR_BUG.
7704 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7706 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
7707 packets rather than raising an error.
7709 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7711 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
7714 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7716 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
7717 diagnostic to dprintf.
7718 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7720 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7722 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
7725 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7727 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
7728 (grub_ntfs_iterate_dir): Likewise.
7730 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7732 Efiemu stylistic fixes and gettext.
7734 * grub-core/efiemu/i386/loadcore32.c
7735 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
7736 * grub-core/efiemu/i386/loadcore64.c
7737 (grub_arch_efiemu_relocate_symbols64): Likewise.
7738 * grub-core/efiemu/i386/pc/cfgtables.c
7739 (grub_machine_efiemu_init_tables): Likewise.
7740 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
7741 (grub_efiemu_loadcore_initXX): Add a filename argument.
7743 Improved error message.
7744 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
7745 Add a filename argument.
7747 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
7748 Reclassify double relocation as GRUB_ERR_BUG.
7750 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7752 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
7755 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7757 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
7760 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7762 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
7764 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7766 Improve string. Gettextize.
7768 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7770 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
7772 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
7774 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7776 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
7777 [GRUB_UTIL]: New function.
7778 (insert_array) [GRUB_UTIL]: Store partmaps.
7779 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
7781 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
7782 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
7783 (probe_abstraction): Print diskfilter and not raid.
7784 Reported by: Lennart Sorensen
7786 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7788 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
7789 * util/grub-mkimagexx.c (MASK3): New define.
7790 (add_value_to_slot_20b): Use MASK3.
7791 (add_value_to_slot_21): Likewise.
7792 (relocate_addresses): Fix format specification.
7793 (load_image): Explicitly init symtab_section.
7795 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7797 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
7798 (grub_util_biosdisk_get_grub_dev): Fix format specification.
7800 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7802 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
7804 Reported by: Lennart Sorensen
7806 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7808 * gentpl.py: Add missing license header.
7809 * docs/grub.texi: Update copyright year.
7811 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7813 Source grub-mkconfig_lib from the build directory at build time.
7814 Suggested by: Vladimir Serbinenko.
7816 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
7817 * util/grub-install.in: Define pkgdatadir if not already set, and source
7818 grub-mkconfig_lib from there.
7819 * util/grub-kbdcomp.in: Likewise.
7820 * util/grub-mkconfig.in: Likewise.
7821 * util/grub-mknetdir.in: Likewise.
7822 * util/grub-mkrescue.in: Likewise.
7823 * util/grub-mkstandalone.in: Likewise.
7824 * util/grub-reboot.in: Likewise.
7825 * util/grub-set-default.in: Likewise.
7826 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7828 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7830 Increase warning level.
7832 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
7833 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
7834 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
7835 (TARGET_CFLAGS): Likewise.
7836 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
7837 * grub-core/Makefile.core.def (decompressor_xz): Add
7838 -Wno-unreachable-code.
7839 (normal): Add -Wno-redundant-decls.
7840 (xzio): Add -Wno-unreachable-code.
7841 (lzopio): Add -Wno-redundant-decls -Wno-error.
7842 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
7843 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
7844 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
7845 * grub-core/kern/dl.c: Add exception to -Wcast-align.
7846 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
7847 * grub-core/kern/i386/coreboot/init.c: Add exception to
7848 -Wsuggest-attribute=noreturn.
7849 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
7850 * grub-core/kern/ia64/dl_helper.c: Likewise.
7851 * grub-core/kern/mips/dl.c: Likewise.
7852 * grub-core/kern/sparc64/dl.c: Likewise.
7853 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
7854 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
7856 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
7857 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
7858 * grub-core/loader/mips/linux.c: Likewise.
7859 * grub-core/loader/multiboot_elfxx.c: Likewise.
7860 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
7861 * grub-core/video/sm712.c: Add exception to -Wcast-align.
7862 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
7863 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
7865 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
7866 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
7869 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7871 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
7874 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7876 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
7877 Avoid improper use of strings.
7878 (grub_cmd_legacy_initrdnounzip): Likewise.
7880 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7882 * include/grub/emu/misc.h (grub_util_warn): Add missing format
7884 (grub_util_info): Likewise.
7885 (grub_util_error): Likewise.
7887 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7889 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
7890 * util/grub-fstest.c (fstest): Likewise.
7892 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7894 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
7895 (grub_md_sha512_real): Likewise.
7896 (grub_util_get_geli_uuid): Likewise.
7897 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
7898 (grub_util_biosdisk_open): Fix format specification.
7899 Respect format security.
7900 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
7901 (xrealloc): Likewise.
7902 (xasprintf): Likewise.
7904 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7906 * util/import_gcry.py: Include grub/crypto.h in init.c.
7908 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7910 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
7911 (generate_image): Make prefix a const char *.
7912 Fix format specifications. Respect format security.
7913 Avoid void * arithmetics.
7915 (argp_parser): Remove unused variable. Respect format security.
7916 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
7917 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
7918 (count_funcs): Remove unused variable.
7919 (relocate_addresses): Fix format specification.
7920 Disable x86-64 with elf32. Remove unused variables.
7921 (add_fixup_entry): Avoid shadowing.
7922 (make_reloc_section): Fix format specification.
7924 (locate_sections): Fix format specifications.
7925 (load_image): Avoid shadowing.
7927 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7929 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
7930 Fix format specifications. Respect format security.
7931 Don't translate already translated grub_errmsg.
7932 (argp_parser): Remove unused variable
7934 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7936 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
7938 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7940 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
7941 (main): Likewise. Use xmalloc. Respect format security.
7943 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7945 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
7947 (argp_parser): Remove unused variable.
7949 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7951 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
7952 (add_pixel): Make static.
7953 (add_font): Likewise.
7954 (write_string_section): Make name and str a const char *.
7955 (write_be16_section): Make name a const char *.
7956 (print_glyphs): Make static.
7957 (write_font_ascii_bitmap): Likewise.
7958 (write_font_width_spec): Likewise.
7959 (write_font_pf2): Likewise.
7960 (argp_parser): Remove unused variable.
7961 Respect format security.
7962 (main): Avoid shadowing. Respect format security.
7964 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7966 * util/grub-editenv.c (argp_parser): Make static.
7967 (create_envblk_file): Use xmalloc.
7968 (open_envblk_file): Likewise.
7969 Resepect format security.
7970 (set_variables): Respect format security.
7972 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7974 * util/getroot.c (grub_find_device): Respect format security.
7975 (get_mdadm_uuid): Remove unused variable.
7976 (grub_util_pull_device): Dont call gettext on already translated
7978 (find_system_device): Remove unused variable.
7979 (grub_util_get_grub_dev): Likewise.
7980 (grub_make_system_path_relative_to_its_root): Respect format security.
7982 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7984 * util/grub-fstest.c (execute_command): Make first argument
7986 (read_file): Avoid shadowing.
7987 Reuse underlying error message if device open fails.
7988 (cmd_cmp): Respect format security.
7989 (root): Make const char *.
7990 (fstest): Remove args argument and use global copy.
7991 Respect format security.
7992 (argp_parser): Make static.
7993 (main): Make default_root const char *.
7995 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7997 * util/grub-mount.c (root): Make const char *.
7998 (execute_command): Make first argument a const char *.
7999 (fuse_init): Respect format security.
8000 (argp_parser): Make static. Remove unused variable.
8001 (main): Make default_root a const char *.
8002 Respect format security.
8004 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8006 * util/grub-probe.c (probe): Don't call gettext on already translated
8008 Remove unused variables.
8009 (argp_parser): Remove unused variable.
8011 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8013 * util/grub-script-check.c (argp_parser): Remove unused variable.
8014 (main): Rename read to curread to avoid shadowing.
8016 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8018 * util/misc.c (grub_util_write_image_at): Fix format specification.
8019 (grub_util_write_image): Likewise.
8020 (grub_script_execute_argument_to_string): Removed (unused).
8021 (grub_script_execute_menuentry): Likewise.
8022 (grub_putchar): Likewise.
8024 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8026 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
8027 (FUNCTION) [GRUB_UTIL]: Likewise.
8028 (VARIABLE) [GRUB_UTIL]: Likewise.
8030 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8032 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
8033 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
8035 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8037 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
8040 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8042 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
8043 (LzmaEnc_SaveState): Removed (unused).
8044 (LzmaEnc_RestoreState): Likewise.
8045 (LzmaEnc_InitPriceTables): Made static.
8046 (LzmaEnc_Construct): Likewise.
8047 (LzmaEnc_FreeLits): Likewise.
8048 (LzmaEnc_Destruct): Likewise.
8049 (LzmaEnc_Init): Likewise.
8050 (LzmaEnc_InitPrices): Likewise.
8051 (LzmaEnc_Finish): Likewise.
8052 (LzmaEnc_PrepareForLzma2): Removed (unused).
8053 (LzmaEnc_MemPrepare): Likewise.
8054 (LzmaEnc_GetNumAvailableBytes): Likewise.
8055 (LzmaEnc_GetCurBuf): Likewise.
8056 (LzmaEnc_CodeOneMemBlock): Likewise.
8058 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8060 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
8061 (grub_util_ldm_embed): Likewise.
8063 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8065 * util/grub-editenv.c (print_var): Rename name to varname to
8067 (main): Rename index to curindex to avoid shadowing.
8068 Make filename a const char *.
8070 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8072 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8073 to arg_getline to avoid shadowing.
8075 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8077 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
8078 disk_ to avoid shadowing.
8080 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8082 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
8083 curindex to avoid shadowing.
8085 (MatchFinder_GetNumAvailableBytes): Make static.
8087 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8089 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
8092 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8094 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
8095 argument from encrypt to do_encrypt to avoid shadowing.
8097 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8099 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
8100 incorrect nesting of #if's.
8102 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8104 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
8105 checks which are always false on some platforms.
8106 (grub_cmd_lsacpi): Likewise.
8107 * grub-core/kern/misc.c (grub_strtoul): Likewise.
8108 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
8111 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8113 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
8114 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
8116 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8118 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
8119 re_dfa_t to avoid breaking alignment invariants.
8120 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
8121 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
8123 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8125 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
8126 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
8128 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8130 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
8133 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8135 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
8136 conserve alignment invariants.
8137 (grub_ehci_ehcc_read16): Likewise.
8138 (grub_ehci_oper_read32): Likewise.
8139 (grub_ehci_oper_write32): Likewise.
8140 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8141 Conserve alignment invariants.
8143 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8145 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
8146 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
8149 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8151 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
8152 Remove unused variable.
8154 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8156 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
8159 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8161 * include/grub/net.h: Remove double declarations.
8163 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8165 Remove "payload" command in ia64 Linux loader since I couldn't
8166 find any evidence of it being used for anything.
8167 Replace "relocate" command with an environment variable
8169 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
8171 (ia64_boot_payload): Removed.
8172 (last_payload): Likewise.
8173 (RELOCATE_OFF): Likewise.
8174 (RELOCATE_ON): Likewise.
8175 (RELOCATE_FORCE): Likewise.
8176 (relocate): Likewise.
8177 (free_pages): Don't free payloads.
8178 (grub_load_elf64): Use common error messages.
8179 Use "linux_relocate" variable.
8180 Increase the space after boot_params.
8181 (grub_cmd_payload): Removed.
8182 (grub_cmd_relocate): Likewise.
8183 (grub_cmd_fpswa): Improve messages.
8184 (cmd_payload): Removed.
8185 (cmd_relocate): Likewise.
8186 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
8187 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
8189 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8191 Convert UHCI to DMA framework.
8193 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
8194 (grub_uhci_pci_iter): Fill new members
8195 (grub_alloc_td): Use P2V and V2P functions.
8196 (grub_free_queue): Likewise.
8197 (grub_alloc_qh): Likewise.
8198 (grub_uhci_setup_transfer): Likewise.
8199 (grub_uhci_check_transfer): Likewise.
8201 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8203 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
8204 Remove assignment in if while on it.
8206 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8208 * util/grub-mkstandalone.in: Fix modules directory.
8210 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8212 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
8214 (argp_parser): Accept "auto" as compression specification.
8216 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8218 Fix `help' with unloaded modules.
8220 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
8221 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
8222 (grub_dyncmd_dispatcher): Small stylistic fix.
8223 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
8224 explicit help is requested.
8226 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8228 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
8229 Explicitly init restart while on it.
8231 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8233 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
8236 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8238 * util/grub-mknetdir.in: Use . rather than source for POSIX
8241 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8243 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
8245 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8247 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
8250 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8252 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
8255 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8257 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
8259 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8261 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
8262 iteration of partitions.
8264 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8266 Improve gettext support. Stylistic fixes and error handling fixes while
8269 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8271 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
8272 part. Instead setup the correct stack in RM.
8273 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
8275 * include/grub/i386/relocator_private.h: New file.
8277 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8279 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
8281 * util/grub-fstest.c (options): Add missing DEVICE part.
8283 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8285 Clarify and unify messages.
8287 * grub-core/commands/hashsum.c (options): Unify messages.
8288 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
8289 literal-only message as translatable.
8290 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
8291 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
8292 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
8294 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
8295 key, not the key used to unlock. Clarify what it's used for.
8296 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
8297 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
8298 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
8299 * util/grub-editenv.c (options): Unify "verbose" message.
8300 * util/grub-fstest.c (read_file): Unify error message.
8301 (fstest): Add quotes around commands.
8302 (options): Unify "verbose" message.
8303 * util/grub-install.in: Add quotes around variable name.
8304 * util/grub-kbdcomp.in: Unify error message.
8305 * util/grub-mkfont.c (main): Likewise.
8306 * util/grub-mkrescue.in: Likewise.
8307 * util/grub-mklayout.c (options): Unify "verbose" message.
8308 * util/grub-mkstandalone.in: Unify help and verbose messages.
8309 * util/grub-mount.c (options): Unify "verbose" message.
8310 * util/grub-probe.c (options): Likewise.
8311 * util/grub-script-check.c (options): Likewise.
8312 * util/grub-setup.c (setup): Unify no-terminator message.
8313 (options): Use DEVICE and not DEV.
8314 Unify "verbose" message.
8315 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
8317 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8319 Improve and unify messages.
8321 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
8322 name. All users updated.
8323 Print filename in error.
8324 (read_device_map): Print filename in error.
8325 * util/getroot.c (grub_guess_root_devices): Print filename in error.
8326 (grub_util_get_os_disk): Likewise.
8327 (grub_util_biosdisk_get_grub_dev): Likewise.
8328 (grub_util_check_block_device): Likewise.
8329 (grub_util_check_char_device): Likewise.
8330 (grub_make_system_path_relative_to_its_root): Likewise.
8331 * util/grub-editenv.c (create_envblk_file): Likewise.
8332 (open_envblk_file): Likewise.
8333 (write_envblk): Likewise.
8334 * util/grub-fstest.c (cmd_cp): Likewise.
8335 (cmd_cat): Likewise.
8336 (cmd_cmp): Likewise.
8337 * util/grub-menulst2cfg.c (main): Likewise.
8338 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
8339 (write_font_width_spec): Likewise.
8340 (write_font_pf2): Likewise.
8341 * util/grub-mkimage.c (generate_image): New argument outname.
8343 Remove unreacheable message.
8344 (options): Unify messages.
8345 (help_filter): Likewise.
8346 * util/grub-mklayout.c (usage): Removed (unused).
8347 (main): Print filename in error.
8348 * util/grub-mkrescue.in: Fix wrong quoting.
8349 * util/grub-setup.c (setup): Print filename in error.
8350 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
8351 (check_sas): Likewise.
8352 * util/misc.c (grub_util_get_fp_size): Removed.
8353 (grub_util_get_image_size): Print filename in error.
8354 (grub_util_read_at): Removed.
8355 (grub_util_read_image): Print filename in error.
8356 (grub_util_load_image): Likewise.
8357 (grub_util_write_image_at): New argument filename. All users updated.
8358 Print filename in error.
8359 (grub_util_write_image): New argument filename. All users updated.
8360 Print filename in error.
8361 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
8362 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
8364 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8366 * grub-core/Makefile.core.def (pxechain): New module.
8367 * grub-core/loader/i386/pc/pxechainloader.c: New file.
8368 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
8370 (grub_pc_net_config_real): Use grub_pxe_get_cached.
8371 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
8373 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8375 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
8376 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
8377 * include/grub/err.h (grub_error_saved): New struct.
8378 (grub_errmsg): Make array size explicit.
8379 * include/grub/misc.h (grub_error_save): New function.
8380 (grub_error_load): Likewise.
8381 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
8382 (grub_error_push): Update `errno' member name.
8383 (grub_error_pop): Likewise
8384 * grub-core/net/tftp.c (tftp_data): New member save_err.
8385 (tftp_receive): Save error.
8386 (tftp_open): Restore error.
8388 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8390 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
8391 to real mode down to execute A20-related code in protected mode as
8394 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8396 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
8397 NULL when the argument `level' has an unexpected value.
8399 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8401 Move platform-dependent files from $prefix to $prefix/$platform.
8403 * config.h.in (GRUB_TARGET_CPU): New definition.
8404 (GRUB_PLATFORM): Likewise.
8405 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
8406 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
8407 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8408 * grub-core/kern/dl.c (grub_dl_load): Likewise.
8409 * grub-core/normal/autofs.c (read_fs_list): Likewise.
8410 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
8411 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
8412 * grub-core/normal/term.c (read_terminal_list): Likewise.
8413 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
8415 (grub_gettext_init_ext): Likewise.
8416 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
8418 * util/grub-install.in: Update directories.
8419 * util/grub-mknetdir.in: Likewise.
8420 * util/grub-mkrescue.in: Likewise.
8422 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8424 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
8425 grub_error framework. All users updated.
8427 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8429 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
8430 lists (by always binsearching), improve caching (cache strings
8431 used for binsearch, not only results), improve
8432 maintainability (by using more structured binary search) and correct
8435 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8437 * grub-core/script/execute.c (grub_script_return): Fix warning.
8439 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8441 * grub-core/script/execute.c (grub_script_return): Fix potential
8443 Reported by: Jim Meyering.
8445 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8447 * po/POTFILES.in: Regenerate.
8448 * util/grub-install.in: Gettextize the strings missed in first pass.
8450 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8452 * Makefile.util.def (grub-mkdevicemap): Removed.
8453 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
8454 * include/grub/util/deviceiter.h: Removed.
8455 * util/deviceiter.c: Likewise.
8456 * util/getroot.c (grub_util_get_os_disk): New function.
8457 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
8458 replacement for EFI.
8459 * util/grub-mkdevicemap.c: Removed.
8460 * util/grub-probe.c (probe): Handle PRINT_DISK.
8461 (argp_parser): Handle -t disk.
8463 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8465 * util/grub-mkfont.c: Migrate to argp.
8466 * util/grub-mklayout.c: Likewise.
8467 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8468 * util/grub-mkrelpath.c: Likewise.
8469 * util/grub-probe.c: Likewise.
8470 * util/grub-script-check.c: Likewise.
8472 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8474 * util/grub-reboot.in: Add missing datarootdir.
8475 Add missing newline.
8476 * util/grub-set-default.in: Add missing datarootdir.
8477 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
8478 * util/grub-mkrescue.in: Likewise.
8480 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8482 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
8484 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8486 * util/grub-kbdcomp.in: Add decent help and gettextize.
8487 * docs/man/grub-kbdcomp.h2m: New file.
8489 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8491 Migrate grub-mkimage.c to argp.
8493 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
8494 (grub-setup): Likewise.
8495 * util/grub-setup.c (print_version): Move to ...
8496 * util/argp_common.c (print_version): ... here.
8497 * util/grub-setup.c (argp_program_version_hook): Move to ...
8498 * util/argp_common.c (argp_program_version_hook): ... here.
8499 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
8501 * util/grub-mkimage.c (main): Migrate to argp.
8503 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8505 * util/grub-mkrescue.in: Use same message as
8506 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
8507 for better translations.
8509 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8511 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
8512 options with generic grub-mkrescue.in with the goal of future
8515 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8517 * grub-core/kern/mm.c: Add missing include of i18n.h
8518 * grub-core/lib/relocator.c: Likewise.
8520 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8522 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
8524 (allocate_pages): Check return value.
8525 Replace fatal with error.
8526 (grub_linux_boot): Replace printf with dprintf.
8527 Check find_mmap_size return value.
8528 Replace fatal with error.
8529 Don't call grub_machine_fini.
8530 (grub_load_elf64): Replace printf with dprintf.
8531 (grub_cmd_linux): Likewise.
8532 (grub_cmd_initrd): Likewise.
8533 (grub_cmd_payload): Likewise.
8535 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8537 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
8539 * grub-core/video/radeon_fuloong2e.c
8540 (grub_video_radeon_fuloong2e_setup): Likewise.
8541 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
8542 * grub-core/video/video.c (grub_video_set_mode): Don't override
8543 standard out of memory message.
8545 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8547 NetBSD disk wedge support.
8549 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
8550 [__NetBSD__]: Handle NetBSD disk wedges.
8551 * util/getroot.c (convert_system_partition_to_system_disk)
8552 [__NetBSD__]: Likewise.
8554 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
8556 * util/grub-mkconfig.in: Use umask rather than chmod to create
8557 grub.cfg.new to avoid insecure grub.cfg.
8559 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8561 * grub-core/commands/ls.c: Gettextize.
8562 * grub-core/commands/setpci.c: Likewise.
8563 * grub-core/commands/videotest.c: Likewise.
8564 * grub-core/disk/geli.c: Likewise.
8565 * grub-core/kern/mm.c: Likewise.
8566 * grub-core/lib/relocator.c: Likewise.
8567 * grub-core/loader/efi/appleloader.c: Likewise.
8568 * grub-core/loader/i386/xnu.c: Likewise.
8569 * grub-core/loader/ia64/efi/linux.c: Likewise.
8570 * grub-core/loader/xnu.c: Likewise.
8571 * grub-core/net/dns.c: Likewise.
8572 * grub-core/net/net.c: Likewise.
8573 * grub-core/script/lexer.c: Likewise.
8574 * grub-core/script/parser.y: Likewise.
8575 * grub-core/script/yylex.l: Likewise.
8576 * util/getroot.c: Likewise.
8577 * util/grub-setup.c: Likewise.
8579 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8581 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
8584 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8586 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
8588 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8590 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
8592 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
8593 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
8595 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8597 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
8598 * util/grub-install.in: Gettextize.
8599 * util/grub-mkconfig.in: Likewise.
8600 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
8602 (grub_warn): Gettextize.
8603 * util/grub-mknetdir.in: Gettextize.
8604 * util/grub-mkrescue.in: Likewise.
8605 * util/grub-mkstandalone.in: Likewise.
8606 * util/grub-reboot.in: Likewise.
8607 * util/grub-set-default.in: Likewise.
8608 * util/grub.d/00_header.in: Likewise.
8609 * util/grub.d/10_hurd.in: Likewise.
8610 * util/grub.d/10_kfreebsd.in: Likewise.
8611 * util/grub.d/10_linux.in: Likewise.
8612 * util/grub.d/10_netbsd.in: Likewise.
8613 * util/grub.d/10_windows.in: Likewise.
8614 * util/grub.d/20_linux_xen.in: Likewise.
8615 * util/grub.d/30_os-prober.in: Likewise.
8616 * po/POTFILES-shell.in: Regenerate.
8618 2012-02-03 Richard Laager <rlaager@wiktel.com>
8620 * util/grub-mkimage.c (main): Fix format-security warning.
8621 * util/grub-mkrelpath.c (main): Likewise.
8622 * util/grub-probe.c (main): Likewise.
8624 2012-02-03 Richard Laager <rlaager@wiktel.com>
8626 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
8628 Put back lost PRINT_DRIVE.
8630 2012-02-03 Richard Laager <rlaager@wiktel.com>
8632 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
8633 (grub_guess_root_devices): Replace strlen with sizeof.
8635 (find_root_devices_from_poolname): Remove unused variable.
8638 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8640 Support install on multi-device filesystems.
8642 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
8643 (grub_guess_root_devices): ...this. Return char **. All users updated.
8644 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
8646 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
8647 (find_root_devices_from_poolname): ... here.
8648 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
8650 (grub_guess_root_device): Rename to ...
8651 (grub_guess_root_devices): ... this. Return char **. All users updated.
8652 * util/grub-install.in: Handle multi-device filesystems.
8653 * util/grub-probe.c (probe). Make device_names a char **. Add delim
8654 argument. All users updated.
8655 Handle multi-device filesystems.
8656 Use 'delim' as separator.
8657 Remove device check to allow filesystems on file.
8658 (main): Support -0 argument. Handle multi-device.
8659 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
8660 Fix a cross-device check while on it.
8661 (arguments): Remove root_dev.
8662 (argp_parser): Remove -r.
8663 (main): Remove root_dev.
8665 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8667 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
8669 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8671 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
8673 Reported by: NODA, Kai <nodakai>.
8675 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8679 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
8681 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
8682 (grub_ehci_setup_qh): Likewise.
8683 (grub_ehci_find_qh): Likewise.
8684 (grub_ehci_transaction): Likewise.
8685 (grub_ehci_setup_transfer): Likewise.
8686 (grub_ehci_check_transfer): Likewise.
8687 (grub_ehci_portstatus): Likewise.
8688 (grub_ehci_detect_dev): Likewise.
8689 (grub_ehci_transfer_controller_data): New field td_last_phys.
8690 (grub_ehci_setup_transfer): Fill td_last_phys.
8691 (grub_ehci_check_transfer): Use td_last_phys.
8693 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
8695 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
8696 if no submenu is present.
8698 2012-02-01 Aleš Nesrsta <starous@volny.cz>
8702 * include/grub/usb.h (grub_usbms_protocol_t): New values
8703 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
8704 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
8705 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
8706 (grub_usbms_dev): Add subclass, protocol and intrpt.
8707 Remove in_maxsz and out_maxsz.
8708 (grub_usbms_reset): Rename to ...
8709 (grub_usbms_bo_reset): .. this.
8710 (grub_usbms_cbi_cmd): New function.
8711 (grub_usbms_cbi_reset): Likewise.
8712 (grub_usbms_reset): Likewise.
8713 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
8714 (grub_usbms_transfer): Rename to ...
8715 (grub_usbms_transfer_bo): ... this.
8716 (grub_usbms_transfer_cbi): Likewise.
8717 (grub_usbms_transfer): Likewise.
8719 2012-02-01 Aleš Nesrsta <starous@volny.cz>
8720 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8722 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
8723 the support for the CS5536 modification thereos and few bugfixes.
8725 * grub-core/Makefile.core.def (ehci): New module.
8726 * grub-core/bus/usb/ehci.c: New file.
8727 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
8728 port and hubaddr. All users updated.
8729 Save port and hubaddr into dev structure.
8730 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
8732 * include/grub/pci.h (grub_dma_phys2virt): New function.
8733 (grub_dma_virt2phys): Likewise.
8734 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
8736 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8738 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
8739 check as some mkfs implementations omit it.
8741 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8743 * docs/grub.texi (Unicode): Mention identifier and space limitations.
8745 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8747 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
8748 Add new member volname2.
8749 (grub_jfs_label): Use volname2 if available.
8751 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8753 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
8754 over last_mounted as seen in image generated by mkfs.nilfs2.
8755 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
8757 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8759 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
8760 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
8761 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
8763 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8765 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
8768 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8770 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
8771 subvolume name (by removing a bogus and useless check).
8773 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8775 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
8778 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8780 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
8781 (grub_scsi_read_capacity10): ... this.
8782 (grub_scsi_read_capacity16): New function.
8783 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
8785 Fix off-by-one error.
8786 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
8788 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
8789 (grub_scsi_read_capacity10): ... this.
8790 (grub_scsi_read_capacity_data): Rename to ...
8791 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
8792 (grub_scsi_read_capacity16): New struct.
8793 (grub_scsi_read_capacity16_data): Likewise.
8794 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
8795 grub_scsi_cmd_read_capacity10.
8796 New command grub_scsi_cmd_read_capacity16.
8798 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8802 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
8803 (grub_scsi_write16): Likewise.
8804 (grub_scsi_read): Use read16 when necessary.
8805 (grub_scsi_write): Likewise.
8806 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
8807 (grub_scsi_write16): Likewise.
8808 (grub_scsi_cmd_t): Add READ16 and WRITE16.
8810 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8812 SCSI write support (for usbms mainly).
8814 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
8816 (grub_scsi_write): Implement.
8817 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
8819 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8821 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
8824 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8826 * grub-core/lib/posix_wrap/string.h (memchr): New function.
8828 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8830 * po/POTFILES.in: Regenerate.
8832 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8834 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
8835 with grub_printf to avoid unnecessary fatal failure.
8837 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8839 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
8840 (INT_MAX): Likewise.
8841 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
8842 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
8843 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
8847 (strncpy): Likewise.
8849 (strncat): Likewise.
8850 (strcoll): Likewise.
8851 * include/grub/types.h (GRUB_SHRT_MAX): New define.
8852 (GRUB_INT_MAX): Likewise.
8854 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8856 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
8858 (optimize_utf8): Likewise.
8859 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
8861 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8863 * grub-core/boot/i386/pc/lnxboot.S: Use
8864 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
8865 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
8867 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
8869 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
8871 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8873 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
8874 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
8875 now to avoid double free.
8876 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
8878 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
8879 * util/grub-probe.c (escape_of_path): Always return a new copy.
8880 (print_full_name): Escape path.
8881 (probe): Don't call grub_util_devname_to_ofpath on NULL.
8882 Fix hints on abstractions.
8884 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8886 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
8887 Don't add "root" line if no compatibility hont is available.
8888 Suggested by: Seth Goldberg.
8890 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8892 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
8893 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
8894 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
8895 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
8897 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8899 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
8901 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8903 * util/grub-pe2elf.c (ehdr): Make static.
8905 (num_sections): Likewise.
8908 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8910 Eliminate ofpath limits and possible overflows.
8912 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
8913 (OF_PATH_MAX): Removed.
8914 (MAX_DISK_CAT): New const.
8915 (find_obppath): Use allocated rather than preallocated buffer.
8916 Return result. Argument of_path removed. All users updated.
8918 (xrealpath): New function.
8919 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
8920 Allocate rather than use preallocated buffer. All users updated.
8921 (__of_path_common): Use allocated rather than preallocatecd buffer.
8922 Return result. Argument of_path removed. All users updated.
8923 (vendor_is_ATA): Read only needed part form the file.
8924 (check_sas): Allocate depending on contents rather than fixed.
8925 (main) [STANDALONE]: Handle NULL result.
8927 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8929 * grub-core/normal/completion.c (iterate_dev): Close the disk.
8931 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8933 Cryptodisk write support.
8935 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
8936 (grub_cryptodisk_decrypt): Moved logic to ...
8937 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
8938 (grub_cryptodisk_write): Implement.
8939 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
8940 (grub_util_fd_write): ... this. Make global.
8941 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
8943 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8945 * include/grub/list.h (grub_list_remove): Don't crash if element is
8948 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8950 Rename ofconsole to console.
8952 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
8953 as sysnonym to console.
8954 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
8955 * grub-core/term/ieee1275/console.c: ... this. All users updated.
8956 Rename grub_ofconsole_ to grub_console_. All users updated
8957 (grub_console_term_output): Rename "ofconsole" to "console".
8958 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
8961 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8963 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
8965 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
8966 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
8967 GRUB_DISK_DEVICE_FILE_ID.
8969 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8971 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
8972 and improve performance.
8974 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8976 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
8977 missing ieee1275/ prefix on whole disk.
8979 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8981 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
8982 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
8984 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8986 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
8988 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8990 Merge common RAID and LVM logic to an abstract diskfilter.
8991 Add LDM support using the same framework.
8993 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
8994 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
8995 (libgrubmods): Remove grub-core/disk/raid.c and
8996 grub-core/partmap/gpt.c.
8997 * grub-core/Makefile.core.def (ldm): New module.
8998 (raid): Renamed to diskfilter. All users updated.
8999 * grub-core/disk/raid.c: Moved to ...
9000 * grub-core/disk/diskfilter.c: ... here.
9001 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
9003 (find_array): Renamed to ...
9004 (find_lv): ... this. Support multi-LV. Skip nameless LVs
9005 (grub_is_array_readable): Renamed to ...
9006 (grub_is_lv_readable): ... this. Support multinode hierarchy.
9007 (insert_array): New argument id.
9008 (is_node_readable): New function.
9009 (scan_device): Rename to ...
9010 (scan_disk): .. this. Restrict to one disk.
9011 (scan_devices): New function.
9012 (grub_diskfilter_iterate): Support multi-LV.
9013 Skip invisible and nameless LVs.
9014 (grub_diskfilter_memberlist): Support multi-LV.
9015 (grub_diskfilter_read_node): New function.
9016 (grub_raid_read): Most of logic moved to ...
9017 (read_segment): ... here
9018 (read_lv): New function.
9019 (grub_diskfilter_get_vg_by_uuid): New function.
9020 (grub_diskfilter_make_raid): Likewise.
9021 * grub-core/disk/ldm.c: New file.
9022 * grub-core/disk/lvm.c (vg_list): Removed.
9023 (lv_count): Likewise.
9024 (scan_depth): Likewise.
9025 (is_lv_readable): Likewise.
9026 (grub_lvm_getvalue): Advance pointer past the number.
9028 (do_lvm_scan): Refactored into ...
9029 (grub_lvm_detect): ... this. Support raid.
9030 (grub_lvm_iterate): Removed.
9031 (grub_lvm_memberlist): Likewise.
9032 (grub_lvm_open): Likewise.
9033 (grub_lvm_close): Likewise.
9034 (read_lv): Likewise.
9035 (read_node): Likewise.
9036 (is_node_readable): Likewise.
9037 (is_lv_readable): Likewise.
9038 (grub_lvm_read): Likewise.
9039 (grub_lvm_write): Likewise.
9040 (grub_lvm_dev): Use diskfilter
9041 (GRUB_MOD_INIT): Likewise.
9042 (GRUB_MOD_FINI): Likewise.
9043 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
9045 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
9046 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9047 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
9048 grub_diskfilter_read_node.
9050 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
9051 grub_diskfilter_read_node.
9052 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
9053 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
9054 (grub_disk_dev_iterate): Move from here...
9055 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
9056 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9058 (grub_hostdisk_find_partition_start): Likewise.
9059 (grub_hostdisk_os_dev_to_grub_drive): New function.
9060 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
9061 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
9062 * util/getroot.c (make_device_name): ... here.
9063 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9065 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
9066 * grub-core/kern/emu/hostdisk.c
9067 (convert_system_partition_to_system_disk): Move to ...
9068 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
9069 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
9070 * util/getroot.c (device_is_wholedisk): ... here.
9071 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
9072 * util/getroot.c (find_system_device): ... here.
9073 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
9075 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
9076 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9078 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
9080 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
9082 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
9083 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
9084 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
9086 * include/grub/raid.h: Renamed to ...
9087 * include/grub/diskfilter.h: ... this.
9088 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
9089 (GRUB_RAID_LAYOUT_*): Make into array.
9090 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
9091 (grub_diskfilter_vg): New struct.
9092 (grub_diskfilter_pv_id): Likewise.
9093 (grub_raid_member): Removed.
9094 (grub_raid_array): Likewise.
9095 (grub_diskfilter_pv): New struct.
9096 (grub_diskfilter_lv): Likewise.
9097 (grub_diskfilter_segment): Likewise.
9098 (grub_diskfilter_node): Likewise.
9099 (grub_diskfilter_get_vg_by_uuid): New proto.
9100 (grub_raid_register): Inline.
9101 (grub_diskfilter_unregister): Likewise.
9102 (grub_diskfilter_make_raid): New proto.
9103 (grub_diskfilter_vg_register): Likewise.
9104 (grub_diskfilter_read_node): Likewise.
9105 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
9106 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
9107 (grub_util_is_ldm): Likewise.
9108 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
9109 (grub_hostdisk_find_partition_start): Likewise.
9110 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
9111 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
9113 (grub_gpt_partition_map_iterate): New proto.
9114 * include/grub/lvm.h (grub_lvm_vg): Removed.
9115 (grub_lvm_pv): Likewise.
9116 (grub_lvm_lv): Likewise.
9117 (grub_lvm_segment): Likewise.
9118 (grub_lvm_node): Likewise.
9119 * util/getroot.c [...]
9120 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
9121 (probe_abstraction): Likewise.
9122 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
9123 (main): Remove dead logic.
9125 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
9127 Simplify root device discover and don't fail when trying to open
9130 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
9132 (get_diskname_from_path): Likewise.
9133 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
9136 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9138 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
9140 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9142 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
9145 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9147 * util/grub-install.in: Add missing \.
9148 Reported by: gentoofan
9150 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9152 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
9153 (direct_read): Use correct compressed size.
9154 (grub_squash_read_data): Likewise.
9156 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9158 * docs/grub.texi (Platform limitations): New section.
9159 (Platform-specific operations): Likewise.
9160 * docs/grub-dev.texi (Porting): Likewise.
9162 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9164 IEEE1275 disk write support.
9166 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
9168 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
9169 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
9170 and seek loginc to ...
9171 (grub_ofdisk_prepare): ... here.
9172 (grub_ofdisk_write): Implement.
9174 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9176 ARC disk write support.
9178 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
9179 (reopen): New argument writable. All users updated.
9180 Handle required access mode.
9181 (grub_arcdisk_write): Implement.
9182 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
9183 (grub_arc_firmware_vector): Make buffer to write a const buffer.
9185 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9187 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
9188 (read_sblock): Don't attempt to read superblocks outside the disk size.
9190 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9192 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
9193 first superblock to find the second one when possible.
9195 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9197 * util/grub-install.in: Fix an ARC bug.
9198 Print a warning if no platform-specific setup is available.
9200 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9202 Use static allocation rather than scratch pointer in reed_solomon.
9203 It decreases its size significantly and avoids a variable in .text.
9205 * grub-core/lib/reed_solomon.c (scratch): Removed.
9206 (chosenstat): New const or static array.
9212 (errvals): Likewise.
9214 (pol_evaluate): Replace x with log_x argument. All users updated.
9215 (syndroms): Removed.
9216 (gauss_solve): Use statically allocated arrays.
9217 (rs_recover): Likewise.
9218 Calculate syndroms directly.
9219 (decode_block): Use statically allocated arrays.
9220 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
9221 (main) [TEST]: Allow -DTEST -DSTANDALONE.
9223 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9225 Eliminate fixed limit on reed solomon decoder length.
9227 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
9228 rather than hardcoding the address.
9229 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
9230 no_reed_solomon_length.
9231 Move gate_a20 to no-reed-solomon part.
9232 Don't force a particular size of no reed-solomon part.
9233 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
9235 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
9236 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
9238 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9240 * grub-core/commands/wildcard.c (match_files): Handle filenames
9241 without explicit device.
9242 (wildcard_expand): Don't add explicit device if not already present.
9243 * tests/grub_script_echo1.in: Add a new expansion test.
9245 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9247 Replace single-linked with double-linked lists. It results in more
9248 compact and more efficient code.
9250 * grub-core/kern/list.c (grub_list_push): Moved from here ...
9251 * include/grub/list.h (grub_list_push): ... to here. Set prev.
9252 (grub_list_remove): Moved from here ...
9253 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
9254 (grub_prio_list_insert): Set prev.
9255 * include/grub/list.h (grub_list): Add prev. All users updated.
9257 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9259 Handle newer autotools. Add some missing quotes while on it.
9261 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
9262 (pkglib_DATA): Move grub-mkconfig_lib from here ...
9263 (pkgdata_DATA): ... here.
9264 * Makefile.util.def (update-grub_lib): Removed.
9265 * conf/Makefile.common (pkglib_DATA): Removed.
9266 (pkglib_SCRIPTS): Likewise.
9267 (pkgdata_DATA): New variable.
9268 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
9271 Remove unused variable while on it.
9272 * tests/util/grub-shell.in: Likewise.
9273 * util/grub-install.in: Likewise.
9274 * util/grub-mkconfig.in: Likewise.
9275 * util/grub-mknetdir.in: Likewise.
9276 * util/grub-mkrescue.in: Likewise.
9277 * util/grub-mkstandalone.in: Likewise.
9278 * util/grub.d/00_header.in: Likewise.
9279 * util/grub.d/10_hurd.in: Likewise.
9280 * util/grub.d/10_illumos.in: Likewise.
9281 * util/grub.d/10_kfreebsd.in: Likewise.
9282 * util/grub.d/10_linux.in: Likewise.
9283 * util/grub.d/10_netbsd.in: Likewise.
9284 * util/grub.d/10_windows.in: Likewise.
9285 * util/grub.d/20_linux_xen.in: Likewise.
9286 * util/grub.d/30_os-prober.in: Likewise.
9287 * util/update-grub_lib.in: Removed.
9289 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
9291 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
9292 a workaround for intel problem.
9294 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
9295 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
9296 2012-01-23 pfsmorigo
9298 * util/grub-install.in: Support dd'in into PreP partition.
9299 * util/grub-probe.c (probe): Support discovering partition type.
9300 (main): Support -t msdos_parttype.
9302 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
9304 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
9305 infinite recursion using counter.
9306 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
9307 init to skip it if the magic check fails.
9308 (dec_stream_header): Init s->crc32.
9310 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9311 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
9312 2012-01-22 Richard Laager <rlaager@wiktel.com>
9314 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
9316 (find_bestub): Determine correct size.
9317 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
9318 (scan_disk): Align the size down.
9319 Call check pool before find_bestub to have ashift.
9321 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9323 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
9324 dprintf in no-malloc zone.
9326 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
9328 * configure.ac: Add back in test for limits.h.
9330 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9332 Support 4K-sector NTFS.
9334 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
9335 (grub_ntfs_data): Remove blocksize.
9336 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
9337 Remove data argument. All users updated.
9339 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9341 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
9342 being in .text to avoid dprel references.
9343 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
9344 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
9345 (grub_arch_highmemsize): Likewise.
9346 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
9347 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
9348 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
9350 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9352 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
9354 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
9355 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
9357 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9359 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
9361 (grub_set_datetime_cmos): Likewise.
9363 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9365 Make XZ compression parameters dependent on target and not host CPU.
9367 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
9368 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
9370 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9372 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
9373 set but not used variable.
9375 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9377 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
9378 created when no uuid support is compiled into mkfs.reiser.
9380 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9382 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
9383 (utf8_to_macroman): Do the opposite.
9384 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
9386 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9388 * configure.ac: Refise build qemu_mips w/o unifont.
9390 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9392 Eliminate grub_min/grub_max prone to overflow usage.
9394 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
9395 (poll_nonroot_hub): Likewise.
9396 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
9397 (grub_affs_label): Likewise.
9398 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
9399 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
9400 (grub_hfs_label): Likewise.
9401 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
9402 * grub-core/fs/zfs/zfs.c (MIN): Remove.
9403 (zap_leaf_array_equal): Use grub_size. Remove MIN.
9404 (zap_leaf_array_get): Likewise.
9405 (dnode_get_path): Likewise.
9406 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
9407 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
9408 * grub-core/script/execute.c (grub_script_break): Likewise.
9409 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
9411 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
9412 * include/grub/misc.h (grub_min): Removed.
9413 (grub_max): Likewise.
9415 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9417 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
9420 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9422 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
9424 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9426 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
9428 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9430 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
9431 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
9433 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9435 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
9436 rather than a hack for grub_strncasemap.
9438 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9440 Support multiple initrds
9441 Note: part of this was accidently committed in r3739.
9443 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
9445 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
9446 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
9447 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
9448 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9449 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9451 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9453 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
9454 disks with unknown size.
9455 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
9457 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9459 Remove defines pertaining to arbitrary limits not affecting GRUB
9462 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
9463 (EXT2_MAX_SYMLINKCNT): Likewise.
9464 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
9465 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
9466 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
9467 (GRUB_PXE_MAX_BLKSIZE): Likewise.
9468 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
9469 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
9470 (DN_MAX_OBJECT_SHIFT): Likewise.
9471 (DN_MAX_OFFSET_SHIFT): Likewise.
9472 (DN_MAX_OBJECT): Likewise.
9473 (DNODES_PER_LEVEL_SHIFT): Likewise.
9474 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
9475 (SPA_MAXBLOCKSIZE): Likewise.
9476 (SPA_BLOCKSIZES): Likewise.
9477 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
9478 (MZAP_MAX_BLKSZ): Likewise.
9480 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9482 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
9483 handle NULL appropriately.
9486 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9490 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
9492 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
9493 * configure.ac: Fix efiemu check.
9495 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9497 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
9499 Reported by: adamwill
9501 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
9503 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
9505 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9507 Fix handling of wide characters in gfxterm.
9509 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
9510 (clear_char): Likewise.
9511 (paint_char): Skip code == NULL chars.
9512 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
9514 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9516 * grub-core/normal/charset.c: Move comment to right place.
9518 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9520 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
9521 (GRUB_AFFS_FLAG_FFS): Put back where it was.
9522 (grub_affs_mount): Revert the correct version checking.
9524 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9526 * docs/grub.texi (Unicode): Mention several other unsupported features.
9528 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9530 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
9531 case statements as compile-time one.
9532 (direct_read): Prevent spurious warnings.
9533 (grub_squash_read_data): Likewise.
9535 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9537 Various squash4 fixes and LZO and XZ support.
9539 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
9540 Add xzembed source files.
9541 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
9542 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
9543 (grub_squash_inode): New subtype long_dir.
9544 (SQUASH_TYPE_LONG_DIR): New inode type.
9545 (COMPRESSION): New enum.
9546 (XZBUFSIZ): New const.
9547 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
9548 (read_chunk): Use data->decompress.
9549 (zlib_decompress): New function.
9550 (lzo_decompress): Likewise.
9551 (xz_decompress): Likewise.
9552 (squash_mount): Set new data fields.
9553 (grub_squash_iterate_dir): Handle long dir.
9554 (squash_unmount): Free xzdec and xzbuf.
9555 (grub_squash_open): Check ino type.
9556 (direct_read): Stylistic fixes. Use data->decompress.
9557 (grub_squash_read_data): Likewise.
9558 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
9559 (get_byte): Likewise.
9560 (grub_zlib_disk_read): Removed.
9561 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
9562 (GRUB_POSIX_BOOL_DEFINED): New define.
9563 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
9564 * grub-core/lib/xzembed/xz.h: Addmissing includes.
9565 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
9566 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
9568 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9570 Don't override more informative errors.
9572 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
9573 * grub-core/font/font.c (open_section): Likewise.
9574 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
9575 filename. Don't override errors.
9576 (grub_cmd_openbsd_ramdisk): Don't override errors.
9577 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
9578 (grub_cmd_initrd): Likewise.
9579 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9580 (grub_cmd_initrd): Likewise.
9581 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
9582 (grub_cmd_linux): Likewise.
9583 (grub_cmd_initrd): Likewise.
9584 (grub_cmd_payload): Likewise.
9585 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
9586 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
9587 (grub_cmd_module): Likewise.
9588 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9589 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9590 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
9591 (grub_cmd_xnu_mkext): Likewise.
9592 (grub_cmd_xnu_ramdisk): Likewise.
9593 (grub_xnu_check_os_bundle_required): Likewise.
9594 (grub_xnu_load_kext_from_dir): Likewise.
9595 (grub_cmd_xnu_kextdir): Likewise.
9596 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
9598 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9600 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
9601 as 1024 in block size field. Found on one of my test images.
9602 Small optimisation while on it.
9604 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9606 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
9607 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
9608 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
9609 performance fixes while on it.
9610 (grub_sfs_close): Fix memory leak while on it.
9611 (grub_sfs_label): Convert Latin1 to UTF-8.
9613 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9615 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
9616 space to avoid overflows.
9617 (grub_hfs_label): Convert from macroman to UTF-8.
9619 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9621 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
9623 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9625 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
9627 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9629 * unicode: Import Unicode 6.0 data.
9631 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9633 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
9636 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9638 Avoid cutting in the middle of UTF-8 character.
9640 * include/grub/charset.h (grub_getend): New function.
9641 * grub-core/script/function.c (grub_script_function_find): Use
9643 * grub-core/normal/completion.c (add_completion): Likewise.
9645 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9647 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
9648 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
9649 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
9650 (GRUB_UNICODE_TAG_END): Likewise.
9651 (GRUB_UNICODE_LAST_VALID): Likewise.
9653 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9655 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
9656 len and make it smaller. All users updated.
9657 * util/import_unicode.py: Put length and not end character.
9660 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9662 Make better Unicode-compliant and unify some UTF-8 code pathes.
9664 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
9666 (grub_is_valid_utf8): Use grub_utf8_process.
9667 Check resulting code range.
9668 (grub_utf8_to_ucs4): Use grub_utf8_process.
9669 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
9672 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9674 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
9676 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9678 * docs/grub.texi (Filesystems): Mention AFS.
9680 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9682 * docs/grub.texi (Filesystems): Clarify restrictions.
9683 (Regexp): Mention non-Unicode regexp behaviour.
9684 (Other): Mention non-Unicode matching behaviour.
9686 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9688 Make HFS implementation use MacRoman.
9690 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
9691 (macroman): New const array.
9692 (macroman_to_utf8): New function.
9693 (utf8_to_macroman): Likewise.
9694 (grub_hfs_find_dir): Use utf8_to_macroman.
9695 (grub_hfs_dir): Use macroman_to_utf8.
9696 Set case_insensitive.
9698 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9700 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
9702 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9704 Integrate hints into autogeneration scripts.
9706 * docs/grub.texi (Filesystems): Add a hostdisk example.
9707 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
9708 (grub-probe): Add ofpath.
9709 * gentpl.py: Remove group nosparc64.
9710 * grub-core/commands/search.c (cache_entry): New struct.
9712 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
9713 * grub-core/commands/search_wrap.c (options): Add platform-specific
9715 (grub_cmd_search): Handle platform-specific hints.
9716 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
9717 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
9718 (grub_util_biosdisk_data): Likewise.
9719 (grub_util_biosdisk_open): Set device_map.
9720 (read_device_map): Handle "" as indication of no map.
9722 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
9723 (grub_util_biosdisk_get_compatibility_hint): New function.
9724 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
9725 * include/grub/emu/hostdisk.h
9726 (grub_util_biosdisk_get_compatibility_hint): New proto.
9727 * util/grub-install.in: Don't call grub-mkdevicemap.
9728 Add platform-specific hint to load.cfg.
9729 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
9730 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9731 hints. Set root preliminary to compatibility hint, not to OS name.
9732 * util/grub-probe.c (PRINT_*): Add hints.
9733 (print): Make static.
9734 (escape_of_path): New function.
9735 (guess_bios_drive): Likewise.
9736 (guess_efi_drive): Likewise.
9737 (guess_baremetal_drive): Likewise.
9738 (print_full_name): Likewise.
9739 (probe): Handle hints.
9741 * util/ieee1275/devicemap.c: Removed.
9742 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
9744 (grub_util_devname_to_ofpath): Return NULL on failure.
9746 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
9748 * util/getroot.c (grub_util_pull_device): Fix memory leak.
9750 * po/POTFILES.in: Regenerated.
9752 Allow purely long options
9754 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
9755 (SHORT_ARG_USAGE): Likewise.
9756 (grub_arg_show_help): Compare opt with help_options.
9757 (parse_option): Receive opt as argument. If makes big simplificatons.
9760 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9762 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
9763 Restructure to avoid warning.
9765 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9767 * util/grub-install.in: Account for possible escaped comma in device
9770 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9772 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
9775 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9777 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
9778 allocation and zero-setting.
9779 (grub_ieee1275_get_devname): Check that alias is complete.
9781 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9783 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
9786 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9788 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
9790 (grub_ofdisk_open): Check and discard ieee1275 prefix.
9791 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9792 Add ieee1275 prefix.
9794 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9796 * docs/grub.texi (Filesystems): Update.
9798 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9800 Support odc, newc and bigendian cpio formats.
9802 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
9803 * grub-core/Makefile.core.def (newc): New module.
9805 (cpio_be): Likewise.
9806 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
9809 (head) [MODE_ODC]: Adapt for the format.
9810 (head) [MODE_NEWC]: Likewise.
9811 (head) [!MODE_*]: Write fields of interest as arrays.
9812 (MAGIC_USTAR): Removed.
9813 (read_number) [MODE_NEWC]: Change to hex.
9814 (read_number) [!MODE_*]: Parse binary arrays.
9815 (grub_cpio_find_file): Factor out the code for better structure and
9816 always use read_number.
9817 (grub_cpio_mount): Use MAGIC and MAGIC2.
9818 (grub_cpio_dir): Exit on first hook non-0 return.
9819 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
9820 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
9821 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
9822 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
9823 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
9824 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
9825 * grub-core/fs/newc.c: New file.
9826 * grub-core/fs/odc.c: Likewise.
9827 * grub-core/fs/cpio_be.c: Likewise.
9829 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9831 Fix handling of tar numbers occupying the whole field.
9833 * grub-core/fs/cpio.c (read_number): New function.
9834 (grub_cpio_find_file): Use read_number instead of strtoull.
9836 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9838 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
9839 occupying the whole field size.
9841 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
9843 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
9845 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9847 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
9849 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
9851 * grub-core/Makefile.core.def (lzma_decompress): Add missing
9854 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9856 * util/getroot.c (ESCAPED_PATH_MAX): New define.
9857 (mountinfo_entry): Increase the field size to take escaping into
9859 (find_root_device_from_libzfs): Add one byte to size of strings for
9862 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9864 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
9866 * util/grub-setup.c (setup): Likewise.
9868 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9870 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
9873 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9875 * docs/grub.texi (Internationalisation): New section.
9877 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9879 * docs/grub.texi (Loopback booting): New section.
9881 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
9883 * util/grub-mkstandalone.in: Fix minor typo errors.
9885 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9887 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
9889 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
9890 net/icmp.c and net/icmp6.c.
9892 (priority_queue): Likewise.
9893 * grub-core/io/bufio.c: Rewritten.
9894 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
9895 TYPE_WITH_CONFIGFILE_OPTION.
9896 (legacy_commands): Add bootp and dhcp.
9897 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
9898 (grub_legacy_parse): Likewise.
9899 * grub-core/lib/priority_queue.c: New file.
9900 * grub-core/net/arp.c: Add missing license header.
9901 (arp_find_entry): Removed.
9902 (arp_find_entry): Likewise.
9903 (grub_net_arp_resolve): Rename to ...
9904 (grub_net_arp_send_request): ...this.
9905 (grub_net_arp_receive): New card argument.
9906 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
9907 Set router and DNS server.
9908 (grub_net_configure_by_dhcp_ack): Handle routing information.
9909 (grub_cmd_bootp): Set checksum.
9910 (grub_bootp_init): Remove net_dhcp.
9911 * grub-core/net/dns.c: New file.
9912 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
9914 (get_card_packet): Handle allocation.
9915 (grub_efinet_findcards): Set mtu.
9916 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
9917 (get_card_packet): Handle allocation.
9919 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
9920 (GRUB_MOD_INIT): Set mtu.
9921 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
9923 (get_card_packet): Handle allocation.
9924 (grub_ofnet_findcards): Set mtu.
9925 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
9927 (grub_net_recv_ethernet_packet): Handle IPv6.
9928 * grub-core/net/http.c: New file.
9929 * grub-core/net/icmp.c: Likewise.
9930 * grub-core/net/icmp6.c: Likewise.
9931 * grub-core/net/ip.c (ip6addr): New type.
9933 (reassemble): Likewise.
9934 (cmp): New function.
9935 (reassembles): New variable.
9936 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
9938 (send_fragmented): New function.
9939 (grub_net_send_ip_packet): Rename to ...
9940 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
9942 (grub_net_recv_ip_packets): Rename to ...
9943 (handle_dgram): ... this. Check checksum. Handle non-UDP.
9944 (free_rsm): New function.
9945 (free_old_fragments): Likewise.
9946 (grub_net_recv_ip4_packets): New function.
9947 (grub_net_send_ip6_packet): Likewise.
9948 (grub_net_send_ip_packet): Likewise.
9949 (grub_net_recv_ip6_packets): Likewise.
9950 (grub_net_recv_ip_packets): Likewise.
9951 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
9952 (LINK_LAYER_CACHE_SIZE): New const.
9953 (link_layer_find_entry): New function.
9954 (grub_net_link_layer_add_address): Likewise.
9955 (grub_net_link_layer_resolve_check): Likewise.
9956 (grub_net_link_layer_resolve): Likewise.
9957 (grub_net_ipv6_get_slaac): Likewise.
9958 (grub_net_ipv6_get_link_local): Likewise.
9959 (grub_cmd_ipv6_autoconf): Likewise.
9960 (parse_ip): Handle one number representation.
9961 (parse_ip6): New functoion.
9962 (match_net): Handle IPv6.
9963 (grub_net_resolve_address): Handle IPv6 and DNS.
9964 (grub_net_resolve_net_address): Handle IPv6.
9965 (route_cmp): New function.
9966 (grub_net_route_address): Find best route.
9967 (grub_net_addr_to_str): Handle IPv6.
9968 (grub_net_addr_cmp): New function.
9969 (grub_net_add_addr): Register local route.
9970 (print_net_address): Handle net address.
9971 (grub_net_poll_cards): Retransmit TCP.
9972 (grub_net_poll_cards_idle_real): Likewise.
9973 (have_ahead): New function.
9974 (grub_net_seek_real): Use underlying seek.
9975 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
9976 * grub-core/net/tcp.c: New file.
9977 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
9978 (cmp): New function.
9980 (tftp_receive): Handle unordered input.
9981 (destroy_pq): New function.
9982 (tftp_close): Close pq.
9983 * grub-core/net/udp.c: Put missing license header.
9984 (grub_net_udp_socket): New function.
9985 (udp_socket_register): Likewise.
9986 (grub_net_udp_close): Likewise.
9987 (grub_net_recv_udp_packet): Check checksum.
9988 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
9989 * include/grub/misc.h (grub_memchr): New function.
9990 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
9991 (grub_net_card_driver): Return buf in recv.
9992 (grub_net_slaac_mac_list): New struct.
9993 (grub_network_level_protocol_id): Add ipv6.
9994 (grub_net_network_level_addr): Likewise.
9995 (grub_net_network_level_net_addr): Likewise.
9996 (grub_net_app_protocol): Add seek.
9997 (grub_net_socket): Removed.
9998 (grub_net_sockets): Likewise.
9999 (grub_net_socket_register): Likewise.
10000 (grub_net_socket_unregister): Likewise.
10001 (FOR_NET_SOCKETS): Likewise.
10002 (grub_net_add_addr): Add const.
10003 (GRUB_NET_BOOTP_*): New enum.
10004 (grub_net_addr_cmp): New proto.
10005 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
10006 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
10007 (grub_net_hwaddr_to_str): NEw proto.
10008 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
10009 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
10010 (grub_dns_init): New proto.
10011 (grub_dns_fini): Likewise.
10012 (grub_net_tcp_retransmit): Likewise.
10013 (grub_net_link_layer_add_address): Likewise.
10014 (grub_net_link_layer_resolve_check): Likewise.
10015 (grub_net_link_layer_resolve): Likewise.
10016 (grub_net_dns_lookup): Likewise.
10017 (grub_net_add_dns_server): Likewise.
10018 (grub_net_remove_dns_server): Likewise.
10019 (GRUB_NET_TRIES): New const.
10020 (GRUB_NET_INTERVAL): Likewise.
10021 * include/grub/net/arp.h: Mostly rewritten.
10022 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
10023 * include/grub/net/ip.h: Mostly rewritten.
10024 * include/grub/net/netbuff.h: Indent.
10025 * include/grub/net/tcp.h: New file.
10026 * include/grub/net/udp.h: Mostly rewritten.
10027 * include/grub/priority_queue.h: New file.
10028 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
10029 (grub_swap_bytes64_compile_time): Likewise.
10030 (grub_cpu_to_be16_compile_time): Likewise.
10031 (grub_cpu_to_be32_compile_time): Likewise.
10032 (grub_cpu_to_be64_compile_time): Likewise.
10033 (grub_be_to_cpu64_compile_time): Likewise.
10035 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
10037 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
10038 UINT_TO_PTR with cast.
10040 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10042 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
10045 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10047 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
10050 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10052 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
10055 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10057 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
10058 Add missing const attribute.
10059 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
10061 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
10064 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10066 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
10068 (serpent_setkey): Likewise.
10069 (serpent_encrypt_internal): Likewise.
10070 (serpent_decrypt_internal): Likewise.
10071 (serpent_encrypt): Don't put an alignment-increasing cast.
10072 (serpent_decrypt): Likewise.
10073 (serpent_test): Likewise.
10075 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10077 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
10079 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10081 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
10083 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
10085 (PTR_TO_UINT64): Likewise.
10086 (PTR_TO_UINT32): Likewise.
10088 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10090 * util/grub-mkimage.c (generate_image): Decrease the higher limit
10092 * util/grub-setup.c (setup): Don't add redundancy past the higher load
10095 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10097 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
10098 text_width > available width a bit more gracefully.
10100 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10102 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
10103 current address calculation.
10105 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10107 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
10109 (encode_block): Likewise.
10111 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10113 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
10116 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10118 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
10119 non-RS part to avoid RS messing with GDT.
10120 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
10121 Increase to suit in realmode routines.
10123 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10125 * grub-core/kern/i386/realmode.S: Increase alignment.
10126 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
10128 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10130 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
10132 (syndroms): Compute 0 syndrom.
10133 (rs_recover): Use 0 syndrom.
10135 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10137 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
10139 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10141 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
10144 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10146 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
10148 (get_top_pad): Likewise.
10149 (get_right_pad): Likewise.
10150 (get_bottom_pad): Likewise.
10152 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10154 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
10156 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10158 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
10159 attribute as the structure isn't guaranteed to be properly aligned.
10160 (grub_efi_pci_device_path): Likewise.
10161 (grub_efi_pccard_device_path): Likewise.
10162 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
10163 specify the size of `memory_type'.
10164 (grub_efi_vendor_device_path): Likewise.
10165 (grub_efi_controller_device_path): Likewise.
10166 (grub_efi_acpi_device_path): Likewise.
10167 (grub_efi_expanded_acpi_device_path): Likewise.
10168 (grub_efi_atapi_device_path): Likewise.
10169 (grub_efi_scsi_device_path): Likewise.
10170 (grub_efi_fibre_channel_device_path): Likewise.
10171 (grub_efi_1394_device_path): Likewise.
10172 (grub_efi_usb_device_path): Likewise.
10173 (grub_efi_usb_class_device_path): Likewise.
10174 (grub_efi_i2o_device_path): Likewise.
10175 (grub_efi_mac_address_device_path): Likewise.
10176 (grub_efi_ipv4_device_path): Likewise.
10177 (grub_efi_ipv6_device_path): Likewise.
10178 (grub_efi_infiniband_device_path): Likewise.
10179 (grub_efi_uart_device_path): Likewise.
10180 (grub_efi_vendor_messaging_device_path): Likewise.
10181 (grub_efi_hard_drive_device_path): Likewise.
10182 (grub_efi_cdrom_device_path): Likewise.
10183 (grub_efi_vendor_media_device_path): Likewise.
10184 (grub_efi_file_path_device_path): Likewise.
10185 (grub_efi_protocol_device_path): Likewise.
10186 (grub_efi_piwg_device_path): Likewise.
10187 (grub_efi_bios_device_path): Likewise.
10189 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10191 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
10192 (grub_ucs4_to_utf8_alloc): Likewise.
10193 (grub_ucs4_to_utf8): Likewise.
10194 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
10195 (grub_ucs4_to_utf8_alloc): Likewise.
10197 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10199 AFFS never uses unicode.
10201 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
10202 (grub_latin1_to_utf8): New inline function.
10203 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
10205 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10207 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
10210 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10212 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
10213 (grub_squash_dirent_header): Likewise.
10214 (read_chunk): Don't double swap.
10215 (grub_squash_iterate_dir): Fix swap sizes.
10217 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10219 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
10221 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10223 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
10224 (grub_hfs_iterate_dir): Likewise.
10226 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10228 Fix video on platforms where unaligned access is forbidden.
10229 Make several optimisations while on it.
10231 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
10232 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10233 (grub_video_fbblit_replace_32bit_1bit): Likewise.
10234 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
10236 (grub_video_fbblit_replace_16bit_1bit):
10237 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10238 (grub_video_fbblit_replace_8bit_1bit): Likewise.
10239 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
10240 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
10241 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
10242 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
10243 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
10244 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
10245 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
10246 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
10247 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
10248 (grub_video_fbblit_replace_index_RGB888): Likewise.
10249 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
10250 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
10251 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
10252 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
10253 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
10254 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
10255 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
10257 (grub_video_fbblit_blend_XXX565_1bit):
10258 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10259 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
10260 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
10262 * grub-core/video/fb/video_fb.c (common_blitter)
10263 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
10264 (grub_video_fb_create_render_target_from_pointer)
10265 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10266 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
10267 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
10269 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
10271 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10273 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
10274 HH22 and HM10 relocations.
10276 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10278 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
10280 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10282 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
10283 allocation succeeded.
10285 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10287 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
10288 argument a u8 pointer. All users updated.
10289 Handle unaligned buffers.
10291 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10293 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
10294 add_part to workaround compiler bug.
10296 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10298 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
10300 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10302 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
10303 Reserve alignment invariants.
10304 (grub_multiboot_load): Likewise.
10305 (retrieve_video_parameters): Likewise.
10306 (grub_multiboot_make_mbi): Likewise.
10308 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10310 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
10313 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10315 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
10316 (grub_pata_pio_write): Likewise.
10318 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10320 Add noreturn attributes and remove unreachable code.
10322 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
10324 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
10325 code. Mark as noreturn.
10326 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
10327 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
10328 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
10330 * grub-core/kern/main.c (grub_main): Mark as noreturn.
10331 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
10332 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
10333 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
10334 * include/grub/kernel.h (grub_main): Mark as noreturn.
10335 * include/grub/reader.h (grub_rescue_run): Likewise.
10337 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10339 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
10340 redundant declaration.
10342 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10344 * include/grub/net.h (grub_net_network_level_interfaces): Remove
10345 redundant declaration.
10346 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
10348 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10350 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
10351 to ensure alignment.
10352 (grub_hdparm_print_identify): Make argument uint16 * to ensure
10353 alignment. Ensure tmp alignment.
10354 (grub_cmd_hdparm): Ensure buf alignment.
10355 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
10356 to ensure alignment.
10357 (grub_ata_dumpinfo): Ensure text alignment.
10358 (grub_atapi_identify): Preserve alignment invariant.
10359 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
10361 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10363 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
10364 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
10365 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
10366 * include/grub/misc.h (grub_reboot)
10367 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
10368 (grub_halt) [__mips__]: Likewise.
10370 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10372 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
10373 Remove redundant declaration.
10374 (grub_mmap_get_post64): Likewise.
10375 (grub_mmap_get_upper): Likewise.
10376 (grub_mmap_get_lower): Likewise.
10378 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10380 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
10381 uint32_t * to ensure alignment.
10382 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
10384 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10386 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
10387 uint16_t * to ensure alignment.
10388 (sun_pc_partition_map_iterate): Make `block' a union to ensure
10391 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10393 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
10394 to ensure alignment.
10395 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
10397 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10399 * grub-core/fs/ntfs.c (u16at): Make into inline function.
10400 Handle unaligned pointers.
10403 (fixup): Use byte access instead of v16at.
10404 (find_attr): Fix imporper usage of v32at.
10405 (read_data): Likewise.
10406 (list_file): Handle byte-swapping and unaligned strings.
10407 (grub_ntfs_label): Likewise.
10409 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10411 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
10412 as it's not necessarily aligned.
10414 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10416 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
10417 redundant declaration.
10418 (grub_serial_init): Likewise.
10419 (grub_terminfo_init): Likewise.
10421 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10423 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
10425 (ZAP_HASH_IDX): Likewise.
10426 (ZAP_LEAF_HASH_SHIFT): Likewise.
10427 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
10428 (LEAF_HASH): Likewise.
10429 (ZAP_LEAF_NUMCHUNKS): Likewise.
10430 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
10431 alignment invariants. Return pointer. All users updated.
10432 (ZAP_LEAF_ENTRY): Make into inline function.
10435 (xor_out): Use grub_crypto_xor.
10436 (dnode_get_path): Use grub_get_unaligned.
10437 (nvlist_find_value): Likewise.
10438 (grub_zfs_nvlist_lookup_uint64): Likewise.
10439 (grub_zfs_nvlist_lookup_string): Likewise.
10440 (get_nvlist_size): Likewise.
10441 (grub_zfs_open): Likewise.
10442 (fill_fs_info): Likewise.
10443 (grub_zfs_dir): Likewise.
10444 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
10445 alignment invariants.
10446 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
10447 necessarily aligned.
10449 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10451 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
10453 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10455 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
10456 arithmetic to conserve alignment invariants.
10458 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10460 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
10461 redundant declaration.
10462 (grub_efiemu_mm_obtain_request): Likewise.
10463 (grub_efiemu_prepare): Likewise.
10465 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10467 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
10470 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10472 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
10473 case of aunaligned recptr.
10474 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
10476 (grub_hfsplus_btree_search): Handle unaligned index.
10478 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10480 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
10481 to get freetag and skip.
10483 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10485 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
10487 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
10488 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
10490 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10492 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
10493 name for checksum and fix allocation algorithm.
10495 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10497 * include/grub/types.h (grub_properly_aligned_t): New type.
10498 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
10499 (grub_get_unaligned16): Add explicit casts.
10500 (grub_get_unaligned32): Likewise.
10501 (grub_get_unaligned64): Likewise.
10502 (grub_set_unaligned16): New function.
10503 (grub_set_unaligned32): Likewise.
10505 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10507 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
10509 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10511 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
10512 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
10513 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
10515 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10517 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
10520 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10522 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
10523 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
10525 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10527 Unify and improve RAID and crypto xor.
10529 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
10530 changed to grub_crypto_xor
10531 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
10532 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
10533 Use bigger types when possible.
10535 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10537 * grub-core/disk/raid.c (scan_devices): Fix condition.
10539 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10541 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
10542 Make name a const ptr.
10544 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10546 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
10547 first argument a const pointer.
10548 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
10549 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
10551 (grub_children_iterate): Likewise.
10552 (grub_machine_mmap_iterate): Remove redundant declaration.
10554 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10556 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
10557 (grub_cmd_acpi) [!x86]: Disable EBDA.
10559 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10561 Enable UTF8 in gnulib regexp.
10563 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
10564 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
10565 (isupper): Use grub_isupper.
10566 (isascii): New inline function.
10567 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
10568 * grub-core/lib/posix_wrap/wctype.h: Likewise.
10569 * grub-core/normal/charset.c (grub_utf8_process): New function.
10570 (grub_utf8_to_utf16): Use grub_utf8_process.
10571 (grub_encode_utf8_character): New function.
10572 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
10573 * include/grub/charset.h (grub_utf8_process): New declaration.
10574 (grub_encode_utf8_character): Likewise.
10575 * include/grub/misc.h (grub_islower): New inline function.
10576 (grub_isupper): Likewise.
10577 (grub_strchrsub): Moved down to fix the definitions.
10579 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10581 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
10584 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10586 * include/grub/loader.h (grub_loader_register_preboot_hook):
10587 Use struct preboot * and not void * for handle. All users updated.
10588 (grub_loader_unregister_preboot_hook): Likewise.
10590 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10592 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
10593 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
10594 UTF-16-BE. All users updated.
10595 (grub_hfsplus_cmp_catkey): Fix unicode handling.
10596 (grub_hfsplus_iterate_dir): Likewise.
10597 (grub_hfsplus_label): Likewise.
10599 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10601 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
10603 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
10605 Add missing const qualifiers.
10607 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
10608 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
10609 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
10610 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
10611 (grub_lvm_check_flag): Likewise.
10612 * grub-core/efiemu/i386/coredetect.c
10613 (grub_efiemu_get_default_core_name): Likewise
10614 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10615 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
10616 * grub-core/fs/ntfs.c (fixup): Likewise.
10617 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
10618 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
10619 (fzap_lookup): Likewise.
10620 (zap_lookup): Likewise.
10621 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
10622 * grub-core/lib/legacy_parse.c (check_option): Likewise.
10623 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
10624 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
10625 (grub_freebsd_add_meta_module): Likewise.
10626 (grub_cmd_freebsd_module): Likewise.
10627 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
10628 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
10629 (grub_xnu_writetree_get_size): Likewise.
10630 (grub_xnu_writetree_toheap_real): Likewise.
10631 (grub_xnu_find_key): Likewise.
10632 (grub_xnu_create_key): Likewise.
10633 (grub_xnu_create_value): Likewise.
10634 (grub_xnu_register_memory): Likewise.
10635 (grub_xnu_check_os_bundle_required): Likewise.
10636 (grub_xnu_scan_dir_for_kexts): Likewise.
10637 (grub_xnu_load_kext_from_dir): Likewise.
10638 * grub-core/normal/color.c (color_list): Likewise.
10639 * grub-core/normal/completion.c (current_word): Likewise.
10640 * grub-core/normal/menu_entry.c (insert_string): Likewise.
10641 * grub-core/term/serial.c (grub_serial_find): Likewise.
10642 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
10643 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
10645 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
10646 (grub_freebsd_add_meta_module): Likewise.
10647 * include/grub/lib/arg.h (grub_arg_option): Likewise.
10648 * include/grub/net.h (grub_net_card_driver): Likewise.
10649 (grub_net_card): Likewise.
10650 (grub_net_app_protocol): Likewise.
10651 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
10652 * include/grub/serial.h (grub_serial_find): Likewise.
10653 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
10654 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
10655 (grub_xnu_create_value): Likewise.
10656 (grub_xnu_find_key): Likewise.
10657 (grub_xnu_scan_dir_for_kexts): Likewise.
10658 (grub_xnu_load_kext_from_dir): Likewise.
10660 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
10661 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
10662 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
10663 Moved from here ...
10664 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
10666 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
10668 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
10670 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
10672 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
10673 (read_device): Fix size calculation.
10675 2011-11-25 Robert Millan <rmh@gnu.org>
10677 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
10678 (find_root_device_from_libzfs): Add zpool output parser to be used
10679 as fallback when libzfs isn't available.
10681 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
10683 * po/Makefile.in.in: Add missing escape-continuation.
10685 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
10687 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
10689 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10691 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
10693 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10695 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
10697 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10699 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
10701 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10703 * grub-core/lib/adler32.c: Add missing license specification.
10704 * grub-core/lib/crc64.c: Likewise.
10705 * grub-core/loader/i386/pc/plan9.c: Likewise.
10706 * grub-core/partmap/plan.c: Likewise.
10708 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
10710 Add facility to debug GRUB with gdb under qemu.
10712 * grub-core/gdb_grub.in: New file.
10713 * grub-core/gmodule.pl.in: Likewise.
10714 * grub-core/Makefile.core.def (gmodule.pl): New script.
10715 (gdb_grub): Likewise.
10717 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10719 * util/grub-mount.c (argp_parser): Accept relative pathes.
10720 * util/grub-fstest.c (argp_parser): Likewise.
10722 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10726 * Makefile.util.def (libgrubmods): Add
10727 grub-core/partmap/plan.c.
10728 * docs/grub.texi: Notice Plan9 support.
10729 * grub-core/Makefile.core.def (plan9): New module.
10730 (part_plan): Likewise.
10731 * grub-core/loader/i386/pc/plan9.c: New file.
10732 * grub-core/partmap/plan.c: Likewise.
10733 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
10735 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
10736 * include/grub/mm.h (grub_extend_alloc): New inline function.
10738 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10740 Make Reed-Solomon faster by using power of generator representation of
10743 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
10744 (gf_double_t): Likewise.
10745 (gf_invert): Removed.
10746 (gf_powx): New array.
10747 (gf_powx_inv): Likewise.
10748 (scratch): Move higher.
10749 (gf_reduce): Removed.
10750 (gf_mul): Use powx.
10751 (gf_invert): Likewise.
10752 (init_inverts): Replaced with ...
10753 (init_powx): ...this. All users updated.
10754 (pol_evaluate): Replace multiplications with additions.
10755 (rs_encode): Likewise.
10756 (gauss_eliminate): Call gf_invert.
10757 (grub_reed_solomon_add_redundancy): Call init_powx.
10758 (grub_reed_solomon_recover): Call init_powx unconditionally.
10760 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10762 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
10764 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10766 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
10767 disk->partiton for safety.
10769 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10771 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
10773 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
10775 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10777 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
10779 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10781 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
10783 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10785 Fix spaces handling in proc/self/mountinfo.
10787 * util/getroot.c (unescape): New function.
10788 (grub_find_root_device_from_mountinfo): Use unescape.
10790 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10792 Support ZFS embedding.
10794 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
10795 (grub_zfs_fs): Register grub_zfs_embed.
10797 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10799 Fix MIPS compilation.
10801 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
10802 * include/grub/offsets.h: Rename decompressor fields from
10803 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
10804 * util/grub-mkimage.c (image_targets): Use new names.
10806 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10808 Defer multiboot device parsing until we're in compressed part.
10810 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
10811 bsd_part. setdevice has fallen into disuse.
10812 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
10813 (bsd_part): Likewise.
10814 (boot_dev): New variable.
10815 (multiboot_trampoline): Don't parse multiboot device.
10816 Pass multiboot device in %edx.
10817 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
10819 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
10821 * grub-core/kern/i386/pc/startup.S: Save edx.
10822 (grub_boot_drive): Removed.
10823 (grub_install_dos_part): Likewise.
10824 (grub_install_bsd_part): Likewise.
10825 (grub_boot_device): New variable.
10826 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
10827 (grub_install_bsd_part): Likewise.
10828 (grub_boot_drive): Likewise.
10829 (grub_boot_device): New variable.
10830 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
10832 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10833 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
10834 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
10835 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
10836 * util/grub-install.in: Remove redundant condition.
10838 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10840 Fix bug introduced by previous commit.
10842 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
10844 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10846 Use decompressors framework on i386-pc. It increases core size
10847 by 46 bytes but improves compatibility and maintainability.
10849 * grub-core/Makefile.core.def (lzma_decompress): New image.
10850 (kernel): Add i386_pc_ldflags.
10851 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
10852 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
10853 to real_to_prot, prot_to_real and device info.
10854 * include/grub/offsets.h: Renamed decompressor offsets.
10855 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
10856 (image_target_desc): Remove raw_size and rename decompressor fields.
10857 (compress_kernel): Handle lzma.
10858 (generate_image): Handle decompressors on i386-pc.
10860 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10862 * configure.ac: Add -fno-asynchronous-unwind-tables.
10864 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10866 Move assembly code to C by using intwrap. It increases core size
10867 by 88 bytes but improves compatibility and maintainability.
10869 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
10870 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
10871 ... here. Translated to C.
10872 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
10873 * grub-core/term/i386/pc/console.c (grub_console_getkey):
10874 ... here. Translated to C.
10875 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
10876 * grub-core/term/i386/pc/console.c (grub_console_getxy):
10877 ... here. Translated to C.
10878 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
10879 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
10880 ... here. Translated to C.
10881 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
10882 * grub-core/term/i386/pc/console.c (grub_console_cls):
10883 ... here. Translated to C.
10884 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
10885 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
10886 ... here. Translated to C.
10887 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
10888 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
10890 * grub-core/term/i386/pc/console.c (int10_9): New function.
10891 (grub_console_putchar): Likewise.
10892 * include/grub/i386/pc/console.h: Removed the not anymore shared
10895 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10897 Move grub_chainloader_real_boot out of the kernel.
10899 * grub-core/Makefile.am: Remove machine/loader.h.
10900 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10902 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
10904 (grub_relocator16_keep_a20_enabled): Likewise.
10905 (grub_relocator16_boot): Fill new variables.
10906 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
10907 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
10909 (grub_chainloader_unload): Likewise.
10910 (grub_chainloader_cmd): Likewise.
10911 * include/grub/i386/pc/loader.h: Removed.
10912 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
10913 and esi. All initialisers updated.
10915 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10916 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
10918 * Makefile.util.def (grub-mount): New util.
10919 * .bzrignore: Add grub-mount.
10920 * configure.ac: Check for fuse and enable grub-mount if available.
10921 * docs/man/grub-mount.h2m: New file.
10922 * util/grub-mount.c: Likewise.
10924 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10926 * grub-core/commands/efi/fixvideo.c: Gettextize.
10927 * grub-core/commands/hashsum.c: Likewise.
10928 * grub-core/commands/i386/cmostest.c: Likewise.
10929 * grub-core/commands/i386/pc/drivemap.c: Likewise.
10930 * grub-core/commands/i386/pc/lsapm.c: Likewise.
10931 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10932 * grub-core/commands/lsmmap.c: Likewise.
10933 * grub-core/commands/menuentry.c: Likewise.
10934 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
10935 * grub-core/commands/setpci.c: Likewise.
10936 * grub-core/loader/i386/bsd.c: Likewise.
10937 * grub-core/loader/i386/linux.c: Likewise.
10938 * util/getroot.c: Likewise.
10939 * util/grub-editenv.c: Likewise.
10940 * util/grub-fstest.c: Likewise.
10941 * util/grub-mkfont.c: Likewise.
10942 * util/grub-mkimage.c: Likewise.
10943 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10944 * util/grub-pe2elf.c: Likewise.
10945 * util/grub-probe.c: Likewise.
10946 * util/grub-setup.c: Likewise.
10947 * util/ieee1275/ofpath.c: Likewise.
10948 * util/misc.c: Likewise.
10949 * util/raid.c: Likewise.
10951 2011-11-11 Robert Millan <rmh@gnu.org>
10953 * util/getroot.c (grub_util_get_geom_abstraction): Remove
10954 __attribute__((unused)) from `os_dev', which *is* being used.
10956 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10958 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
10960 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
10961 GRUB_IA64_DL_GOT_ALIGN.
10962 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
10963 GRUB_IA64_DL_TRAMP_ALIGN.
10965 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10967 Replace grub_fatal with normal errors in i386 linux loader.
10969 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
10970 (allocate_pages): Check find_efi_mmap_size return value.
10971 (grub_e820_add_region): Return error.
10972 (grub_linux_boot): Check mmap return value.
10974 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10976 * grub-core/commands/acpihalt.c: Gettextized.
10977 * grub-core/commands/cacheinfo.c: Likewise.
10978 * grub-core/commands/cmp.c: Likewise.
10979 * grub-core/commands/efi/loadbios.c: Likewise.
10980 * grub-core/commands/gptsync.c: Likewise.
10981 * grub-core/commands/ieee1275/suspend.c: Likewise.
10982 * grub-core/commands/legacycfg.c: Likewise.
10983 * grub-core/commands/memrw.c: Likewise.
10984 * grub-core/commands/minicmd.c: Likewise.
10985 * grub-core/commands/parttool.c: Likewise.
10986 * grub-core/commands/time.c: Likewise.
10987 * grub-core/commands/videoinfo.c: Likewise.
10988 * grub-core/disk/geli.c: Likewise.
10989 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
10990 * grub-core/disk/luks.c: Likewise.
10991 * grub-core/disk/lvm.c: Likewise.
10992 * grub-core/font/font_cmd.c: Likewise.
10993 * grub-core/fs/zfs/zfscrypt.c: Likewise.
10994 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10995 * grub-core/gfxmenu/view.c: Likewise.
10996 * grub-core/kern/emu/hostdisk.c: Likewise.
10997 * grub-core/kern/emu/main.c: Likewise.
10998 * grub-core/kern/emu/misc.c: Likewise.
10999 * grub-core/kern/emu/mm.c: Likewise.
11000 * grub-core/kern/mips/arc/init.c: Likewise.
11001 * grub-core/kern/mips/loongson/init.c: Likewise.
11002 * grub-core/kern/partition.c: Likewise.
11003 * grub-core/lib/i386/halt.c: Likewise.
11004 * grub-core/lib/mips/arc/reboot.c: Likewise.
11005 * grub-core/lib/mips/loongson/reboot.c: Likewise.
11006 * grub-core/loader/i386/pc/chainloader.c: Likewise.
11007 * grub-core/loader/i386/xnu.c: Likewise.
11008 * grub-core/loader/multiboot.c: Likewise.
11009 * grub-core/net/bootp.c: Likewise.
11010 * grub-core/net/net.c: Likewise.
11011 * grub-core/normal/term.c: Likewise.
11012 * grub-core/partmap/bsdlabel.c: Likewise.
11013 * grub-core/parttool/msdospart.c: Likewise.
11014 * grub-core/term/gfxterm.c: Likewise.
11015 * grub-core/term/terminfo.c: Likewise.
11016 * grub-core/video/i386/pc/vbe.c: Likewise.
11017 * util/grub-menulst2cfg.c: Likewise.
11018 * util/grub-mkdevicemap.c: Likewise.
11019 * util/grub-mklayout.c: Likewise.
11020 * util/grub-mkrelpath.c: Likewise.
11021 * util/grub-script-check.c: Likewise.
11022 * util/ieee1275/grub-ofpathname.c: Likewise.
11023 * util/resolve.c: Likewise.
11025 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11027 Support %1$d syntax.
11029 * tests/printf_unit_test.c: New file.
11030 * Makefile.util.def (printf_test): New test.
11031 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
11033 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11035 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
11038 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11040 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
11042 * grub-core/font/font.c (grub_font_load): Likewise.
11044 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11046 * util/grub-macho2img.c: Add comment concerning gettext.
11047 * grub-core/lib/legacy_parse.c: Likewise.
11049 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11051 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
11052 (grub_xvasprintf): Likewise.
11054 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11056 Add const keyword to grub_env_get and gettextize week days.
11058 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
11059 (grub_read_hook_datetime): Return const char *.
11060 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
11062 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
11064 (grub_get_weekday_name): Return const char *. Call gettext.
11065 * grub-core/script/argv.c (grub_script_argv_append): Receive const
11066 char * and len as the argument. All users updated.
11067 (grub_script_argv_split_append): Receive const char *.
11068 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
11069 * include/grub/env.h (grub_env_get): Likewise.
11070 (grub_env_read_hook_t): Return const char *.
11071 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
11072 (grub_script_argv_split_append): Likewise.
11074 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11076 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
11078 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11080 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
11081 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
11083 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11085 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
11088 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11090 Fix mips compilation.
11092 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
11094 (hashes): Use in embed decoder as well (for sizes).
11095 (dec_stream_header): Fix embed decompressor logic.
11096 (dec_stream_footer): Likewise.
11098 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11100 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
11101 an error and not a fatal on unrecognised relocation types.
11103 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11105 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11106 Issue error rather than printf on unknown arguments.
11108 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11110 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
11113 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11115 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
11118 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11120 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
11121 leftover debug printf.
11123 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11125 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
11127 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11129 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
11132 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11134 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
11136 2011-11-10 Shea Levy <slevy@tieronedesign.com>
11138 Allow all modules to perform serial IO
11140 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
11141 * include/grub/serial.h (grub_serial_port_configure): New inline
11143 (grub_serial_port_fetch): Likewise.
11144 (grub_serial_port_put): Likewise.
11145 (grub_serial_port_fini): Likewise.
11146 (grub_serial_find): New proto.
11148 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11150 Put symlink at the end of the node and fix a potential
11153 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
11154 Make symlink into an array.
11155 (set_rockridge): Set have_symlink and alloc_dirents.
11156 (grub_iso9660_read_symlink): Use new layout.
11157 (grub_iso9660_iterate_dir): Fix memory corruption.
11159 (grub_iso9660_dir): Set have_symlink.
11160 (grub_iso9660_open): Likewise.
11162 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11164 Remove local keyword.
11166 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
11167 (version_test_gt): Likewise.
11168 (version_find_latest): Likewise.
11169 (gettext_printf): Likewise.
11170 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
11172 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11174 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
11176 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11178 Fix ZFS memory and resource leaks.
11180 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
11183 (fill_vdev_info): New parameter inserted. All users updated.
11184 (check_pool_label): Likewise.
11185 (scan_disk): Likewise.
11186 (scan_devices): Close non-inserted disks.
11187 (fzap_iterate): Free l.
11188 (unmount_device): Free children descripto memory.
11190 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11192 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
11193 argument (access out of bounds).
11195 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11197 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
11200 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11202 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
11205 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11207 Fix several memory leaks.
11209 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
11210 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
11211 (grub_cpio_dir): Likewise.
11212 * grub-core/fs/fat.c (grub_fat_label): Likewise.
11213 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
11214 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
11215 (grub_romfs_label): Likewise.
11216 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
11217 (squash_unmount): New function.
11218 (grub_squash_dir): Fix memory leak.
11219 (grub_squash_open): Likewise.
11220 (grub_squash_read): Likewise.
11221 (grub_squash_mtime): Likewise.
11222 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
11223 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
11224 * util/grub-fstest.c (fstest): Likewise.
11226 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11228 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
11229 avoid accessing beyond the array.
11231 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11233 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
11235 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11237 Several AFFS fixes.
11239 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
11240 (GRUB_AFFS_FLAG_FFS): Removed.
11241 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
11242 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
11243 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
11244 (grub_fshelp_node): Make block 32-bit.
11245 Add block_cache and last_block_cache.
11246 (grub_affs_read_block): Fill and use block cache.
11247 (grub_affs_read_file): Removed.
11248 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
11250 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
11252 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
11254 (grub_affs_close): Free block cache.
11255 (grub_affs_read): Use grub_fshelp_read_file directly.
11257 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11259 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
11262 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11264 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
11266 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11269 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11271 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
11273 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
11274 byteswap when needed.
11276 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11278 Fix FreeBSD compilation.
11280 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
11281 to avoid circular dependency.
11282 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
11283 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
11284 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
11286 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11288 Fix ZFS crypto error types.
11290 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
11291 (grub_gcm_decrypt): Likewise.
11292 (grub_zfs_load_key_real): Fix error code type. Handle possible error
11295 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11299 * Makefile.util.def (10_illumos): New script.
11300 * configure.ac: Set COND_HOST_ILLUMOS.
11301 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
11302 Support Illumos calls.
11303 (find_partition_start) [__sun__]: Likewise.
11304 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
11305 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
11306 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
11307 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
11309 * util/grub-probe.c (probe) [__sun__]: Do character check.
11310 * util/grub.d/10_illumos.in: New file.
11312 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11314 Support escaped commas in hostdisk.
11316 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
11317 (find_grub_drive): Use unescape_cmp.
11318 (make_device_name): Escape commas.
11320 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11322 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
11324 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11326 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
11329 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11331 Support trampoline jumps on powerpc.
11333 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
11335 (grub_dl_load_segments): Set mod->sz.
11336 (grub_dl_flush_cache): Flush whole space occupied by module, not just
11338 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
11340 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
11342 (trampoline): New struct.
11343 (trampoline_template): New const.
11344 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
11345 * include/grub/dl.h (grub_dl): Add sz element.
11346 [__powerpc__]: Follow __ia64__.
11347 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
11348 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
11349 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
11350 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
11352 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
11354 ZFS crypto support.
11356 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
11357 * grub-core/Makefile.core.def (zfscrypt): New module.
11358 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
11359 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
11360 it. All users updated.
11361 (grub_zfs_decrypt): New var.
11362 (grub_zfs_load_key): Likewise.
11363 (zio_checksum_functions): Add SHA256+MAC.
11364 (zio_checksum_verify): Handle incomplete comparison due to MAC.
11365 (zio_read): Handle encrypted blocks.
11366 (zap_verify): Remove incorrect check.
11367 (fzap_iterate): Handle non-standard fzap.
11368 (zap_iterate): Likewise.
11369 (zap_iterate_u64): New function.
11370 (dnode_get_fullpath): Load keys.
11371 * grub-core/fs/zfs/zfscrypt.c: New file.
11372 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
11373 (grub_crypto_ecb_encrypt): Make input const.
11374 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
11375 (grub_crypto_ecb_encrypt): Make input const.
11376 (GRUB_CIPHER_AES): New macro.
11377 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
11378 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
11379 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
11380 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
11381 prefix. All users updated.
11382 (grub_zfs_add_key): New proto.
11383 (grub_zfs_decrypt): Likewise.
11384 (grub_zfs_load_key): Likewise.
11385 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
11386 * util/grub-fstest.c (options): Add -K option.
11387 (argp_parser): Likewise.
11389 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
11391 Support zle compression on ZFS.
11393 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
11394 (decomp_table): Add zle.
11395 * include/grub/zfs/zio.h (zio_compress): Add zle.
11397 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
11399 Support BtrFS embedding.
11401 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
11402 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
11403 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
11404 * util/grub-setup.c (setup): Use fs embedding if available.
11405 Add additional sanity check.
11407 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
11409 * util/grub-install.in: Fix condition for config_opt.
11411 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11413 Support third redundancy strip on raidz3.
11415 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
11416 Return error on singularity. All users updated.
11417 (read_device): Don't stop on 3rd failure on raidz3.
11419 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11421 Support case-insensitive ZFS subvolumes.
11423 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
11425 (zap_hash): Likewise.
11426 (name_cmp): New function.
11427 (zap_leaf_array_equal): New parameter case_insensitive.
11429 (zap_leaf_lookup): Likewise.
11430 (fzap_lookup): Likewise.
11431 (zap_lookup): Likewise.
11432 (dnode_get_path): New parameter case_insensitive. Retrieve case
11433 sensitiviness of a volume. All users updated.
11434 (dnode_get_fullpath): New parameter case_insensitive.
11436 (grub_zfs_dir): Set info.case_insensitiveness.
11438 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11440 Support second redundancy strip on raidz(2,3).
11442 * grub-core/fs/zfs/zfs.c (powx): New array.
11443 (powx_inv): Likewise.
11445 (xor_out): New function.
11446 (gf_mul): Likewise.
11447 (recovery): Likewise.
11448 (read_device): Use second redundancy strip.
11450 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11452 Use a power of generator representation of GF(256) multiplication group
11453 to save space time and complexity.
11455 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
11456 (raid6_table2): Likewise.
11458 (powx_inv): Likewise.
11460 (grub_raid_block_mul): Replace with ...
11461 (grub_raid_block_mulx): ...this.
11462 (grub_raid6_init_table): Rewritten.
11463 (grub_raid6_recover): Use power of generator representation.
11465 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11467 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
11468 for the right device.
11470 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11472 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
11473 expected by grub-mkimage and it's more clear since there is no implicit
11476 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11478 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
11480 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
11482 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
11484 * util/grub-mkrescue.in: Fix handling xorriso option.
11486 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11488 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
11491 2011-11-03 crocket <crockabiscuit@gmail.com>
11493 * util/grub.d/10_linux.in: Add Slackware initrd naming.
11495 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11497 XZ CRC64 and SHA256 support.
11499 * Makefile.util.def (libgrubmods): Add crc64.c.
11500 * grub-core/Makefile.core.def (crc64): New module.
11501 * grub-core/lib/crc64.c: New file.
11502 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
11503 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
11505 (MAX_HASH_SIZE): New define.
11506 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
11507 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
11508 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
11509 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
11510 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
11511 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
11512 Handle non-crc32 hashes.
11513 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
11514 (dec_stream_header): Handle non-crc32 hashes.
11515 (dec_stream_footer): Likewise.
11516 (dec_block_header): Likewise.
11517 (dec_main): Likewise.
11518 (xz_dec_init): Likewise.
11519 (xz_dec_reset): Likewise.
11520 (xz_dec_end): Likewise.
11521 * util/import_gcry.py: Add CRC64 line.
11523 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11525 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
11528 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11530 Make reiserfs label retrieval similar to other *_label functions.
11532 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
11533 (REISERFS_MAX_LABEL_LENGTH): Removed.
11534 (REISERFS_LABEL_OFFSET): Likewise.
11535 (grub_reiserfs_label): Rewritten.
11537 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11539 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
11542 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11544 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
11546 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11548 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
11549 drive failure on both raidz and raidz2.
11551 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11553 Fix RAIDZ(2) for >= 5 devices.
11555 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
11556 asize argument. All users updated.
11558 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
11562 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
11563 (fill_vdev_info_real): Set ashift.
11564 (read_device): Rewrite RAIDZ part based on reverse engineering.
11566 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11568 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
11569 don't report potentially unavialiable fields in debug output.
11570 (find_path): Fix double-free and memory leak.
11572 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11574 Read label on UFS1.
11576 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
11577 (grub_ufs_fs): Always set .label.
11579 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11583 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
11584 (grub_ufs_data): New field log2_blksz.
11585 (grub_ufs_read_file): Use shifts.
11586 (grub_ufs_mount): Check block size and logarithm it.
11588 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11590 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
11593 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11595 Handle symlinks and long names on tar and cpio.
11597 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
11598 (ATTR_FILE): Likewise.
11599 (ATTR_DIR): Likewise.
11600 (ATTR_LNK): Likewise.
11601 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
11602 (grub_cpio_find_file): Fill mode, handle linkname field as well as
11604 (grub_cpio_mount): Zero-fill data.
11605 (handle_symlink): New function.
11606 (grub_cpio_dir): Handle symlinks.
11607 (grub_cpio_open): Likewise.
11608 (grub_cpio_close) [MODE_USTAR]: Free linkname.
11610 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11612 Fix iso9660 filename limitations and fix memory leaks.
11614 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
11615 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
11617 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11619 Fix JFS file name length limitations.
11621 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
11622 (grub_jfs_diropen): Fix maximum filename length.
11623 (grub_jfs_getent): Fix filename length.
11624 (grub_jfs_lookup_symlink): Fix size checks.
11626 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11628 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
11631 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11633 Leverage BFS implementation to read AFS.
11635 * Makefile.util.def (libgrubmods): Add afs.c.
11636 * grub-core/Makefile.core.def (afs): New module
11637 * grub-core/fs/afs.c: New file.
11638 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
11640 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11642 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
11644 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11646 * grub-core/fs/bfs.c: Run indent.
11648 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11650 BFS implementation based on the specification.
11652 * grub-core/fs/bfs.c: New file.
11653 * Makefile.util.def (libgrubmods): Add bfs.c.
11654 * grub-core/Makefile.core.def (bfs): New module.
11656 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11658 * util/grub-fstest.c (cmd_cp): Clarify error message.
11659 (cmd_cmp): Likewise.
11661 2011-10-30 Yves Blusseau <blusseau@zetam.org>
11663 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
11666 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
11668 Remove afs and befs because of copyright problem.
11670 * grub-core/fs/afs.c: Removed.
11671 * grub-core/fs/afs_be.c: Removed.
11672 * grub-core/fs/befs.c: Removed.
11673 * grub-core/fs/befs_be.c: Removed.
11674 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
11675 * grub-core/Makefile.core.def (afs): Removed.
11676 (afs_be): Likewise.
11678 (befs_be): Likewise.
11680 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11682 Prefer rockridge over Joliet.
11684 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
11686 (set_rockridge): ... here.
11687 (grub_iso9660_mount): Check rockridge on the primary label when
11688 discovering. Ignore Joliet if Rockridge is present.
11690 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11692 Use shifts in nilfs2.
11694 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
11695 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
11696 (grub_nilfs2_palloc_entries_per_group): Replace with ...
11697 (grub_nilfs2_log_palloc_entries_per_group): ... this.
11698 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
11699 (grub_nilfs2_entries_per_block): Replaced with ...
11700 (grub_nilfs2_log_entries_per_block_log): ... this.
11701 (grub_nilfs2_blocks_per_group): Replaced with ...
11702 (grub_nilfs2_blocks_per_group_log): ... this.
11703 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
11704 (grub_nilfs2_blocks_per_desc_block_log): ... this.
11705 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
11706 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
11707 (grub_nilfs2_palloc_entry_offset): Replaced ...
11708 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
11709 (grub_nilfs2_dat_translate): Use shifts.
11710 (grub_nilfs2_read_inode): Likewise.
11711 (GRUB_MOD_INIT): Ensure that logs are correct.
11713 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11715 Use shifts in minix filesystem.
11717 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
11718 (GRUB_MINIX_ZONE2SECT): Likewise.
11719 (grub_minix_data): Replace block_size with log_block_size.
11720 (grub_minix_read_file): Use shifts.
11721 (grub_minix_mount): Check block size and take a logarithm.
11723 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11725 Use shifts in squash4.
11727 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
11728 (squash_mount): Check block size and take logarithm.
11729 (direct_read): Use shifts.
11731 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11733 Correct befs block counting logic.
11735 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
11736 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
11737 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
11738 (grub_afs_read_inode): Use block_shift.
11739 (RANGE_SHIFT): New definition.
11740 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
11741 unexpected conditions, use shifts and appropriate types.
11742 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
11744 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11746 * grub-core/disk/raid.c (scan_devices): Check partition.
11747 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
11749 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11751 Support BFS (befs) UUID.
11753 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
11754 (grub_afs_small_data_element_header): New struct.
11755 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
11756 (grub_afs_read_attribute) [MODE_BFS]: New function.
11757 (grub_afs_iterate_dir): Allocate for complete inode.
11758 (grub_afs_mount): Likewise.
11759 (grub_afs_uuid) [MODE_BFS]: New function.
11760 (grub_afs_fs) [MODE_BFS]: Add .uuid.
11762 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11764 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
11765 (zfs_unmount): Fix memory leak.
11767 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11769 Support NTFS reparse points.
11771 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
11772 (symlink_descriptor): New struct.
11773 (grub_ntfs_read_symlink): New function.
11774 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
11775 (grub_ntfs_open): Likewise.
11777 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11779 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
11781 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11783 fstest xnu_uuid subcommand.
11785 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
11786 grub-core/commands/xnu_uuid.c.
11787 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
11788 (fstest): Handle xnu_uuid.
11789 (options): Document xnu_uuid.
11790 (argp_parser): Parse xnu_uuid.
11792 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11794 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
11795 -l argument. Add newline at the end if printing.
11796 (GRUB_MOD_INIT): Document -l.
11798 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11800 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
11802 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11804 ZFS multi-device and version 33 support.
11806 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
11807 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
11808 (grub_zfs_data): Add multidev-ice-related fields.
11809 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
11810 (dva_get_offset): Make dva const.
11811 (zfs_fetch_nvlist): New function.
11812 (fill_vdev_info_real): Likewise.
11813 (fill_vdev_info): Likewise.
11814 (check_pool_label): Likewise.
11815 (scan_disk): Likewise.
11816 (scan_devices): Likewise.
11817 (read_device): Likewise.
11818 (read_dva): Likewise.
11819 (zio_read_gang): Use read_dva.
11820 (zio_read_data): Likewise.
11821 (zap_leaf_lookup): Add missing endian conversion.
11822 (zap_verify): Add missing endian conversion. All users updated.
11823 (fzap_lookup): Likewise.
11824 (fzap_iterate): Likewise.
11825 (dnode_get_path): Handle SA bonus.
11826 (nvlist_find_value): Make input const. All users updated.
11827 (unmount_device): New function.
11828 (zfs_unmount): Use unmount_device.
11829 (zfs_mount): Use scan_disk.
11830 (zfs_mtime): New function.
11831 (grub_zfs_open): Handle system attributes.
11832 (fill_fs_info): Likewise.
11833 (grub_zfs_dir): Likewise.
11834 (grub_zfs_fs): Add mtime.
11835 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
11836 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
11837 (SA_MTIME_OFFSET): Likewise.
11838 (SA_SYMLINK_OFFSET): Likewise.
11839 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
11840 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
11841 (fstest): Support zfsinfo.
11842 (argp_parser): Likewise.
11844 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11846 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
11849 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11853 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
11854 sharing the same block. Iterate over correct number of indices.
11855 (dnode_get_path): Handle symlinks correctly.
11857 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11859 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
11861 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11863 Read label on HFS+.
11865 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
11866 (grub_hfsplus_btree_search): Fix types.
11867 (grub_hfsplus_label): Implement.
11869 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11871 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
11873 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11875 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
11877 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11879 Fix symlink handling on iso9660.
11881 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
11883 (grub_iso9660_susp_iterate): Accept zero-size iterate.
11884 (grub_iso9660_read_symlink): Moved most of code ...
11885 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
11887 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11889 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11890 Use union to avoid breaking strict-aliasing rules.
11892 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11894 Support multi-extent iso files.
11896 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
11898 (grub_fshelp_node): Revamp. All users updated.
11899 (FLAG_*): New enum.
11900 (read_node): New function.
11901 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
11903 (grub_iso9660_mount): Don't attempt to read sua when there is none.
11904 (get_node_size): New function.
11905 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
11907 Fix memory leak on . and ..
11908 (grub_iso9660_read): Use read_node.
11909 (grub_iso9660_close): Free node.
11911 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11913 Fix tar 4G limit and handle paths containing dot.
11915 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
11916 (canonicalize): New function.
11917 (grub_cpio_find_file): Use canonicalize. Store offs in
11919 (grub_cpio_dir): Use grub_disk_addr_t.
11920 (grub_cpio_open): Likewise.
11922 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11924 Fix handling of uncompressed blocks on squashfs and break 4G limit.
11926 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
11928 (grub_squash_inode): Add long_file and block_size.
11929 (grub_squash_cache_inode): New struct.
11930 (grub_squash_dirent): Make types into enum.
11931 (SQUASH_TYPE_LONG_REGULAR): New type.
11932 (grub_squash_frag_desc): Add field size.
11933 (SQUASH_BLOCK_FLAGS): New enum.
11934 (grub_squash_data): Use grub_squash_cache_inode.
11935 (grub_fshelp_node): Make ino_chunk 64-bit.
11936 (read_chunk): Minor argument change. All users updated.
11937 (squash_mount): Use correct le_to_cpu.
11938 (grub_squash_open): Handle LONG_REGULAR.
11939 (direct_read): New function.
11940 (grub_squash_read_data): Handle blocks correctly.
11942 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11944 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
11946 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11948 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
11950 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11952 Fix 2G limit on ZFS.
11954 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
11956 (uberblock_verify): Likewise.
11957 (dmu_read): Likewise.
11958 (grub_zfs_read): Likewise. Remove invalid cast.
11960 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11962 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
11963 (grub_jfs_blkno): Fix incorrect shift.
11964 (grub_jfs_read_file): Use more appropriate types.
11966 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11968 Support triple indirect on minix2 and minix3.
11970 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
11971 Declare triple_indir_zone.
11972 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
11975 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11979 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
11980 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
11981 Rename ctime to mtime. All users updated.
11982 (grub_minix_get_file_block): Fix types and double indirect computations.
11984 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11986 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
11987 if no label is found.
11988 (grub_fat_iterate_dir): Fix file size type.
11989 (grub_fat_iterate_dir): Likewise.
11991 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11993 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
11995 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
11996 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
11998 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12000 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
12002 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12004 * util/import_gcry.py: Accept space between # and include.
12006 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12008 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
12010 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12012 Fine grainely disable warnings on lexer. Remove Wno-error on it.
12014 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
12015 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
12017 * grub-core/script/yylex.l: Add fine-grained #pragma.
12019 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12021 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
12022 New inline function.
12023 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
12025 (memset) [GRUB_UTIL]: Likewise.
12026 (memcmp) [GRUB_UTIL]: Likewise.
12028 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12030 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
12031 inline function rather than a define.
12033 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12035 * util/grub-setup.c: Add missing include.
12037 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12039 * util/ieee1275/grub-ofpathname.c: Add missing include.
12041 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12043 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
12044 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
12047 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12049 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
12052 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12054 * util/grub-install.in: Add datarootdir as per automake manual
12056 * util/grub-mknetdir.in: Likewise.
12058 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12060 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
12062 * util/grub.d/10_kfreebsd.in: Likewise.
12063 * util/grub.d/10_linux.in: Likewise.
12064 * util/grub.d/10_netbsd.in: Likewise.
12065 * util/grub.d/10_windows.in: Likewise.
12066 * util/grub.d/20_linux_xen.in: Likewise.
12068 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
12070 Remove redundant grub_kernel_image_size.
12072 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
12074 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
12075 the small code. It moves it only by few bytes but simplifies the code.
12076 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
12078 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
12079 (grub_kernel_image_size): Removed.
12080 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
12081 (grub_kernel_image_size): Removed.
12082 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
12083 compiled with Apple toolchain.
12084 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
12085 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
12086 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
12087 (grub_total_module_size): Likewise.
12088 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
12090 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
12091 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
12092 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12093 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
12094 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
12095 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
12096 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
12097 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
12099 (grub_total_module_size): Removed.
12100 * util/grub-mkimage.c (image_target_desc): Remove image_size.
12101 (image_targets): Likewise.
12102 Set .compressed_size to no field on sparc.
12103 (generate_image): Remove kernel_image_size handling.
12105 2011-10-19 Szymon Janc <szymon@janc.net.pl>
12107 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
12108 NULL pointer dereference.
12110 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12112 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
12113 done with a dedicated section.
12115 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
12116 Ensure the correct position of boot_path.
12117 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
12118 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
12120 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
12121 * include/grub/boot.h: Removed. All references removed.
12122 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
12124 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
12126 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12128 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
12131 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12133 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
12135 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12137 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12138 Don't add the bogus brackets.
12140 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12144 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
12145 * grub-core/Makefile.core.def (exfat): New module.
12146 * grub-core/fs/exfat.c: New file.
12147 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
12148 (GRUB_FAT_ATTR_*): Make into an enum.
12149 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
12150 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
12151 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
12152 (GRUB_FAT_MAXFILE): Removed.
12153 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
12154 (grub_current_fat_bpb_t): New type.
12155 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
12156 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
12157 (grub_fat_dir_node_t): New type.
12158 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
12159 (fat_log2) [MODE_EXFAT]: Removed.
12160 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
12161 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
12162 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
12163 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
12164 (grub_fat_label) [MODE_EXFAT]: New function.
12165 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
12166 reserved_first_sector to 0.
12168 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12170 Move grub_reboot out of the kernel.
12172 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
12173 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
12174 * grub-core/lib/efi/reboot.c: ... here.
12175 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
12176 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12177 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
12178 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
12179 * grub-core/lib/i386/reboot_trampoline.S: ... here.
12180 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
12181 * grub-core/lib/ieee1275/reboot.c: ... here.
12182 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
12183 * grub-core/lib/mips/arc/reboot.c: ... here.
12184 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
12185 * grub-core/lib/mips/loongson/reboot.c: ...here.
12186 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
12187 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
12188 * include/grub/emu/misc.h (grub_reboot): New function declaration.
12189 * include/grub/i386/reboot.h: New file.
12190 * include/grub/mips/loongson/ec.h: Fix includes.
12191 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
12192 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
12193 * grub-core/lib/i386/reboot.c: New file.
12195 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
12197 Make grub_prefix into module to fix the arbitrary limit and save
12200 * grub-core/kern/emu/main.c (grub_prefix): Removed.
12201 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
12202 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
12203 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
12204 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
12205 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
12206 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
12207 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
12208 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
12209 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
12210 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
12211 * include/grub/ia64/efi/kernel.h: Removed.
12212 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
12213 (grub_prefix): Removed.
12214 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
12215 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
12216 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
12217 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
12218 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
12219 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
12220 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
12221 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
12222 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
12223 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
12224 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12225 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12226 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12227 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12228 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
12229 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
12230 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
12231 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12232 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
12233 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
12234 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
12235 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
12236 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
12237 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
12238 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
12239 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
12240 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
12241 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
12242 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
12244 * util/grub-mkimage.c (image_target_desc): Removed prefix and
12246 (image_targets): Likewise.
12247 (generate_image): Put prefix as a module.
12249 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12251 Replace grub_module_iterate with FOR_MODULES.
12253 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
12254 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
12255 (grub_efi_modules_addr): ...this.
12256 * grub-core/kern/efi/init.c (grub_modbase): New variable.
12257 (grub_efi_init): Set grub_modbase.
12258 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
12259 (grub_modbase): New variable.
12260 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
12261 (grub_modbase): New variable.
12262 (grub_machine_init): Set grub_modbase.
12263 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
12264 (grub_modbase): New variable.
12265 (grub_machine_init): Set grub_modbase.
12266 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
12267 (grub_modbase): New variable.
12268 (grub_machine_init): Set grub_modbase.
12269 * grub-core/kern/main.c (grub_module_iterate): Remove.
12270 (grub_modules_get_end): Use grub_modbase.
12271 (grub_load_modules): Use FOR_MODULES.
12272 (grub_load_config): Likewise.
12273 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
12274 (grub_modbase): New variable.
12275 (grub_machine_init): Set grub_modbase.
12276 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
12277 (grub_modbase): New variable.
12278 (grub_machine_init): Set grub_modbase.
12279 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
12281 (grub_modbase): New variable.
12282 (grub_machine_init): Set grub_modbase.
12283 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
12284 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
12285 (grub_module_iterate): Likewise.
12286 (grub_modbase): New variable declaration.
12287 (FOR_MODULES): New macro.
12289 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12291 * configure.ac: Check for __ctzdi2 and __ctzsi2.
12292 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
12294 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12296 Fix few obvious type discrepancies.
12298 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
12299 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
12300 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
12302 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
12303 and connected types.
12304 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
12306 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
12307 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
12308 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
12309 and connected types.
12311 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12313 Fix python 3.x incompatibilities.
12315 * gentpl.py: Put brackets around print strings.
12316 * util/import_gcry.py: Open explicitly as utf-8.
12317 Use in instead of has_key.
12319 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12321 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
12322 (GRUB_XFS_INO_AGBITS): Make into inline function.
12323 (GRUB_XFS_INO_INOINAG): Likewise.
12324 (GRUB_XFS_INO_AG): Likewise.
12325 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
12326 (GRUB_XFS_EXTENT_OFFSET): Likewise.
12327 (GRUB_XFS_EXTENT_BLOCK): Likewise.
12328 (GRUB_XFS_EXTENT_SIZE): Likewise.
12329 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
12330 (GRUB_XFS_NEXT_DIRENT): Likewise.
12331 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
12332 (grub_xfs_read_file): Fix offset type.
12334 2011-10-15 Robert Millan <rmh@gnu.org>
12336 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
12338 2011-10-15 Robert Millan <rmh@gnu.org>
12340 Fix build problem on FreeBSD and GNU/kFreeBSD.
12342 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
12344 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
12346 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
12348 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
12350 (grub_hfsplus_btree_recoffset): Likewise.
12351 (grub_hfsplus_btree_recptr): Likewise.
12352 (grub_hfsplus_find_block): Likewise.
12353 (grub_hfsplus_btree_search): Likewise.
12354 (grub_hfsplus_read_block): Likewise.
12355 (grub_hfsplus_read_file): Likewise.
12356 (grub_hfsplus_mount): Likewise.
12357 (grub_hfsplus_btree_iterate_node): Likewise.
12358 (grub_hfsplus_btree_search): Likewise.
12359 (grub_hfsplus_iterate_dir): Likewise.
12360 (grub_hfsplus_read): A small code simplification.
12362 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
12364 * grub-core/kern/emu/hostdisk.c
12365 (convert_system_partition_to_system_disk): Don't assume that children
12366 of mapper nodes are mapper nodes.
12368 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
12370 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
12371 * include/grub/misc.h (grub_isxdigit): New function.
12372 * grub-core/video/colors.c (my_isxdigit): Removed. All users
12373 switched to grub_isxdigit.
12374 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
12375 number starting with a letter.
12377 2011-10-09 Robert Millan <rmh@gnu.org>
12379 LVM support for FreeBSD and GNU/kFreeBSD.
12381 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
12383 (LVM_DEV_MAPPER_STRING): Move from here ...
12384 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
12385 * util/getroot.c: Include `<grub/util/lvm.h>'.
12386 (grub_util_get_dev_abstraction): Enable
12387 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
12388 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
12389 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
12390 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
12392 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
12394 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
12395 when LVM abstraction is required for ${GRUB_DEVICE}.
12397 2011-10-06 Szymon Janc <szymon@janc.net.pl>
12399 Add support for LZO compression in GRUB:
12400 - import of minilzo library,
12401 - LZO decompression for btrfs,
12402 - lzop files decompression.
12404 * grub-core/io/lzopio.c: New file.
12405 * grub-core/lib/adler32.c: Likewise.
12406 * grub-core/lib/minilzo/lzoconf.h: Likewise.
12407 * grub-core/lib/minilzo/lzodefs.h: Likewise.
12408 * grub-core/lib/minilzo/minilzo.c: Likewise.
12409 * grub-core/lib/minilzo/minilzo.h: Likewise.
12410 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
12411 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
12412 grub-core/lib/minilzo/minilzo.c to common.
12413 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
12414 cflags in cppflags.
12415 * grub-core/Makefile.core.def (btrfs): Likewise.
12416 * grub-core/Makefile.core.def (lzopio): New module.
12417 (adler32): Likewise.
12418 * grub-core/fs/btrfs.c: Include minilzo.h.
12419 (GRUB_BTRFS_COMPRESSION_LZO): New define.
12420 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
12421 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
12422 (grub_btrfs_lzo_decompress): New function.
12423 (grub_btrfs_extent_read): Add support for LZO compression type.
12424 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
12425 (GRUB_USHRT_MAX): Likewise.
12426 (GRUB_UINT_MAX): Likewise.
12427 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
12428 (UINT_MAX): Likewise.
12429 (CHAR_BIT): Likewise.
12430 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
12431 grub-core/lib/posix_wrap/limits.h
12432 (UCHAR_MAX): Likewise.
12433 * include/grub/file.h (grub_file_filter_id): New compression filter
12434 GRUB_FILE_FILTER_LZOPIO.
12435 * include/grub/file.h (grub_file_filter_id): Set
12436 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
12437 * include/grub/types.h (grub_get_unaligned16): New function.
12438 (grub_get_unaligned32): Likewise.
12439 (grub_get_unaligned64): Likewise.
12440 * util/import_gcry.py (cryptolist): Add adler32.
12442 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
12444 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
12445 in perspective decreases the complexity of build system and fixes
12446 compilation right now.
12448 2011-10-01 Ales Nesrsta <starous@volny.cz>
12450 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
12451 (fixed problem related to using UHCI with coreboot).
12453 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
12455 * gentpl.py: Use Autogen macros so that the output template file
12456 (Makefile.tpl) size is reduced.
12458 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
12460 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
12463 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12465 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
12466 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
12468 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12470 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
12473 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12475 Remove extra declaration of sleep for mingw32.
12477 * util/misc.c (sleep) [__MINGW32__]: Removed.
12478 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
12480 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
12482 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
12484 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
12486 (NETBSD_BTINFO_BOOTWEDGE): New definition.
12487 (grub_netbsd_btinfo_bootwedge): New struct.
12488 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
12490 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
12492 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
12494 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
12497 2011-09-28 Andreas Born <futur.andy@googlemail.com>
12499 Fix incorrect identifiers in bash-completion.
12501 * util/bash-completion.d/grub-completion.bash.in
12502 (_grub_mkpasswd-pbkdf2): Rename to ...
12503 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
12504 (_grub_script-check): Rename to ...
12505 (_grub_script_check): ... this. All users updated.
12507 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
12509 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
12510 Return 0 if disk isn't biosdisk.
12512 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
12514 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
12516 * Makefile.util.def (grub-fstest): Likewise.
12518 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
12520 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
12521 Get sector size from disk label.
12523 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
12525 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
12526 */README* as well as README*.
12527 Reported by: Axel Beckert.
12529 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12531 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
12532 case of less than 256 MiB of RAM.
12534 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12536 * grub-core/commands/wildcard.c (make_regex): Handle @.
12538 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12540 * util/grub-install.in: Move cryptodisk logic to appropriate place.
12542 2011-08-21 Szymon Janc <szymon@janc.net.pl>
12544 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
12545 AC_LANG_CONFTEST macros.
12547 2011-08-20 Szymon Janc <szymon@janc.net.pl>
12549 Add grub-fstest option to uncompress data for commands.
12551 * util/grub-fstest.c (uncompress): New var.
12552 (options): New option -u.
12554 2011-08-20 Szymon Janc <szymon@janc.net.pl>
12556 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
12557 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
12559 2011-08-20 Szymon Janc <szymon@janc.net.pl>
12561 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
12562 file type was not recognized correctly (not gzip or corrupted).
12564 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12566 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
12567 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
12569 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12571 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
12573 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12574 video_radeon_fuloong2e.
12575 * grub-core/video/radeon_fuloong2e.c: New file.
12576 * include/grub/video.h (grub_video_id_t): Add new ID
12577 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
12579 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12581 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
12583 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
12584 that PRID matches the detected subplatform and reset the subplatform
12587 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12589 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
12591 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12593 Fix PCI iterating on functions >= 4.
12595 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
12596 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
12598 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
12599 (grub_pci_read): Fix bitmask.
12600 (grub_pci_read_word): Likewise.
12601 (grub_pci_read_byte): Likewise.
12602 (grub_pci_write): Likewise.
12603 (grub_pci_write_word): Likewise.
12604 (grub_pci_write_byte): Likewise.
12606 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12608 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
12609 can still be specified in TARGET_CFLAGS)
12611 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12613 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
12615 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
12616 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
12617 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
12618 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
12619 (FULOONG): Rename to ...
12620 (FULOONG2F): ... this. All users updated.
12621 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
12622 (machtype_fuloong2f_str): ... this.
12623 (machtype_fuloong2e_str): New string.
12624 Check for machtype_fuloong2e_str.
12625 * grub-core/loader/mips/linux.c (loongson_machtypes)
12626 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
12627 * grub-core/term/serial.c (loongson_defserial)
12628 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
12629 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
12630 loongson_defserial.
12631 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
12633 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
12634 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
12635 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
12636 to IMAGE_FULOONG2F_FLASH. All users updated.
12637 (image_targets): Rename images.
12638 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
12640 2011-08-19 Szymon Janc <szymon@janc.net.pl>
12642 Make enable of disk cache statistics code configurable.
12644 * configure.ac: --enable-cache-stats added.
12645 * config.h.in (DISK_CACHE_STATS): New define.
12646 * grub-core/Makefile.core.def (cacheinfo): New command.
12647 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
12648 * grub-core/commands/cacheinfo.c: New file.
12649 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
12650 moved to cacheinfo.c.
12651 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
12653 * include/grub/disk.h: Likewise.
12655 2011-08-19 Szymon Janc <szymon@janc.net.pl>
12657 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
12658 * grub-core/Makefile.am: Likewise.
12660 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12662 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
12665 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12667 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
12669 (grub_jfs_lookup_symlink): Use correct starting inode.
12671 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12673 * util/grub-setup.c (main): Add missing gcry initialisation.
12675 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12677 Don't accept text modes on EFI when booting Linux.
12679 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
12680 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
12682 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
12683 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
12685 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
12686 use of "/path/.." as in grub-install for EFI as well as handling
12687 symlinks correctly.
12688 Fixes Debian bug #637768.
12690 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
12692 * util/grub-probe.c: Remove duplicate #include.
12694 2011-08-10 Robert Millan <rmh@gnu.org>
12696 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
12698 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
12700 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
12701 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
12703 2011-08-03 Robert Millan <rmh@gnu.org>
12705 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
12706 la_array as packed.
12707 Reported by: Zachary Bedell
12709 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
12711 * configure.ac: The Loongson port requires grub-mkfont due to its
12712 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
12715 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
12717 * util/grub-install.in: Don't source grub-mkconfig_lib until after
12718 processing arguments (otherwise help2man fails when GRUB has not yet
12721 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12723 New script grub-mkstandalone.
12725 * Makefile.util.def (grub-mkstandalone): New script.
12726 * docs/man/grub-mkstandalone.h2m: New file.
12727 * util/grub-mkstandalone.in: Likewise.
12729 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12731 Support ATA disks with 4K sectors.
12733 * include/grub/ata.h (grub_ata): New member log_sector_size.
12734 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
12735 (grub_ata_identify): Read sector size.
12736 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
12738 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12740 * util/grub-install.in: Don't use uhci outside of x86.
12742 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12744 * util/grub-mkrescue.in: Add missing quotes.
12746 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12748 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
12751 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12753 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
12755 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12757 * include/grub/video.h: add missing EXPORT_FUND on
12758 grub_video_edid_checksum and grub_video_edid_preferred_mode.
12760 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12762 * include/grub/mips/kernel.h: Fix define conflict.
12764 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12766 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
12769 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
12771 Preferred resolution detection for VBE.
12773 * grub-core/video/video.c (grub_video_edid_checksum): New function.
12774 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
12775 the Flat Panel extension, in line with the X.org VESA driver.
12776 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
12778 (grub_vbe_bios_get_ddc_capabilities): Likewise.
12779 (grub_vbe_bios_read_edid): Likewise.
12780 (grub_vbe_get_preferred_mode): Likewise.
12781 (grub_video_vbe_setup): When the mode is "auto", try to get the
12782 preferred mode from VBE, and use the largest mode that is no larger
12783 than the preferred mode (some BIOSes expose a preferred mode that is
12784 not in their mode list!). If this fails, fall back to 640x480 as a
12785 safe conservative choice.
12786 (grub_video_vbe_get_edid): New function.
12787 (grub_video_vbe_adapter): Add get_edid.
12788 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
12789 (struct grub_video_adapter): Add get_edid.
12790 (grub_video_edid_checksum): Add prototype.
12791 (grub_video_edid_preferred_mode): Likewise.
12792 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
12795 * grub-core/commands/videoinfo.c (print_edid): New function.
12796 (grub_cmd_videoinfo): Print EDID if available.
12798 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
12799 is more appropriate on a wider range of platforms than 640x480.
12800 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
12803 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12805 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
12807 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12809 * po/POTFILES.in: Regenerate.
12811 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12813 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
12814 incorrect memory usage.
12816 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12818 * util/grub-install.in: Source grub-mkconfig_lib.
12820 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12822 Remove getroot.c from core on emu platform.
12824 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
12826 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
12828 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
12829 * util/getroot.c (get_win32_path): ... here.
12830 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
12831 * util/getroot.c (fini_libzfs): ... here.
12832 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
12833 * util/getroot.c (grub_get_libzfs_handle): ... here.
12834 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
12836 * util/getroot.c (grub_find_zpool_from_dir): ... here.
12837 * grub-core/kern/emu/misc.c
12838 (grub_make_system_path_relative_to_its_root): Moved from here...
12839 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
12840 * grub-core/kern/emu/getroot.c: Moved from here ...
12841 * util/getroot.c: ... here. All users updated.
12842 * grub-core/kern/emu/raid.c: Moved from here ...
12843 * util/raid.c: ... here. All users updated.
12845 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12847 * po/POTFILES.in: Regenerate.
12849 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12851 Fix compilation on GNU/Linux.
12853 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
12855 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
12856 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
12857 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
12859 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12860 2011-07-07 Michael Gorven <michael@gorven.za.net>
12861 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
12863 LUKS and GELI support.
12865 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
12866 grub-core/disk/luks.c, grub-core/disk/geli.c,
12867 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
12868 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
12869 grub-core/lib/arg.c.
12870 (libgrubmods.a): Remove gcrypts cflags and cppflags.
12871 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
12872 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
12873 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
12874 (grub-bin2h): Add libgcry.a.
12875 (grub-mkimage): Likewise.
12876 (grub-mkrelpath): Likewise.
12877 (grub-script-check): Likewise.
12878 (grub-editenv): Likewise.
12879 (grub-mkpasswd-pbkdf2): Likewise.
12880 (grub-pe2elf): Likewise.
12881 (grub-fstest): Likewise.
12882 (grub-mkfont): Likewise.
12883 (grub-mkdevicemap): Likewise.
12884 (grub-probe): Likewise.
12885 (grub-ofpath): Likewise.
12886 (grub-mklayout): Likewise.
12887 (example_unit_test): Likewise.
12888 (grub-menulst2cfg): Likewise.
12889 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
12890 * grub-core/Makefile.core.def (cryptodisk): New module.
12893 * grub-core/disk/AFSplitter.c: New file.
12894 * grub-core/disk/cryptodisk.c: Likewise.
12895 * grub-core/disk/geli.c: Likewise.
12896 * grub-core/disk/luks.c: Likewise.
12897 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
12899 (grub_util_get_dm_abstraction): New function.
12900 (grub_util_follow_gpart_up): Likewise.
12901 (grub_util_get_geom_abstraction): Likewise.
12902 (grub_util_get_dev_abstraction): Use new functions.
12903 (grub_util_pull_device): Pull GELI and LUKS.
12904 (grub_util_get_grub_dev): Handle LUKS and GELI.
12905 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
12906 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
12907 (follow_geom_up): Removed.
12908 (grub_util_fd_seek): New function.
12909 (open_device): Use grub_util_fd_seek.
12910 (nread): Rename to ..
12911 (grub_util_fd_read): ... this. All users updated.
12912 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
12913 (grub_crypto_cbc_decrypt): Likewise.
12914 (grub_crypto_hmac_write): Likewise.
12915 (grub_crypto_hmac_buffer): Likewise.
12916 (grub_password_get): Extend to util.
12917 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
12918 New member modname.
12919 (gcry_md_spec) [GRUB_UTIL]: Likewise.
12920 * include/grub/cryptodisk.h: New file.
12921 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
12922 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
12924 (grub_util_follow_gpart_up): New proto.
12925 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
12926 (grub_util_fd_read): Likewise.
12927 (grub_cryptodisk_cheat_mount): Likewise.
12928 (grub_util_cryptodisk_print_uuid): Likewise.
12929 (grub_util_get_fd_sectors): Likewise.
12930 * util/grub-fstest.c (mount_crypt): New var.
12931 (fstest): Mount crypto if requested.
12932 (options): New option -C.
12933 (argp_parser): Parse -C.
12934 (main): Init and fini gcry.
12935 * util/grub-install.in: Support cryptodisk install.
12936 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
12937 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
12939 (prepare_grub_to_access_device): Likewise.
12940 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
12941 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
12942 (probe_cryptodisk_uuid): New function.
12943 (probe_abstraction): Likewise.
12944 (probe): Use new functions.
12945 * util/import_gcry.py: Create Makefile.utilgcry.def.
12946 Add modname member.
12948 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12950 Lazy device scanning.
12952 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
12953 (grub-setup): Remove util/raid.c.
12954 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
12955 * grub-core/disk/lvm.c (scan_depth): New variable.
12956 (grub_lvm_iterate): Rescan if necessary.
12957 (find_lv): New function based on grub_lvm_open.
12958 (grub_lvm_open): Use find_lv. Rescan on error.
12959 (is_node_readable): New function.
12960 (is_lv_readable): Likewise.
12961 (grub_lvm_scan_device): Skip already found disks.
12962 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
12963 Stop if searched device is found and readable.
12964 * grub-core/disk/raid.c (inscnt): New variable.
12965 (scan_depth): Likewise.
12966 (scan_devices): New function based on grub_raid_register. Abort if
12967 looked for device is found.
12968 (grub_raid_iterate): Rescan if needed.
12969 (find_array): NEw function based on -grub_raid_open.
12970 (grub_raid_open): Use find_array and rescan.
12971 (insert_array): Set became_readable_at.
12972 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
12973 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
12975 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
12976 (grub_util_pull_device): New function.
12977 (grub_util_get_grub_dev): Call grub_util_pull_device.
12978 * util/raid.c: Moved to ..
12979 * grub-core/kern/emu/raid.c: ... here.
12980 (grub_util_raid_getmembers): New parameter "bootable".
12981 All users updated. Support 1.x.
12982 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
12984 * include/grub/disk.h (grub_disk_pull_t): New enum.
12985 (grub_disk_dev): Change iterate prototype.
12987 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
12989 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
12990 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
12991 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
12992 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
12994 * include/grub/util/raid.h: Removed.
12996 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
12998 * po/POTFILES.in: Regenerate.
13000 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
13002 Unify sparc init with other ieee1275.
13004 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
13005 instead of kern/sparc64/ieee1275/init.c.
13006 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
13007 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
13008 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
13009 grub/machine/kernel.h.
13010 (grub_ieee1275_original_stack) [__sparc__]: New variable.
13011 (grub_claim_heap) [__sparc__]: Use sparc version.
13012 (grub_machine_init): Moved args parsing to
13013 (grub_parse_cmdline): ...this.
13014 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
13015 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
13017 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
13019 Move BOOTP to separate file.
13021 * grub-core/Makefile.core.def (net): Add net/bootp.c.
13022 * grub-core/net/net.c: Move all BOOTP functions to
13023 * grub-core/net/bootp.c: ... here.
13025 Use frame interface on PXE.
13027 * grub-core/Makefile.core.def (pxecmd): Removed.
13028 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
13029 * grub-core/commands/i386/pc/pxecmd.c: Removed.
13030 * grub-core/i386/pc/pxe.c: Moved from here ...
13031 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
13032 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
13033 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
13035 EFI network support.
13037 * grub-core/Makefile.core.def (efinet): New module.
13038 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
13040 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
13042 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
13043 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
13044 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
13045 * grub-core/net/drivers/efi/efinet.c: New file.
13046 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
13047 (grub_efi_net_config): New extern var.
13049 Various cleanups and bugfixes.
13051 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
13053 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
13054 disk declared as partition.
13055 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
13057 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
13058 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
13059 (grub_debug_zalloc): Likewise.
13060 (grub_debug_realloc): Likewise.
13061 (grub_debug_memalign): Likewise.
13062 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
13063 Check that target is IPv4.
13064 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
13065 local-mac-address as fallback.
13066 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
13068 * grub-core/net/ip.c (ipchksum): Rename to ...
13069 (grub_net_ip_chksum): ... this. All users updated.
13070 (grub_net_recv_ip_packets): Special handling for DHCP.
13071 * util/grub-mkimage.c (generate_image): Zero-out aout header.
13073 Unify prefix handling
13075 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
13076 (grub_machine_get_bootlocation): ... this.
13077 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
13078 (grub_machine_get_bootlocation): ... this.
13079 (grub_prefix): New variable.
13081 (root_dev): New variable.
13083 (main): Use new variables.
13084 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
13086 (grub_machine_get_bootlocation): ... this.
13087 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
13088 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
13089 (grub_machine_get_bootlocation): ... this.
13090 (grub_machine_set_prefix): Removed.
13091 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
13092 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
13094 (grub_machine_get_bootlocation): ... this.
13095 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
13096 (grub_set_prefix_and_root): ... this. All users updated.
13097 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
13099 (grub_machine_get_bootlocation): ... this.
13100 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
13101 (grub_machine_get_bootlocation): New proto.
13102 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
13104 Less intrusive and more reliable seek on network implementation.
13106 * grub-core/kern/file.c (grub_file_net_seek): Removed.
13107 (grub_file_seek): Don't call grub_file_net_seek.
13108 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
13109 (grub_net_fs_read_real): .. this.
13110 (grub_net_seek_real): Use net->offset.
13111 (grub_net_fs_read): Seek if necessary.
13113 Unify IEEE1275 netwotk config with the other platforms.
13115 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
13117 (grub_machine_get_bootlocation): Support network.
13118 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13119 Support type and device parsing.
13120 (grub_ieee1275_get_device_type): New function.
13121 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
13123 (grub_ieee1275_net_config_real): ... this.
13124 (grub_ofnet_probecards): Removed.
13125 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
13126 * include/grub/ieee1275/ofnet.h: Removed.
13127 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
13129 (grub_ieee1275_get_device_type): New function.
13131 Unify network device closing across platforms and make more robust.
13133 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
13135 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
13137 * grub-core/net/net.c (grub_net_network_level_interface_register):
13139 (grub_net_card_unregister): Close all interfaces.
13140 (receive_packets): Don't poll if no iterfaces are registered.
13142 (grub_net_fini_hw): New function.
13143 (grub_net_restore_hw): Likewise.
13144 (fini_hnd): New variable.
13145 (GRUB_MOD_INIT): Register preboot hook.
13146 (GRUB_MOD_FINI): Run and unregister preboot hook.
13148 Poll network cards when idle.
13150 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
13151 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
13152 * grub-core/net/net.c (receive_packets): Save last poll time.
13153 (grub_net_poll_cards_idle_real): New function.
13154 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
13155 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
13156 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
13158 Rename ofnet interfaces.
13160 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
13161 (grub_ofnet_findcards): Use ofnet_%s names.
13163 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
13165 Cleanup socket opening.
13167 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
13168 (grub_net_fs_close): Likewise.
13169 (grub_net_fs_read_real): Use eof member.
13170 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
13171 (+grub_net_udp_close): New inline function.
13173 * include/grub/net/tftp.h: Moved to the top of ...
13174 * grub-core/net/tftp.c: ... here.
13175 * include/grub/net/ip.h: Moved mostly to the top of ...
13176 * grub-core/net/ip.c: ... here.
13177 * include/grub/net/ethernet.h: Moved mostly to the top of ...
13178 * grub-core/net/ethernet.c: ... here.
13180 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
13182 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
13185 * include/grub/net/ip.h (ipv4_ini): Removed.
13186 (ipv4_fini): Likewise.
13188 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
13189 (grub_net_send_ip_packets): Likewise.
13191 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13193 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
13194 grub_read_cmos prototype.
13196 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13198 VGA text support in qemu-mips
13200 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
13201 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
13202 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
13204 * grub-core/kern/i386/qemu/init.c: Renamed to ...
13205 * grub-core/kern/vga_init.c: ... this.
13206 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
13207 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
13208 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
13210 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
13211 GRUB_MACHINE_PCI_IO_BASE.
13213 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13215 MIPS qemu flash support.
13217 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
13219 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
13220 (grub_machine_init): Probe memory if its size isn't known.
13221 * util/grub-mkimage.c (image_targets): Add flash targets.
13222 (generate_image): Handle flash targets.
13224 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13226 MIPS qemu at_keyboard support.
13228 * gentpl.py (videoinkernel): Add qemu-mips.
13229 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
13230 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
13231 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
13233 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
13234 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
13235 * grub-core/term/serial.c (grub_serial_register)
13236 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
13238 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13240 CMOS support on sparc.
13242 * gentpl.py (cmos): Add powerpc and sparc.
13243 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
13245 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
13246 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
13247 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
13248 grub_set_datetime_cmos.
13249 * grub-core/lib/ieee1275/cmos.c: New file.
13250 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
13251 (find_rtc): Set no_ieee1275_rtc on error.
13252 (grub_get_datetime): Call grub_get_datetime_cmos on error.
13253 (grub_set_datetime): Call grub_set_datetime_cmos on error.
13254 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
13255 fail. Move value to argument. All users updated
13256 (grub_cmos_write): Likewise.
13257 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
13258 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
13259 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
13260 grub_get_datetime_cmos and grub_set_datetime_cmos.
13262 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13264 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
13265 sourcing grub-mkconfig_lib.
13266 * util/update-grub_lib.in: Likewise.
13267 * util/grub.d/00_header.in: Likewise.
13268 * util/grub.d/10_hurd.in: Likewise.
13269 * util/grub.d/10_kfreebsd.in: Likewise.
13270 * util/grub.d/10_linux.in: Likewise.
13271 * util/grub.d/10_netbsd.in: Likewise.
13272 * util/grub.d/10_windows.in: Likewise.
13273 * util/grub.d/20_linux_xen.in: Likewise.
13274 * util/grub.d/30_os-prober.in: Likewise.
13276 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
13278 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
13279 default_bg_color rather than black.
13280 (grub_gfxterm_fullscreen): Likewise.
13281 (grub_gfxterm_background_color_cmd): Save new background color in
13284 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13286 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
13288 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13290 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
13293 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13295 Chainloading on coreboot support.
13297 * grub-core/Makefile.core.def (chain): Add coreboot.
13298 * grub-core/loader/i386/coreboot/chainloader.c: New file.
13300 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13302 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
13305 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13307 Implement time command.
13309 * grub-core/Makefile.core.def (time): New module.
13310 * grub-core/commands/time.c: New file.
13311 * grub-core/script/parser.y: Remove "time" keyword.
13312 * grub-core/script/yylex.l: Likewise.
13314 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13316 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
13318 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13320 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
13321 when handling leftovers.
13323 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13325 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
13326 so that help2man doesn't fail.
13328 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13330 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
13331 type in pointers on sparc64.
13332 (get_card_packet): Likewise.
13334 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
13336 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
13338 (grub_cmd_videoinfo): Fetch current video mode.
13340 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13342 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
13343 because of underlying system restrictions.
13345 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13347 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
13350 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13352 Coreboot video support.
13354 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
13356 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
13357 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
13359 * grub-core/kern/i386/int.S: ... here.
13360 * grub-core/video/i386/pc/vbe.c: Updated includes.
13361 * grub-core/video/i386/pc/vga.c: Likewise.
13362 * include/grub/i386/coreboot/memory.h
13363 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
13364 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
13365 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
13366 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
13367 Disable interrupts.
13368 * include/grub/i386/pc/vga.h: Removed. All users updated.
13370 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13372 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
13373 definitions for dprintf.
13374 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
13376 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13378 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
13380 (get_card_packet): Likewise.
13382 2011-06-26 Yves Blusseau <blusseau@zetam.org>
13384 Display the path of the file when file is not found
13386 * grub-core/fs/fat.c: Display the filename when file is not found.
13387 * grub-core/fs/fshelp.c: Likewise.
13388 * grub-core/fs/hfs.c: Likewise.
13389 * grub-core/fs/jfs.c: Likewise.
13390 * grub-core/fs/minix.c: Likewise.
13391 * grub-core/fs/ufs.c: Likewise.
13392 * grub-core/fs/btrfs.c: Likewise.
13393 * grub-core/commands/i386/pc/play.c: Likewise.
13395 2011-06-26 Szymon Janc <szymon@janc.net.pl>
13397 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
13398 pointer checks before calling grub_free().
13399 * grub-core/commands/wildcard.c (match_devices): Likewise.
13400 * grub-core/commands/wildcard.c (match_files): Likewise.
13401 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
13402 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
13403 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
13404 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
13405 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
13406 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
13407 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
13408 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
13409 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
13411 2011-06-25 Patrick <p55@mailinator.com>
13413 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
13415 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
13417 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
13418 (grub_pxe_send): Likewise.
13419 (GRUB_MOD_INIT): Fix types.
13421 2011-06-24 Szymon Janc <szymon@janc.net.pl>
13423 * grub-core/io/xzio.c: Fix code style issues
13425 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13426 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
13428 Network infrastructure.
13429 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
13431 * include/grub/net/arp.h: New file.
13432 * include/grub/net/device.h: Likewise.
13433 * include/grub/net/ethernet.h: Likewise.
13434 * include/grub/net/ip.h: Likewise.
13435 * include/grub/net/netbuff.h: Likewise.
13436 * include/grub/net/tftp.h: Likewise.
13437 * include/grub/net/udp.h: Likewise.
13438 * include/grub/ieee1275/ofnet.h: Likewise.
13439 * include/grub/emu/export.h: Likewise.
13440 * include/grub/net.h: Likewise.
13441 * grub-core/net/arp.c: Likewise.
13442 * grub-core/net/ethernet.c: Likewise.
13443 * grub-core/net/ip.c: Likewise.
13444 * grub-core/net/udp.c: Likewise.
13445 * grub-core/net/tftp.c: Likewise.
13446 * grub-core/net/netbuff.c: Likewise.
13447 * grub-core/net/net.c: Likewise.
13448 * grub-core/net/drivers/emu/emunet.c: Likewise.
13449 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
13450 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
13452 * grub-core/Makefile.core.def (net): New module.
13455 (emunet): Likewise.
13456 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
13458 * grub-core/kern/device.c (grub_net_open) : New variable.
13459 (grub_device_open): Handle network device.
13460 (grub_device_close): Likewise.
13461 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
13462 (grub_grubnet_fini): Likewise.
13463 (grub_file_seek): Seek in network device.
13464 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
13465 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
13467 (grub_machine_fini): Call grub_grubnet_fini.
13468 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
13470 (grub_ieee1275_get_aliasdevname): New function.
13471 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
13472 Add unofficial Solaris network info.
13473 (grub_multiboot_make_mbi): Likewise.
13474 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
13475 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
13476 * include/grub/device.h (grub_fs): Removed.
13477 * include/grub/err.h (grub_err_t): Add network-related values.
13478 * include/grub/i386/pc/pxe.h: Removed bootp parts.
13479 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
13480 (grub_ieee1275_get_aliasdevname): New proto.
13481 * include/grub/net.h: Rewritten.
13483 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13485 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
13488 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13490 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
13491 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
13492 it truncates the output.
13493 Reported by: Ximin Luo.
13495 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13497 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
13499 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13501 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
13502 partmap before abstraction.
13504 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
13506 * util/grub-mkconfig_lib.in: Add missing quotes.
13508 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13510 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
13511 old method if mountinfo would return /dev/root and /dev/root doesn't
13514 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13518 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
13519 (decomp_table): Add zlib entries.
13520 (zio_read): USe 8 bits for compression function rather than 3.
13521 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
13523 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13525 * grub-core/disk/ahci.c: Add missing license statements.
13526 * grub-core/fs/romfs.c: Likewise.
13527 * grub-core/lib/ia64/setjmp.S: Likewise.
13528 * grub-core/loader/i386/pc/freedos.c: Likewise.
13529 * grub-core/loader/ia64/efi/linux.c: Likewise.
13530 * grub-core/video/colors.c: Likewise.
13531 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
13533 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13537 * grub-core/Makefile.core.def (ata_pthru): Removed.
13538 (ahci): New module.
13540 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
13542 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
13544 (grub_hdparm_do_check_powermode_cmd): Likewise.
13545 (grub_hdparm_do_smart_cmd): Likewise.
13546 (grub_hdparm_set_val_cmd): Likewise.
13547 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
13548 * grub-core/disk/ahci.c: New file.
13549 * grub-core/disk/ata.c: Factor out the low-level part into ...
13550 * grub-core/disk/pata.c: ... here.
13551 * grub-core/disk/ata_pthru.c: Contents moved to ...
13552 * grub-core/disk/pata.c: ... here.
13553 * grub-core/disk/scsi.c (grub_scsi_names): New array.
13554 (grub_scsi_iterate): Use grub_scsi_names.
13555 (grub_scsi_open): Likewise.
13556 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
13557 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
13558 (grub_ata_regs_t): New struct.
13559 (grub_disk_ata_pass_through_parms): Likewise.
13560 (grub_ata_device): Renamed to ...
13561 (grub_ata): ... this.
13562 (grub_ata_dev): New struct.
13563 Removed all low-level inline functions.
13564 * include/grub/scsi.h: Add PATA and AHCI subsystems.
13565 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
13566 iterate hooks and open. All users updated.
13567 * util/grub-install.in: Handle AHCI disk module.
13569 2011-06-23 Szymon Janc <szymon@janc.net.pl>
13571 Add support for DRI and RSTn markers in JPEG files.
13573 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
13574 (JPEG_MARKER_RST0): Likewise.
13575 (JPEG_MARKER_RST1): Likewise.
13576 (JPEG_MARKER_RST2): Likewise.
13577 (JPEG_MARKER_RST3): Likewise.
13578 (JPEG_MARKER_RST4): Likewise.
13579 (JPEG_MARKER_RST5): Likewise.
13580 (JPEG_MARKER_RST6): Likewise.
13581 (JPEG_MARKER_RST7): Likewise.
13582 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
13583 (grub_jpeg_decode_dri): New function.
13584 (grub_jpeg_decode_sos): Move image data related part into
13585 grub_jpeg_decode_data function.
13586 (grub_jpeg_decode_data): New function.
13587 (grub_jpeg_reset): New function.
13588 (grub_jpeg_decode_jpeg): Handle new markers.
13590 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13592 * util/ieee1275/ofpath.c (check_sas): Close fd.
13593 (main): Free of_path.
13594 Reported by: David Volgyes <dvolgyes>.
13596 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13598 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
13599 Reported by: David Volgyes <dvolgyes>.
13601 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13603 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
13605 Reported by: David Volgyes <dvolgyes>.
13607 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13609 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
13611 Reported by: David Volgyes <dvolgyes>.
13613 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13615 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
13616 Prevent memory leak.
13618 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13620 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
13621 (main): Close file.
13622 Reported by: David Volgyes <dvolgyes>.
13624 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13626 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
13627 to continue if allocation is failed.
13629 Reported by: David Volgyes <dvolgyes>.
13631 2011-06-23 David Volgyes <dvolgyes>
13633 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
13636 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13638 Fix spurious warning.
13640 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
13641 (acorn_partition_map_find): Use .bin member.
13643 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13645 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
13646 /dev/root as a valid device.
13648 2011-06-23 Jim Meyering <meyering@redhat.com>
13650 Avoid NULL deref in grub_device_open.
13652 * grub-core/kern/device.c (grub_device_open): Don't dereference
13653 a NULL pointer upon failed grub_env_get.
13655 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13657 Support non-512B sectors and agglomerate reads.
13659 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
13660 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
13661 (disk_io_guid): Removed.
13662 (make_devices): Locate solely by BlockIO.
13663 (grub_efidisk_open): Fill log_sector_size and total_sectors.
13664 (grub_efidisk_read): Use read_blocks.
13665 (grub_efidisk_write): Use write_blocks.
13666 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
13668 (get_safe_sectors): Handle non-512B sectors.
13669 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
13671 (grub_biosdisk_write): Handle non-512B sectors.
13672 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
13673 (grub_scsi_read): Remove special non-512B block handling (now handled
13675 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
13676 and do sanity checks.
13677 (grub_disk_adjust_range): Handle non-512B sectors.
13678 (transform_sector): New function.
13679 (grub_disk_read_small): Likewise.
13680 (grub_disk_read): Rewritten.
13681 (grub_disk_write): Handle non-512B sectors.
13682 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
13684 (open_device): Use log_sector_size.
13685 (grub_util_biosdisk_read): Likewise.
13686 (grub_util_biosdisk_write): Likewise.
13687 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
13689 (pc_partition_map_embed): Likewise.
13690 * include/grub/disk.h (grub_disk): New field log_sector_size.
13691 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
13692 (GRUB_DISK_CACHE_BITS): Increased to 6.
13693 * util/grub-fstest.c (fstest): New command testload.
13694 (argp_parser): Likewise.
13696 2011-06-16 Robert Millan <rmh@gnu.org>
13698 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
13699 `ata' driver on kernel of FreeBSD 9.
13701 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
13702 (get_ataraid_disk_name): New functions.
13703 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
13704 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
13705 get_ataraid_disk_name() and get_ada_disk_name().
13707 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
13709 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
13712 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
13714 * docs/grub.texi (Obtaining and Building GRUB): Substitute
13715 `ftp.gnu.org' for `alpha.gnu.org'.
13717 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
13719 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
13720 partitions under /dev/disk/by-id/.
13722 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
13724 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
13725 after ten consecutive open failures. Scanning all the way up to
13726 10000 is excessive and can cause serious performance problems in
13727 some configurations.
13728 Fixes Ubuntu bug #787461.
13730 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13732 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
13735 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
13736 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13738 Don't stat devices unless we have to.
13740 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
13741 dir == /dev/mapper.
13742 (grub_guess_root_device): Use already known os_dev if possible.
13743 * grub-core/kern/emu/hostdisk.c
13744 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
13745 if device is known to be a dm one.
13747 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
13749 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
13750 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
13751 Reported by: Pawel Tecza.
13753 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
13755 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
13756 (lsefisystab): Likewise.
13758 (lsefimmap): Likewise.
13759 (hdparm): Enable on qemu-mips.
13760 (setjmp): Add ia64 nodist.
13761 (serial): Simplify tags.
13763 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13765 * Makefile.util.def (grub-ofpathname): Install manual page.
13767 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13769 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
13771 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13773 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
13775 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13777 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
13780 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13782 Use full 64-bit division.
13784 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
13785 (grub_divmod64): ... this.
13786 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
13789 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13791 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
13794 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13796 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
13797 to avoid accidents when debugging with 'sh -x'.
13798 * grub-core/gensyminfo.sh.in: Likewise.
13799 * tests/example_scripted_test.in: Likewise.
13800 * tests/grub_cmd_regexp.in: Likewise.
13801 * tests/grub_script_blanklines.in: Likewise.
13802 * tests/grub_script_dollar.in: Likewise.
13803 * tests/grub_script_expansion.in: Likewise.
13804 * tests/grub_script_final_semicolon.in: Likewise.
13805 * tests/partmap_test.in: Likewise.
13806 * tests/util/grub-shell-tester.in: Likewise.
13807 * tests/util/grub-shell.in: Likewise.
13809 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13811 Move gfxmenu color handling to video, so that gfxterm can use it
13814 * grub-core/gfxmenu/named_colors.c: Move to ...
13815 * grub-core/video/colors.c: ... here. Rename
13816 grub_gui_get_named_color to grub_video_get_named_color.
13817 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
13818 * grub-core/video/colors.c (my_isxdigit): ... here.
13819 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
13821 * grub-core/video/colors.c (parse_hex_color_component): ... here.
13822 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
13824 * grub-core/video/colors.c (grub_video_parse_color): ... here.
13826 * include/grub/gui.h (grub_gui_color_t): Move to ...
13827 * include/grub/video.h (grub_video_rgba_color_t): ... here.
13828 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
13829 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
13830 * include/grub/gui.h (grub_gui_map_color): Move to ...
13831 * include/grub/video.h (grub_video_map_rgba_color): ... here.
13832 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
13834 * include/grub/video.h (grub_video_get_named_color): ... here.
13835 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
13836 * include/grub/video.h (grub_video_parse_color): ... here.
13838 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
13840 (gfxmenu): Remove gfxmenu/named_colors.c.
13841 (video) [videomodules]: Add video/colors.c.
13843 Add a background_color command.
13845 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
13847 (GRUB_MOD_INIT): Register background_color command.
13848 (GRUB_MOD_FINI): Unregister background_color command.
13849 (redraw_screen_rect): Allow blend/replace of text layer to be
13850 controlled independently from whether there is a background bitmap.
13851 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
13854 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13856 Patch BPB in ntldr and chainloader --bpb.
13858 * grub-core/fs/fat.c: Include grub/fat.h.
13859 (grub_fat_bpb): Moved to ...
13860 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
13861 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
13863 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
13865 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
13867 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
13869 (grub_chainloader_cmd): Patch BPB if --bpb is given.
13870 (GRUB_MOD_INIT): Show --bpb.
13871 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
13872 * grub-core/normal/main.c (features): New variable.
13873 (GRUB_MOD_INIT): Set feature_* variables.
13874 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
13876 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
13878 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13880 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
13883 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13885 FreeDOS direct loading support.
13887 * docs/grub.texi (Supported OS): Add FreeDOS.
13888 * grub-core/Makefile.core.def (freedos): New module.
13889 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
13891 (grub_relocator16_boot): Handle %ebx.
13892 * grub-core/lib/i386/relocator16.S: Likewise.
13893 * grub-core/loader/i386/pc/freedos.c: New file.
13895 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13897 Long Linux command line support.
13899 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
13900 (maximal_cmdline_size): New variable.
13901 (allocate_pages): Use maximal_cmdline_size.
13902 (grub_cmd_linux): Set and use maximal_cmdline_size.
13903 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
13904 (allocate_pages): Use maximal_cmdline_size.
13905 (grub_cmd_linux): Set and use maximal_cmdline_size.
13906 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
13907 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
13910 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13911 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13913 Improve devmapper support
13915 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
13916 (grub_util_is_lvm): New function.
13917 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
13918 than lvm if not dmraid.
13919 Handle mapped md nodes.
13920 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
13921 (grub_util_device_is_mapped): ... this. Make always available. All users
13923 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
13924 (convert_system_partition_to_system_disk): Handle lvm, mpath and
13926 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
13928 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13930 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
13932 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
13933 * grub-core/modinfo.sh.in: New file.
13934 * grub-core/Makefile.core.def (modinfo.sh): New script.
13935 * util/grub-mknetdir.in: Use modinfo.sh.
13936 * util/grub-mkrescue.in: Likewise.
13938 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13940 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13941 Fix potential usage of Elf32 instead of Elf64 when compiling on
13942 32-bit architecture. Add endianness macros while on it.
13944 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13946 Use mipsel- rather than mips- in directories involving mipsel ports to
13947 allow both endiannesses coexist.
13949 * configure.ac: proparate target_cpu=mipsel rather than resetting to
13950 mips. All conditions adjusted.
13951 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
13953 * util/grub-install.in: Adjust conditions to take renaming into account.
13954 * util/grub-mkimage.c (image_targets): Likewise. New target
13955 mips-qemu_mips-elf for bigendian mips.
13957 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13959 Avoid unnecessary copying on MIPS.
13961 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
13962 early if src == dest.
13963 * util/grub-mkimage.c (generate_image): Arange for src == dest if
13964 compression is none.
13966 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13968 Reduce memory footprint on SGI by putting modules before the kernel
13969 as opposed to after.
13971 * grub-core/Makefile.core.def (kernel): Increase linking address.
13972 (none_decompress): Likewise.
13973 (xz_decompress): Likewise.
13974 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
13976 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
13978 (grub_arch_modules_addr): New function.
13979 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
13980 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
13981 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
13983 * grub-core/kern/mips/startup.S (total_size): Rename to ...
13984 (grub_total_modules_size): ... this. Make global.
13985 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
13986 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
13988 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
13989 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
13990 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
13991 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
13992 * util/grub-mkimage.c (image_target_desc): New flag
13993 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
13994 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
13995 (generate_image): Handle images with modules before kernel.
13997 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13999 Prevent potential loss of memory map by overwrite on qemu-mips.
14001 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
14002 Save ram size in $s4.
14003 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
14004 All users changed to grub_arch_memsize.
14005 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
14007 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
14008 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
14009 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
14012 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14014 * .bzrignore: Remove grub-dumpbios.
14016 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14018 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
14019 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
14020 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
14021 existing options which append).
14022 * docs/grub.texi (Simple configuration): Document new options.
14023 Reported by: Ian Jackson. Fixes Debian bug #617538.
14025 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14027 * util/grub-fstest.c (cmd_cat): New function.
14028 (fstest): Handle CMD_CAT.
14029 (options): Add cat.
14030 (argp_parser): Handle cat.
14032 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14034 * Makefile.util.def (grub-bin2h): Don't install.
14035 * docs/man/grub-bin2h.h2m: Remove.
14037 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14039 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
14042 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14044 Reenable qemu-mips port.
14046 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
14047 Fix small arc bug while on it.
14048 * gentpl.py: Handle qemu_mips.
14049 * grub-core/Makefile.am: Likewise.
14050 * grub-core/Makefile.core.def: Likewise.
14051 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
14052 inappropriate includes.
14053 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
14054 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
14055 * grub-core/kern/main.c (grub_modules_get_end)
14056 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
14057 * grub-core/kern/mips/qemu-mips: Moved to ..
14058 * grub-core/kern/mips/qemu_mips: ... this.
14059 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
14060 (grub_machine_init): Call terminfo_init and serial_init.
14061 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
14062 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
14064 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
14066 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
14067 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
14068 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
14069 * include/grub/mips/qemu_mips/cmos.h: New file.
14070 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
14071 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
14073 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
14074 Use correct mips-style address.
14075 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
14076 (GRUB_TICKS_PER_SECOND): Removed.
14077 (grub_get_rtc): Likewise.
14078 (grub_cpu_idle): Likewise.
14079 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
14081 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
14082 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
14083 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
14084 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
14085 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14086 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14087 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
14088 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
14090 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14094 * Makefile.util.def (libgrubmods.a): Add dvh.c.
14095 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
14097 * configure.ac: New target mips-arc.
14098 * gentpl.py: Likewise.
14099 * grub-core/Makefile.am: Likewise.
14100 * grub-core/Makefile.core.def: Likewise.
14101 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
14102 (none_decompress): Likewise.
14103 (lsdev): New module.
14104 (datetime): Use lib/arc/datetime.c on ARC.
14105 (part_dvh): New module.
14106 * grub-core/commands/arc/lsdev.c: New file.
14107 * grub-core/disk/arc/arcdisk.c: Likewise.
14108 * grub-core/kern/mips/arc/init.c: Likewise.
14109 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
14111 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
14113 (grub_arch_dl_relocate_symbols): Likewise.
14114 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
14115 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
14116 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
14118 * grub-core/lib/arc/datetime.c: New file.
14119 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
14120 pci.h on non-loongson.
14121 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
14122 (grub_linux_boot): Set unused registers to 0.
14123 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
14124 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
14125 * grub-core/mmap/mips/uppermem.c: ...here.
14126 * grub-core/partmap/dvh.c: New file.
14127 * grub-core/term/arc/console.c: Likewise.
14128 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
14129 (grub_terminfo_set_current): Add terminal "arc".
14130 (grub_terminfo_readkey): Support ARC sequences.
14131 * include/grub/arc/arc.h: New file.
14132 * include/grub/arc/console.h: Likewise.
14133 * include/grub/disk.h (grub_disk_dev_id): Add
14134 GRUB_DISK_DEVICE_ARCDISK_ID.
14135 * include/grub/mips/arc/kernel.h: New file.
14136 * include/grub/mips/arc/memory.h: Likewise.
14137 * include/grub/mips/arc/time.h: Likewise.
14138 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
14139 * include/grub/mips/kernel.h (grub_halt): ... here.
14140 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
14142 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
14143 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
14144 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
14145 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
14147 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
14149 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
14150 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
14151 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
14152 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
14153 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
14154 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
14155 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
14156 (grub_phys_addr_t): Moved from here ...
14157 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
14158 (grub_vtop): Moved from here ...
14159 * include/grub/mips/memory.h (grub_vtop): ... here.
14160 (grub_map_memory): Moved from here ...
14161 * include/grub/mips/memory.h (grub_map_memory): ... here.
14162 (grub_unmap_memory): Moved from here ...
14163 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
14164 (grub_machine_mmap_iterate): Moved from here ...
14165 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
14166 (grub_mmap_get_lower): Moved from here ...
14167 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
14168 (grub_mmap_get_upper): Moved from here ...
14169 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
14170 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
14172 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
14173 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
14175 * include/grub/mips/time.h (grub_get_rtc): ... here.
14176 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
14178 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
14179 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
14181 * include/grub/mips/time.h (grub_cpu_idle): ... here.
14182 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
14184 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
14185 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
14186 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
14187 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
14188 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14189 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14190 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
14191 (GRUB_MACHINE_LINK_ADDR): Likewise.
14192 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
14194 * util/grub-install.in: Run dvhtool on ARC.
14195 * util/grub-mkimage.c (image_targets): Add mips-arc.
14196 (generate_image): Handle ECOFF output for mips-arc.
14198 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14200 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
14203 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14205 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
14206 after enabling port.
14208 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14210 Skip incorrect USB devices.
14212 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
14214 * include/grub/usb.h (grub_usb_err_t): New enum value
14215 GRUB_USB_ERR_BADDEVICE.
14217 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14219 Fuloong video init support.
14221 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
14223 (grub_vga_read_arx): New function.
14224 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
14226 (framebuffer): New members io, mmioptr and mmiobase.
14227 (read_sis_cmd): New function.
14228 (write_sis_cmd): Likewise.
14229 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
14230 rather than 640x400.
14231 * grub-core/video/sis315_init.c: New file.
14233 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14235 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
14237 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
14238 to grub_dl_register_symbol.
14240 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14242 Fix compilation errors.
14244 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
14245 potentially unused.
14246 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
14247 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
14248 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
14249 to loongson machines.
14251 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14253 Several FS mtime support.
14255 * grub-core/fs/affs.c (grub_affs_time): New struct.
14256 (grub_affs_file): New field mtime.
14257 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
14258 type. Removed 'size'. New field 'di'. All users updated.
14259 (grub_affs_mount): Simplify checsum checking.
14260 (grub_affs_iterate_dir): New helper grub_affs_create_node.
14261 (grub_affs_dir): Handle mtime.
14262 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
14263 (grub_cpio_dir): Likewise.
14264 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
14265 (grub_hfs_filerec): New field mtime.
14266 (grub_hfs_dir): Handle mtime.
14267 (grub_hfs_mtime): New function.
14268 (grub_hfs_fs): Register grub_hfs_mtime.
14269 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
14270 (grub_iso9660_dir): New field mtime.
14271 (grub_fshelp_node): New field dirent.
14272 (iso9660_to_unixtime): New function.
14273 (iso9660_to_unixtime2): Likewise.
14274 (grub_iso9660_read_symlink): Use node->dirent.
14275 (grub_iso9660_iterate_dir): Likewise.
14276 (grub_iso9660_dir): Set mtime.
14277 (grub_iso9660_mtime): New function.
14278 (grub_iso9660_fs): Register grub_iso9660_mtime.
14279 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
14280 (grub_jfs_inode): New fields atime, ctime and mtime.
14281 (grub_jfs_dir): Set mtime.
14282 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14283 * grub-core/fs/ntfs.c (list_file): Set mtime.
14284 (grub_ntfs_dir): Likewise.
14285 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
14286 (grub_reiserfs_iterate_dir): Set mtime.
14287 (grub_reiserfs_dir): Likewise.
14288 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
14289 (grub_fshelp_node): Likewise.
14290 (grub_sfs_iterate_dir): Set mtime.
14291 (grub_sfs_dir): Likewise.
14292 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
14293 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
14294 (grub_xfs_inode): New fields atime, mtime, ctime.
14295 (grub_xfs_dir): Set mtime.
14296 * include/grub/datetime.h (grub_datetime2unixtime): New function.
14297 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
14298 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
14300 Support UDF symlinks.
14302 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
14303 (grub_ufs_read_symlink): New function. All users updated.
14305 Check amiga partmap checksum.
14307 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
14308 (grub_amiga_partition): Likewise.
14309 (amiga_partition_map_checksum): New function.
14310 (amiga_partition_map_iterate): Check checksum.
14312 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14316 * Makefile.util.def (libgrubmods.a): Add romfs.
14317 * grub-core/Makefile.core.def (romfs): New module.
14318 * grub-core/fs/romfs.c: New file.
14320 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14322 Squashfs v4 support.
14324 * Makefile.util.def (libgrubmods.a): Add squash4.
14325 * grub-core/Makefile.core.def (squash4): New module.
14326 * grub-core/fs/squash4.c: New file.
14327 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
14328 disk_input_start, disk_input.
14329 (get_byte): Handle disk_input.
14330 (grub_zlib_disk_read): New function.
14331 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
14333 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14334 2011-05-15 Feiran Zheng <famcool@gmail.com>
14336 * Makefile.util.def (libgrubmods.a): Add minix3.
14337 * grub-core/Makefile.core.def (minix3): New module.
14338 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
14339 (GRUB_MINIX_BSIZE): Removed.
14340 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
14341 (grub_minix_ino_t): New type.
14342 (grub_minix_le_to_cpu_ino): New macro.
14343 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
14344 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
14345 (grub_minix_data): New field block_size.
14346 (grub_minix_read_file): Handle 64-bit correctly.
14347 * grub-core/fs/minix3.c: New file.
14349 2011-05-15 Tristan Gingold <gingold@free.fr>
14350 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
14351 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14355 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
14356 * configure.ac: Add ia64-efi target.
14357 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
14358 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
14359 * gentpl.py: Add ia64_efi platform.
14360 Rename x86_efi to efi and Add ia64-efi. All users updated.
14361 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
14362 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
14363 Remove kern/generic/rtc_get_time_ms.c on EFI.
14364 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
14365 kern/ia64/dl_helper.c on ia64-efi.
14366 Add kern/emu/cache.c on emu.
14367 (linux): Use on loader/ia64/efi/linux.c on ia64.
14368 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
14369 whether symbol is a function.
14370 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
14371 (grub_symbol): New field 'isfunc'.
14372 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
14373 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
14374 (grub_dl_load_segments): Place all sections into the same region.
14375 [__ia64__]: Create trampolines and got.
14376 [GRUB_MACHINE_EMU]: Call mprotect.
14377 (grub_dl_resolve_symbols): Resolve symbol type as well.
14378 [__ia64__]: Create function descriptors.
14379 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
14380 (grub_rtc_get_time_ms): ... this. Expressions simplified.
14381 (grub_get_rtc): New function.
14382 * grub-core/kern/emu/cache.c [__ia64__]: New file.
14383 * grub-core/kern/emu/cache.S: Renamed to ...
14384 * grub-core/kern/emu/cache_s.S: ... this.
14385 [__ia64__]: Add a nop.
14386 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
14387 [__ia64__]: New function.
14388 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
14389 * grub-core/kern/ia64/dl.c: New file.
14390 * grub-core/kern/ia64/dl_helper.c: Likewise.
14391 * grub-core/kern/ia64/efi/init.c: New file.
14392 * grub-core/kern/ia64/efi/startup.S: Likewise.
14393 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
14394 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
14395 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
14396 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
14397 * grub-core/loader/ia64/efi/linux.c: New file.
14398 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
14399 (GRUB_MOD_DEP): Likewise.
14400 (grub_dl) [__ia64__]: New fields got and tramp.
14401 (grub_dl): New field 'base'.
14402 (grub_dl_register_symbol): New argument isfunc. All users updated.
14403 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
14404 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
14405 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
14406 (grub_ia64_dl_get_tramp_got_size): New proto.
14407 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
14408 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
14409 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
14410 * include/grub/efi/api.h: Skip call wrappers on ia64.
14411 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
14412 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
14413 * include/grub/elf.h (ELF_ST_INFO): New definition.
14414 * include/grub/ia64/efi/kernel.h: New file.
14415 * include/grub/ia64/efi/memory.h: Likewise.
14416 * include/grub/ia64/efi/time.h: Likewise.
14417 * include/grub/ia64/kernel.h: Likewise.
14418 * include/grub/ia64/setjmp.h: Likewise (from glibc).
14419 * include/grub/ia64/time.h: New file.
14420 * include/grub/ia64/types.h: Likewise.
14421 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
14422 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
14424 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
14425 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14426 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
14427 * util/grub-mkimage.c (image_target_desc): New field pe_target.
14429 (EFI64_HEADER_SIZE): New definition. All users updated.
14430 (image_targets): Add ia64-efi.
14431 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
14432 jumpers_addr. All users updated.
14433 Create function descriptors.
14434 (count_funcs): New function.
14435 (unaligned_uint32): New struct.
14436 (MASK20): New definition.
14437 (MASK19): Likewise.
14438 (MASKF21): Likewise.
14439 (add_value_to_slot_20b): New function.
14440 (add_value_to_slot_21_real): Likewise.
14441 (add_value_to_slot_21): Likewise.
14442 (ia64_kernel_trampoline): New struct.
14443 (nopm): New variable.
14445 (make_trampoline): New function.
14446 (relocate_addresses): Handle ia64.
14447 (make_reloc_section): Likewise.
14448 (load_image): Likewise.
14450 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14452 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
14453 warning. Move variables before code while on it.
14455 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14459 * configure.ac: Rename yeeloong platform to loongson. All users updated.
14460 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
14461 * grub-core/boot/mips/loongson/fuloong.S: New file.
14462 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
14463 Explicitly init CS5536.
14464 [FULOONG]: Don't use serial until CS5536 is available.
14465 Set GPIO based on dumps.
14466 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
14467 [FULOONG]: Handle GPIO and memory controller differences.
14468 Parse machine type in $a2.
14469 * grub-core/boot/mips/startup_raw.S: Determine and save the
14471 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
14472 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
14473 init on architecture type.
14474 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14475 SIS315E. Don't init at_keyboard on fuloong.
14476 (grub_halt): Support Fuloong.
14477 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
14478 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
14479 (loongson_machtypes): New array.
14480 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
14482 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
14483 config. All users updated. Handle CS5536 serial.
14484 * grub-core/term/serial.c (grub_serial_register): Conditionalise
14485 default port on machine type. Register serial as inactive.
14486 * grub-core/video/sis315pro.c: New file.
14487 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
14489 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
14490 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
14491 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
14492 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
14493 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
14494 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
14496 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
14497 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
14499 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
14500 (grub_arch_machine): New extern var.
14501 * include/grub/mips/loongson/serial.h
14502 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
14503 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
14504 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
14505 (GRUB_MACHINE_SERIAL_PORT0): ... this.
14506 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
14507 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
14508 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
14509 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
14510 * include/grub/term.h (grub_term_register_input_inactive): New inline
14512 (grub_term_register_output_inactive): Likewise.
14513 * include/grub/video.h (grub_video_driver_id): New value
14514 GRUB_VIDEO_DRIVER_SIS315PRO.
14515 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
14516 New field "names". All users updated.
14517 New field value IMAGE_FULOONG_FLASH.
14518 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
14520 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
14522 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
14523 and add some clarification.
14525 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14527 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
14528 platforms if kernel is compressed.
14530 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14532 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
14533 unused modules since currently referrence counter isn't reliable and
14534 there isn't much memory to recover there anyway.
14536 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14538 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
14539 rather than resetting it to allow modules to reference themselves
14542 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14544 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
14545 counter on dependencies since grub_dl_unref already handles this.
14547 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14549 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
14550 on error if not already done.
14552 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14554 Fix few potential memory misusage.
14556 * grub-core/font/font.c (load_font_index): Don't free char_index to
14558 (grub_font_load): Zero-fill font at alloc for safety.
14559 Close file on error.
14560 (free_font): Free bmp_idx.
14562 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14564 * docs/grub.texi (Installation): Fix several outdated claims.
14566 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14568 Handle module_license on windows.
14570 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
14572 (insert_string): Make argument const char * instead of char *.
14573 (write_section_data): Handle long section names.
14574 Handle module_license.
14576 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14578 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
14579 handle class-free menuentries.
14580 (grub_normal_add_menu_entry): Add a check to be sure.
14582 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14584 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
14587 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14589 * configure.ac: Bump version to 1.99.
14591 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14593 Give ATA device a bit more time on first try in order to allow disks
14596 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
14597 if dev->present is 1. Reset dev->present on failure.
14598 (grub_ata_device_initialize): Set dev->present to 1.
14599 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
14600 (grub_ata_device): New member 'present'.
14602 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14604 * util/grub-mkimage.c (generate_image): Update hash.
14606 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14608 Flush caches on DMA memory.
14610 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
14611 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
14612 (grub_dma_free): Likewise.
14613 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
14615 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14617 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
14618 to avoid asm treating ld and sd as macros.
14620 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14622 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
14625 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14627 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
14628 grub_decompress_core since later would fail if grub_decompress_core
14631 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14633 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
14634 R_MIPS_JALR since it's used by newer compiler.
14636 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
14638 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
14640 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14642 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
14643 file_path to 0 for surety.
14644 (grub_chainloader_boot): Set exit_data to NULL.
14645 Unset the loader once done.
14646 (grub_cmd_chainloader): Fix confusing error message if file is empty.
14648 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14650 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
14651 unknown key into a dprintf.
14653 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14655 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
14656 on first non-existant partition.
14658 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14660 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
14662 Reported by: Mark Korenberg.
14664 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14666 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
14669 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14671 * util/grub-mkimage.c (main): Explicitely flush and sync the output
14672 before closing to ensure that it will be readable by grub-setup.
14674 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14676 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
14677 (devpath_1): Use MAKE_PIWG_PATH.
14678 (devpath_2): Likewise.
14679 (devpath_3): Likewise.
14680 (devpath_4): Likewise.
14681 (devpath_5): Likewise.
14682 (devpath_6): Likewise.
14684 The appleldr.mod was checked that to be binary identical to previous
14687 2011-05-05 Zach <mikezackles>
14689 Support 2010 Macbooks.
14691 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
14692 (devs): Add devpath_6.
14694 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14696 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
14697 /dev/random. /dev/urandom is good enough for our purposes (salting).
14699 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14701 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
14703 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14705 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
14708 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14710 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
14711 and not 0 on failure.
14713 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
14715 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
14716 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
14717 disk; otherwise grub_fs_probe will not fall back to the next
14719 (grub_pxefs_open): Likewise, for consistency.
14720 Reported and tested by: Ezekiel Grave.
14722 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
14724 * tests/partmap_test.in: Don't hardcode path to parted.
14725 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
14727 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
14729 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
14730 of `ls' to find out which devices are available.
14732 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14734 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
14735 than source address for efi mmap buffer.
14737 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14739 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
14740 wrong action on non-detecting the magic.
14742 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14744 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
14745 already supplied by another part of the module (fixes compilation on
14748 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14750 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
14751 match the one used by mdadm.
14753 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14755 * po/README: Add instructions for creating po/LINGUAS.
14757 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14759 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
14762 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
14763 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
14764 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
14765 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
14766 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
14767 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
14768 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
14769 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
14770 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
14771 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
14772 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
14773 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
14774 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
14775 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
14776 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
14777 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
14778 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
14779 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
14780 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
14781 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
14782 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
14783 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
14785 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14787 * grub-core/kern/emu/getroot.c
14788 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
14789 test that was incorrectly reintroduced in r3214.
14790 Reported by: Ian Dall. Fixes Savannah bug #33133.
14792 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14794 Fix stack pointer handling in 16-bit relocator.
14796 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
14797 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
14798 Fixes Ubuntu bug #683904.
14800 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14802 * configure.ac: Bump version to 1.99~rc2.
14804 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14806 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
14807 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
14808 * grub-core/lib/x86_64/setjmp.S: Likewise.
14809 * grub-core/lib/mips/setjmp.S: Likewise.
14810 * grub-core/lib/powerpc/setjmp.S: Likewise.
14811 * grub-core/lib/sparc64/setjmp.S: Likewise.
14813 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14815 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
14816 * grub-core/lib/efi/datetime.c: Likewise.
14818 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14820 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
14822 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
14823 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
14824 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
14826 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14828 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
14830 (grub_gfxterm_term_init): Likewise.
14832 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14834 Take into account the decorations the computing menu entry width.
14836 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
14837 (grub_gfxmenu_create_box): Register get_border_width.
14838 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
14840 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
14843 2011-04-18 Endres Puschner <code@e7p.de>
14845 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
14846 Don't skip first class.
14848 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14850 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
14852 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
14854 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14856 Complete 64-bit division support.
14858 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
14859 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
14860 * include/grub/misc.h (grub_divmod64): Rename to ...
14861 (grub_divmod64_full): ... this.
14862 (grub_divmod64): New inline function.
14864 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14866 * util/grub-mkimage.c (generate_image): Add forgotten comma.
14868 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14870 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
14871 performing the necessary test.
14873 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14875 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
14876 (kfreebsd.elf): Likewise.
14877 (pc-chainloader.elf): Likewise.
14878 (ntldr.elf): Likewise.
14880 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14882 Identify RAID by its UUID rather than (guessed) name.
14884 * grub-core/disk/raid.c (ascii2hex): New function.
14885 (grub_raid_open): Accept mduuid/%s specification.
14886 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
14887 (get_mdadm_uuid): ... this.
14888 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
14890 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
14892 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
14895 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
14897 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
14899 * util/grub.d/20_linux_xen.in: Likewise.
14901 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
14903 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
14904 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
14906 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14907 Build a list of relevant visible mounts using the mnt_id and
14908 parent_mnt_id fields, and then scan that list at the end.
14910 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
14912 * docs/grub.texi (normal): New section.
14913 (normal_exit): New section.
14914 (Embedded configuration): Add reference to normal.
14915 (GRUB only offers a rescue shell): Likewise.
14916 * docs/grub-dev.texi (Error Handling): Fix typo.
14918 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
14920 * NEWS: Drop obsolete entry about probe-only btrfs support.
14922 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
14924 * util/import_gcry.py: Fix typo.
14926 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14928 * NEWS: Add btrfs support.
14930 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14931 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
14933 BtrFS support. Written by me (Vladimir) with important bugfixes and
14934 even more important testing by Colin.
14936 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
14937 * grub-core/Makefile.core.def (btrfs): Add crc.c.
14938 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
14939 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
14940 mem_input_off and mem_input. All users updated to accept in-RAM input.
14941 (gzio_seek): New function.
14942 (test_zlib_header): Likewise.
14943 (grub_gzio_read): Likewise.
14944 (grub_zlib_decompress): Likewise.
14945 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
14946 Accept partial and non-virtual mounts.
14947 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
14948 avoid receiving /dev/dm-X as device.
14949 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
14950 Handle bind and partial mounts.
14951 * grub-core/lib/crc.c: New file.
14952 * include/grub/deflate.h: Likewise.
14953 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
14955 * include/grub/lib/crc.h: New file.
14957 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14959 Implement automatic module license checking according to new GNU
14962 * grub-core/kern/dl.c (grub_dl_check_license): New function.
14963 (grub_dl_load_core): Use grub_dl_check_license.
14964 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
14965 (GRUB_MOD_LICENSE): Likewise.
14966 (GRUB_MOD_DUAL_LICENSE): Likewise.
14967 All modules updated.
14969 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
14971 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
14972 reserved_first_sector to 1. btrfs reserves plenty of space for boot
14974 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
14976 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14978 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
14980 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14982 * util/grub-fstest.c (read_file): Report GRUB error if file opening
14985 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14987 * grub-core/kern/file.c (grub_file_open): Don't take into account the
14988 parenthesis in the middle of the filename.
14990 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14992 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
14993 rather than trying to put initrd way too high.
14994 Reported by: Ryan Lortie <desrt@desrt.ca>
14996 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14998 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
14999 improperly removed string.
15001 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15003 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
15005 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
15006 (open_device) Likewise.
15007 (grub_util_biosdisk_close): Likewise.
15008 Reported by: Mark Korenberg.
15010 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
15012 * util/grub-mkconfig_lib.in: Add missing quotes.
15014 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
15016 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
15019 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15021 Dynamically count the number of lines for the lower banner.
15023 * grub-core/normal/menu_entry.c (per_term_screen): New member
15025 (print_down): Use num_entries.
15026 (update_screen): Likewise.
15027 (grub_menu_entry_run): Set num_entries.
15028 * grub-core/normal/menu_text.c (menu_viewer_data): New member
15030 (grub_print_message_indented): Move real part to ...
15031 (grub_print_message_indented_real): ... here. Additional argument
15033 (draw_border): Additional argument num_entries.
15034 (print_message): Additional argument dry_run.
15035 (print_entries): Receive menu viewer data.
15036 (grub_menu_init_page): New argment num_entries.
15037 (menu_text_set_chosen_entry): Use num_entries.
15038 (grub_menu_try_text): Likewise.
15039 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
15041 (grub_ucs4_count_lines): New function.
15042 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
15043 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
15044 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
15045 (grub_term_border_height): Likewise.
15046 (grub_term_num_entries): Likewise.
15048 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15050 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
15051 Remove now unused string.
15053 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
15055 * docs/grub-dev.texi (Finding your way around): Update for 1.99
15057 (Getting started): GRUB is developed in Bazaar now, not Subversion.
15059 (Comment): Fix typo.
15060 (Getting started): General copy-editing.
15061 (Typical Development Experience): Likewise.
15062 (Error Handling): Likewise.
15063 (Video API): Likewise.
15065 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
15067 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
15070 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15072 * util/grub-mkimage.c (main): Handle special naming of yeeloong
15075 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
15077 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
15078 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
15081 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15083 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
15084 grub_strcpy since the lines aren't necessarily 0-terminated.
15086 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15088 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
15091 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15093 * grub-core/commands/probe.c (options): Argument to set isn't optional.
15094 (GRUB_MOD_INIT): DEVICE isn't optional.
15096 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15098 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
15099 word on new line if it's too long anyway. Fixes a hang.
15101 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15103 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
15105 * util/grub-setup.c (main): Reuse md device name if available.
15106 * util/raid.c (grub_util_raid_getmembers): Receive device name and
15107 not GRUB name as argument.
15108 Based on patch by: Florian Wagner <fwagner>.
15110 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15112 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15113 Place mbi on low memory for better compatibility.
15115 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15117 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
15119 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15120 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
15122 * autogen.sh: Ensure that collate and ctype locale is C.
15123 * conf/Makefile.common: Likewise.
15125 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15127 * grub-core/normal/menu.c: Add missing include.
15129 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15131 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
15133 2011-04-08 Martin Zuther <mzuther@mzuther.de>
15135 * util/grub-mkconfig.in: Ignore emacsen backup.
15137 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15139 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
15141 (grub_util_biosdisk_close): Likewise.
15143 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15145 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
15146 const attribute and use grub_isdigit.
15148 2011-04-06 Andrey <dev_null@ukr.net>
15150 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
15153 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15155 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
15156 useful grub_dprintf's.
15158 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15160 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
15162 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15164 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
15166 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15168 Output errors if theme loading failed.
15170 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
15171 grub_gfxterm_fullscreen on error paths to ...
15172 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
15173 theme loading error.
15175 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15177 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
15178 space for older compilers.
15179 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15181 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15183 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
15184 and report them as not RAID members since they are useless for GRUB.
15185 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15187 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15189 Increase LVM implementation robustness in order not to crash on
15190 configurations like pvmove. Previously code assumed that in some places
15191 only lvs or only pvs are used whereas it seems that they are used
15194 * grub-core/disk/lvm.c (read_node): New function.
15195 (read_lv): Use read_node.
15196 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
15197 Match volumes only at the end when all lvs are found. Take both
15198 pvs (first) and lvs (second) into account.
15199 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
15200 mirror_* into node_*. All users updated.
15201 (grub_lvm_stripe): Merge this ...
15202 (grub_lvm_mirror): ... and this ...
15203 (grub_lvm_node): ... into this. All users updated.
15205 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15207 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
15208 of function to allow further scanning for LVMs.
15210 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15212 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
15213 on failed seek as it breaks open fd reusage.
15215 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15217 * util/grub-install.in: Add a recommendation to use --recheck before
15220 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15222 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
15225 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15227 GRUB developper manual based on existing Internals section and
15228 contributions by the various authors with active copyright assignment.
15230 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
15231 * docs/font_char_metrics.png: New file.
15232 * docs/font_char_metrics.txt: Likewise.
15233 * docs/grub-dev.texi: Likewise.
15234 * docs/grub.texi (Internals): Move from here ...
15235 * docs/grub-dev.texi: ... here.
15237 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15239 Store the loopback device as data on loopback grub_disk structures,
15240 rather than the file it points to. This fixes use of freed memory
15241 if an existing loopback device is replaced.
15243 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
15244 disk->data, not dev->file.
15245 (grub_loopback_read): Adjust file assignment to match.
15246 Fixes Ubuntu bug #742967.
15248 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15250 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
15251 when replacing an existing device.
15253 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
15255 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
15256 memory corruptions.
15258 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
15260 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
15261 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
15262 (grub_jfs_read_inode): Likewise.
15263 (grub_jfs_opendir): Likewise. Remove now useless casts.
15264 (grub_jfs_getent): Likewise.
15265 Make ino a grub_uint32_t rather than int.
15266 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
15267 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
15268 division and module with bit operations.
15269 (grub_jfs_find_file): Make ino a grub_uint32_t.
15270 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
15272 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15274 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
15275 warning. (This was in fact always initialised before use, but GCC
15276 wasn't smart enough to prove that.)
15277 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
15279 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15281 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
15283 (efi_wrap_1): Likewise.
15284 (efi_wrap_2): Likewise.
15285 (efi_wrap_3): Likewise.
15286 (efi_wrap_4): Likewise.
15287 (efi_wrap_5): Likewise.
15288 (efi_wrap_6): Likewise.
15289 (efi_wrap_10): Likewise.
15290 Based on information by: Red Hat/Peter Jones.
15292 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
15294 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
15295 set-but-not-used variable.
15297 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
15299 * docs/grub.texi (Simple configuration): Be more explicit about
15300 GRUB_DEFAULT, and add an example.
15301 Reported by: Leslie Rhorer.
15303 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15305 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
15308 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
15310 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
15311 * util/grub.d/20_linux_xen.in: Likewise.
15313 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15315 * util/grub.d/10_linux.in: Try alternative config filenames where
15316 we parse config file.
15317 * util/grub.d/20_linux_xen.in: Likewise.
15319 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
15321 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
15322 * util/grub.d/20_linux_xen.in: Likewise.
15324 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15326 * grub-core/disk/raid.c (insert_array): Add few potentially
15327 useful grub_util_info.
15328 (grub_raid_register): Likewise.
15330 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15332 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
15333 Preserve partition number in mdadm code path.
15335 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15337 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
15338 few potentially useful grub_util_info.
15340 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15342 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
15344 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15346 * docs/grub.texi (default): Use @example rather than nested
15347 itemized lists to avoid breaking gendocs.
15349 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15351 * docs/grub.texi (Future): Update.
15353 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15355 * docs/grub.texi (Environment): New chapter.
15356 (Changes from GRUB Legacy): Link to "Environment block" section for
15357 details of limitations.
15358 (Simple configuration): Likewise. Link to documentation of gfxmode
15359 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
15361 (Shell-like scripting): Note that normal variables are stored in the
15363 (gettext): Link to documentation of lang and locale_dir.
15364 (list_env): New section.
15365 (load_env): New section.
15366 (save_env): New section.
15368 (Reporting bugs): Fix typo.
15370 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15372 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
15375 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15377 * grub-core/term/at_keyboard.c (set_scancodes)
15378 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
15380 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15382 * docs/grub.texi (Menu-specific commands): Remove some semantics
15383 that were true in GRUB Legacy but not in GRUB 2.
15384 (submenu): New section.
15385 (false): New section.
15386 (read): New section.
15387 (true): New section.
15389 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15391 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
15393 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15395 * docs/grub.texi (Simple configuration): Explain some of the
15396 current limitations of grub-mkconfig.
15397 Reported by: Leslie Rhorer.
15399 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15401 Old macs search for boot.efi rather than for bootia32.efi.
15403 * util/grub-install.in: Copy bootia32.efi to boot.efi.
15404 * util/grub-mkrescue.in: Likewise.
15405 Suggested by: Peter Jones.
15407 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15409 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
15411 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15413 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
15414 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
15415 (grub_lvm_mirror): New struct.
15416 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
15417 (grub_lvm_iterate): Iterate only visible volumes.
15418 (grub_lvm_read): Factor out to ..
15419 (read_lv): ... this. Support mirrors.
15420 (grub_lvm_read): New wrapper function.
15421 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
15422 stripped or mirrored.
15424 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15426 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
15428 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15430 * docs/grub.texi (loopback): New section.
15432 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15434 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
15437 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15439 * docs/grub.texi (BIOS installation): New section, partly based on
15440 previous text in other sections.
15441 (Installing GRUB using grub-install): Replace BIOS discussion with a
15443 (Images): Likewise.
15445 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15447 * grub-core/kern/emu/hostdisk.c (find_partition_start)
15448 [HAVE_DIOCGDINFO]: Add safety checks.
15450 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15452 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
15453 per default compiled in kernel and prior to 8.0 isn't shipped at all.
15455 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15457 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
15458 real_sb->size is zero (e.g. RAID-0), get the disk size from
15459 real_sb->data_size instead.
15460 Fixes Ubuntu bug #743136.
15462 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15464 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
15465 printf clauses for printing size and start.
15467 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15469 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
15470 Reported and tested by: Timothy Nikkel.
15472 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15474 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
15475 (dirty_region_add_real): ... this.
15476 (dirty_region_add): Don't discard margin refresh when performing
15479 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15481 * grub-core/lib/relocator.c (allocate_regstart)
15482 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
15483 terminals are capabple of malloc-free operation.
15484 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
15485 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
15487 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
15489 * util/grub-setup.c: Copy the partition table zone if floppy support
15490 is disabled, even if no partition table is found.
15492 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
15493 during POST if an invalid partition table is contained in the PBR
15494 of the active partition when GRUB is installed to a partition.
15496 2011-03-28 Colin Watson <cjwatson@debian.org>
15498 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
15501 2011-03-28 Colin Watson <cjwatson@debian.org>
15503 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
15504 to be specific about what kind of RAID device we're scanning for.
15506 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
15508 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
15509 return freed string.
15511 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15513 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
15515 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15517 Use libgeom on FreeBSD to detect partitions.
15519 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
15520 (grub-mkrelpath): Likewise.
15521 (grub-script-check): Likewise.
15522 (grub-editenv): Likewise.
15523 (grub-mkpasswd-pbkdf2): Likewise.
15524 (grub-fstest): Likewise.
15525 (grub-mkfont): Likewise.
15526 (grub-mkdevicemap): Likewise.
15527 (grub-probe): Likewise.
15528 (grub-setup): Likewise.
15529 (grub-ofpathname): Likewise.
15530 (grub-mklayout): Likewise.
15531 (example_unit_test): Likewise.
15532 (grub-menulst2cfg): Likewise.
15533 * grub-core/Makefile.core.def (grub-emu): Likewise.
15534 (grub-emu-lite): Likewise.
15535 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
15536 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
15537 define HAVE_DIOCGDINFO.
15538 (follow_geom_up) [FreeBSD]: New function.
15539 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
15540 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
15541 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
15542 unconditionally of HAVE_DIOCGDINFO.
15544 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15546 Fix FreeBSD compilation problem.
15548 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
15549 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
15551 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
15553 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
15554 Switch back to page zero before loading a kernel, since some kernel
15555 drivers expect that.
15556 Thanks to: Felix Kuehling.
15558 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15560 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
15561 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
15562 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
15564 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15566 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
15567 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
15569 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15571 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
15572 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
15573 malloc is disabled.
15575 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15577 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
15578 for modules headers when counting the needed allocation size.
15580 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15582 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
15583 if no ASCII character is found to prevent crash.
15585 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
15587 * grub-core/video/bitmap.c (match_extension): Ignore case.
15589 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15591 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
15593 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15595 * grub-core/script/parser.y: Declare "time" as valid argument.
15597 2011-03-23 Peter Jones <pjones@redhat.com>
15599 Fix incorrect assert failure reporting.
15601 * grub-core/tests/example_functional_test.c (example_test): Add
15603 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
15604 (failure_start): ...this. Check that malloc succeeded.
15605 Don't call xvasprintf. Return failure struct.
15606 (failure_append_vtext): New function.
15607 (failure_append_text): Likewise.
15608 (add_failure): Likewise.
15609 (grub_test_assert_helper): Likewise.
15610 * include/grub/test.h (grub_test_assert_helper): New declaration.
15611 (grub_test_assert): Macro rewritten.
15613 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15615 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
15617 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15619 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
15621 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15623 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
15624 into GRUB-style one.
15626 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15628 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
15629 error and not grub_errno.
15630 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
15632 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15634 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
15635 GRUB_USB_SPEED_NONE in case of failure and not the error code.
15637 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15639 * grub-core/efiemu/i386/pc/cfgtables.c
15640 (grub_machine_efiemu_init_tables): Make declaration a prototype.
15641 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
15642 (grub_xnu_unlock): Likewise.
15643 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
15645 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15647 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
15648 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
15649 * grub-core/commands/hashsum.c (aliases): Likewise.
15650 * grub-core/commands/setpci.c (pci_registers): Likewise.
15651 * grub-core/disk/usbms.c (attach_hook): Likewise.
15652 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
15653 (zio_checksum_table): Likewise.
15654 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
15655 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
15656 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
15657 * grub-core/lib/relocator.c (leftovers): Likewise.
15658 (extra_blocks): Likewise.
15659 * grub-core/loader/i386/bsd.c (relocator): Likewise.
15660 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
15661 (modules_last): Likewise.
15662 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
15663 (devices): Likewise.
15664 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
15665 (modules_last): Likewise.
15666 * grub-core/normal/auth.c (users): Likewise.
15667 * grub-core/normal/context.c (initial_menu): Likewise.
15668 (current_menu): Likewise.
15669 * grub-core/normal/crypto.c (crypto_specs): Likewise.
15670 * grub-core/term/serial.c (grub_serial_ports): Likewise.
15671 (grub_serial_terminfo_input_template): Likewise.
15672 (grub_serial_terminfo_output_template): Likewise.
15673 (grub_serial_terminfo_input): Likewise.
15674 (grub_serial_terminfo_output): Likewise.
15675 (registered): Likewise.
15676 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
15678 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15680 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
15681 grub_video_mode_type_t.
15682 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
15683 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
15684 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
15686 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15688 * util/grub-install.in: Correct the x86-64 name as x86_64.
15690 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
15692 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
15693 initial chunk read from the kernel always includes GRUB's multiboot
15694 header, which is now outside the first sector.
15696 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
15698 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
15699 cached mmap_size, so that this works correctly when called multiple
15701 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
15703 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
15705 * docs/grub.texi (Simple configuration): Tidy up formatting.
15707 2011-03-07 Szymon Janc <szymon@janc.net.pl>
15709 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
15710 Set-but-not-used variable removed.
15712 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15714 Workaround yet another IEEE1275 bug.
15716 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
15717 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
15718 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
15719 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
15721 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15722 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
15724 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15726 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
15729 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
15731 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
15732 empty, since in that case we can only generate either nothing or a
15733 syntactically invalid configuration file.
15734 Reported by: Michal Suchanek. Fixes Debian bug #612898.
15736 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
15738 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
15739 (Making a GRUB bootable CD-ROM): Likewise.
15740 (Invoking grub-mkrescue): New section.
15741 Reported by: Yann Dirson. Fixes Debian bug #612585.
15743 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
15745 * util/grub-install.in: Remove unnecessary brackets from tr
15747 * util/grub.d/10_hurd.in: Likewise.
15748 * util/grub.d/10_kfreebsd.in: Likewise.
15749 * util/grub.d/10_linux.in: Likewise.
15750 * util/grub.d/20_linux_xen.in: Likewise.
15751 Reported by: Jamie Heilman. Fixes Debian bug #612564.
15753 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
15755 * include/grub/file.h (not_easly_seekable): Rename to ...
15756 (not_easily_seekable): ... this. Update all users.
15758 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
15760 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
15763 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
15765 * util/grub-mkimage.c (generate_image): Refuse to create the images
15766 bigger than the actual flash (512K) in Loongson machines. 512K is also
15767 the biggest chip supported by them.
15769 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15771 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
15773 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
15775 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
15776 super_offset field.
15778 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15780 * util/grub-install.in: Ignore install device on platforms
15781 where it doesn't make sense. Always use UUIDs except on pc, efi and
15783 Reported by: Daniel Kahn Gillmor.
15785 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15787 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
15789 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15791 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
15792 (iterate_real): Don't rely on partition being non-NULL.
15794 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15796 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
15797 supported platforms. Put a compile time assert for this rather than
15798 generate a warning with 32-bit shift.
15800 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15802 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
15803 logical expression more readable.
15805 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15807 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
15808 even if some elements have a name.
15809 Reported by: Alexander GQ Gerasiov.
15811 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
15813 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
15814 path unreadable if `grub-probe -t abstraction' fails, for example if
15815 memberlist fails on an LVM volume group.
15816 Reported by: Darius Jahandarie.
15818 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
15820 * docs/grub.texi (Simple configuration): Document
15821 GRUB_PRELOAD_MODULES.
15823 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
15825 * .bzrignore: Remove nonexistent grub-pbkdf2.
15827 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
15829 * configure.ac: Bump version to 1.99~rc1.
15831 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15833 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
15836 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15838 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
15841 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15843 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
15845 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15847 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
15850 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15852 Fix compilation on cygwin.
15854 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
15855 -R .drectve on cygwin.
15856 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
15857 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
15858 (COND_CYGWIN): New condition.
15859 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
15860 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
15861 not @TARGET_OBJ2ELF@.
15862 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
15863 type to determine whether aux is to be used.
15865 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15867 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
15868 realpath'ed device string.
15869 Handle floppy (somewhat).
15870 Issue error in unknown case rather than garbage.
15871 Reported by: Axel Beckert.
15873 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15875 * util/grub.d/00_header.in (load_video): Handle the case when no video
15877 Thanks to: Axel Beckert.
15879 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15881 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
15882 variable. Fixes problem on big endian platforms.
15884 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15886 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
15887 It doesn't work well there.
15889 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15891 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
15893 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
15894 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
15897 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15899 Use alias->path rather than buggy "canon".
15901 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
15902 (ofdisk_hash_add): New argument curcan. All users updated.
15904 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
15906 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
15908 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15910 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
15911 loadmask before doing any calculations. Use correct type for offset.
15912 (grub_linux_load64): Likewise.
15914 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
15916 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
15918 (console_grub_equivalences_unshift): Likewise.
15919 Reported by: Daniel Dehennin.
15921 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15923 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
15924 (set_env_limn_ro): Likewise.
15925 (GRUB_MOD_INIT): Likewise.
15926 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
15927 ARRAY_SIZE while on it.
15928 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
15929 * grub-core/normal/context.c (grub_env_export): Move from here ...
15930 * grub-core/kern/env.c (grub_env_export): ... here.
15931 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
15933 * grub-core/kern/main.c (grub_main): Export root and prefix.
15934 * include/grub/env.h (grub_env_export): Export.
15935 Reported by: Seth Goldberg.
15937 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15939 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15940 Take into account space used by ELF sections and multiboot palette.
15941 Reported by: Grégoire Sutre.
15943 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15947 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15949 Pass more appropriate video id to Linux.
15951 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
15952 grub_video_get_driver_id and variable gfxpayloadforcelfb to
15954 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
15955 shift params->lfb_size.
15956 * include/grub/i386/linux.h: Make an enume out of have_vga values.
15958 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15960 * util/grub-menulst2cfg.c: Add missing include of misc.h.
15962 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15964 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
15965 separator and pass bootpath/devid even if only one of them is available.
15966 Reported by: Seth Goldberg.
15968 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15970 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
15971 implementations bug on them.
15973 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
15975 (filter_memory_map): Likewise.
15977 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15979 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
15980 Reported by: nebuchadnezzar.
15982 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15984 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
15985 Reported by: nebuchadnezzar.
15987 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15989 Submenu default support.
15991 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
15992 auto_boot. All users updated.
15994 Handle chosen and default with submenus.
15995 (grub_menu_execute_with_fallback): Declared static.
15996 Don't notify failure if autobooted. Upper level does it.
15997 (menuentry_eq): New function.
15998 (get_entry_number): Use menuentry_eq.
15999 (show_menu): New parameter "autobooted". All users updated.
16000 (grub_show_menu): Likewise.
16001 * include/grub/normal.h (grub_show_menu): Likewise.
16002 * include/grub/menu.h (grub_menu_execute_entry): Removed.
16003 (grub_menu_execute_with_fallback): Likewise.
16005 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16007 * util/grub-mklayout.c (usage): Update help text.
16009 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16011 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
16013 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16015 * util/grub-menulst2cfg.c (main): Trim the line.
16017 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16019 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
16020 (grub_machine_init): Don't check amount of low memory as reportedly
16021 INT 12h can be broken and if low memory is too low we wouldn't have
16022 gotten into grub_machine_init anyway.
16024 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16026 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
16027 (grub_machine_mmap_iterate): Take low memory into account
16029 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16031 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
16033 Reported by: TiCPU.
16035 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16037 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
16040 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
16042 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
16043 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
16045 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
16047 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
16048 openbsd and netbsd types being in part_bsd module.
16050 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16052 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
16053 (_FILE_OFFSET_BITS): Likewise.
16054 Reported by: Seth Goldberg.
16056 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16058 * configure.ac: Check for libdevmapper header.
16060 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16062 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
16064 (fzap_lookup): Likewise.
16065 (dnode_get): Likewise.
16066 (make_mdn): Likewise.
16067 (zfs_mount): Likewise.
16068 (fzap_iterate): Use temporary pointer to avoid aliasing.
16069 (grub_zfs_read): Likewise.
16070 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
16071 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
16072 pointers to avoid aliasing.
16073 (grub_cmd_xnu_kernel64): Likewise.
16074 (grub_xnu_load_driver): Likewise.
16076 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16078 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
16080 (grub_cmd_terminal_output): Likewise.
16081 Reported and tested by: Grégoire Sutre.
16083 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16085 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
16087 Reported and tested by: Grégoire Sutre.
16089 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16091 * configure.ac: Do CPU substitution even if it's specified explicitly.
16092 Reported and tested by: Alain Greppin.
16094 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16096 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
16097 Reported and tested by: Alain Greppin.
16099 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16101 Satisfy some bison versions need for inttypes.h.
16103 * grub-core/lib/posix_wrap/inttypes.h: New file.
16104 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
16105 (int16_t): Likewise.
16106 (int32_t): Likewise.
16107 (int64_t): Likewise.
16108 Reported and tested by: Alain Greppin.
16110 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16112 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
16113 Silence spurious warning.
16114 Reported and tested by: Alain Greppin.
16116 2011-01-07 Szymon Janc <szymon@janc.net.pl>
16118 * docs/grub.texi (Support automatic decompression): Update with xz
16119 decompression support.
16121 2011-01-07 Szymon Janc <szymon@janc.net.pl>
16123 Improve loaders' kernel command line handling.
16125 * grub-core/lib/cmdline.c: New file.
16126 * include/grub/lib/cmdline.h: Likewise.
16127 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
16128 grub_create_loader_cmdline to create kernel command line.
16129 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
16130 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
16131 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
16132 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
16133 (linux): Add lib/cmdline.c on common.
16135 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16137 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
16138 inopos might be unaligned.
16140 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16142 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
16143 endian transformations.
16144 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16145 Based on report by: Doug Nazar.
16147 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
16149 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
16150 array->members[i].start_sector.
16151 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
16153 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16155 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
16156 Reported and tested by: Grégoire Sutre.
16158 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
16160 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
16161 avoid causing test failures by clearing the screen.
16163 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
16165 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16166 Fix prefix check to handle the case where dir ends with a slash
16167 (most significantly, "/" itself).
16168 Reported by: Michael Vogt.
16170 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16172 Run terminfo_cls on initing terminfo output to clear the screen and
16173 move the cursor to (0,0).
16175 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
16176 Call grub_terminfo_output_init.
16177 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
16178 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
16179 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
16181 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16183 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
16186 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16188 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
16191 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16193 The E820 type 5 is BADRAM, not EXEC_CODE.
16195 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
16196 (GRUB_E820_BADRAM): New define.
16197 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
16198 into reserved. Propagate BADRAM.
16199 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
16200 (GRUB_E820_BADRAM): New define.
16202 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16204 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
16205 Ignore the memory post-4G.
16206 (grub_relocator_firmware_alloc_region): Additional debug statement.
16208 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16210 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
16212 Reported by: David Pravec.
16214 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16216 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
16219 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16221 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
16223 (grub_reed_solomon_recover): Likewise.
16225 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16227 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
16229 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16231 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
16234 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
16236 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
16237 descriptions of extract_legacy_entries_source and
16238 extract_legacy_entries_configfile.
16239 Reported by: Seung Soo, Ha.
16241 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
16243 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
16244 on devices that do not implement function 0.
16246 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
16248 * grub-core/fs/hfsplus.c: Make parent unsigned.
16249 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
16251 (grub_hfsplus_cmp_extkey): Likewise
16253 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
16255 * util/grub-install.in: Correctly use bootloader_id and not
16256 GRUB_DISTRIBUTOR on efibootmgr line.
16258 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
16260 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
16262 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
16264 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
16265 Xen and reorder menu item wording to make it clearer that this entry
16266 will launch Xen. Print separate messages when loading Xen and
16269 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16271 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
16272 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
16273 loop in case of incorrect amiga partmap.
16275 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16277 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
16278 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
16281 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16283 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
16285 Reported by: crocket
16287 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16289 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
16291 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
16293 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16295 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
16297 (grub_cmd_xnu_kextdir): Likewise.
16298 (grub_cmd_xnu_splash): Likewise.
16300 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16302 Avoid using Reed-Solomon with 0 redundancy.
16304 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
16305 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
16307 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
16308 (grub_reed_solomon_recover): Likewise.
16310 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16312 Don't use disk subsystem in freebsd_boot.
16314 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
16315 (freebsd_biosdev): Likewise.
16316 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
16317 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
16319 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
16321 Handling of files of unknown size is currently limited. They can't be
16322 used e.g. for initrd or modules. Moreover gzip handling of not
16323 easily seekable files is buggy. Disable unknown file size for now. May
16324 be inefficient but works.
16326 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
16327 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
16329 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
16331 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
16334 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
16336 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
16338 2010-12-25 Shea Levy <shlevy>
16340 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
16342 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16344 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
16345 Windows Server 2008.
16346 Reported by: Devin Giddings.
16348 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16350 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
16351 writing an error message because of async power management.
16352 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
16353 (grub_reboot): Likewise.
16355 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
16357 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
16358 keep unit tests from failing when they shouldn't.
16360 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16362 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
16363 previous patch increased the size of the RS code by 20 bytes (at
16364 least with gcc-4.4), so increase this by 20 bytes to match.
16365 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16367 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16369 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
16370 scratch area. Make sure to initialise chosen in standalone mode as
16371 well as non-standalone.
16372 Reported by: Robert Hooker and Andy Whitcroft.
16373 Tested by: Andy Whitcroft.
16375 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16377 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
16378 constructing a new unescaped string and passing it to grub_xputs in
16379 one go, rather than passing characters to grub_printf one at a time.
16381 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16383 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
16384 initialising utf16.
16386 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16388 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
16389 comment. Add an extra layer of quotation, requiring the output of
16390 this function to be used in a printf format string.
16391 (gettext_printf): New function.
16392 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
16393 Extract translatable strings from here-documents and use a temporary
16394 variable instead, so that xgettext can find them.
16395 * util/grub.d/10_kfreebsd.in: Likewise.
16396 * util/grub.d/10_linux.in: Likewise.
16397 * util/grub.d/20_linux_xen.in: Likewise.
16399 * po/grub.d.sed: New file.
16400 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
16401 arguments. Set c-format flags on all strings extracted from
16402 util/grub.d/ (xgettext refuses to include these itself for strings
16403 it extracted from a shell file, but these really are c-format).
16405 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16407 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
16408 Avoid next pointing to nowhere.
16410 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16412 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
16413 rather than assuming than rootblock is exactly in the middle.
16414 (grub_affs_label): Likewise.
16416 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16418 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
16419 reserved_first_sector to 0.
16420 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
16421 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
16422 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
16424 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16426 Fix handling of UTF-16 UDF labels.
16428 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
16429 (read_string): .. here.
16430 (grub_udf_label): Use read_string.
16432 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
16434 * grub-core/normal/menu_entry.c (run): Execute commands from menu
16435 editor under argument scope.
16436 Reported by: Jordan Uggla
16438 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16440 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
16442 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
16444 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
16445 line, and other keys scroll an entire page (previous handling was
16446 for \r and \n to scroll a page and other keys to scroll two lines).
16448 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16450 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16451 Set ptrdest to correct get_physical_target_address rather than
16452 incorrect get_virtual_current_address.
16454 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
16456 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
16457 correct cat to grub_uint8_t * rather than grub_uint32_t *.
16459 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
16461 * .bzrignore: Ignore grub-core/rs_decoder.S.
16463 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
16465 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
16466 .mo/.mo.gz opening sequence to ...
16467 (grub_mofile_open_lang): ... here.
16468 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
16469 * util/grub.d/00_header.in (grub_lang): Include country part of
16471 Reported by: Mario Limonciello.
16473 2010-12-09 Robert Millan <rmh@gnu.org>
16475 * NEWS: Document addition of ZFS support.
16477 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
16479 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
16480 rather than `/ 2', as the latter requires -Wa,--divide which would
16481 require bumping our minimum binutils version.
16483 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
16485 * util/grub-script-check.c (main): Print script line number on
16488 2010-12-01 Robert Millan <rmh@gnu.org>
16490 * grub-core/fs/zfs/zfs.c: New file.
16491 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
16492 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
16493 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
16494 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16496 * include/grub/zfs/dmu.h: Likewise.
16497 * include/grub/zfs/dmu_objset.h: Likewise.
16498 * include/grub/zfs/dnode.h: Likewise.
16499 * include/grub/zfs/dsl_dataset.h: Likewise.
16500 * include/grub/zfs/dsl_dir.h: Likewise.
16501 * include/grub/zfs/sa_impl.h: Likewise.
16502 * include/grub/zfs/spa.h: Likewise.
16503 * include/grub/zfs/uberblock_impl.h: Likewise.
16504 * include/grub/zfs/vdev_impl.h: Likewise.
16505 * include/grub/zfs/zap_impl.h: Likewise.
16506 * include/grub/zfs/zap_leaf.h: Likewise.
16507 * include/grub/zfs/zfs.h: Likewise.
16508 * include/grub/zfs/zfs_acl.h: Likewise.
16509 * include/grub/zfs/zfs_znode.h: Likewise.
16510 * include/grub/zfs/zil.h: Likewise.
16511 * include/grub/zfs/zio.h: Likewise.
16512 * include/grub/zfs/zio_checksum.h: Likewise.
16514 * Makefile.util.def: Build ZFS into libgrubmods.
16515 * grub-core/Makefile.core.def: Build zfs.mod.
16517 2010-11-30 Szymon Janc <szymon@janc.net.pl>
16519 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
16521 * grub-core/commands/wildcard.c (match_files): Likewise.
16523 2010-11-30 Robert Millan <rmh@gnu.org>
16525 * grub-core/loader/i386/bsd.c
16526 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
16527 whether kernel is loaded using grub_loader_is_loaded(), rather
16528 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
16529 certain error conditions.
16531 2010-11-30 Robert Millan <rmh@gnu.org>
16533 * grub-core/commands/echo.c: Include `<grub/term.h>'.
16534 (grub_cmd_echo): Call grub_refresh() after printing a message.
16536 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
16538 Avoid using tricks for initialising endian variables.
16540 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
16542 (GRUB_MOD_INIT): Don't byte-swap.
16543 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16544 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
16545 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
16546 (grub_swap_bytes32_compile_time): Likewise.
16547 (grub_cpu_to_le32_compile_time): Likewise.
16548 (grub_cpu_to_le16_compile_time): Likewise.
16550 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
16552 * util/grub-setup.c (setup): Stop recommending --force. People who
16553 understand the dangers of blocklists are able to find this option
16554 anyway and the ones who don't shouldn't use it anyway.
16556 2010-11-26 Robert Millan <rmh@gnu.org>
16558 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
16561 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
16563 Fix LVM-on-RAID probing.
16565 * util/grub-probe.c (probe): Remember which disk was detected as
16566 RAID (perhaps an LVM physical volume). Use that disk's raidname
16567 rather than that of the top-level disk.
16569 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
16571 Fix cmdline argument quotes for setparams command of menuentry
16574 * grub-core/commands/menuentry.c (setparams_prefix): Use single
16575 quotes for arguments.
16576 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
16577 grub_strchrsub function instead.
16579 * include/grub/misc.h (grub_strchrsub): New function.
16581 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
16583 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
16584 effort by skipping "." and ".." entries up-front.
16585 Suggested by: Michael Lazarev.
16587 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
16589 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
16590 ldflags to ldadd, to fix link line ordering.
16591 (none_decompress): Likewise.
16593 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
16595 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
16597 (grub-emu-lite): Remove kern/emu/cache.S.
16599 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16601 * util/deviceiter.c (compare_devices): If the by-id link for a
16602 device couldn't be resolved, fall back to sorting by the by-id link
16603 rather than segfaulting.
16604 Reported and tested by: Daniel Mierswa.
16606 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16608 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
16609 ldflags, to fix link line ordering.
16611 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16613 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
16614 linkers are picky about this.
16616 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16618 * grub-core/Makefile.am (command.lst): Adjust sed expression
16619 ordering so that extended and priority commands aren't treated as
16622 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16624 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16625 Remove byte-swapping function calls, which are not valid in
16626 structure initialisers.
16627 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
16629 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
16630 grub_gpt_partition_type_bios_boot.
16632 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
16634 Fix test program build on GNU/kFreeBSD.
16636 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
16637 $(LIBNVPAIR)' library dependencies.
16639 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
16641 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
16643 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
16645 * util/grub-install.in: Remove excessive quoting that broke
16646 installations to RAID devices.
16648 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16650 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
16651 bootloader version instead of 0.
16653 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16655 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
16658 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16660 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
16661 retrieve the metadat sector if size isn't known.
16662 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16664 2010-11-18 Robert Millan <rmh@gnu.org>
16666 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
16667 with grub_memcmp().
16669 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
16671 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
16673 Reported by: Jordan Uggla.
16675 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16677 Make better UTF compliant.
16679 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
16680 sequences as incorrect.
16681 (grub_is_valid_utf8): Likewise.
16682 (grub_utf8_to_ucs4): Likewise.
16683 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
16684 (grub_ucs4_to_utf8_alloc): Likewise.
16685 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
16687 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16689 Make legacy_source behave like source.
16691 * grub-core/commands/legacycfg.c (legacy_file): Don't call
16693 (grub_cmd_legacy_source): Call grub_show_menu if needed.
16695 2010-11-16 Colin Watson <cjwatson@debian.org>
16697 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
16698 (-Wunused implies -Wunused-parameter, but not vice versa).
16700 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
16702 * configure.ac: Make error messages less confusing by testing for
16703 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
16704 accepted, but produces a diagnostic if something else is wrong).
16706 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16708 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
16709 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
16711 (grub_keyboard_controller_init)
16712 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
16713 read the initial state since controller isn't inited yet.
16715 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16717 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
16718 allocate_regbeg may need to create new chunk header.
16720 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16722 Fix quoting in legacy parser.
16724 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
16726 (grub_legacy_parse): Likewise.
16727 Reported by: Jordan Uggla.
16728 Tested by: Jordan Uggla.
16730 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16732 Don't add -lgcc on i386 and x86_64.
16734 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
16735 * conf/Makefile.common (LDADD_KERNEL): Likewise.
16736 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
16738 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16740 * configure.ac: Add -Wno-trampolines when supported.
16742 2010-11-14 Modestas Vainius <modax@debian.org>
16744 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
16747 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16749 Add generic logical block size support for UDF.
16751 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
16752 (GRUB_UDF_BLKSZ): Removed.
16753 (struct grub_udf_data): New field "lbshift" to hold the logical block
16754 size of the file system in log2 format. All users updated.
16755 (sblocklist): Change type to unsigned.
16756 (grub_udf_mount): Change type of "sblklist" to unsigned.
16757 Move AVDP search before VRS recognition, because the latter requires
16758 knowledge of the logical block size, which is detected during the
16760 Detect and validate logical block size during AVDP search, adding
16761 support for block sizes 512, 1024 and 4096.
16762 Make VRS recognition independent of block size.
16764 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16766 Properly handle deleted files on UDF.
16768 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
16769 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
16772 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16774 Support reading files larger than 2 GiB.
16776 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
16777 "offset" to grub_off_t.
16778 (grub_udf_read_file): Likewise for parameter "pos".
16780 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16782 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
16784 (Simple configuration): Refer to Changes from GRUB Legacy about
16785 save_env availability.
16787 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16789 * util/grub-install.in: Ignore empty partition table detection
16790 instead of trying to include part_ module.
16792 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16794 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
16795 LVM on RAID support.
16797 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16799 Properly define WORDS_BIGENDIAN in wrapped environments.
16801 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
16803 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
16805 Reported by: Manoel Rebelo Abranches.
16806 Tested by: Manoel Rebelo Abranches.
16808 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16810 * util/grub-mkconfig.in: Fix quoting.
16812 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16814 Support big ext2 files.
16816 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
16817 (grub_ext2_read_block): Support triple indirect blocks.
16818 (grub_ext2_read_file): Use 64-bit types and read size_high.
16819 (grub_ext2_open): Read size_high.
16820 Reported by: Ximin Luo.
16821 Tested by: Manoel Rebelo Abranches.
16823 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16825 * util/grub-install.in: Handle filenames containing spaces.
16826 Reported by: Jordan Uggla.
16827 Tested by: Jordan Uggla.
16829 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16831 * util/grub-mkconfig.in (grub_script_check): New variable.
16832 Use grub_script_check instead of grub-script-check.
16833 Reported by: Barry Jackson.
16835 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16837 * docs/grub.texi (menu): Correct the order.
16838 Reported by: D. Hugh Redelmeier.
16840 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16842 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
16845 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
16847 * include/grub/elfload.h (grub_elf32_size): New parameter.
16849 Return maximum segments alignment.
16850 (grub_elf64_size): Likewise.
16851 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
16852 Return maximum segments alignment.
16853 (grub_elf64_size): Likewise.
16854 * grub-core/loader/powerpc/ieee1275/linux.c:
16855 (grub_linux_claimmap_iterate): New function. Uses the
16856 "available" property in the "memory" node for memory allocation
16857 for kernel in the PowerPC loader.
16858 (grub_linux_load32): Correctly find linux entry point offset.
16859 (grub_linux_load64): Likewise.
16861 2010-11-07 Robert Millan <rmh@gnu.org>
16863 On mips-yeeloong, build with -march=loongson2f when this flag is
16864 available (GCC >= 4.4).
16865 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
16867 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
16868 or otherwise add -march=mips3.
16870 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
16872 Suppress shell expansion on echo '*' and echo "*" like cases.
16873 Reported by: Jordan Uggla.
16875 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
16876 string arguments before shell expansion.
16877 * tests/grub_cmd_echo.in: New testcases.
16879 2010-11-07 Robert Millan <rmh@gnu.org>
16881 * conf/mips-qemu-mips.rmk: Remove stale file from previous
16884 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
16886 * grub-core/kern/emu/hostdisk.c
16887 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
16889 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16891 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
16892 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
16893 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
16895 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16897 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
16899 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16901 * util/grub-install.in: Replace useless recomendation to pass
16902 --modules with a recomendation to report a bug.
16904 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16906 Properly register serial terminfo.
16907 Reported by: Jordan Uggla
16909 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
16911 (grub_serial_terminfo_output_template): Likewise.
16912 (grub_cmd_serial): Register "serial" with terminfo.
16913 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
16914 grub_serial_terminfo_output.
16916 2010-11-05 Robert Millan <rmh@gnu.org>
16918 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
16921 2010-11-05 Robert Millan <rmh@gnu.org>
16923 On Yeeloong, pass machine type information to Linux.
16925 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
16926 (LOONGSON_MACHTYPE): New macro, set to
16927 "machtype=lemote-yeeloong-2f-8.9inches".
16928 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
16929 additional argument to Linux.
16931 2010-11-04 Robert Millan <rmh@gnu.org>
16933 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
16934 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
16935 (its SATA disks are detected as slaveless IDE master drives on
16937 Reported by Carsten Aulbert.
16939 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
16941 * util/bin2h.c (main): Fix spelling error in generated output.
16943 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
16945 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
16947 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16949 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
16950 vga= option is supplied.
16952 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16954 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
16955 * util/grub.d/10_kfreebsd.in: Likewise.
16956 * util/grub.d/10_linux.in: Likewise.
16957 * util/grub.d/20_linux_xen.in: Likewise.
16959 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16961 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
16962 argument as an argument to no-argument option.
16964 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16966 * util/grub.d/10_linux.in: Add missing load_video with explicit
16967 GRUB_GFXPAYLOAD_LINUX.
16969 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16971 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
16973 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16975 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
16976 elements with invlid index.
16977 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16978 * grub-core/disk/raid.c (insert_array): Automatically reallocate
16980 * include/grub/raid.h (grub_raid_member): New struct.
16981 (grub_raid_array): Transform devices and start_sector into usage of
16982 grub_raid_member. All users updated
16983 (allocated_devs): New member.
16985 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16987 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
16990 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
16992 NetBSD build fix for getline function conflict from gnulib.
16994 * Makefile.util.def (libgrubkern.a): New library for grub kernel
16995 components that depend on gnulib headers.
16996 (libgrubmods.a): Renamed from earlier libgrub.a.
16997 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
16999 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17001 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
17002 install rather than creating a broken install.
17004 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17006 * util/grub-setup.c (argp): Remove misleading example of installing to
17009 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17011 * util/grub-setup.c (setup): Clarify the error message.
17013 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17015 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
17017 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17019 * grub-core/kern/emu/misc.c
17020 (grub_make_system_path_relative_to_its_root)
17021 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
17023 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17025 * grub-core/kern/emu/misc.c
17026 (grub_make_system_path_relative_to_its_root): Revert r2882.
17028 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
17030 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
17031 useless field head. All users updated.
17032 (free_subchunk): Correct handling of IN_REGION subchunk.
17034 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
17036 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
17037 (Supported kernels): Likewise.
17039 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
17041 Make mktemp invocations portable.
17043 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
17044 exit if mktemp fails.
17045 * tests/grub_script_blockarg.in: Likewise.
17046 * tests/partmap_test.in: Likewise.
17047 * tests/util/grub-shell-tester.in: Likewise.
17048 * tests/util/grub-shell.in: Likewise.
17049 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
17050 * Makefile.am: Likewise, and chain shell commands with `&&'
17052 * util/grub-mkrescue.in: Use the same explicit template as above, and
17053 exit if mktemp fails.
17055 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
17057 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
17058 Linux kernel, reported by Dennis Schridde.
17060 2010-10-17 Szymon Janc <szymon@janc.net.pl>
17062 * grub-core/normal/auth.c (grub_auth_check_authentication):
17063 Set-but-not-used variable removed.
17065 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17067 * docs/grub.texi (GNU/Linux): Document APM unavailability with
17068 32-bit linux protocol.
17070 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17072 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
17073 cursor shape for sanity.
17075 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17077 * docs/grub.texi (Installation): Document buggy BIOS install.
17079 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17081 * docs/grub.texi (Installation): Indent.
17083 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17085 * util/grub-setup.c (setup): New parameter allow_floppy.
17086 (arguments): New member allow_floppy.
17087 (argp_parser): Handle --allow-floppy.
17088 (main): Pass allow_floppy.
17089 * util/grub-install.in: New option --allow-floppy passed though to
17092 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17094 * util/grub-install.in: Handle partitionless disks.
17096 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17098 * util/grub-setup.c (setup): Don't clean blocklists before readability
17101 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17103 * docs/grub.texi (Installation): Document embedding zone. Remove
17104 obsolete grub-install example.
17106 2010-10-16 Szymon Janc <szymon@janc.net.pl>
17108 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
17109 Set-but-not-used variable ifdef'ed.
17110 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
17111 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
17113 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
17114 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
17115 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
17116 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
17117 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
17118 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
17119 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
17120 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
17121 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
17122 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
17123 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
17126 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17128 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
17129 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
17132 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17134 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
17135 synonym to _S5_. Needed for some DSDTs.
17137 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17139 Userspace ACPI parser debugging.
17141 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
17142 headers and add relevant defines. Don't include standard headers.
17143 (main) [GRUB_DSDT_TEST]: New function.
17144 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
17145 Don't declare functions.
17147 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17149 Remove dead grub_efi_mm_fini.
17151 * grub-core/kern/efi/mm.c (allocated_page): Removed.
17152 (ALLOCATED_PAGES_SIZE): Likewise.
17153 (MAX_ALLOCATED_PAGES): Likewise.
17154 (allocated_pages): Likewise.
17155 (grub_efi_allocate_pages): Don't record allocated pages.
17156 (grub_efi_free_pages): Likewise.
17157 (grub_efi_mm_init): Likewise.
17158 (grub_efi_mm_fini): Removed.
17160 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17162 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
17163 (grub_efi_mm_init): Take into account the memory map size increase.
17165 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17167 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
17168 (serial_hw_put): Wait based on real time rather than port reads. Don't
17170 * include/grub/serial.h (grub_serial_port): New field broken.
17172 2010-10-16 Robert Millan <rmh@gnu.org>
17174 * grub-core/kern/emu/misc.c
17175 (grub_make_system_path_relative_to_its_root): Fix premature return
17176 when processing non-root ZFS filesystems.
17177 Reported by Sergio Talens-Oliag.
17179 2010-10-15 Robert Millan <rmh@gnu.org>
17181 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
17182 guarantee compressed ones are processed first.
17184 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17186 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
17187 grub_efiemu_autocore.
17189 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17191 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
17193 (grub_console_getkey): Use correct jae opcode rather than ja.
17195 2010-10-12 Robert Millan <rmh@gnu.org>
17197 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
17198 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
17199 variable. All references updated.
17201 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
17203 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
17205 Correctly distinguish mdraid flavours.
17207 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
17208 (insert_array): New argument raid.
17209 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
17210 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
17211 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
17213 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
17215 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
17216 handling of special keys.
17218 2010-10-02 Aleš Nesrsta <starous@volny.cz>
17220 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
17221 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
17223 2010-10-02 Aleš Nesrsta <starous@volny.cz>
17225 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
17226 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
17228 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
17229 Use right endpoint when querying descriptor.
17231 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
17233 Clear out 0x80 color bit on EFI.
17235 Reported by: decoder and meta tech.
17237 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
17238 (grub_console_setcolorstate): Clear out 0x80 bit.
17239 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
17240 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
17241 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
17243 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
17245 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
17248 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17250 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
17251 mo_file after freeing.
17253 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17255 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
17257 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17259 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
17262 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17264 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
17267 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17269 Put terminfo into core on ieee1275 and yeeloong (needed for console).
17271 * gentpl.py: New groups terminfoinkernel and terminfomodule.
17272 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
17273 and terminfo.h when needed.
17274 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
17275 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
17276 (terminfo): Enable only on terminfokernel.
17277 (extcmd): Likewise.
17278 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
17279 * include/grub/lib/arg.h: Likewise.
17280 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
17281 incorrect usage of ->.
17283 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17285 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
17286 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
17288 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17290 Fix coreboot compilation.
17292 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17293 Take VBE info into account even if only text is supported.
17294 (fill_vbe_info): Take into account the case when only VGA text
17296 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
17297 on coreboot, multiboot and qemu.
17299 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17301 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
17303 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
17305 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17307 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
17310 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17312 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
17313 if they were BSD-style.
17315 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17317 * grub-core/boot/i386/pc/lnxboot.S: Replace
17318 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
17319 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
17321 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17323 Write embedding zone using Reed-Solomon.
17325 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
17326 * grub-core/Makefile.am (rs_decoder.S): New target.
17327 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
17328 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
17329 (multiboot): Move to RS part.
17330 (post_reed_solomon): New label.
17331 (grub_boot_drive): Move to non-RS part since it's modified in memory
17333 Include rs_decoder.S.
17334 * grub-core/lib/reed_solomon.c: New file.
17335 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
17337 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
17338 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
17339 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
17340 * include/grub/partition.h (grub_partition_map): Change prototype of
17341 embed to allow returning additional sectors.
17342 * include/grub/reed_solomon.h: New file.
17343 * util/grub-setup.c (setup): Handle Reed-Solomon.
17345 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
17347 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
17348 i386 and x86-64 definedness tests.
17350 2010-09-27 Yves Blusseau <blusseau@zetam.org>
17352 Fix generation of kernel_syms.lst
17354 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
17357 2010-09-26 Robert Millan <rmh@gnu.org>
17359 Support degraded ZFS arrays in "grub-probe -t device" resolution.
17361 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
17362 the pool is an array of devices, iterate through it and return the
17363 first device that passes a stat() test (instead of blindly returning
17366 2010-09-26 Robert Millan <rmh@gnu.org>
17368 Build fixes for GNU/kFreeBSD.
17370 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
17371 to programs that require ZFS conversion.
17372 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
17373 kernels that don't have FLOPPY_MAJOR.
17375 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
17377 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
17379 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
17381 Fix grub-emu build.
17383 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
17384 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
17385 mdraid09 and mdraid1x.
17387 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
17389 Re-enable grub-extras.
17391 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
17392 avoid confusing Automake. Run autogen only twice, once for the top
17393 level and once for grub-core. Add Makefile.util.def and
17394 Makefile.core.def from extra modules to the appropriate autogen
17395 invocations. If Makefile.common exists in an extra module, include
17396 it in both Makefile.util.am and grub-core/Makefile.core.am;
17397 similarly, include any Makefile.util.common file in Makefile.util.am
17398 and any Makefile.core.common file in grub-core/Makefile.core.am.
17399 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
17400 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
17401 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
17402 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
17404 * gentpl.py (gvar_add): Turn GVARS into a set.
17405 (global_variable_initializers): Sort global variables on output.
17406 (vars_init): New function.
17407 (first_time): Likewise.
17408 (library): Ensure that non-global variable initialisations are
17409 emitted before the first time we emit code for a library block.
17410 Append to variables rather than setting them. Only emit
17411 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
17412 each conditional path.
17413 (program): installdir() emits an Autogen macro, so must be passed to
17414 var_add rather than gvar_add.
17416 (script): Likewise.
17417 (rules): New function, centralising handling for different target
17418 types. Set up Guile association lists for first_time and vars_init,
17419 and send most output to a diversion so that variable initialisations
17420 can be emitted first.
17421 (module_rules): Use new rules function.
17422 (kernel_rules): Likewise.
17423 (image_rules): Likewise.
17424 (library_rules): Likewise.
17425 (program_rules): Likewise.
17426 (script_rules): Likewise.
17427 (data_rules): Likewise.
17429 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
17431 * .bzrignore: Add contrib and grub-core/contrib. Remove
17432 grub-core/Makefile.gcry.am.
17434 2010-09-24 Yves Blusseau <blusseau@zetam.org>
17436 * grub-core/lib/LzFind.c: Add missing include.
17437 * grub-core/lib/LzmaEnc.c: Likewise.
17438 * grub-core/script/lexer.c: Likewise.
17439 * grub-core/script/yylex.l: Likewise.
17440 * util/grub-macho2img.c: Likewise.
17441 * util/grub-menulst2cfg.c: Likewise.
17442 * util/grub-mklayout.c: Likewise.
17443 * util/grub-mkpasswd-pbkdf2.c
17444 * util/grub-mkrelpath.c: Likewise.
17445 * util/resolve.c: Likewise.
17447 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
17449 * Makefile.util.def (example_unit_test): Add
17450 grub-core/gnulib/libgnu.a.
17452 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
17454 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
17456 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
17458 Support xz compression on yeeloong.
17460 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
17461 * configure.ac: Check for LZMA.
17462 * grub-core/Makefile.core.def (xz_decompress): New target.
17463 (none_decompress): Likewise.
17464 * grub-core/boot/decompressor/minilib.c: New file.
17465 * grub-core/boot/decompressor/none.c: Likewise.
17466 * grub-core/boot/decompressor/xz.c: Likewise.
17467 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
17468 * grub-core/kern/mips/cache_flush.S: Likewise.
17469 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
17470 * grub-core/kern/mips/startup.S: Move first stage to ...
17471 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
17473 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
17474 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
17475 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
17476 Allocate statically.
17477 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
17478 Allocate statically or use scratch. Don't check CRC32.
17479 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
17480 Allocate statically. Don't check CRC32.
17481 * include/grub/decompressor.h: New file.
17482 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
17484 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
17485 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
17486 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
17487 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
17488 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
17489 * util/grub-mkimage.c (grub_compression_t): New type.
17490 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
17491 (image_target_desc): New field default_compression.
17492 (image_targets): Adjust yeeloong targets.
17493 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
17494 (compress_kernel): New parameter comp.
17495 (generate_image): Likewise. Handle new compression case.
17496 (options): New option --compression
17498 (main): Handle new option.
17500 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
17502 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
17504 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
17506 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
17507 typo in __i386__ conditional.
17509 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
17511 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
17514 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
17516 Implement EFI and ACPI multiboot2 extensions.
17518 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
17519 new tags as supported.
17520 (acpiv2_size): New function.
17521 (grub_multiboot_get_mbi_size): Take new tags into account.
17522 (grub_multiboot_make_mbi): Add new tags.
17523 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
17525 2010-09-21 Aleš Nesrsta <starous@volny.cz>
17527 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
17528 Added missing configuration of USB device.
17530 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17532 * grub-core/normal/menu_entry.c (run): Make sure we always return
17535 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17537 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
17538 NumberOfPages is UINT64 according to the UEFI specification, not
17539 UINTN. Fix printf format.
17541 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17543 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
17544 `err' to grub_usb_err_t.
17545 Reported and tested by: KESHAV P.R.
17547 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17549 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
17550 tpart non-const, so that we can assign to it. (Since this is a
17551 typedef, the constness refers to the pointer rather than what it
17554 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17556 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
17557 $(top_srcdir)/grub-core/gnulib as well as
17558 $(top_builddir)/grub-core/gnulib.
17559 Reported by: KESHAV P.R.
17561 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17563 * util/grub-install.in: Fix the bootloader ID option to be
17564 consistently --bootloader-id, not --bootloader_id.
17565 Reported by: KESHAV P.R.
17567 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17569 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
17570 check hash checksum." consistently translatable.
17572 2010-09-21 Yves Blusseau <blusseau@zetam.org>
17574 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
17577 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17579 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
17580 (GRUB_MOD_INIT): Register sha1sum command.
17581 (GRUB_MOD_FINI): Unregister sha1sum command.
17583 2010-09-21 Yves Blusseau <blusseau@zetam.org>
17585 Keep boot and grub directory names in sync with utils scripts
17587 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
17588 * config.h.in: Add previous macros.
17589 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
17590 * util/grub-install.in: Use $bootdir and $grubdir variables.
17592 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17594 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
17595 convert partition names to disk names if the new `convert' parameter
17597 (grub_util_biosdisk_get_grub_dev): If opening the disk device
17598 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
17599 disk in its own right. This can happen with Xen disk images.
17601 2010-09-21 Yves Blusseau <blusseau@zetam.org>
17603 * util/grub-editenv.c: Update strings to avoid warnings when generating
17605 * util/grub-setup.c: Likewise.
17607 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17609 * configure.ac: Change version to 1.99~beta0.
17611 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17613 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
17615 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
17617 * include/multiboot.h: Resynced with specification.
17618 * include/multiboot2.h: Likewise.
17620 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17622 Fix po directory handling.
17624 * configure.ac: Create po/Makefile.in rather than po/Makefile.
17625 * grub-core/gnulib/Makefile.am: Import gettext module.
17626 * m4/gnulib-cache.m4: Likewise.
17627 * m4/gnulib-comp.m4: Likewise.
17628 * m4/gettext.m4: New file, from gnulib.
17629 * m4/glibc2.m4: Likewise.
17630 * m4/iconv.m4: Likewise.
17631 * m4/intdiv0.m4: Likewise.
17632 * m4/intl.m4: Likewise.
17633 * m4/intldir.m4: Likewise.
17634 * m4/intlmacosx.m4: Likewise.
17635 * m4/intmax.m4: Likewise.
17636 * m4/inttypes-pri.m4: Likewise.
17637 * m4/lcmessage.m4: Likewise.
17638 * m4/lib-ld.m4: Likewise.
17639 * m4/lib-link.m4: Likewise.
17640 * m4/lib-prefix.m4: Likewise.
17641 * m4/lock.m4: Likewise.
17642 * m4/nls.m4: Likewise.
17643 * m4/po.m4: Likewise.
17644 * m4/printf-posix.m4: Likewise.
17645 * m4/progtest.m4: Likewise.
17646 * m4/threadlib.m4: Likewise.
17647 * m4/uintmax_t.m4: Likewise.
17648 * m4/visibility.m4: Likewise.
17649 * po/Makefile.am: Remove.
17650 * po/Makefile.in.in: New file, from gettext.
17651 ($(DOMAIN).pot-update): Support POTFILES-shell.
17652 * po/Makevars: New file.
17653 * po/POTFILES-shell: Rename to ...
17654 * po/POTFILES-shell.in: ... this. Update.
17655 * po/POTFILES: Rename to ...
17656 * po/POTFILES.in: ... this. Update.
17657 * po/Rules-quot: New file, from gettext.
17658 * po/boldquot.sed: Likewise.
17659 * po/en@boldquot.header: Likewise.
17660 * po/en@quot.header: Likewise.
17661 * po/insert-header.sin: Likewise.
17662 * po/quot.sed: Likewise.
17663 * po/remove-potcdate.sin: Likewise.
17665 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17667 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
17669 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17671 * util/grub.d/20_linux_xen.in: Use submenus.
17673 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17677 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
17678 parameter submenu. All users updated.
17679 * grub-core/normal/main.c (free_menu): Rename to ...
17680 (grub_normal_free_menu): ... this. Made global.
17681 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
17683 * grub-core/normal/menu_entry.c (screen): New field submenu.
17684 (make_screen): Set submenu.
17685 (run): Open new context if requested.
17686 * include/grub/menu.h (grub_menu_entry): New field submenu.
17687 * include/grub/normal.h (grub_normal_free_menu): New proto.
17689 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17691 Menu entries extractor.
17693 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
17695 (GRUB_MOD_INIT): Register new variants.
17696 (GRUB_MOD_FINI): Unregister new variants.
17697 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
17698 into grub_cmd_legacy_source.
17699 (grub_cmd_legacy_source): Implement extractor variants.
17700 (GRUB_MOD_INIT): Register new variants.
17701 (GRUB_MOD_FINI): Unregister new variants.
17702 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
17704 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
17705 search as an extractor.
17706 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
17707 test as an extractor.
17708 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
17710 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
17711 (grub_env_new_context): New function.
17712 (grub_env_context_open): Likewise.
17713 (grub_env_extractor_open): Likewise.
17714 (grub_env_extractor_close): Likewise.
17715 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17716 grub_extractor_level.
17717 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
17718 * include/grub/env.h (grub_env_extractor_open): New proto.
17719 (grub_env_extractor_close): Likewise.
17720 * include/grub/normal.h (grub_extractor_level): New external variable.
17722 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17724 Make cutmem accept a region specification.
17725 Suggested by: Samuel Thibault
17727 * grub-core/mmap/mmap.c (parsemem): New function.
17728 (grub_cmd_cutmem): Handle new arguments.
17730 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17732 New command cutmem.
17734 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
17735 (GRUB_MOD_INIT): Register new command.
17736 (GRUB_MOD_FINI): Unregister new command.
17738 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17740 Support some annoying BSD and Minix subpartitions.
17742 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
17743 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
17744 Properly handle concatenation.
17745 * grub-core/kern/device.c (grub_device_iterate): Likewise.
17746 * grub-core/normal/completion.c (iterate_partition): Likewise.
17747 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
17748 contain partition. All users updated.
17749 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
17751 (grub_openbsdlabel_partition_map): Likewise.
17752 (bsdlabel_partition_map_iterate): Rename to ..
17753 (iterate_real): ... this. New arguments sector, freebsd and pmap.
17754 (bsdlabel_partition_map_iterate): New function.
17755 (netopenbsdlabel_partition_map_iterate): Likewise.
17756 (netbsdlabel_partition_map_iterate): Likewise.
17757 (openbsdlabel_partition_map_iterate): Likewise.
17758 (GRUB_MOD_INIT): Register new partmaps.
17759 (GRUB_MOD_FINI): Unregister new partmaps.
17760 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
17761 (grub_partition_msdos_iterate): ... this. All users updated.
17762 Don't support embedding other than in a minix partition.
17763 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
17765 * include/grub/partition.h (grub_partition): New field msdostype.
17766 * util/grub-install.in: Handle openbsd and netbsd types being in
17769 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17771 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
17773 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
17774 * grub-core/Makefile.core.def (mdraid): Renamed to ...
17775 (mdraid09): ... this.
17776 (mdraid1x): New module.
17777 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
17778 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
17780 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17782 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
17785 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17787 * grub-core/commands/efi/lsefimmap.c: Correct header.
17790 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17792 * util/grub-editenv.c (argp_parser): Don't pass translated strings
17793 as printf format strings; the translations might contain '%' which
17794 could cause a crash.
17796 * util/grub-fstest.c (argp_parser): Likewise.
17797 * util/grub-setup.c (argp_parser): Likewise.
17800 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17802 Use argp in grub-fstest.
17804 * util/grub-fstest.c: Don't include getopt.h.
17806 (root): New variable.
17807 (args_count): Likewise.
17809 (num_disks): Likewise.
17810 (images): Likewise.
17812 (debug_str): Likewise.
17814 (options): Transformed to argp.
17816 (main): Split argument parsing into ...
17817 (argp_parser): ... this. Changed to argp format.
17818 (argp): New variable.
17819 (main): Use argp_parse.
17821 2010-09-20 Tristan Gingold <gingold@free.fr>
17822 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
17823 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17825 * grub-core/commands/efi/lsefimmap.c: New file.
17826 * grub-core/Makefile.core.def (lsefimmap): New module.
17827 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
17829 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17831 Pause the execution (10s max) if any errors are displayed so the user
17832 has a chance to see them.
17834 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
17835 (grub_print_error): Increment grub_err_printed_errors.
17836 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
17837 execution if any errors were displayed.
17838 (show_menu): Remove old code for pause.
17839 * grub-core/normal/menu_entry.c (run): Likewise.
17840 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
17842 (grub_normal_get_char_counter): Likewise.
17843 * include/grub/err.h (grub_err_printed_errors): New external variable.
17844 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
17846 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17848 Support multiboot VBE info.
17850 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17851 Take VBE info into account.
17852 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
17853 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
17854 Call fill_vbe_info when appropriate.
17855 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
17856 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
17858 (grub_multiboot_get_mbi_size): Take new tags into account.
17859 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
17860 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
17861 Call fill_vbe_tag when appropriate.
17862 (grub_multiboot_make_mbi): Properly align tags.
17863 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
17865 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
17867 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
17869 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17871 Suport manual terminal geometry specification.
17873 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
17874 Save state in grub_ofconsole_terminfo_output.
17875 (grub_ofconsole_term): Use grub_terminfo_getwh.
17876 (grub_ofconsole_getwh): Removed.
17877 * grub-core/term/serial.c (grub_serial_getwh): Removed.
17878 (grub_serial_term): Use grub_terminfo_getwh.
17879 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
17880 (options): New struct.
17881 (OPTION_*): New enum.
17882 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
17883 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
17885 (grub_terminfo_getwh): New proto.
17886 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
17888 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17890 Handle legacy "terminal" command.
17892 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
17894 (legacy_commands): Add terminal and title.
17895 (grub_legacy_parse): Handle terminal. Simplify title handling.
17897 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17899 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
17900 parameters overflow.
17902 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17904 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
17907 * docs/grub.texi (Shell-like scripting): Document `!'.
17908 (Network): Simplify using new i386-pc-pxe format. Mention
17913 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17915 * Makefile.am (SUBDIRS): Restore "."; it's important to force
17916 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
17919 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17921 * grub-core/commands/efi/lsefisystab.c: Correct header.
17922 * grub-core/commands/efi/lssal.c: Likewise.
17923 * grub-core/commands/testload.c: Likewise.
17925 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17927 * util/grub-mkrescue.in: Add explicit root argument to --set to
17928 prevent the UUID being interpreted as an argument to --set (matches
17929 previous change to prepare_grub_to_access_device).
17931 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17933 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
17934 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
17935 the verbosity of later #ifs.
17936 (find_partition_start): Define this function on FreeBSD too.
17937 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
17939 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
17942 2010-09-20 Yves Blusseau <blusseau@zetam.org>
17944 * util/grub-editenv.c: Use argp instead of getopt.
17946 2010-09-20 Yves Blusseau <blusseau@zetam.org>
17948 * util/grub-setup.c: Use argp instead of getopt.
17950 2010-09-20 Yves Blusseau <blusseau@zetam.org>
17952 Use gnulib-tool to create gnulib source files.
17954 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
17955 grub-core/gnulib directories
17956 * .bzignore: Add **/.deps and autogenerated gnulib files
17957 * configure.ac: Assign auxiliary directory to build-aux, add invocation
17958 of gnulib macros, add grub-core/gnulib/Makefile
17959 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
17960 include m4 directory to aclocal.
17961 * Makefile.util.def: Remove direct compilation of gnulib source files
17962 and use the new grub-core/gnulib/libgnu.a.
17963 * build-aux/config.rpath: move config.rpath from top directory to
17965 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
17967 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
17968 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
17969 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
17971 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
17974 2010-09-20 Yves Blusseau <blusseau@zetam.org>
17976 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
17977 grub-core/genmod.sh and grub-core/gensyminfo.sh
17979 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
17981 Add a test for echo command options.
17983 * tests/grub_cmd_echo.in: New test.
17984 * Makefile.util.def: Rules for new test.
17986 2010-09-20 Szymon Janc <szymon@janc.net.pl>
17988 Remove crc.mod and move crc command to hashsum.mod.
17989 Remove lib/crc.c - users updated to use gcrypt implementation.
17991 * grub-core/commands/crc.c: Removed.
17992 * grub-core/Makefile.core.def (crc): Module removed.
17993 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
17994 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
17995 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
17996 * grub-core/lib/crc.c: Removed.
17997 * include/grub/lib/crc.h: Removed.
17998 * Makefile.util.def (crc): Remove lib/crc.c
17999 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
18000 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
18001 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
18002 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
18003 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
18004 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
18006 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18008 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
18010 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18012 Split config.h for util and core.
18014 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
18015 (ADDR32): Likewise.
18016 (DATA32): Likewise.
18017 (BSS_START_SYMBOL): Likewise.
18018 (END_SYMBOL): Likewise.
18019 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
18020 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
18021 * config.h.in: New file.
18022 * configure.ac: Use config-util.h as config define file.
18023 Rename MACHINE into GRUB_MACHINE. All users updated.
18024 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
18026 (NESTED_FUNC_ATTR): Likewise.
18027 Substitue new variables.
18028 (COND_HAVE_ASM_USCORE): New conditional.
18029 * grub-core/Makefile.am (ASM_PREFIX): New variable.
18030 (kernel_syms.lst): Use ASM_PREFIX.
18031 * grub-core/kern/emu/console.c: Include config-util.h.
18032 * grub-core/kern/emu/misc.c: Likewise.
18033 * grub-core/kern/emu/mm.c: Likewise.
18034 * include/grub/emu/misc.h: Likewise.
18035 * include/grub/libgcc.h: Likewise.
18037 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18039 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
18041 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
18042 Fix GRUB_TERM_KEY_* constants usage.
18043 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
18045 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18047 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
18049 * grub-core/bus/usb/uhci.c: Remove empty define.
18050 (grub_uhci_check_transfer): Add missing cast.
18051 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
18053 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
18055 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
18057 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18059 * grub-core/Makefile.core.def (legacycfg): Add
18060 lib/i386/pc/vesa_modes_table.c on emu.
18062 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
18064 Reduce number of temporary files generated by build system.
18066 * grub-core/gencmdlist.sh: Removed.
18067 * grub-core/genfslist.sh: Removed.
18068 * grub-core/genhandlerlist.sh: Removed.
18069 * grub-core/genmodsrc.sh: Removed.
18070 * grub-core/genpartmaplist.sh: Removed.
18071 * grub-core/genparttoollist.sh: Removed.
18072 * grub-core/gentermiinallist.sh: Removed.
18073 * grub-core/genvideolist.sh: Removed.
18075 * grub-core/genmod.sh.in: New file.
18076 * grub-core/gensyminfo.sh.in: New file.
18078 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
18079 * conf/Makefile.extra-dist: Update with new files.
18080 * gentpl.py: Remove rules related to unnecessary temporary files.
18081 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
18083 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
18085 * grub-core/bus/usb/uhci.c: Remove empty #define.
18086 * grub-core/genmoddep.awk: Updated with new syminfo format.
18087 * util/bash-completion.d/Makefile.am: Add config.log to
18090 2010-09-19 Yves Blusseau <blusseau@zetam.org>
18092 * Makefile.util.def: Add forgotten $(LIBINTL) library.
18094 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
18096 * util/grub-mkconfig.in: Check the config script for syntax errors
18099 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
18100 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18102 * Makefile.util.def (grub-install): Use util/grub-install.in on all
18104 * util/grub-install.in: Add EFI and IEEE1275 support.
18105 * util/i386/efi/grub-install.in: Removed.
18106 * util/ieee1275/grub-install.in: Likewise.
18108 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18110 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
18111 (grub_cmd_cmosclean): Likewise.
18112 (GRUB_MOD_INIT): Register command cmosclean.
18113 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
18114 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
18116 2010-09-18 Carles Pina i Estany <carles@pina.cat>
18117 2010-09-18 Aleš Nesrsta <starous@volny.cz>
18118 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18120 Add keyboard layouts support.
18122 * Makefile.util.def (grub-mklayout): New file.
18123 (grub-kbdcomp): New script.
18124 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
18125 Add keyboard_layouts.h.
18126 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
18127 commands/boot.c on yeeloong.
18128 (keylayouts): New module.
18129 * grub-core/bus/usb/ohci.c
18130 * grub-core/bus/usb/uhci.c
18131 * grub-core/bus/usb/usbhub.c (rescan): New variable.
18132 (grub_usb_add_hub): Poll interrupt pipe for device handling.
18133 (attach_root_port): Likewise.
18134 (poll_nonroot_hub): Likewise.
18135 (grub_usb_poll_devices): Likewise.
18136 (detach_device): Close transfer.
18137 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
18139 (grub_usb_bulk_setup_readwrite): Likewise.
18140 (grub_usb_bulk_finish_readwrite): Likewise.
18141 * grub-core/commands/keylayouts.c: New file.
18142 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
18143 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
18145 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
18146 support scancode 2.
18147 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
18148 * include/grub/keyboard_layouts.h: New file.
18149 * util/grub-mklayout.c: New file.
18150 * util/grub-kbdcomp.in: Likewise.
18152 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18154 Unify memory types.
18156 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
18157 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
18159 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
18160 (grub_upper_mem): Likewise.
18161 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
18162 * include/grub/memory.h (grub_memory_type_t): New enum.
18165 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18167 * grub-core/Makefile.core.def (lsapm): New module.
18168 * grub-core/commands/i386/pc/lsapm.c: New file.
18169 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
18170 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
18172 * include/grub/i386/pc/apm.h: New file.
18173 * include/multiboot.h (multiboot_apm_info): New struct.
18175 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18177 GRUB-legacy configuration file support.
18179 * Makefile.util.def (grub-menulst2cfg): New util.
18180 * docs/man/grub-menulst2cfg.h2m: New file.
18181 * grub-core/Makefile.core.def (legacycfg): New module.
18182 * grub-core/commands/legacycfg.c: New file.
18183 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
18184 (grub_normal_add_menu_entry): ... this.
18185 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
18186 (grub_normal_set_password): ...this.
18187 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
18188 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
18189 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
18190 * grub-core/lib/legacy_parse.c: New file.
18191 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
18192 * include/grub/i386/pc/vesa_modes_table.h: New file.
18193 * include/grub/legacy_parse.h: Likewise.
18194 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
18195 * util/grub-menulst2cfg.c: New file.
18197 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18199 * grub-core/kern/emu/hostdisk.c
18200 (convert_system_partition_to_system_disk): Initialise node.
18202 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18204 * grub-core/kern/emu/hostdisk.c
18205 (convert_system_partition_to_system_disk): Fix devmapper memory pool
18207 Reported and based on patch by: Modestas Vainius.
18209 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18211 Fix DM-RAID probing with recent versions of device-mapper udev
18214 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
18215 canonicalise device paths under /dev/mapper/.
18216 (convert_system_partition_to_system_disk): Compare the
18217 uncanonicalised path to /dev/mapper/ rather than the canonicalised
18218 path, since device nodes under /dev/mapper/ are often symlinks.
18220 2010-09-17 Yves Blusseau <blusseau@zetam.org>
18222 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
18224 2010-09-16 Yves Blusseau <blusseau@zetam.org>
18226 * configure.ac: Avoid some annoying error messages if freetype-config
18227 program is not found.
18229 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18231 Support RAID on virtio devices, and others.
18233 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
18235 [__MINGW32__] (grub_find_device): ... this.
18236 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
18237 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
18238 reasonable default if dir is NULL.
18239 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
18241 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
18242 (grub_guess_root_device): Update callers.
18243 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
18245 * util/raid.c (grub_util_getdiskname): Remove.
18246 (grub_util_raid_getmembers): Use grub_find_device rather than
18247 grub_util_getdiskname.
18249 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18251 * docs/grub.texi (serial): Remove obsolete comment about GRUB
18252 needing to be compiled with serial support.
18253 (ls): Indicate that multiple files are accepted.
18254 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
18255 indicate that multiple files are accepted.
18257 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18259 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
18260 libgrub_a_init.c, and util/bash-completion.d/grub.
18262 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18264 * util/grub-setup.c (setup): Fix incorrect container semantics.
18266 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18268 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
18270 Reported by: J. Nick Terry
18272 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18274 Move embedding routines to partmap sources files.
18276 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
18277 [GRUB_UTIL]: New variable.
18278 (gpt_partition_map_iterate): Set part.parent.
18279 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
18280 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
18281 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
18283 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
18284 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
18285 (grub_partition_map) [GRUB_UTIL]: New field embed.
18286 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
18287 (setup): Use ->embed.
18289 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18291 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
18293 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
18294 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
18296 2010-09-15 Yves Blusseau <blusseau@zetam.org>
18298 Add function to get completions from usage.
18300 * util/bash-completion.d/grub-completion.bash.in: Add function to get
18301 completions from usage. Use LC_ALL=C to get options properly.
18303 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18305 * grub-core/gnulib/basename-lgpl.c: Imported.
18306 * grub-core/gnulib/basename.c: Likewise.
18307 * grub-core/gnulib/dirname-lgpl.c: Likewise.
18308 * grub-core/gnulib/dirname.c: Likewise.
18309 * grub-core/gnulib/dirname.h: Likewise.
18310 * grub-core/gnulib/stripslash.c: Likewise.
18312 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18314 * grub-core/gnulib/error.c: Resynced.
18315 * grub-core/gnulib/getopt.c: Likewise.
18316 * grub-core/gnulib/getopt_int.h: Likewise.
18317 * grub-core/gnulib/regex.h: Likewise.
18318 * grub-core/gnulib/regex_internal.c: Likewise.
18319 * grub-core/gnulib/regex_internal.h: Likewise.
18321 2010-09-15 Szymon Janc <szymon@janc.net.pl>
18323 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
18324 CRC calculations and validity checks.
18325 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
18328 2010-09-15 Szymon Janc <szymon@janc.net.pl>
18330 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
18332 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18334 Fix incorrect echo options handling.
18335 Reported by: Yves Blusseau.
18337 * include/grub/command.h (grub_command_flags_t): New flags
18338 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
18339 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
18340 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
18342 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18344 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
18346 (GRUB_COMMAND_FLAG_MENU): Likewise.
18347 (GRUB_COMMAND_FLAG_BOTH): Likewise.
18348 (GRUB_COMMAND_FLAG_TITLE): Removed.
18349 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
18350 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
18351 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
18352 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
18353 (grub_command_flags_t): New enum. All users updated.
18355 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
18357 Fix solaris compilation.
18359 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
18360 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
18361 (grub-emu-list): Likewise.
18363 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18365 Remove deprecated root command.
18367 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
18370 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18372 * util/i386/pc/grub-setup.c: Merge this ...
18373 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
18374 * util/grub-setup.c: ... into this.
18375 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
18378 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18380 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
18383 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18385 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
18388 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18390 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
18391 explicit root argument to set to prevent UUID to be interpreted as
18394 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18396 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
18398 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18400 Don't export grub_gate_a20.
18402 * grub-core/kern/i386/pc/init.c: Remove leftovers.
18403 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
18405 (grub_gate_a20): ... this. All users updated.
18406 * include/grub/i386/pc/init.h: Removed. All users updated.
18408 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18410 Create euro.pf2 which supports most European languages.
18412 * Makefile.am (grubdata_DATA): Add euro.pf2.
18413 (euro.pf2): New target.
18414 (CLEANFILES): Add euro.pf2.
18416 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18418 * configure.ac: Disable emu-usb by default to prevent inadvertent
18421 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18423 Disable usbserial on grub-emu since our libusb code isn't good enough
18426 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
18427 (usbserial_pl2303): Likewise.
18428 (usbserial_ftdi): Likewise.
18430 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18432 * include/grub/disk.h (grub_disk): Remove has_partitions.
18434 * disk/loopback.c (grub_loopback): Remove has_partitions.
18436 (options): Remove partitions. All users updated.
18437 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
18438 * util/i386/pc/grub-setup.c (setup): copy partition table only when
18439 actual partition table is found.
18441 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18443 Remove readability checks (too many false negatives).
18445 * util/grub-install.in: Remove readability checks.
18446 * util/grub-mkconfig.in: Likewise.
18447 * util/grub.d/10_hurd.in: Likewise.
18448 * util/grub.d/10_kfreebsd.in: Likewise.
18449 * util/grub.d/10_linux.in: Likewise.
18450 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
18453 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18455 Enable acpi shutdown on all ACPI platforms.
18457 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
18458 on coreboo, multiboot and EFI.
18459 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
18460 (grub_acpi_halt): Likewise.
18461 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
18462 (grub_cmd_halt): Don't call grub_acpi_halt directly.
18463 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
18464 * grub-core/lib/i386/halt.c (grub_halt)
18465 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
18467 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18469 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
18472 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18474 * grub-core/video/efi_gop.c: Fix over-80-chars line.
18475 * grub-core/video/efi_uga.c: Likewise.
18477 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18479 Filter devaliases and never open same device twice.
18481 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
18482 (last_ihandle): Likewise.
18483 (ofdisk_hash_ent): New member shortest.
18484 (ofdisk_hash_add): Add canonical path too.
18485 (scan): New function.
18486 (grub_ofdisk_iterate): Iterate over hashed entries.
18487 (compute_dev_path): Don't add :0.
18488 (grub_ofdisk_open): Don't really open the disk.
18489 (grub_ofdisk_close): Avoid closing unrelated disk.
18490 (grub_ofdisk_read): Implement reopen logic.
18491 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
18493 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
18496 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18500 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
18501 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
18502 right address. Add sparc64_ieee1275_ldflags.
18503 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
18504 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
18505 to grub_host_to_target_addr
18506 (load_image): Likewise.
18508 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18510 * grub-core/normal/completion.c (complete_file): Handle device
18512 Fix based on patch by Doug Nazar.
18514 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18516 grub-mknetdir script.
18518 * Makefile.util.def (grub-mknetdir): New module.
18519 * tests/util/grub-shell.in: Support boot=net
18520 * util/grub-mknetdir.in: New file.
18522 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18524 videoinfo on non-vbe.
18526 * grub-core/Makefile.core.def (vbeinfo): Removed.
18527 (vbetest): Removed.
18528 (videoinfo): New module.
18529 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
18530 * grub-core/commands/i386/pc/vbetest.c: Removed.
18531 * grub-core/commands/videoinfo.c: New file.
18532 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
18534 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
18536 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
18537 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
18538 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
18539 mode_number. New parameter mode. All users updated.
18540 (grub_video_gop_iterate): New function.
18541 (grub_video_efi_gop): New member iterate.
18542 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
18543 (grub_vbe_set_video_mode): Remove setting useless fields.
18544 (vbe2videoinfo): New function.
18545 (grub_video_vbe_iterate): Likewise.
18546 (grub_video_vbe_setup): Use vbe2videoinfo.
18547 (grub_video_vbe_print_adapter_specific_info): New function.
18548 (grub_video_vbe_adapter): New fields iterate and
18549 print_adapter_specific_info.
18550 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
18552 (grub_video_mode_info): New field mode_number.
18553 (grub_video_adapter): New fields iterate and
18554 print_adapter_specific_info.
18556 2010-09-13 Tristan Gingold <gingold@free.fr>
18557 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
18558 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18560 * grub-core/commands/efi/lsefisystab.c: New file.
18561 * grub-core/commands/efi/lssal.c: Likewise.
18562 * grub-core/Makefile.core.def (lsacpi): New module.
18563 (lsefisystab): Likewise.
18564 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
18565 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
18566 (grub_efi_sal_system_table): New struct.
18567 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
18568 (grub_efi_sal_system_table_memory_descriptor): Likewise.
18569 (grub_efi_sal_system_table_platform_features): Likewise.
18570 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
18571 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
18572 (grub_efi_sal_system_table_ap_wakeup): Likewise.
18573 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
18575 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18577 Support explicit user claim that a device is BIOS-visible.
18579 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
18580 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
18581 * grub-core/kern/emu/hostdisk.c
18582 (convert_system_partition_to_system_disk): Support mdX.
18583 (find_system_device): New parameter add. All users updated.
18584 (grub_util_biosdisk_is_present): New function.
18585 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
18588 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18590 Search hints support.
18592 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
18595 2010-09-13 Yves Blusseau <blusseau@zetam.org>
18597 Bash completion script for util commands
18599 * Makefile.am: Add util/bash-completion.d directory
18600 * configure.ac: Likewise.
18601 * util/bash-completion.d/Makefile.am: New file.
18602 * util/bash-completion.d/grub-completion.bash.in: Likewise.
18604 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18606 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
18607 (print_backlog): set backlog_ucs4 and backlog_glyphs.
18608 Reported by: Yves Blusseau.
18610 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18612 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
18613 partition size and offset.
18615 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18617 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
18619 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18621 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
18623 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18625 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
18626 (grub_xvasprintf): Likewise.
18628 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18630 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
18632 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18634 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
18635 args ending with NULL.
18637 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18639 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
18642 2010-09-11 Szymon Janc <szymon@janc.net.pl>
18644 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
18646 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18648 Shutdown using ACPI.
18650 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
18651 * grub-core/commands/acpihalt.c: New file.
18652 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
18653 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
18654 (grub_acpi_halt): New proto.
18655 (GRUB_ACPI_SLP_EN): New const.
18656 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
18657 (GRUB_ACPI_OPCODE_*): New enum.
18658 (GRUB_ACPI_EXTOPCODE_*): Likewise.
18660 2010-09-11 Tristan Gingold <gingold@free.fr>
18661 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
18662 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18664 * commands/lsacpi.c: New file.
18665 * grub-core/Makefile.core.def (lsacpi): New module.
18666 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
18667 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
18668 (grub_acpi_madt_entry_header): New struct.
18669 (grub_acpi_madt): Likewise.
18670 (grub_acpi_madt_entry_interrupt_override): Likewise.
18671 (grub_acpi_madt_entry_sapic): Likewise.
18672 (grub_acpi_madt_entry_lsapic): Likewise.
18673 (grub_acpi_madt_entry_platform_int_source): Likewise.
18674 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
18675 (PRIuGRUB_UINT32_T): Likewise.
18676 (PRIxGRUB_UINT64_T): Likewise.
18678 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18680 Implement loading palette on ieee1275_fb.
18682 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
18683 (have_setcolors): Likewise.
18684 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
18685 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
18686 (grub_video_ieee1275_set_palette): Implement.
18688 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18689 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
18691 * util/grub-install.in (grub_partition): New variable.
18692 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
18693 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
18694 Fixes a bug reported by Yves Blusseau.
18696 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18700 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
18701 =grub_cpu_flush_cache on all mips and not only yeeloong.
18702 * configure.ac (COND_mips): New conditional.
18703 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
18705 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
18706 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
18707 [GRUB_LINKER_HAVE_INIT]: New function.
18708 (grub_emu_post_init): Likewise.
18709 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
18710 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
18711 * include/grub/cache.h (_mips): Include mips/cache.h.
18712 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
18713 LVM and RAID prototypes.
18714 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
18715 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
18718 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
18720 * util/grub-install.in: Don't try to verify core.img until after
18721 running grub-mkimage to create it.
18723 2010-09-10 Robert Millan <rmh@gnu.org>
18725 * util/grub.d/10_hurd.in: Add misc readability checks.
18726 * util/grub.d/10_kfreebsd.in: Likewise.
18727 * util/grub.d/10_linux.in: Likewise.
18729 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
18731 * util/grub-install.in: ${imgext} won't be defined here until the
18732 install branch is merged. For the meantime, only verify core.img on
18733 i386-pc and sparc64-ieee1275 platforms.
18735 2010-09-10 Robert Millan <rmh@gnu.org>
18737 Solaris support in grub_find_zpool_from_dir(). Thanks
18738 Seth Goldberg for referring to getextmntent() facility.
18740 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
18742 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
18744 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
18745 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
18746 method for finding zpool name.
18748 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
18750 grub-fstest needs the host and hostfs modules while other utilities
18751 actively require those modules to be absent, so grub-fstest needs
18752 its own initialisation and finalisation code.
18754 * Makefile.am (grub_fstest.pp): New target.
18755 (grub_fstest_init.lst): Likewise.
18756 (grub_fstest_init.c): Likewise.
18757 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
18759 2010-09-10 Robert Millan <rmh@gnu.org>
18761 * configure.ac: Check for `struct statfs.f_fstypename' and
18762 `struct statfs.f_mntfromname'.
18764 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
18765 kFreeBSD-specific code.
18767 2010-09-10 Robert Millan <rmh@gnu.org>
18769 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
18770 on ZFS. Now non-main filesystems are supported as / too.
18772 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
18774 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
18775 and grub-core/disk/host.c to ...
18776 (grub-fstest): ... here. Having the host disk implementation
18777 present confuses grub-probe and other utility programs.
18779 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
18780 when writing to a file, not when writing to stdout.
18782 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
18784 * tests/partmap_test.in: New test for partitions.
18785 * Makefile.util.def: Rules for new test.
18787 2010-09-09 Robert Millan <rmh@gnu.org>
18789 * util/grub-probe.c (probe): Fix a pair of unhandled error
18792 2010-09-09 Robert Millan <rmh@gnu.org>
18794 Basic Btrfs support (detection and UUID).
18796 * grub-core/fs/btrfs.c: New file.
18797 * Makefile.util.def (library): Register btrfs.c.
18798 * grub-core/Makefile.core.def: Likewise.
18800 2010-09-08 Robert Millan <rmh@gnu.org>
18802 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
18803 with (optional) parameters to specify device and relative path.
18804 * util/grub-install.in: Use is_path_readable_by_grub() to
18805 verify readability of a few critical files.
18806 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
18807 verify readability of grub.cfg.new.
18809 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18811 Split minix.mod into minix.mod and minix2.mod.
18813 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
18814 * grub-core/Makefile.core.def (minix2): New module.
18815 * grub-core/fs/minix.c: Use definitions instead of runtime version
18817 * grub-core/fs/minix2.c: New file.
18819 2010-09-08 Yves Blusseau <blusseau@zetam.org>
18821 Add new --boot-directory option to replace --root-directory
18823 * util/grub-install.in: Add new --boot-directory option
18824 * util/grub-reboot.in: Likewise.
18825 * util/grub-set-default.in: Likewise.
18827 2010-09-08 Yves Blusseau <blusseau@zetam.org>
18829 * util/grub-mkconfig.in: Use new variable.
18831 2010-09-08 Yves Blusseau <blusseau@zetam.org>
18833 * configure.ac: Define some useful variables.
18835 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18837 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18838 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
18839 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
18840 Use terminfo and don't use cursor-on/cursor-off unless it's known
18842 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
18843 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
18845 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
18847 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
18848 starts with "(,", fill the drive containing the loaded image in
18849 between those two characters, but expect that a full partition
18850 specification including partition map names will follow.
18852 2010-09-08 Robert Millan <rmh@gnu.org>
18854 * configure.ac: Remove `--enable-grub-fstest' option.
18855 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
18857 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
18858 `grub-fstest' instead of `grub-probe' for readability verification.
18859 * util/grub-probe.c (probe): Remove readability verification kludge.
18861 2010-09-08 Robert Millan <rmh@gnu.org>
18863 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
18864 initializing `GRUB_FS'.
18866 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
18868 Not command (!) support to GRUB script.
18870 * tests/grub_script_not.in: New test.
18871 * Makefile.util.def: Rules for new test.
18873 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
18874 ! command as a special case.
18875 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
18877 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18879 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
18882 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18884 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
18886 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18888 * docs/grub.texi (Shell-like scripting): Documentation for break,
18889 continue, shift and return commands.
18891 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
18893 Rename CD-ROM to cd on BIOS.
18895 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
18897 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
18899 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18901 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
18902 * util/grub-probe.c (main): Likewise.
18903 * util/i386/pc/grub-setup.c (main): Likewise.
18904 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
18905 Reported and debugged by: alexxy
18907 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18909 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
18912 2010-09-05 Jo Shields <directhex@apebox.org>
18914 * util/grub.d/30_os-prober.in: Add missing classes.
18916 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18918 * docs/grub.texi (Theme file format): Document new position format.
18920 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18922 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
18923 a table. Use @code instead of @verbatim.
18925 2010-09-05 Colin D Bennett <colin@gibibit.com>
18927 Gfxmenu documentation.
18929 * docs/grub.texi (Theme file format): New chapter.
18931 2010-09-05 Szymon Janc <szymon@janc.net.pl>
18933 * grub-core/Makefile.core.def (xzio): New module.
18934 * grub-core/io/xzio.c: New file.
18935 * grub-core/lib/xzembed/xz.h: New file (from xembed).
18936 * grub-core/lib/xzembed/xz_config.h: Likewise.
18937 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
18938 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
18939 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
18940 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
18941 * grub-core/lib/xzembed/xz_private.h: Likewise.
18942 * grub-core/lib/xzembed/xz_stream.h: Likewise.
18943 * include/grub/file.h (grub_file_filter_id): New compression filter
18944 GRUB_FILE_FILTER_XZIO.
18946 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18948 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
18949 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
18952 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18954 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
18955 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
18957 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18959 Uncompressed checksum support.
18961 * grub-core/commands/hashsum.c (options): Add option --uncompress.
18962 (check_list): New parameter uncompress.
18963 (grub_cmd_hashsum): Handle --uncompress.
18965 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18967 Reintroduce testload.
18969 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
18971 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
18972 (GRUB_MOD_INIT): New function.
18973 (GRUB_MOD_FINI): Likewise.
18974 * grub-core/Makefile.core.def (testload): New module.
18976 2010-09-05 Szymon Janc <szymon@janc.net.pl>
18978 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
18979 (uint8_t): New type.
18980 (uint16_t): Likewise.
18981 (uint32_t): Likewise.
18982 (uint64_t): Likewise.
18984 2010-09-05 Szymon Janc <szymon@janc.net.pl>
18986 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
18988 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18990 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
18992 (grub_gzfile_open): Removed. All users updated.
18993 (GRUB_MOD_INIT): New function.
18994 (GRUB_MOD_FINI): Likewise.
18995 * grub-core/kern/file.c (grub_file_filters_all): New variable.
18996 (grub_file_filters_enabled): Likewise.
18997 (grub_file_open): Handle filters.
18998 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
18999 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
19000 * include/grub/file.h (grub_file_filter_id_t): New type.
19001 (grub_file_filter_t): Likewise.
19002 (grub_file_filters_all): New extern variable.
19003 (grub_file_filters_enabled): Likewise.
19004 (grub_file_filter_register): New inline function.
19005 (grub_file_filter_unregister): Likewise.
19006 (grub_file_filter_disable): Likewise.
19007 (grub_file_filter_disable_compression): Likewise.
19008 * include/grub/gzio.h: Removed.
19010 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19012 Filename expansion support for wildcards in GRUB script.
19014 * tests/grub_script_expansion.in: New test.
19015 * Makefile.util.def: Rule for new test.
19017 * grub-core/commands/wildcard.c: New file, implements filename
19018 expansion support for GRUB script.
19019 * grub-core/Makefile.core.def: Rule update for regexp.mod.
19020 * grub-core/script/argv.c: Cosmetic changes.
19021 * grub-core/script/execute.c (grub_script_arglist_to_argv):
19022 Refactored to perform wildcard expansion on arguments.
19023 * include/grub/script_sh.h (grub_script_wildcard_translator): New
19026 * tests/util/grub-shell.in: Fix quoting for read input.
19028 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19030 Support for updating environment variables with matched substrings
19033 * tests/grub_cmd_regexp.in: New test.
19034 * Makefile.util.def: Rule for new test.
19036 * grub-core/commands/regexp.c: New option -s to update environment
19037 variables with regexp matches.
19039 2010-09-04 Szymon Janc <szymon@janc.net.pl>
19041 * include/grub/file.h (grub_file): New member not_easly_seekable.
19042 (grub_file_seekable): New inline function.
19043 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
19045 (grub_gzio_open): Set not_easly_seekable.
19046 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
19047 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
19049 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19051 Support for options to appear multiple times on cmdline.
19053 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
19054 * grub-core/commands/extcmd.c: Support for repeatable option.
19055 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
19056 repeatable option support.
19058 Refactor menuentry into a regular command.
19060 * grub-core/commands/menuentry.c: New file, menuentry command
19062 * grub-core/Makefile.core.def: Rule update for normal.mod.
19063 * grub-core/normal/main.c: Moved menuentry creation to
19064 grub-core/commands/menuentry.c.
19065 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
19066 (grub_menu_execute_entry_real): Removed.
19067 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
19069 (grub_script_execute_menuentry): Removed.
19070 * grub-core/script/parser.y (menuentry): Removed.
19071 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
19072 * grub-core/script/yylex.l (menuentry): Removed.
19073 * include/grub/menu.h (grub_menu_init): New prototype.
19074 (grub_menu_fini): New prototype.
19075 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
19076 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
19077 (grub_script_execute_sourcecode): New prototype.
19079 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19081 "return" command for GRUB script functions.
19083 * tests/grub_script_return.in: New test.
19084 * Makefile.util.def: Rules for new test.
19086 * grub-core/script/execute.c (grub_script_return): New function.
19087 * grub-core/script/main.c: Register/unregister return commaond.
19088 * include/grub/script_sh.h (grub_script_return): New prototype.
19090 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19092 "setparams" command to update positional parameters.
19094 * tests/grub_script_setparams.in: New test.
19095 * Makefile.util.def: Rules for new test.
19097 * grub-core/script/argv.c (grub_script_argv_make): New function.
19098 * grub-core/script/execute.c (replace_scope): New function.
19099 (grub_script_setparams): New function.
19100 * grub-core/script/lexer.c: Remove unused variables.
19101 * grub-core/script/main.c: Register/unregister setparams command.
19102 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
19103 (grub_script_setparams): New prototype.
19105 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19107 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
19110 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19112 Support for passing block of commands as an argument to extcmds.
19114 * Makefile.util.def: Rules for new test.
19115 * tests/grub_script_blockarg.in: New test.
19116 * grub-core/tests/test_blockarg.c: New file, block argument
19117 command used in the test.
19119 * include/grub/extcmd.h (grub_extcmd_context): New struct.
19120 (grub_register_extcmd_prio): New function prototype.
19121 (grub_extcmd_dispatcher): New function prototype.
19122 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
19124 * include/grub/script_sh.h (struct grub_script): New members
19125 `children', `next_siblings' and `refcnt' for block arguments and
19126 reference counting.
19127 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
19128 (grub_script_arg): New member `script' for block argument.
19129 (grub_script_argv): New member `script' for block argument.
19130 (grub_parser_param): New member `scripts' for block argument.
19131 (grub_script_mem_free): New extern function prototype.
19132 (grub_script_ref): New function prototype.
19133 (grub_script_unref): New function prototype.
19135 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
19136 extcmd form to support block arguments.
19137 * grub-core/script/argv.c: Block arguments support.
19138 * grub-core/script/execute.c: Likewise.
19139 * grub-core/script/lexer.c: Likewise.
19140 * grub-core/script/main.c: Likewise.
19141 * grub-core/script/script.c: Likewise.
19142 * grub-core/script/parser.y: Likewise. New `block' and `block0'
19145 * grub-core/commands/acpi.c: Update extcmd implementations with
19146 grub_extcmd_context_t.
19147 * grub-core/commands/cat.c: Likewise.
19148 * grub-core/commands/echo.c: Likewise.
19149 * grub-core/commands/extcmd.c: Likewise.
19150 * grub-core/commands/hashsum.c: Likewise.
19151 * grub-core/commands/hdparm.c: Likewise.
19152 * grub-core/commands/help.c: Likewise.
19153 * grub-core/commands/hexdump.c: Likewise.
19154 * grub-core/commands/i386/cpuid.c: Likewise.
19155 * grub-core/commands/i386/pc/drivemap.c: Likewise.
19156 * grub-core/commands/i386/pc/halt.c: Likewise.
19157 * grub-core/commands/i386/pc/sendkey.c: Likewise.
19158 * grub-core/commands/iorw.c: Likewise.
19159 * grub-core/commands/keystatus.c: Likewise.
19160 * grub-core/commands/loadenv.c: Likewise.
19161 * grub-core/commands/ls.c: Likewise.
19162 * grub-core/commands/lspci.c: Likewise.
19163 * grub-core/commands/memrw.c: Likewise.
19164 * grub-core/commands/probe.c: Likewise.
19165 * grub-core/commands/search_wrap.c: Likewise.
19166 * grub-core/commands/setpci.c: Likewise.
19167 * grub-core/commands/sleep.c: Likewise.
19168 * grub-core/disk/loopback.c: Likewise.
19169 * grub-core/hello/hello.c: Likewise.
19170 * grub-core/loader/i386/bsd.c: Likewise.
19171 * grub-core/loader/xnu.c: Likewise.
19172 * grub-core/term/gfxterm.c: Likewise.
19173 * grub-core/term/serial.c: Likewise.
19174 * grub-core/tests/lib/functional_test.c: Likewise.
19176 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19178 Multi-line quoted strings support.
19180 * grub-core/script/lexer.c (append_newline): Removed.
19181 (grub_script_lexer_yywrap): Refactored.
19182 (grub_script_lexer_init): Refactored.
19183 * grub-core/script/yylex.l (yywrap): New function.
19184 (grub_lexer_resplit): New function.
19185 (grub_lexer_unput): New function.
19186 * include/grub/script_sh.h (grub_lexer_param): New members, unput
19188 * tests/grub_script_echo1.in: Added few more testcases.
19190 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
19192 * grub-core/kern/misc.c: Don't add abort alias in utils.
19193 Reported by: echoline.
19195 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
19197 Add missing files into "make dist" tarball for other platforms.
19199 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
19200 * conf/Makefile.common (dist_noinst_DATA): New variable.
19201 * conf/Makefile.extra-dist: Added missing make dist files.
19202 * grub-core/Makefile.core.def: Likewise.
19204 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
19206 Compress grub_prefix.
19208 * grub-core/boot/i386/pc/lnxboot.S: Use
19209 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
19210 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
19211 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
19212 GRUB_MACHINE_PREFIX_END. All users updated.
19213 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
19214 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
19216 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
19217 * util/grub-mkimage.c (image_target_desc): Change data_end to
19218 prefix_end. All users updated.
19220 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
19222 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
19224 (grub_openbsd_boot): Likewise.
19225 (grub_netbsd_boot): Likewise.
19226 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
19227 (grub_xnu_boot): Likewise.
19229 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19231 * configure.ac: Clean LIBS variable after tests.
19233 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19235 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
19237 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19239 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
19240 echo if libdevmapper will be used.
19242 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
19244 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
19245 constant for the same file.
19247 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19249 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
19251 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19253 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
19256 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19258 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
19259 required by the boot protocol.
19261 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
19262 ebp and edi members.
19263 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
19264 state.ebp and state.edi.
19265 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
19266 %ebp and %edi according to grub_relocator32_ebp and
19267 grub_relocator32_edi respectively.
19268 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
19271 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19273 Add i386-pc-pxe image target.
19275 * util/grub-mkimage.c (image_target_desc): New enum value
19277 (image_targets): New target i386-pc-pxe.
19278 (generate_image): Handle i386-pc-pxe image.
19280 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19284 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
19285 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
19287 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
19288 (grub_pxe_pxenv): Correct type.
19290 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
19292 * NEWS: Document most of the important changes since 1.98.
19294 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
19296 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
19297 generated manual page) a little.
19299 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
19301 * docs/grub.texi: Add myself as an author.
19303 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
19305 * Makefile.util.def (libgrub.a): Add missing sunpc.
19306 Reported by: Seth Goldberg.
19308 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19310 Interrupt wrapping and code simplifications.
19312 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
19313 x86_noieee1275 which are functionaly equivalent in this case.
19314 (grub-install): Make source on each platform explicit. Enable on
19316 * gentpl.py (x86_efi_pc): Removed group.
19317 (x86_noefi): Likewise.
19318 (i386_noefi): Likewise.
19319 (x86_noieee1275): Likewise.
19320 (i386_noieee1275): Likewise.
19321 (i386_noefi_noieee1275): Likewise.
19322 (i386_pc_qemu_coreboot): Likewise.
19323 (i386_coreboot_multiboot): Likewise.
19324 (i386_pc_coreboot_multiboot_qemu): Likewise.
19325 (x86_noefi_mips): Likewise.
19326 (noieee1275): Likewise.
19327 (ieee1275_mips): Likewise.
19328 (noemu_noieee1275): Likewise.
19331 (videoinkernel): Likewise.
19332 (videomodules): Likewise.
19333 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
19334 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
19335 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
19336 include/grub/loader.h, include/grub/msdos_partition.h,
19337 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
19338 include/grub/machine/console.h, include/grub/machine/vga.h,
19339 include/grub/machine/vbe.h, include/grub/machine/init.h,
19340 include/grub/machine/kernel.h, include/grub/cpu/time.h,
19341 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
19342 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
19343 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
19344 * grub-core/Makefile.core.def (kernel): Explicit the source for
19345 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
19346 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
19347 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
19348 Use videoinkernel tag.
19349 (usb): Enable on all usb.
19350 (usbserial_common): Likewise.
19351 (usbserial_pl2303): Likewise.
19352 (usbserial_ftdi): Likewise.
19353 (uhci): Enable on all x86.
19354 (ohci): Enable on all pci.
19355 (cmostest): Enable on all CMOS.
19356 (acpi): Include commands/acpi.c on all platforms.
19357 (halt): Add relevant lib/*/halt.c.
19358 (hdparm): Enable on all pci.
19360 (usbtest): Enable on all usb.
19361 (ata): Enable on all pci.
19362 (ata_pthru): Likewise.
19363 (usbms): Enable on all usb.
19364 (usb_keyboard): Likewise.
19365 (font): Use tag videomodules.
19367 (datetime): Use tag cmos. Enable on all noemu.
19368 (mmap): Use tags common and x86.
19369 (gfxterm): Use tag videomodules.
19370 (bitmap): Likewise.
19371 (bitmap_scale): Likewise.
19372 (video_fb): Likewise.
19374 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
19375 adjust padding accordingly. All users updated.
19376 (grub_ohci_transaction): Fix bad format specification.
19377 (GRUB_MOD_INIT): Add asserts for struct size.
19378 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
19379 (grub_alloc_td): Likewise.
19380 (grub_free_queue): Likewise.
19381 (grub_uhci_transfer): Likewise.
19382 (grub_uhci_transaction): Fix bad format specification.
19383 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
19384 (grub_usb_bulk_readwrite): Likewise.
19385 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
19386 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
19388 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
19390 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
19391 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
19392 Transformed into C.
19393 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
19394 Moved from here ...
19395 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
19396 ... here. Transformed into C. Made static.
19397 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
19398 Moved from here ...
19399 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
19400 ... here. Transformed into C. Made static.
19401 * grub-core/kern/i386/pc/startup.S
19402 (grub_biosdisk_check_int13_extensions): Moved from here ...
19403 * grub-core/disk/i386/pc/biosdisk.c
19404 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
19406 * grub-core/kern/i386/pc/startup.S
19407 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
19408 * grub-core/disk/i386/pc/biosdisk.c
19409 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
19410 Transformed into C. Made static.
19411 * grub-core/kern/i386/pc/startup.S
19412 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
19413 * grub-core/disk/i386/pc/biosdisk.c
19414 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
19415 Transformed into C. Made static.
19416 * grub-core/kern/i386/pc/startup.S
19417 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
19418 * grub-core/disk/i386/pc/biosdisk.c
19419 (grub_biosdisk_get_diskinfo_standard): ... here.
19420 Transformed into C. Made static.
19421 * grub-core/kern/i386/pc/startup.S
19422 (grub_biosdisk_get_num_floppies): Moved from here ...
19423 * grub-core/disk/i386/pc/biosdisk.c
19424 (grub_biosdisk_get_num_floppies): ... here.
19425 Transformed into C. Made static.
19426 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
19428 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
19429 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
19430 Transformed into C. Made static.
19431 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
19432 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
19433 Transformed into C. Made static.
19434 * grub-core/kern/i386/ieee1275/init.c: Removed.
19435 * grub-core/kern/i386/misc.S: Likewise.
19436 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
19437 Splitted from here ...
19438 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
19439 Transformed into C. Made static. All users updated.
19440 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
19441 Transformed into C. Made static. All users updated.
19442 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
19444 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
19445 Transformed into C. Made static. All users updated.
19446 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
19448 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
19449 Transformed into C. Made static. All users updated.
19450 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
19451 Removed (replaced by C version).
19452 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
19454 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
19455 Transformed into C. Made static.
19456 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
19458 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
19459 ... here. Transformed into C.
19460 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
19462 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
19463 ... here. Transformed into C.
19464 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
19466 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
19467 ... here. Transformed into C. Made static.
19468 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
19470 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
19471 ... here. Transformed into C.
19472 * grub-core/kern/i386/pc/startup.S
19473 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
19474 * grub-core/video/i386/pc/vbe.c
19475 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
19476 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
19478 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
19479 ... here. Transformed into C.
19480 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
19482 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
19483 ... here. Transformed into C.
19484 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
19486 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
19487 ... here. Transformed into C.
19488 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
19490 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
19491 ... here. Transformed into C.
19492 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
19494 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
19495 ... here. Transformed into C. Made static.
19496 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
19498 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
19499 ... here. Transformed into C. Made static.
19500 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
19502 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
19503 ... here. Transformed into C. Made static.
19504 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
19505 pxe_rm_entry as third argument.
19506 (grub_bios_interrupt): New function.
19507 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
19508 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
19509 of calling grub_stop.
19510 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
19511 * grub-core/lib/efi/halt.c (grub_halt): ...here.
19512 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
19513 * grub-core/lib/emu/halt.c (grub_halt): ... here.
19514 * grub-core/lib/i386/halt.c: Moved from here ...
19515 * grub-core/lib/i386/halt.c: ... here.
19516 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
19517 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
19518 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
19520 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
19521 * include/grub/i386/coreboot/init.h: Removed.
19522 * include/grub/i386/multiboot/init.h: Likewise.
19523 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
19524 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
19525 * include/grub/i386/pc/int.h: New file.
19526 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
19527 (grub_pxe_scan): Removed.
19528 (grub_pxe_call): Update prototype.
19529 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
19531 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
19532 * include/grub/i386/qemu/init.h: Removed.
19533 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
19535 (grub_halt): Likewise.
19536 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
19537 (grub_reboot): Likewise.
19538 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
19539 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
19540 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
19542 2010-08-30 Robert Millan <rmh@gnu.org>
19544 * NEWS: Document addition of ZFS support in `grub-install' and
19547 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
19549 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
19552 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19554 Remove leftover embedding of font objects.
19556 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19557 * util/grub-install.in (font): Removed.
19558 * util/grub-mkimage.c (generate_image): Remove font support. All users
19561 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19563 Remove leftover embedding of font objects.
19565 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19566 * util/grub-install.in (font): Removed.
19567 * util/grub-mkimage.c (generate_image): Remove font support. All users
19570 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19572 * docs/grub.texi (Network): Fix reference to pxe_blksize.
19573 Reported by: Ian Turner
19575 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19577 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
19578 timeout to avoid indefinite boot stalling.
19580 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19582 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
19583 (grub_env_write_color_highlight): Likewise.
19585 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19587 * grub-core/normal/term.c (print_more): Return to normal and not
19588 to standard state after printing "---MORE---".
19590 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19592 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
19593 Mask out the bit 0x80 since it has other meaning that specifiing color.
19595 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19597 New relocator. Allows for more kernel support and more straightforward
19600 * Makefile.am (BOOTTARGET): New variable.
19601 (QEMU32): Likewise.
19602 (linux.init.x86_64): New target.
19603 (linux.init.i386): Likewise.
19604 (multiboot.elf): Likewise.
19605 (kfreebsd.elf): Likewise.
19606 (kfreebsd.aout): Likewise.
19607 (pc-chainloader.elf): Likewise.
19608 (pc-chainloader.bin): Likewise.
19609 (ntldr.elf): Likewise.
19610 (ntldr.bin): Likewise.
19611 (multiboot2.elf): Likewise.
19612 (kfreebsd.init.x86_64): Likewise.
19613 (kfreebsd.init.i386): Likewise.
19614 (knetbsd.init.i386): Likewise.
19615 (kopenbsd.init.i386): Likewise.
19616 (knetbsd.init.x86_64): Likewise.
19617 (kopenbsd.init.x86_64): Likewise.
19618 (linux-initramfs.i386): Likewise.
19619 (linux-initramfs.x86_64): Likewise.
19620 (kfreebsd-mfsroot.i386.img): Likewise.
19621 (knetbsd.image.i386): Likewise.
19622 (kopenbsd.image.i386): Likewise.
19623 (kopenbsd.image.x86_64): Likewise.
19624 (knetbsd.miniroot-image.i386.img): Likewise.
19625 (kfreebsd-mfsroot.x86_64.img): Likewise.
19626 (knetbsd.image.x86_64): Likewise.
19627 (knetbsd.miniroot-image.x86_64.img): Likewise.
19628 (kfreebsd-mfsroot.i386.gz): Likewise.
19629 (bootcheck-kfreebsd-i386): Likewise.
19630 (kfreebsd-mfsroot.x86_64.gz): Likewise.
19631 (bootcheck-kfreebsd-x86_64): Likewise.
19632 (knetbsd.miniroot-image.i386.gz): Likewise.
19633 (bootcheck-knetbsd-i386): Likewise.
19634 (bootcheck-kopenbsd-i386): Likewise.
19635 (bootcheck-kopenbsd-x86_64): Likewise.
19636 (knetbsd.miniroot-image.x86_64.gz): Likewise.
19637 (bootcheck-knetbsd-x86_64): Likewise.
19638 (bootcheck-linux-i386): Likewise.
19639 (bootcheck-linux-x86_64): Likewise.
19640 (bootcheck-linux16-i386): Likewise.
19641 (bootcheck-linux16-x86_64): Likewise.
19642 (bootcheck-multiboot): Likewise.
19643 (bootcheck-multiboot2): Likewise.
19644 (bootcheck-kfreebsd-aout): Likewise.
19645 (bootcheck-pc-chainloader): Likewise.
19646 (bootcheck-ntldr): Likewise.
19647 (CLEANFILES): Add new targets.
19648 (BOOTCHECKS): New variable.
19649 (.PHONY): Add bootchecks.
19650 (SUCCESSFUL_BOOT_STRING): New variable.
19651 (BOOTCHECK_TIMEOUT): Likewise.
19652 (bootcheck): New target
19653 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
19654 * configure.ac: Correct efiemu excuse.
19655 * docs/grub.texi (Supported kernels): New chapter.
19656 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
19657 include/grub/mm_private.h. Simplify inclusion of
19658 include/grub/boot.h, include/grub/loader.h
19659 and include/grub/msdos_partition.h
19660 (KERNEL_HEADER_FILES) [i386_coreboot]:
19661 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
19662 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
19663 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
19664 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
19665 include/grub/machine/loader.h.
19666 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
19667 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
19669 (pci.mod): Enable on i386-multiboot.
19670 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
19671 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
19673 (relocator.mod): Rewritten.
19674 (aout.mod): Enable on all x86.
19675 (bsd.mod): Likewise.
19676 (ntldr.mod): New module.
19677 (linux.mod): Use loader/i386/linux.c on all x86.
19678 (xnu.mod): Enable on all x86.
19679 (vga_text.mod): disable on EFI and QEMU.
19680 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
19681 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
19682 * grub-core/efiemu/loadcore.c: Likewise.
19683 * grub-core/efiemu/main.c: Likewise.
19684 (grub_efiemu_exit_boot_services): Removed.
19685 (grub_efiemu_finish_boot_services): Likewise.
19686 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
19688 * grub-core/efiemu/i386/nocfgtables.c: New file.
19689 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
19690 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
19691 (grub_efi_finish_boot_services): Moved from here ...
19692 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
19693 Fille finish memory map and related data.
19694 (finish_mmap_buf): New variable.
19695 (grub_efi_uintn_t finish_mmap_size): Likewise.
19696 (grub_efi_uintn_t finish_key): Likewise.
19697 (grub_efi_uintn_t finish_desc_size): Likewise.
19698 (grub_efi_uint32_t finish_desc_version): Likewise.
19699 (grub_efi_is_finished): Likewise.
19700 (grub_efi_get_memory_map): Use saved memory map if EFI is already
19702 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
19703 (grub_elf64_phdr_iterate): Likewise.
19704 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
19705 (grub_os_area_size): Likewise.
19706 (grub_machine_init): Don't reserve os area.
19707 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
19708 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
19709 * grub-core/kern/i386/loader.S: Removed.
19710 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
19711 (grub_os_area_size): Likewise.
19712 (grub_machine_init): Don't reserve os area.
19713 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
19714 Don't call grub_dl_unload_all.
19715 Don't include loader.S.
19716 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
19717 Declare the memory after _end as available.
19718 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
19719 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
19720 (GRUB_MM_ALLOC_MAGIC): Moved from here...
19721 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
19722 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
19723 * include/grub/mm_private.h (grub_mm_header): ... here.
19724 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
19725 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
19726 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
19727 (grub_mm_region): ..here. Removed addr. Added pre_size.
19729 * grub-core/kern/mm.c (base): Renamed to ...
19730 (grub_mm_base): ... this. Made global.
19731 (grub_real_malloc): Alloc from end of region.
19732 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
19733 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
19734 * grub-core/kern/powerpc/cache_flush.S: ... here.
19735 * grub-core/lib/efi/relocator.c: New file.
19736 * grub-core/lib/i386/relocator.c: Rewritten.
19737 * grub-core/lib/i386/relocator16.S: New file.
19738 * grub-core/lib/i386/relocator32.S: Likewise.
19739 * grub-core/lib/i386/relocator64.S: Likewise.
19740 * grub-core/lib/i386/relocator_asm.S: Rewritten.
19741 * grub-core/lib/i386/relocator_common.S: New file.
19742 * grub-core/lib/ieee1275/relocator.c: Likewise.
19743 * grub-core/lib/mips/relocator.c: Rewritten.
19744 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
19745 stylistic adjustments.
19746 * grub-core/lib/powerpc/relocator.c: New file.
19747 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
19748 * grub-core/lib/relocator.c: Rewritten.
19749 * grub-core/lib/x86_64/relocator_asm.S: New file.
19750 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
19751 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
19752 (bsd_tag): New struct.
19753 (tags): New variable.
19754 (tags_last): Likewise.
19755 (netbsd_module): New struct.
19756 (netbsd_mods): New variable.
19757 (netbsd_mods_last): Likewise.
19758 (openbsd_opts): New parameter "serial".
19759 (OPENBSD_SERIAL_ARG): New definition.
19760 (netbsd_opts): New parameter "serial".
19761 (NETBSD_SERIAL_ARG): New definition.
19762 (grub_freebsd_add_meta): Reorganised into ...
19763 (grub_bsd_add_meta): ...this. All users updated.
19764 (grub_freebsd_add_mmap): Reorganised into ...
19765 (generate_e820_mmap): ...this...
19766 (grub_bsd_add_mmap): ...and this. All users updated.
19767 (grub_freebsd_list_modules): Use tags.
19768 (grub_netbsd_add_meta_module): New function.
19769 (grub_netbsd_list_modules): Likewise.
19770 (grub_freebsd_boot): Use relocator and finish EFI.
19771 (grub_openbsd_boot): Likewise.
19772 (grub_netbsd_setup_video): New function.
19773 (grub_netbsd_add_modules): Likewise.
19774 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
19776 (grub_bsd_unload): Unload tags.
19777 (grub_bsd_load_aout): Use relocator.
19778 (grub_bsd_elf32_size_hook): New function.
19779 (grub_bsd_elf32_hook): Use relocator.
19780 (grub_bsd_elf64_size_hook): New function.
19781 (grub_bsd_elf64_hook): Use relocator.
19782 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
19783 (grub_bsd_load): Zero-out openbsd_ramdisk.
19784 (grub_bsd_load): Use relocator.
19785 (grub_cmd_openbsd): Support serial.
19786 (grub_cmd_netbsd): Support modules.
19787 (grub_cmd_freebsd_module): Use relocator.
19788 (grub_netbsd_module_load): New function.
19789 (grub_cmd_netbsd_module): Likewise.
19790 (grub_cmd_openbsd_ramdisk): Likewise.
19791 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
19793 (GRUB_MOD_FINI): Unregister new commands.
19794 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
19795 (grub_freebsd_load_elfmodule_obj): Use relocator.
19796 (grub_freebsd_load_elfmodule): Likewise.
19797 (grub_freebsd_load_elf_meta): Likewise.
19798 (grub_netbsd_load_elf_meta): New function.
19799 (grub_openbsd_find_ramdisk): Likewise.
19800 * grub-core/loader/i386/bsd_helper.S: Removed.
19801 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
19802 * grub-core/loader/i386/bsd_trampoline.S: Removed.
19803 * grub-core/loader/i386/efi/linux.c: Likewise.
19804 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
19805 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
19806 (DEFAULT_VIDEO_MODE): Likewise.
19807 (real_mode_target): New variable.
19808 (prot_mode_target): Likewise.
19809 (initrd_mem_target): Likewise.
19810 (relocator): Likewise.
19811 (efi_mmap_buf): Likewise.
19812 (efi_mmap_size): Likewise.
19813 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
19814 (free_pages): Use relocator.
19815 (allocate_pages): Account for efi_mmap and use relocator. Return error.
19816 (grub_linux_setup_video): Return error.
19817 (grub_linux_trampoline_start): Removed.
19818 (grub_linux_trampoline_end): Likewise.
19819 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
19820 andd video parameters depending on firmware.
19821 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
19822 [GRUB_MACHINE_EFI]: Pass EFI parameters.
19823 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
19824 (grub_cmd_initrd): Use relocator.
19825 * grub-core/loader/i386/linux_trampoline.S: Removed.
19826 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
19827 (elf_sec_entsize): Likewise.
19828 (elf_sec_shstrndx): Likewise.
19829 (elf_sections): Likewise.
19830 (grub_multiboot_load): Use relocator.
19831 (grub_multiboot_get_mbi_size): Account for sections.
19832 (grub_multiboot_make_mbi): Use relocator and support sections.
19833 (grub_multiboot_add_elfsyms): New function.
19834 (grub_multiboot_free_mbi): Free sections.
19835 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
19836 (grub_linux_real_target): Likewise.
19837 (grub_linux_real_chunk): Likewise.
19838 (grub_linux16_prot_size): Likewise.
19839 (grub_linux16_boot): Use relocator.
19840 (grub_linux_unload): Unload relocator.
19841 (grub_cmd_linux): Use relocator.
19842 (grub_cmd_initrd): Likewise.
19843 * grub-core/loader/i386/pc/ntldr.c: New file.
19844 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
19845 Don't try to guess CPU frequency.
19846 (grub_xnu_set_video): Stretch bitmap.
19847 (grub_xnu_boot): Use relocator.
19848 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
19849 (grub_linux_unload): Free relocator.
19850 (grub_linux_load32): Use relocator.
19851 (grub_linux_load64): Likewise.
19852 (grub_cmd_initrd): Likewise.
19853 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
19854 (grub_multiboot_unload): Unload relocator.
19855 (grub_cmd_multiboot): Use relocator.
19856 (grub_cmd_module): Likewise.
19857 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
19858 Use relocator and support sections.
19859 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
19860 (elf_sec_entsize): Likewise.
19861 (elf_sec_shstrndx): Likewise.
19862 (elf_sections): Likewise.
19863 (grub_multiboot_load): Use relocator.
19864 (grub_multiboot_get_mbi_size): Account for sections.
19865 (grub_multiboot_make_mbi): Use relocator and support sections.
19866 (grub_multiboot_add_elfsyms): New function.
19867 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
19868 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
19869 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
19870 Prototype changed. All users updated.
19871 (grub_xnu_align_heap): Simplified.
19872 (grub_xnu_writetree_toheap): Likewise.
19873 (grub_xnu_unload): Unload relocator.
19874 (grub_cmd_xnu_kernel): Use relocator.
19875 (grub_cmd_xnu_kernel64): Likewise.
19876 (grub_xnu_register_memory): Simplified.
19877 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
19878 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
19880 (grub_console_checkkey): Likewise.
19881 (grub_console_getkey): Likewise.
19882 (grub_console_getwh): Likewise.
19883 (grub_console_getxy): Likewise.
19884 (grub_console_gotoxy): Likewise.
19885 (grub_console_cls): Likewise.
19886 (grub_console_setcolorstate): Likewise.
19887 (grub_console_setcursor): Likewise.
19888 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
19889 * grub-core/tests/boot/kbsd.init-i386.S: New file.
19890 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
19891 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
19892 * grub-core/tests/boot/kernel-8086.S: Likewise.
19893 * grub-core/tests/boot/kernel-i386.S: Likewise.
19894 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
19895 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
19896 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
19897 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
19898 * grub-core/tests/boot/knetbsd.cfg: Likewise.
19899 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
19900 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
19901 * grub-core/tests/boot/linux.cfg: Likewise.
19902 * grub-core/tests/boot/linux.init-i386.S: Likewise.
19903 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
19904 * grub-core/tests/boot/linux16.cfg: Likewise.
19905 * grub-core/tests/boot/multiboot.cfg: Likewise.
19906 * grub-core/tests/boot/multiboot2.cfg: Likewise.
19907 * grub-core/tests/boot/ntldr.cfg: Likewise.
19908 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
19909 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
19910 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
19912 * include/grub/dl.h (grub_dl_unload_all): Removed.
19913 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
19914 (grub_efi_finish_boot_services): Change prototype.
19915 (grub_efi_is_finished): New variable.
19916 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
19918 (grub_efiemu_finish_boot_services): Removed.
19919 (grub_machine_efiemu_init_tables): New prototype.
19920 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
19921 (grub_elf64_phdr_iterate): Likewise.
19922 * include/grub/i386/bsd.h: Include relocator.h.
19923 (freebsd_tag_header): New struct.
19924 (grub_openbsd_bios_mmap): Removed.
19925 (grub_unix_real_boot): Removed.
19926 (grub_freebsd_load_elfmodule32): Changed prototype.
19927 (grub_freebsd_load_elfmodule_obj64): Likewise.
19928 (grub_freebsd_load_elf_meta32): Likewise.
19929 (grub_freebsd_load_elf_meta64): Likewise.
19930 (grub_freebsd_add_meta): Removed.
19931 (grub_netbsd_load_elf_meta32): New prototype.
19932 (grub_netbsd_load_elf_meta64): Likewise.
19933 (grub_bsd_add_meta): Likewise.
19934 (grub_openbsd_ramdisk_descriptor): New struct.
19935 (grub_openbsd_find_ramdisk32): New prototype.
19936 (grub_openbsd_find_ramdisk64): Likewise.
19937 * include/grub/i386/coreboot/loader.h: Removed.
19938 * include/grub/i386/efi/loader.h: Likewise.
19939 * include/grub/i386/ieee1275/loader.h: Likewise.
19940 * include/grub/i386/linux.h (linux_kernel_header): Change void *
19942 * include/grub/i386/loader.h: Removed.
19943 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
19945 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
19946 (grub_phys_addr_t): New type.
19947 (grub_vtop): New inline function.
19948 (grub_map_memory): Likewise.
19949 (grub_unmap_memory): Likewise.
19950 * include/grub/i386/multiboot/loader.h: Removed.
19951 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
19952 (NETBSD_BTINFO_CONSOLE): New definition.
19953 (NETBSD_BTINFO_SYMTAB): Likewise.
19954 (NETBSD_BTINFO_MODULES): Likewise.
19955 (NETBSD_BTINFO_FRAMEBUF): Likewise.
19956 (grub_netbsd_bootinfo): New struct.
19957 (grub_netbsd_btinfo_common): Use explicit bitsize.
19958 (grub_netbsd_btinfo_mmap_entry): Removed.
19959 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
19960 (grub_netbsd_btinfo_bootdisk): New struct.
19961 (grub_netbsd_btinfo_symtab): Likewise.
19962 (grub_netbsd_btinfo_serial): Likewise.
19963 (grub_netbsd_btinfo_modules): Likewise.
19964 (grub_netbsd_btinfo_framebuf): Likewise.
19965 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
19966 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
19968 (grub_openbsd_bootargs): Use explicit bitsize.
19969 (grub_openbsd_bootarg_console): New struct.
19970 (GRUB_OPENBSD_COM_MAJOR): New definition.
19971 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
19972 * include/grub/i386/pc/efiemu.h: Removed.
19973 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
19974 * include/grub/i386/qemu/loader.h: Removed.
19975 * include/grub/i386/relocator.h: Rewritten.
19976 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
19977 * include/grub/mips/memory.h: New file.
19978 * include/grub/mips/multiboot.h: Rewritten.
19979 * include/grub/mips/relocator.h: Rewritten.
19980 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
19981 (grub_vtop): New function.
19982 (grub_map_memory): Likewise.
19983 (grub_unmap_memory): Likewise.
19984 * include/grub/misc.h (ALIGN_DOWN): New definition.
19985 * include/grub/mm.h (grub_mm_check_real): New proto.
19986 (GRUB_MM_CHECK): New definition.
19987 * include/grub/mm_private.h: New file.
19988 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
19989 (grub_multiboot_get_mbi_size): Removed.
19990 (grub_multiboot_make_mbi): Change prottype.
19991 (grub_multiboot_set_accepts_video): New proto.
19992 (grub_multiboot_add_elfsyms): Likewise.
19993 (grub_multiboot_payload_eip): New variable.
19994 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
19996 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
19998 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
19999 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
20000 * include/grub/powerpc/ieee1275/loader.h: Removed.
20001 * include/grub/powerpc/memory.h: New file.
20002 * include/grub/powerpc/relocator.h: Likewise.
20003 * include/grub/relocator.h: Likewise.
20004 * include/grub/relocator_private.h: Likewise.
20005 * include/grub/sparc64/ieee1275/loader.h: Removed.
20006 * include/grub/x86_64/memory.h: New file.
20007 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
20008 (grub_xnu_heap_malloc): Likewise.
20009 (grub_xnu_heap_real_start): Removed.
20010 (grub_xnu_heap_start): Likewise.
20011 (grub_xnu_relocator): New variable.
20012 (grub_xnu_heap_target_start): Likewise.
20013 * tests/util/grub-shell.in: Support non-pc.
20014 * util/grub-mkimage.c (image_targets): Fix multiboot target.
20016 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20018 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
20020 (grub_bidi_logical_to_visual): Check that malloc succeded.
20021 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
20023 (grub_xputs_normal): Likewise.
20025 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20027 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
20030 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20032 * grub-core/efiemu/runtime/efiemu.sh: Removed.
20034 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20036 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
20038 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20040 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
20043 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
20045 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
20047 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20049 * grub-core/normal/term.c (print_more): Fix a memory leak.
20050 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
20051 (grub_xputs_normal): Likewise.
20053 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20055 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
20056 the begining of the string
20058 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20060 * grub-core/script/script.c (grub_script_parse): Free parsed on
20063 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20065 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
20068 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20070 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
20073 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20075 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
20076 (scroll_up): Fix a memory leak.
20078 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20080 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
20083 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
20085 Handle USB pendrives exposed as floppies.
20087 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
20089 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
20090 Check for partitions on all devices.
20092 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20094 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
20095 (readkey): Likewise.
20097 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
20099 Multiple variable names support to "export" command.
20101 * normal/context.c (grub_cmd_export): "export" command supports
20102 multiple variable names.
20104 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
20106 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
20107 --target=drive output to Mach device name.
20109 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
20111 New Automake based build system for GRUB.
20113 * ABOUT-NLS: New file.
20114 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
20115 in Makefile.util.def file.
20116 * Makefile.util.def: New file. Autogen build definitions file for
20118 * conf/Makefile.common: New file. Common variables for GRUB host
20119 utils and target modules.
20120 * conf/Makefile.extra-dist: New file. Extra files for make dist.
20121 * docs/Makefile.am: New file. Automake file for docs.
20122 * gentpl.py: New file. Python script to generate Autogen
20124 * grub-core/Makefile.am: New file. GRUB target modules' rules
20125 that doesn't fit in Makefile.core.def file.
20126 * grub-core/Makefile.core.def: New file. Autogen build
20127 definitions file for GRUB target modules.
20128 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
20129 specific setjmp.S file.
20130 * po/Makefile.am: New file.
20132 * .bzrignore: New ignores.
20133 * INSTALL: New requirements, without Ruby.
20134 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
20135 * autogen.sh: Updated to invoke autogen as necessary.
20136 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
20137 and defines for Automake conditionals.
20138 * geninit.sh: Refactoring.
20140 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
20142 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
20145 * include/grub/test.h: Fix functional test modules' naming.
20146 * grub-core/tests/example_functional_test.c: Fix test module name.
20148 * util/misc.c: Hosted versions' of grub functions for libgrub.a
20149 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
20150 * util/grub-editenv.c: Likewise.
20151 * util/grub-fstest.c: Likewise.
20152 * util/grub-mkdevicemap.c: Likewise.
20153 * util/grub-mkfont.c: Likewise.
20154 * util/grub-mkimage.c: Likewise.
20155 * util/grub-mkpasswd-pbkdf2.c: Likewise.
20156 * util/grub-probe.c: Likewise.
20157 * util/grub-script-check.c: Likewise.
20158 * util/i386/pc/grub-setup.c: Likewise.
20159 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20161 * tests/util/grub-shell.in: Fix override directory path.
20162 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
20163 * util/import_gcry.py: Create Makefile.gcry.def file instead.
20165 * util/lvm.c: Update #includes.
20166 * util/raid.c: Likewise.
20167 * util/resolve.c: Likewise.
20168 * grub-core/bus/emu/pci.c: Likewise.
20169 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
20170 * grub-core/lib/posix_wrap/string.h: Likewise.
20171 * grub-core/kern/emu/main.c: Likewise.
20173 * grub-core/gensymlist.sh: New file. Script for generating kernel
20175 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
20177 * grub-core/gentrigtables.c: Fix unused variable warnings.
20179 * Makefile.in: Removed.
20180 * conf/any-emu.rmk: Removed.
20181 * conf/common.rmk: Removed.
20182 * conf/i386-coreboot.rmk: Removed.
20183 * conf/i386-efi.rmk: Removed.
20184 * conf/i386-ieee1275.rmk: Removed.
20185 * conf/i386-multiboot.rmk: Removed.
20186 * conf/i386-pc.rmk: Removed.
20187 * conf/i386-qemu.rmk: Removed.
20188 * conf/i386.rmk: Removed.
20189 * conf/mips-yeeloong.rmk: Removed.
20190 * conf/mips.rmk: Removed.
20191 * conf/powerpc-ieee1275.rmk: Removed.
20192 * conf/sparc64-ieee1275.rmk: Removed.
20193 * conf/tests.rmk: Removed.
20194 * conf/x86-efi.rmk: Removed.
20195 * conf/x86_64-efi.rmk: Removed.
20196 * gendistlist.sh: Removed.
20197 * geninitheader.sh: Removed.
20198 * genkernsyms.sh.in: Removed.
20199 * genmk.rb: Removed.
20200 * gensymlist.sh.in: Removed.
20201 * mkinstalldirs: Removed.
20203 * grub-core/boot: ... to here.
20205 * grub-core/bus: ... to here.
20206 * commands: Moved ...
20207 * grub-core/commands: ... to here.
20209 * grub-core/disk: ... to here.
20210 * efiemu: Moved ...
20211 * grub-core/efiemu: ... to here.
20213 * grub-core/font: ... to here.
20215 * grub-core/fs: ... to here.
20216 * gencmdlist.sh: Moved ...
20217 * grub-core/gencmdlist.sh: ... to here.
20218 * genemuinit.sh: Moved ...
20219 * grub-core/genemuinit.sh: ... to here.
20220 * genemuinitheader.sh: Moved ...
20221 * grub-core/genemuinitheader.sh: ... to here.
20222 * genfslist.sh: Moved ...
20223 * grub-core/genfslist.sh: ... to here.
20224 * genhandlerlist.sh: Moved ...
20225 * grub-core/genhandlerlist.sh: ... to here.
20226 * genmoddep.awk: Moved ...
20227 * grub-core/genmoddep.awk: ... to here.
20228 * genmodsrc.sh: Moved ...
20229 * grub-core/genmodsrc.sh: ... to here.
20230 * genpartmaplist.sh: Moved ...
20231 * grub-core/genpartmaplist.sh: ... to here.
20232 * genparttoollist.sh: Moved ...
20233 * grub-core/genparttoollist.sh: ... to here.
20234 * genterminallist.sh: Moved ...
20235 * grub-core/genterminallist.sh: ... to here.
20236 * gentrigtables.c: Moved ...
20237 * grub-core/gentrigtables.c: ... to here.
20238 * genvideolist.sh: Moved ...
20239 * grub-core/genvideolist.sh: ... to here.
20240 * gettext: Moved ...
20241 * grub-core/gettext: ... to here.
20242 * gfxmenu: Moved ...
20243 * grub-core/gfxmenu: ... to here.
20244 * gnulib: Moved ...
20245 * grub-core/gnulib: ... to here.
20247 * grub-core/hello: ... to here.
20249 * grub-core/hook: ... to here.
20251 * grub-core/io: ... to here.
20253 * grub-core/kern: ... to here.
20255 * grub-core/lib: ... to here.
20256 * loader: Moved ...
20257 * grub-core/loader: ... to here.
20259 * grub-core/mmap: ... to here.
20260 * normal: Moved ...
20261 * grub-core/normal: ... to here.
20262 * partmap: Moved ...
20263 * grub-core/partmap: ... to here.
20264 * parttool: Moved ...
20265 * grub-core/parttool: ... to here.
20266 * script: Moved ...
20267 * grub-core/script: ... to here.
20269 * grub-core/term: ... to here
20270 * tests/example_functional_test.c: Moved ...
20271 * grub-core/tests/example_functional_test.c: ... to here.
20272 * tests/lib/functional_test.c: Moved ...
20273 * grub-core/tests/lib/functional_test.c: ... to here.
20274 * tests/lib/test.c: Moved ...
20275 * grub-core/tests/lib/test.c: ... to here.
20277 * grub-core/video: ... to here.
20279 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
20281 Replace --enable-grub-emu-modules with grub-emu-lite.
20283 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
20286 * include/grub/emu/misc.h (grub_emu_init): New prototype.
20287 * kern/emu/full.c: New file. For grub-emu specific initialization.
20288 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
20289 * kern/emu/main.c: Call initialization function grub_emu_init.
20291 * Makefile.in: Include grub-emu-lite in install.
20292 * commands/parttool.c: Use grub_no_autoload to differentiate
20293 between grub-emu and grub-emu-lite.
20294 * include/grub/misc.h: New variable grub_no_autoload.
20296 * conf/any-emu.rmk: New rules for grub-emu-lite.
20297 * configure.ac: Remove --enable-grub-emu-modules.
20298 * genmk.rb: Cleanup unnecessary rules.
20299 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
20301 * normal/main.c: Don't load list files on grub-emu-lite.
20302 * util/misc.c (grub_arch_sync_caches): Removed.
20304 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
20306 * kern/mips/startup.S (grub_prefix): Update comment to refer to
20307 grub-mkimage rather than grub-mkelfimage.
20308 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
20310 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
20312 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
20313 a key after CapsLock or NumLock. It's just a qemu bug.
20315 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
20317 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
20318 needed by libusb wrapper.
20320 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20322 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
20324 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
20326 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
20327 --nounzip is passed.
20329 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
20331 USB hotunplugging and USB serial support.
20333 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
20334 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
20335 (grub_uhci_transfer): Respect timeout and set *actual.
20336 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
20337 non-standard length.
20338 (grub_usb_device_attach): Autoload modules.
20339 (GRUB_MOD_INIT): Set grub_term_poll_usb.
20340 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
20341 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
20343 (grub_usb_add_hub): Fill nports and children.
20344 (attach_root_port): Receive hub instead of controller.
20345 All users updated. Fill hub->devices.
20346 (grub_usb_root_hub): Allocate hub->devices.
20347 (detach_device): New function.
20348 (poll_nonroot_hub): Fill children and detach devices.
20349 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
20350 actual arguments. All users updated.
20351 (grub_usb_bulk_read_extended): New function.
20352 * bus/usb/serial/common.c: New file.
20353 * bus/usb/serial/ftdi.c: Likewise.
20354 * bus/usb/serial/pl2303.c: Likewise.
20355 * commands/terminal.c (handle_command): Support wildcard.
20356 * commands/usbtest.c: Output "Unknown" instead of empty string.
20357 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
20358 (usbserial_common_mod_SOURCES): New variable.
20359 (usbserial_common_mod_CFLAGS): Likewise.
20360 (usbserial_common_mod_LDFLAGS): Likewise.
20361 (pkglib_MODULES): Add usbserial_pl2303.mod.
20362 (usbserial_pl2303_mod_SOURCES): New variable.
20363 (usbserial_pl2303_mod_CFLAGS): Likewise.
20364 (usbserial_pl2303_mod_LDFLAGS): Likewise.
20365 (pkglib_MODULES): Add usbserial_ftdi.mod.
20366 (usbserial_ftdi_mod_SOURCES): New variable.
20367 (usbserial_ftdi_mod_CFLAGS): Likewise.
20368 (usbserial_ftdi_mod_LDFLAGS): Likewise.
20369 (pkglib_MODULES): Add serial.mod.
20370 (serial_mod_SOURCES): New variable.
20371 (serial_mod_CFLAGS): Likewise.
20372 (serial_mod_LDFLAGS): Likewise.
20373 * conf/i386-pc.rmk: Likewise.
20374 * conf/mips-yeeloong.rmk: Likewise.
20375 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
20376 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20377 * disk/usbms.c (first_available_slot): New variable.
20378 (grub_usbms_attach): Don't reuse free slots due to potential cache
20380 * include/grub/serial.h: Moved to ..
20381 * include/grub/ns8250.h: ...this.
20382 * include/grub/serial.h: New file.
20383 * include/grub/term.h (grub_term_poll_usb): New variable.
20384 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
20385 readkey. All users updated.
20386 (grub_terminfo_output_state): Pass term to put.
20387 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
20388 (grub_usb_controller_dev): Add timeout and actual arguments to
20389 transfer. All users updated.
20390 (grub_usb_interface): New field detach_data.
20391 (grub_usb_device): New fields children and nports.
20392 (grub_usb_ep_type_t): New type.
20393 (grub_usb_get_ep_type): New function.
20394 (grub_usb_bulk_read_extended): Likewise.
20395 * include/grub/usbdesc.h (grub_usb_desc): New type.
20396 * include/grub/usbserial.h: New file.
20397 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
20398 * kern/term.c (grub_term_poll_usb): New variable.
20399 (grub_getkey): Call grub_term_poll_usb if set.
20400 (grub_checkkey): Likewise.
20401 (grub_getkeystatus): Likewise.
20402 * term/serial.c: Moved controller-specific parts to ...
20403 * term/ns8250.c: ... here.
20404 * term/serial.c: Mostly rewritten.
20405 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
20408 2010-08-20 Robert Millan <rmh@gnu.org>
20410 Make kFreeBSD code more generic to support ext2fs as root, ufs as
20411 a separate module and maybe other interesting combinations.
20413 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
20414 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
20415 (kfreebsd_entry): Add generic filesystem module load routine.
20416 Map GRUB `ext2' to kFreeBSD `ext2fs'.
20418 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
20420 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
20421 "numcenter" (I misunderstood the purpose of this entry).
20422 * docs/grub.texi (sendkey): Likewise.
20424 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
20426 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
20427 status flag options; simply omitting the option is equivalent and
20428 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
20429 (keysym_table): Rename "num5numlock" to "numlock".
20430 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
20431 can uniformly say that only the last of multiple `sendkey'
20432 invocations has any effect.
20433 * docs/grub.texi (sendkey): New section.
20435 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
20437 * commands/i386/pc/sendkey.c (options): Fix three typos.
20439 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
20441 Implement sendkey support.
20443 * commands/i386/pc/sendkey.c: New file.
20444 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
20445 (sendkey_mod_SOURCES): New variable.
20446 (sendkey_mod_CFLAGS): Likewise.
20447 (sendkey_mod_LDFLAGS): Likewise.
20449 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
20451 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
20452 fix warnings from Autoconf.
20454 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
20456 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
20457 to avoid false positives with some assemblers that output things
20458 like "someprefix_func" as part of their output.
20460 2010-08-15 Robert Millan <rmh@gnu.org>
20462 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
20464 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
20465 grub_get_libzfs_handle() errors.
20467 2010-08-14 Robert Millan <rmh@gnu.org>
20469 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
20470 filesystem is not ZFS.
20472 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20474 Fix for misspelled color names defaulting to black/black (bug
20475 reported by Doug Nazar)
20477 * include/grub/normal.h (grub_parse_color_name_pair): Add return
20478 status to prototype.
20479 * normal/color.c (grub_parse_color_name_pair): Return failure
20481 (grub_env_write_color_normal): Ignore bad color names.
20482 (grub_env_write_color_highlight): Likewise.
20483 * normal/main.c (GRUB_MOD_INIT): Set default color names.
20485 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20487 "shift" command support to GRUB script.
20489 * include/grub/script_sh.h (grub_script_shift): New prototype.
20490 * script/execute.c (grub_script_shift): New function.
20491 * script/main.c (grub_script_init): Register shift command.
20492 (grub_script_fini): Unregister shift command.
20493 * util/grub-script-check.c (grub_script_cmd_shift): New function.
20495 * tests/grub_script_shift.in: New testcase.
20496 * conf/tests.rmk: Rules for new testcase.
20498 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20500 "continue" command support to GRUB script.
20502 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
20503 (grub_script_break): Continue support.
20504 * script/main.c (grub_script_init): Register continue command.
20505 (grub_script_fini): Unregister continue command.
20507 * tests/grub_script_continue.in: New testcase.
20508 * conf/tests.rmk: Rules for new testcase.
20510 2010-08-12 BVK Chaitanya <bvk@dbook>
20512 "break" command support to GRUB script.
20514 * conf/common.rmk: Rule updates to grub-script-check.
20515 * include/grub/misc.h (grub_min): New function.
20516 * include/grub/script_sh.h (grub_script_init): New prototype.
20517 (grub_script_fini): New prototype.
20518 (grub_script_break): New prototype.
20519 * script/main.c (grub_script_init): New function.
20520 (grub_script_fini): New function.
20521 * script/execute.c (grub_script_break): New function.
20522 * normal/main.c: Calls to grub_script_{init,fini}.
20523 * util/grub-script-check.c (grub_script_break): New function.
20525 * tests/grub_script_break.in: New testcase.
20526 * conf/tests.rmk: Rules for new test case.
20528 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20530 Function parameters support to GRUB script.
20532 * script/yylex.l (VARIABLE): Regular expression update.
20533 * script/function.c (grub_script_function_call): Moved ...
20534 * script/execute.c (grub_script_function_call): ... to here.
20535 (grub_script_execute_arglist_to_argv): Removed.
20536 (grub_script_arglist_to_argv): New function.
20537 * script/argv.c: New file.
20538 (grub_script_argv_free): New function.
20539 (grub_script_argv_next): Likewise.
20540 (grub_script_argv_append): Likewise.
20541 (grub_script_argv_split_append): Likewise.
20542 * include/grub/script_sh.h (grub_script_argv): New struct.
20543 (grub_script_argv_free): New function.
20544 (grub_script_argv_next): Likewise.
20545 (grub_script_argv_append): Likewise.
20546 (grub_script_argv_split_append): Likewise.
20548 * conf/common.rmk (normal.mod): New source script/argv.c.
20550 * tests/grub_script_echo1.in: More tests.
20551 * tests/grub_script_vars1.in: Likewise.
20552 * tests/grub_script_functions.in: New test case.
20553 * conf/tests.rmk: Rules for new testcase.
20555 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20557 Remove grub_script_cmdblock struct.
20559 * include/grub/script_sh.h: Remove grub_script_cmdblock.
20560 * script/parser.y: Likewise.
20561 * script/execute.c: Rename cmdblock suffix to cmdlist.
20562 * script/script.c: Likewise.
20563 * util/grub-script-check.c: Likewise.
20565 2010-08-11 Yves Blusseau <blusseau@zetam.org>
20567 * .bzrignore: add grub-macho2img
20569 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20571 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
20573 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20575 Remove the dump of sm712 initialisation sequence.
20577 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
20578 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
20579 (GRUB_VGA_IO_MISC_WRITE): Likewise.
20580 (GRUB_VGA_CR_*): Added many registers.
20581 (GRUB_VGA_SR_*): Likewise.
20582 (GRUB_VGA_GR_*): Likewise.
20583 (grub_vga_write_arx): New function.
20584 (grub_video_hw_config): New struct.
20585 (grub_vga_set_geometry): New function.
20586 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
20587 GRUB_PCI_CLASS_SUBCLASS_VGA.
20588 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
20589 * video/sm712.c (grub_sm712_write_reg): New function
20590 (grub_sm712_read_reg): Likewise.
20591 (grub_sm712_sr_write): Likewise.
20592 (grub_sm712_gr_write): Likewise.
20593 (grub_sm712_cr_write): Likewise.
20594 (grub_sm712_write_arx): Likewise.
20595 (grub_sm712_cr_shadow_write): Likewise.
20596 (grub_sm712_write_dda_lookup): Likewise.
20597 (grub_video_sm712_setup): Initialise the video rather then
20598 blindly replay the dump.
20599 (main) [TEST]: Add a routine to be able to compile as standalone for
20601 * video/sm712_init.c (sm712_init): Removed.
20602 (sm712_sr_seq1): New array.
20603 (sm712_sr_seq2): Likewise.
20605 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20607 * include/grub/vga.h: Add missing grub/pci.h include.
20609 2010-08-10 Yves Blusseau <blusseau@zetam.org>
20611 * util/grub-macho2img.c (main): fix typo
20613 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20615 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
20616 (grub_vga_gr_read): Likewise.
20617 (grub_vga_cr_write): Likewise.
20618 (grub_vga_cr_read): Likewise.
20619 (grub_vga_sr_write): Likewise.
20620 (grub_vga_sr_read): Likewise.
20621 (grub_vga_palette_read): Likewise.
20622 (grub_vga_palette_write): Likewise.
20623 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
20624 (grub_sm712_sr_read): New function.
20625 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
20626 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
20628 2010-08-09 Robert Millan <rmh@gnu.org>
20630 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
20631 out unused variables on non-ZFS build.
20633 2010-08-08 Robert Millan <rmh@gnu.org>
20635 Fix path generation for sub-filesystems in ZFS.
20637 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
20640 2010-08-08 Robert Millan <rmh@gnu.org>
20642 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
20644 2010-08-08 Robert Millan <rmh@gnu.org>
20646 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
20647 exist, issue a proper error message (rely on `ls' for translated
20650 2010-08-08 Robert Millan <rmh@gnu.org>
20652 Fix grub-probe invocation.
20654 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
20656 2010-08-04 Robert Millan <rmh@gnu.org>
20658 * configure.ac: Remove checks for getfsstat() and getmntany().
20659 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
20660 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
20661 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
20662 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
20663 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
20665 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
20666 via find_mount_point_from_dir() and getfsstat() / getmntany().
20668 2010-08-04 Robert Millan <rmh@gnu.org>
20670 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20671 (grub_find_zpool_from_mount_point): Merge into ...
20672 (grub_find_zpool_from_dir): ... this.
20673 * kern/emu/misc.c: Likewise.
20676 (grub_make_system_path_relative_to_its_root): Replace
20677 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
20678 with grub_find_zpool_from_dir().
20679 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
20681 2010-08-04 Robert Millan <rmh@gnu.org>
20683 Support OpenSolaris in ZFS device resolution.
20685 * configure.ac: Check for getmntany().
20686 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
20687 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
20690 2010-08-03 Robert Millan <rmh@gnu.org>
20692 Fix grub-emu build.
20694 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
20695 * include/grub/emu/misc.h: ... here.
20697 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
20698 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
20700 * util/misc.c: Remove `<grub/util/libzfs.h>'.
20701 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
20702 (grub_get_libzfs_handle): Move to ...
20703 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
20704 (grub_get_libzfs_handle): ... here.
20706 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
20708 * script/execute.c (grub_script_execute_cmdline): Check for NULL
20709 as command name case.
20711 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
20713 * disk/raid.c (insert_array): Select unique numbers for named arrays
20714 as well, for use as keys in the disk cache.
20716 2010-08-01 Robert Millan <rmh@gnu.org>
20718 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
20719 kFreeBSD device name, except on ZFS where the filesystem label is
20721 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
20722 `/boot/zfs/zpool.cache'.
20723 Set mountfrom kernel variable using ${kfreebsd_device}.
20725 2010-08-01 Robert Millan <rmh@gnu.org>
20727 Make it even harder to use uninitialized `libzfs_handle' (and
20728 make the interface a bit simpler).
20730 * include/grub/util/misc.h (grub_util_init_libzfs)
20731 (libzfs_handle): Remove.
20732 (grub_get_libzfs_handle): New prototype.
20734 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
20736 (grub_util_init_libzfs): Remove.
20737 (grub_get_libzfs_handle): New function.
20739 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
20740 grub_get_libzfs_handle() to obtain a libzfs handle instead of
20741 accessing `libzfs_handle' directly.
20743 2010-08-01 Robert Millan <rmh@gnu.org>
20745 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20746 (grub_find_zpool_from_mount_point): New function prototypes.
20748 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20749 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20751 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20752 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20753 `static' attribute.
20755 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20756 finding zpool from mount point into ...
20757 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20759 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20760 requested path is part of a ZFS pool, use
20761 grub_find_zpool_from_mount_point() to detect its filesystem name,
20762 and generate a path with `/fsname@path' syntax.
20764 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20766 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
20767 (void) rather than () so that this is a proper prototype.
20769 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20771 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
20773 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20775 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
20776 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
20778 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20780 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
20782 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20784 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
20786 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20788 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
20789 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
20790 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
20791 disable gfxpayload.
20792 (Shell-like scripting): Add real content.
20793 (Serial terminal): Suggest `terminal_input serial; terminal_output
20794 serial' rather than putting the two commands on separate lines,
20795 since console input will be inoperative after the first command.
20796 (menuentry): Document --class, --users, and --hotkey options.
20797 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
20798 Vladimir Serbinenko).
20800 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20801 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20803 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
20805 2010-08-01 Robert Millan <rmh@gnu.org>
20807 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20808 (grub_find_zpool_from_mount_point): New function prototypes.
20810 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20811 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20813 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20814 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20815 `static' attribute.
20817 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20818 finding zpool from mount point into ...
20819 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20821 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20822 requested path is part of a ZFS pool, use
20823 grub_find_zpool_from_mount_point() to detect its filesystem name,
20824 and generate a path with `/fsname@path' syntax.
20826 2010-08-01 Robert Millan <rmh@gnu.org>
20828 Prevent accidental use of uninitialized libzfs_handle.
20830 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
20831 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
20832 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
20834 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20836 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
20837 util/grub.d/10_linux.in). Fixes Debian bug #591093.
20839 2010-08-01 Robert Millan <rmh@gnu.org>
20841 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
20843 2010-07-31 Robert Millan <rmh@gnu.org>
20845 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
20847 2010-07-31 Robert Millan <rmh@gnu.org>
20849 * kern/emu/misc.c: Add missing license header.
20851 2010-07-31 Robert Millan <rmh@gnu.org>
20853 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
20855 * include/grub/util/libnvpair.h: Include `<config.h>'.
20856 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
20857 declaring libnvpair prototypes ourselves.
20858 * include/grub/util/libzfs.h: Include `<config.h>'.
20859 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
20860 declaring libzfs prototypes ourselves.
20862 (libzfs_handle): Moved to ...
20863 * include/grub/util/misc.h (libzfs_handle): ... here.
20864 Include `<grub/util/libzfs.h>'.
20866 2010-07-30 Robert Millan <rmh@gnu.org>
20868 * include/grub/emu/misc.h: Add missing license header.
20870 2010-07-30 Robert Millan <rmh@gnu.org>
20872 Enable `grub-probe -t device' resolution on ZFS.
20874 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
20875 * include/grub/util/libnvpair.h: New file.
20876 * include/grub/util/libzfs.h: New file.
20878 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
20879 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
20880 `<grub/util/libnvpair.h>'.
20881 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
20883 (find_mount_point_from_dir): New static function.
20884 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
20886 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
20887 find_root_device_from_libzfs() before ressorting to find_root_device().
20889 * include/grub/util/misc.h (grub_util_init_libzfs): New function
20891 * util/misc.c: Include `<grub/util/libzfs.h>'.
20892 (grub_util_init_libzfs): New function.
20893 [HAVE_LIBZFS] (libzfs_handle): New global variable.
20894 [HAVE_LIBZFS] (fini_libzfs): New static function.
20895 (grub_util_init_libzfs): New function.
20896 * util/grub-probe.c (main): Call grub_util_init_libzfs().
20898 2010-07-30 Robert Millan <rmh@gnu.org>
20900 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
20901 (xmalloc, xrealloc, xstrdup, xasprintf): Add
20902 `warn_unused_result' attribute.
20903 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
20904 (grub_xasprintf, grub_xvasprintf): Likewise.
20905 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
20907 2010-07-29 Robert Millan <rmh@gnu.org>
20909 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
20910 (probe): Handle `PRINT_FS_LABEL'.
20911 (main): Handle `-t fs_label'.
20913 2010-07-29 Robert Millan <rmh@gnu.org>
20915 * configure.ac: Remove grub-mkisofs checks.
20917 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
20919 * util/ieee1275/grub-install.in: Don't use empty grub_device.
20920 Reported by: Lennart Sorensen.
20922 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20924 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
20925 prior to terminal_input/terminal_output separation. It's been over 1.5
20926 years and those versions weren't widely deployed.
20928 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
20930 * disk/raid.c (insert_array): Don't count named arrays when looking
20931 for unused array numbers.
20932 Reported and tested by: Michael Guntsche.
20934 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
20936 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
20937 implementation of this so that grub-emu links again, with a note
20938 that this should support hotplugging in the future.
20940 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
20942 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
20944 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
20946 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
20948 (grub_loopback_close): Remove empty function.
20949 (grub_loopback_dev): Remove close method.
20951 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
20953 Disable EFI cursor when the EFI console becomes inactive.
20955 * term/efi/console.c (grub_efi_console_init): New function.
20956 (grub_efi_console_fini): New function.
20957 (grub_console_term_output): Register init and fini methods.
20959 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20961 * tests/util/grub-shell-tester.in: Remove bashism and declare as
20964 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20966 * disk/loopback.c (grub_loopback): Replace filename with file.
20967 (delete_loopback): Handle new semantics.
20968 (grub_cmd_loopback): Likewise.
20969 (grub_loopback_iterate): Likewise.
20970 (grub_loopback_close): Likewise.
20972 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20974 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
20976 Reported by: Tito Keitel.
20978 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20980 * docs/grub.texi (Naming convention): Document new naming convention.
20982 2010-07-20 Vadim Solomin <vadic052@gmail.com>
20983 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
20985 Generate device.map in something closer to the old ordering.
20987 * util/deviceiter.c (struct device): New declaration.
20988 (compare_file_names): Rename to ...
20989 (compare_devices): ... this. Sort by kernel name in preference to
20990 the stable by-id name, but keep the latter as a fallback comparison.
20991 Update header comment.
20992 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
20993 of `struct device' rather than of plain file names.
20995 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
20997 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
21000 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21002 * commands/acpi.c (setup_common_tables): Use sizeof instead of
21004 (setv1table): Likewise.
21006 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21008 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
21009 removing the homehost if present.
21010 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
21011 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
21012 removing the homehost if present.
21013 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
21015 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
21017 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
21018 parameter. Set its pointer target to 0.
21019 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
21020 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
21021 `data_offset' value from the superblock for 1.x metadata.
21022 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
21023 data on the device.
21024 (insert_array): Record the start sector of data on the device.
21025 (grub_raid_register): Pass start_sector parameters to
21026 grub_raid_list->detect and insert_array.
21027 * include/grub/raid.h (struct grub_raid_array): Add start_sector
21029 (struct grub_raid): Add start_sector parameter to `detect'.
21031 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
21032 __attribute__ ((packed)), leaving a comment.
21033 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
21034 (grub_mdraid_detect_09): ... here and ...
21035 (grub_mdraid_detect_1x): ... here.
21037 2010-07-20 Peter Henn <peter.henn@web.de>
21039 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
21040 chunk size and disk size, which are already given as sector counts
21041 as distinct from the 0.90 units. Fetch the correct device number
21042 from the role table instead of using the table index.
21044 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
21046 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
21047 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
21048 (WriteMostly1): New macro.
21049 Set array->name to NULL for metadata format 0.90. Add support for
21050 metadata 1.x. Fix some comments.
21051 * disk/raid.c (): Add support for name based RAID arrays. Fix a
21053 * util/getroot.c (grub_util_get_grub_dev): Add support for
21054 /dev/md/name style devices.
21056 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21058 * .bzrignore: Ignore 20_linux_xen.
21060 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
21062 * util/import_unicode.py: Remove unnecessary imports.
21064 2010-07-17 Aleš Nesrsta <starous@volny.cz>
21066 Hotplugging and USB hub support.
21068 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
21069 (grub_ohci): Likewise.
21070 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
21071 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
21072 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
21073 (GRUB_OHCI_CTRL_EDS): Likewise.
21074 (GRUB_OHCI_BULK_EDS): Likewise.
21075 (GRUB_OHCI_TDS): Likewise.
21076 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
21077 (grub_ohci_ed_phys2virt): New function.
21078 (grub_ohci_virt_to_phys): Likewise.
21079 (grub_ohci_td_phys2virt): Likewise.
21080 (grub_ohci_td_virt2phys): Likewise.
21081 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
21083 (grub_ohci_find_ed): New function.
21084 (grub_ohci_alloc_td): Likewise.
21085 (grub_ohci_free_td): Likewise.
21086 (grub_ohci_free_tds): Likewise.
21087 (grub_ohci_transfer): Use previously allocated memory.
21088 (grub_ohci_portstatus): Reset status changed bit.
21089 (grub_ohci_detect_dev): Supply status changed.
21090 (grub_ohci_fini_hw): Free memory.
21091 (grub_ohci_restore_hw): Reallocate memory.
21092 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
21093 Reset status change.
21094 (grub_uhci_detect_dev): Supply status_change.
21095 * bus/usb/usb.c (attach_hooks): New var.
21096 (grub_usb_device_attach): New function.
21097 (grub_usb_register_attach_hook_class): Likewise.
21098 (grub_usb_unregister_attach_hook_class): Likewise.
21099 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
21100 (grub_usb_add_hub): Reset connection changed bit.
21101 (attach_root_port): New function.
21102 (grub_usb_root_hub): Likewise.
21103 (poll_nonroot_hub): Likewise.
21104 (grub_usb_poll_devices): Likewise.
21105 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
21106 * disk/usbms.c (grub_usbms_open): Use device hooks.
21107 (grub_usbms_iterate) :Poll devices.
21108 (grub_usbms_finddevs): Split into ...
21109 (grub_usbms_attach): ... this ...
21110 (grub_usbms_attach): ... and this.
21111 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
21113 (grub_usb_interface): New fields attached and detach_hook.
21114 (grub_usb_attach_hook_class): New type.
21115 (grub_usb_attach_desc): New struct.
21116 (grub_usb_register_attach_hook_class): New function.
21117 (grub_usb_unregister_attach_hook_class): Likewise.
21118 (grub_usb_poll_devices): Likewise.
21119 (grub_usb_device_attach): Likewise.
21120 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
21121 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
21123 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21125 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
21126 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
21127 delta determination style. Works with most NetBSD partitions too.
21129 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21131 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
21132 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
21134 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21136 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
21138 2010-07-14 Anton Blanchard <anton@samba.org>
21140 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
21143 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21145 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
21147 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21149 * kern/partition.c (grub_partition_check_containment): New function to
21150 check that a partition is physically contained in a parent. Since
21151 offsets are relative (and non-negative), this reduces to checking that
21152 the partition ends before its parent.
21153 (grub_partition_map_probe): Discard out-of-range sub-partitions.
21154 (grub_partition_iterate): Likewise.
21155 * include/grub/partition.h (grub_partition_map): Slightly more detailed
21157 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
21158 partitions that start before their parent, and add debug printfs.
21160 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
21162 * Makefile.in (.SUFFIX): Spell correctly, as ...
21163 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
21164 bare module name without `.mod', e.g. `test') tried to invoke a
21167 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
21169 * README: Point to the Info manual.
21171 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
21173 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
21174 2nd superblock position from partition size.
21176 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
21178 * Makefile.in (MAINTAINER_CLEANFILES): Remove
21179 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
21180 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
21183 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21185 Restructure SCSI .id handling.
21186 Reported and tested by: Aleš Nesrsta.
21188 * disk/ata.c (grub_atapi_close): Removed. All users updated.
21189 (grub_atapi_dev): Changed .name to "ata". New field .id.
21190 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
21191 (grub_usbms_dev): New field .id.
21192 * disk/scsi.c (grub_scsi_iterate): Generate name.
21193 (grub_scsi_open): Parse name.
21194 * include/grub/scsi.h (grub_make_scsi_id): New function.
21195 (grub_scsi_dev): Change iterate and open to number instead of naming
21196 busses. All users updated.
21197 (grub_scsi): Remove name. Add .bus.
21199 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21201 * commands/help.c (grub_cmd_help): Fix a typo.
21203 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21205 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
21206 Reported and tested by: Colin Watson.
21208 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21210 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
21213 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
21215 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
21217 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
21219 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
21222 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21224 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
21225 and disk/raid6_recover.c.
21226 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21227 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
21229 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21231 * term/gfxterm.c (repaint_schedulded): Rename to ...
21232 (repaint_scheduled): ... this. Update all callers.
21233 (repaint_was_schedulded): Rename to ...
21234 (repaint_was_scheduled): ... this. Update all callers.
21236 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21238 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
21239 which we expect to be handled by upper layers.
21241 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
21243 * bus/usb/usbhub.c: #include time.h header.
21245 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21247 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
21248 entry_name also for entries without stat blocks (e.g. ".."); fixes
21249 corruption of the first entry in a directory.
21251 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21253 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
21254 after setting gfxterm as the active terminal. GRUB_BACKGROUND
21255 doesn't work otherwise.
21257 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21259 * docs/grub.texi (Features): Update list of supported file systems.
21260 (GNU/Linux): Update for GRUB 2.
21261 (Serial terminal): Remove mention of --disable-serial, which was a
21262 GRUB Legacy configure option. Update instructions to use
21263 `terminal_input' and `terminal_output' rather than `terminal'.
21264 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
21265 configuration' and `Installing GRUB using grub-install'.
21266 (Menu entry editor): Update for GRUB 2.
21267 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
21268 Document new -a, -u, and -v options.
21269 (initrd): New section.
21270 (initrd16): New section.
21271 (linux): New section.
21272 (linux16): New section.
21273 (search): The `var' argument to `--set' is optional.
21274 (GRUB only offers a rescue shell): Go into a little more detail on
21277 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21279 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
21281 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21283 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
21284 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
21286 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21288 * util/i386/pc/grub-setup.c (setup): Rename prefix to
21289 install_prefix, in line with install_dos_part and install_bsd_part.
21290 Add new prefix variable, which is copied to install_prefix after
21291 comparing core.img in memory with the one read from disk in the
21292 no-embedding case, and use that rather than overwriting
21293 install_prefix immediately when installing to a partition.
21294 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
21297 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
21299 * configure.ac: Avoid == in test command, it's not portable.
21300 * util/grub.d/30_os-prober.in: Likewise.
21302 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
21304 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
21306 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
21308 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
21309 multiple (top-level) partmaps.
21311 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21313 * util/i386/efi/grub-install.in: Don't use empty grub_device.
21314 Reported by: Tino Keitel.
21316 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21318 Bidi and diacritics support.
21320 * Makefile.in (widthspec.bin): New target.
21321 (widthspec.h): Likewise.
21322 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
21323 * autogen.sh: Generate unidata.c.
21324 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
21325 * commands/ls.c (grub_ls_list_devices): Likewise.
21326 (grub_ls_list_files): Likewise.
21327 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
21328 (grub_mini_cmd_lsmod): Likewise.
21329 * commands/read.c: Likewise.
21330 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
21331 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
21332 * lib/arg.c (grub_arg_show_help): Likewise.
21333 * lib/crypto.c (grub_password_get): Likewise.
21334 * normal/auth.c (grub_username_get): Likewise.
21335 * normal/misc.c (grub_normal_print_device_info): Likewise.
21336 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
21337 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
21338 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
21339 (normal/charset.c_DEPENDENCIES): New variable.
21340 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
21341 (pkglib_MODULES): Remove charset.mod.
21342 (charset_mod_SOURCES): Removed.
21343 (charset_mod_CFLAGS): Likewise.
21344 (charset_mod_LDFLAGS): Likewise.
21345 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
21346 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
21348 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21349 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21350 (kernel_img_HEADERS): Add terminfo.h.
21351 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
21352 Fill ->font. Reverse ascii bitmaps.
21353 (grub_font_get_xheight): New function.
21354 * font/font.c (grub_font_get_string_width): Moved from here ...
21355 * gfxmenu/font.c (grub_font_get_string_width): ... here.
21356 * font/font.c (grub_font_draw_string): Moved from here ...
21357 * gfxmenu/font.c (grub_font_draw_string): ... here.
21358 * font/font.c (grub_font_dup_glyph): New function.
21359 (grub_font_blit_glyph): Likewise.
21360 (grub_font_blit_glyph_mirror): Likewise.
21361 (blit_comb): Likewise.
21362 (grub_font_construct_dry_run): Likewise.
21363 (grub_font_get_constructed_device_width): Likewise.
21364 (grub_font_construct_glyph): Likewise.
21365 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
21366 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
21367 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
21368 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
21369 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
21370 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
21371 (grub_font_get_xheight): New proto.
21372 (grub_font_get_constructed_device_width): Likewise.
21373 (grub_font_construct_glyph): Likewise.
21374 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
21375 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
21376 * include/grub/font.h (grub_font_draw_string): Moved from here ...
21377 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
21378 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
21379 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
21380 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
21381 (grub_console_getcharwidth): Likewise.
21382 * include/grub/misc.h (grub_xputs): New proto.
21383 (grub_puts): Inlined.
21384 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
21385 (grub_normal_get_line_counter): Removed.
21386 (grub_install_newline_hook): Likewise.
21387 (grub_normal_get_char_counter): New proto.
21388 (grub_normal_reset_more): Likewise.
21389 (grub_xputs_normal): Likewise.
21390 * include/grub/powerpc/ieee1275/console.h: Removed.
21391 * include/grub/sparc64/ieee1275/console.h: Likewise.
21392 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
21393 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
21394 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
21395 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
21396 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
21397 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
21398 (grub_term_input): Pass reference to self. All users updated.
21399 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
21400 Pass reference to self. New fields normal_color, highlight_color and
21401 data. All users updated.
21402 (grub_putchar): Removed.
21403 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
21404 (grub_unicode_estimate_width): New function.
21405 (grub_term_getcharwidth): Add defaults.
21406 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
21407 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
21408 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
21409 (grub_cls): Remove EXPORT_FUNC.
21410 (grub_setcolorstate): Inline.
21411 (grub_newline_hook): Removed.
21412 * include/grub/terminfo.h: Rewritten. All users updated.
21413 * include/grub/unicode.h: New file.
21414 * include/grub/video.h (grub_video_signed_rect): New type.
21415 * kern/emu/console.c (grub_console_highlight_color): Removed.
21416 (grub_console_normal_color): Likewise.
21417 (grub_console_standard_color): Made static.
21418 (grub_ncurses_putchar): Remove mapping.
21419 (grub_ncurses_getcharwidth): Removed.
21420 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
21421 (grub_ncurses_setcolor): Removed.
21422 (grub_ncurses_getcolor): Likewise.
21423 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
21424 (grub_console_putchar): ... this.
21425 (grub_console_putchar): Handle argument difference.
21426 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
21427 console_init_early and console_init_lately.
21428 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
21429 * kern/misc.c (grub_puts): Removed.
21430 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
21431 (grub_vsnprintf_real): Remove str = NULL support.
21432 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
21433 * normal/charset.c (grub_utf8_to_ucs4): ... here.
21434 * kern/term.c (grub_putcode): Renamed to ...
21435 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
21436 (grub_putchar): Removed.
21437 (grub_xputs_dumb): New function.
21438 (grub_xputs): New variable.
21439 * lib/charset.c: Move from here ...
21440 * normal/charset.c: ... to here.
21441 (grub_ucs4_to_utf8): New function.
21442 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
21443 (join_types): New variable.
21444 (unpack_join): New function.
21445 (bidi_types): New variable.
21446 (unpack_bidi): New function.
21447 (get_bidi_type): Likewise.
21448 (get_join_type): Likewise.
21449 (is_mirrored): Likewise.
21450 (grub_unicode_get_comb_type): Likewise.
21451 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
21452 (is_type_after): Likewise.
21453 (grub_unicode_aglomerate_comb): Likewise.
21454 (bidi_line_wrap): Likewise.
21455 (grub_bidi_line_logical_to_visual): Likewise.
21456 (grub_bidi_logical_to_visual): Likewise.
21457 (grub_unicode_mirror_code): Likewise.
21458 (grub_unicode_shape_code): Likewise.
21459 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
21460 Don't use grub_putchar.
21461 * normal/main.c (grub_normal_init_page): Use grub_putcode.
21462 (grub_normal_reader_init): Likewise.
21463 (grub_xputs_saved): New variable.
21464 (GRUB_MOD_INIT): Set grub_xputs.
21465 (GRUB_MOD_FINI): Restore grub_xputs.
21466 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
21467 (menu_init): Avoid printing gfxmenu error.
21468 (show_menu): Use grub_normal_get_char_counter.
21469 * normal/menu_entry.c (update_screen): Fix out-of-array.
21470 (complete): Avoid NULL dereferencing.
21471 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
21472 * normal/menu_text.c (print_spaces): Removed.
21473 (grub_print_ucs4): Likewise.
21474 (grub_print_message_indented): Use grub_print_ucs4.
21475 (print_message): Use grub_putcode.
21476 (print_entry): Hanlde diacritics.
21477 * normal/term.c (term_state): New type.
21478 (grub_more_lines): Removed.
21479 (term_states): New variable.
21480 (grub_normal_line_counter): Renamed to ..
21481 (grub_normal_char_counter): ...this. All users updated.
21482 (grub_normal_get_line_counter): Renamed to ...
21483 (grub_normal_get_char_counter): ... this.
21484 (grub_normal_reset_more): New function.
21485 (process_newline): Removed.
21486 (print_more): New function.
21487 (grub_install_newline_hook): Removed.
21488 (map_code): New function.
21489 (grub_puts_terminal): Use grub_print_ucs4.
21490 (putglyph): New function.
21491 (putcode_real): Likewise.
21492 (grub_putcode): Use putcode_real.
21493 (get_maxwidth): New function.
21494 (get_startwidth): Likewise.
21495 (print_ucs4_terminal): Likewise.
21496 (find_term_state): Likewise.
21497 (put_glyphs_terminal): Likewise.
21498 (print_backlog): Likewise.
21499 (print_ucs4_real): Likewise.
21500 (grub_print_ucs4): Likewise.
21501 (grub_xputs_normal): Likewise.
21502 * term/efi/console.c (grub_console_putchar): Output diacritics.
21503 (grub_console_getcharwidth): Removed.
21504 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
21505 * term/gfxterm.c (clear_char): Free chars.
21506 (scroll_up): Avoid leaking memory.
21507 (grub_gfxterm_putchar): Support diacritics.
21508 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
21509 * term/i386/pc/console.c (grub_console_term_output): Declare as
21510 GRUB_TERM_CODE_TYPE_VGA.
21511 * term/i386/pc/vga.c (grub_vga_term): Declare as
21512 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
21513 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
21514 GRUB_TERM_CODE_TYPE_VGA.
21515 * term/i386/vga_common.c (map_char): Removed.
21516 (grub_console_putchar): Likewise.
21517 (grub_console_getcharwidth): Likewise.
21518 * term/ieee1275/ofconsole.c: Simplify using terminfo.
21519 (colors): Reordered to match terminfo.
21520 (grub_ofconsole_normal_color): Removed.
21521 (grub_ofconsole_writeesc): Likewise.
21522 (grub_ofconsole_highlight_color): Likewise.
21523 (grub_ofconsole_getcharwidth): Likewise.
21524 (grub_ofconsole_setcolorstate): Likewise.
21525 (grub_ofconsole_setcolor): Likewise.
21526 (grub_ofconsole_getcolor): Likewise.
21527 (grub_ofconsole_readkey): Renamed to ...
21528 (readkey): ... this. Remove escape sequence handling. Return -1 on no
21530 (grub_ofconsole_checkkey): Removed.
21531 (grub_ofconsole_getkey): Likewise.
21532 (grub_ofconsole_getxy): Likewise.
21533 (grub_ofconsole_gotoxy): Likewise.
21534 (grub_ofconsole_cls): Likewise.
21535 (grub_ofconsole_refresh): Likewise.
21536 (grub_ofconsole_terminfo_input): New struct.
21537 (grub_ofconsole_terminfo_output): Likewise.
21538 (grub_ofconsole_term_input): Use terminfo.
21539 (grub_ofconsole_term_output): Likewise.
21540 (grub_console_init): Split into ...
21541 (grub_console_init_early): ...this and ...
21542 (grub_console_init_lately): ...this. Use terminfo.
21543 (grub_ofconsole_putchar): Renamed to ...
21544 (put): ... this. Remove mapping.
21545 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
21546 * term/serial.c: Simplify using terminfo.
21549 (keep_track): Likewise.
21550 (registered): Likewise.
21551 (input_buf): Likewise.
21552 (npending): Likewise.
21553 (serial_translate_key_sequence): Likewise.
21554 (fill_input_buf): Likewise.
21555 (grub_serial_checkkey): Likewise.
21556 (grub_serial_getkey): Likewise.
21557 (grub_serial_getxy): Likewise.
21558 (grub_serial_gotoxy): Likewise.
21559 (grub_serial_putchar): Likewise.
21560 (grub_serial_cls): Likewise.
21561 (grub_serial_setcolorstate): Likewise.
21562 (grub_serial_setcursor): Likewise.
21563 (serial_hw_init): Use serial_hw_fetch.
21564 (grub_serial_terminfo_input): New variable.
21565 (grub_serial_terminfo_output): Likewise.
21566 (grub_serial_term_input): Use terminfo.
21567 (grub_serial_term_output): Likewise.
21568 * term/terminfo.c (putstr): Use put.
21569 (grub_terminfo_all_free): New function
21570 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
21571 (grub_terminfo_output_register): New function.
21572 (grub_terminfo_output_unregister): Likewise.
21573 (grub_terminfo_getxy): Likewise.
21574 (grub_terminfo_readkey): Likewise.
21575 (grub_terminfo_checkkey): Likewise.
21576 (grub_terminfo_getkey): Likewise.
21577 (grub_terminfo_input_init): Likewise.
21578 (print_terminfo): Likewise.
21579 (grub_cmd_terminfo): Handle encoding.
21580 (grub_terminfo_gotoxy): Track position.
21581 (grub_terminfo_cls): Likewise.
21582 (grub_terminfo_putchar): Likewise.
21583 (grub_terminfo_setcolorstate): Handle colors
21584 (grub_terminfo_cursor_on): This ...
21585 (grub_terminfo_cursor_off): ... and this merged into ...
21586 (grub_terminfo_setcursor): ... this.
21587 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
21588 * unicode/ArabicShaping.txt: New file (imported from Unicode).
21589 * unicode/BidiMirroring.txt: Likewise.
21590 * unicode/UnicodeData.txt: Likewise.
21591 * unicode/COPYING: Likewise.
21592 * util/grub-editenv.c (grub_putchar): Removed.
21593 (grub_xputs_real): New function.
21594 (grub_xputs): New variable.
21595 * util/grub-fstest.c (grub_putchar): Removed.
21596 (grub_xputs_real): New function.
21597 (grub_xputs): New variable.
21598 * util/grub-mkdevicemap.c (grub_putchar): Removed.
21599 (grub_xputs_real): New function.
21600 (grub_xputs): New variable.
21601 * util/grub-probe.c (grub_putchar): Removed.
21602 (grub_xputs_real): New function.
21603 (grub_xputs): New variable.
21604 * util/grub-script-check.c (grub_putchar): Removed.
21605 (grub_xputs_real): New function.
21606 (grub_xputs): New variable.
21607 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
21608 (grub_xputs_real): New function.
21609 (grub_xputs): New variable.
21610 * util/import_unicode.py: New file.
21611 * util/grub-mkfont.c (ft_errmsgs): New array.
21612 (grub_glyph_info): Make bitmap a pointer.
21613 (file_formats): New type WIDTH_SPEC.
21614 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
21615 (options): Add width-spec.
21617 (add_char): Renamed to ...
21618 (add_glyph): ... this.
21619 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
21620 (glyph_replace): New type.
21621 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
21622 (add_char): New function.
21623 (add_subst): Likewise.
21624 (process_cursive): Likewise.
21625 (add_font): Handle GSUB.
21626 (write_font_width_spec): New function.
21627 (main): Sort glyphs.
21628 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
21629 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
21630 * kern/term.c (grub_cls): Moved from here...
21631 * normal/term.c (grub_cls): ... here.
21633 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21635 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
21636 suitable for using within the format argument of printf when
21637 converting grub_size_t.
21638 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
21639 "x" to convert grub_size_t arguments.
21641 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21643 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
21645 (list_get_minimal_size): Take selection box into account.
21647 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21649 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
21652 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21654 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
21655 devices when iterating over /dev/disk/by-id; they will be handled
21656 later if appropriate, which they aren't always (e.g. LVM).
21658 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21660 * include/grub/misc.h (grub_reboot): Declare as noreturn.
21661 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
21663 (grub_halt): Likewise.
21664 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
21666 (grub_halt): Don't return, even if all of shut-down, power-off, and
21669 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21671 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
21672 arguments, not three.
21674 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21676 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
21677 * util/grub.d/10_linux.in: Use it to check for LVM, so that
21678 LVM-on-RAID is handled correctly.
21680 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21682 * docs/grub.texi (Changes from GRUB Legacy): New section.
21683 (Future): Fix typo.
21685 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21687 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
21688 grub.d/README accidentally ends up executable for one reason or
21689 another. Ignore it.
21691 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21693 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
21694 (gpt_partition_map_iterate): Support non-512B sectors.
21696 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21698 * kern/efi/init.c (grub_efi_init): Disable watchdog.
21699 Tested by: Seth Goldberg.
21701 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21703 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
21704 Properly align mbi.
21705 Reported by: Seth Goldberg.
21707 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21709 * util/grub-mkrescue.in: Avoid module duplication.
21711 2010-07-01 Sean Finney <seanius@seanius.net>
21713 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
21715 2010-07-01 Sean Finney <seanius@seanius.net>
21717 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
21719 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21721 * disk/lvm.c (grub_lvm_checkvalue): New function.
21722 (grub_lvm_check_flag): Likewise.
21724 2010-07-01 Robert Millan <rmh@gnu.org>
21726 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
21727 Support 'p' as partition separator on kernel of FreeBSD (used
21729 (grub_util_biosdisk_get_grub_dev): Likewise.
21731 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21733 Yeeloong firmware port.
21735 * boot/mips/yeeloong/fwstart.S: New file.
21736 * bus/cs5536.c (gpiodump): New const.
21737 (set_io_space): New function.
21738 (set_iod): Likewise.
21739 (set_p2d): Likewise.
21740 (grub_cs5536_init_geode): Likewise.
21741 * commands/mips/yeeloong/lsspd.c: New file.
21742 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
21743 (serial_mod_SOURCES): New variable.
21744 (serial_mod_CFLAGS): Likewise.
21745 (serial_mod_LDFLAGS): Likewise.
21746 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
21747 term/terminfo.c and term/tparm.c.
21748 (pkglib_IMAGES): Add fwstart.img.
21749 (fwstart_img_SOURCES): New variable.
21750 (fwstart_img_CFLAGS): Likewise.
21751 (fwstart_img_ASFLAGS): Likewise.
21752 (fwstart_img_LDFLAGS): Likewise.
21753 (fwstart_img_FORMAT): Likewise.
21754 (pkglib_MODULES): Add lsspd.mod.
21755 (lsspd_mod_SOURCES): New variable.
21756 (lsspd_mod_CFLAGS): Likewise.
21757 (lsspd_mod_LDFLAGS): Likewise.
21758 (pkglib_MODULES): Add halt.mod.
21759 (halt_mod_SOURCES): New variable.
21760 (halt_mod_CFLAGS): Likewise.
21761 (halt_mod_LDFLAGS): Likewise.
21762 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
21763 (serial_mod_SOURCES): Removed.
21764 (serial_mod_CFLAGS): Likewise.
21765 (serial_mod_LDFLAGS): Likewise.
21766 * disk/ata.c (check_device): New function.
21767 (grub_ata_device_initialize): Use check_device.
21768 (grub_ata_iterate): Recheck devices.
21769 (grub_ata_open): Likewise.
21770 (grub_atapi_iterate): Likewise.
21771 (grub_atapi_open): Likewise.
21772 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
21773 (GRUB_ATA_CH1_PORT1): Likewise.
21774 (GRUB_ATA_CH0_PORT2): Likewise.
21775 (GRUB_ATA_CH1_PORT2): Likewise.
21776 * include/grub/mips/loongson.h: New file.
21777 * include/grub/mips/yeeloong/ec.h: Likewise.
21778 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
21779 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
21780 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
21781 * include/grub/misc.h (grub_halt): Declare as noreturn.
21782 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
21783 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
21784 (UART_ENABLE_FIFO_TRIGGER1): New definition.
21785 (UART_ENABLE_DTRRTS): Likewise.
21786 (UART_ENABLE_MODEM): Removed.
21787 (UART_ENABLE_OUT2): New const.
21788 * include/grub/term.h (grub_term_register_input_active): New function.
21789 (grub_term_register_output_active): Likewise.
21790 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
21792 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
21793 (init_pci): New function.
21794 (grub_machine_init): Execute platform init when firmware. Init serial.
21795 (grub_halt): Implement.
21796 (grub_exit): Likewise.
21797 (grub_reboot): Likewise.
21798 * term/serial.c (serial_hw_init): Update macros.
21799 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
21800 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
21801 (image_targets): New target mipsel-yeeloong-flash.
21802 (generate_image): Support IMAGE_YEELOONG_FLASH.
21803 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
21804 (grub_video_sm712_setup): Init card.
21805 (grub_video_sm712_set_palette): Removed.
21806 * video/sm712_init.c: New file.
21808 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
21810 * Makefile.in (install-local): Temporarily prepend $(builddir) to
21811 PATH when running help2man and then run it on the unadorned
21812 executable names, rather than passing $(builddir)/* paths to
21813 help2man. This avoids the build directory ending up in generated
21816 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
21818 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
21819 to avoid accidents when debugging with 'sh -x'.
21820 * util/grub-mkrescue.in: Likewise.
21821 * util/grub.d/00_header.in: Likewise.
21822 * util/grub.d/10_hurd.in: Likewise.
21823 * util/grub.d/10_kfreebsd.in: Likewise.
21824 * util/grub.d/10_linux.in: Likewise.
21825 * util/grub.d/10_netbsd.in: Likewise.
21826 * util/grub.d/10_windows.in: Likewise.
21827 * util/grub.d/20_linux_xen.in: Likewise.
21828 * util/grub.d/30_os-prober.in: Likewise.
21829 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21831 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
21833 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
21834 last character in the buffer.
21835 Reported by: Vladimir Serbinenko.
21837 2010-06-29 Robert Millan <rmh@gnu.org>
21839 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
21840 (Command-line and menu entry commands): Document `badram' command.
21842 2010-06-28 Robert Millan <rmh@gnu.org>
21844 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
21845 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
21846 command using ${GRUB_BADRAM} as parameter.
21848 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
21850 * docs/grub.texi (Device map): New section.
21851 (Themes): New section (stub).
21852 * Makefile.in (docs/grub.info): The info documentation now builds
21853 without errors. Make sure it stays that way.
21855 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21857 Use normal parser for menu entries.
21858 Reported by: Thomas Frauendorfer
21860 * include/grub/parser.h (grub_parser_execute): Don't export.
21861 * normal/menu.c (grub_menu_execute_entry_real): New function.
21862 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
21864 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
21866 * docs/grub.texi (Embedded configuration): New section (replacing
21867 old "Preset Menu" stub).
21868 (Images): New section.
21869 (configfile): Note that any menu entries defined in `file' are shown
21872 2010-06-28 Josh Triplett <josh@joshtriplett.org>
21874 * mmap/i386/pc/mmap_helper.S: Set CF on return.
21876 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
21878 * util/grub-install.in: Add --debug-image= option.
21880 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
21882 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
21885 * util/deviceiter.c (check_device): Rename to ...
21886 (check_device_readable_unique): ... this. Update all callers.
21887 Maintain and check a list of which devices (by canonicalized name)
21888 have already been seen.
21889 (clear_seen_devices): New function.
21890 (compare_file_names) [__linux__]: New function.
21891 (grub_util_iterate_devices): Clear the list of seen devices on exit
21892 and (just in case) on entry.
21893 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
21894 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
21895 seen-devices list, superseded by general code in check_device.
21897 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
21899 * commands/cat.c (options): New variable.
21900 (grub_cmd_cat): Parse options. If the --dos option is given, print
21901 DOS-style "\r\n" line endings as simple newlines (Debian bug
21903 (GRUB_MOD_INIT): Use extcmd.
21904 (GRUB_MOD_FINI): Likewise.
21905 * docs/grub.texi (cat): Document --dos.
21907 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21909 XEN with Linux grub-mkconfig support.
21911 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
21912 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
21913 GRUB_CMDLINE_XEN_DEFAULT.
21914 * util/grub.d/20_linux_xen.in: New file.
21916 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21918 Initialise VGA video on qemu ourselves.
21920 * boot/i386/qemu/boot.S: Don't call 0xc000.
21921 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
21922 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
21923 (kernel_img_HEADERS): Add pci.h.
21924 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
21925 * configure.ac: Force unifont on qemu and yeeloong.
21926 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
21927 (grub_vga_palette_write): Use correct register.
21928 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
21929 Call grub_qemu_init_cirrus.
21930 * kern/i386/qemu/init.c: New file.
21931 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
21933 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
21935 2010-06-26 Pavel Roskin <proski@gnu.org>
21937 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
21940 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
21942 * docs/grub.texi (Simple configuration): Explain that
21943 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
21944 set to `true' to disable their respective recovery entries, not
21947 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
21949 Make the `source' command slightly faster.
21951 * normal/main.c (grub_normal_execute): Don't re-read list files when
21954 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
21956 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
21957 field position and mask size to red fields from mode_info, not
21959 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
21960 Remove redundant tag->common.framebuffer_type assignment.
21961 Reported by: Seth Goldberg.
21963 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
21965 Sync up other versions of the Linux loader with Robert Millan's
21966 change of 2010-01-09, "Make loader output a bit more user-friendly".
21968 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
21970 (grub_cmd_linux): Likewise.
21971 (grub_cmd_initrd): Likewise.
21972 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
21973 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21975 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
21977 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
21978 larger than MEMORY_MAP_SIZE.
21980 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
21982 Fix parallel build.
21984 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
21986 * script/parser.y: #include grub_script.tab.h header.
21988 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21990 Support >3GiB and <16MiB RAM in i386-qemu.
21992 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
21993 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
21994 (grub_lower_mem): Removed.
21995 (grub_upper_mem): Likewise.
21996 (mem_size): Made static.
21997 (above_4g): New variable.
21998 (grub_machine_mmap_init): Detect small mem_size and above_4g.
21999 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
22002 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22004 Cirrus 5446 and Bochs video cards support.
22006 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
22008 (video_cirrus_mod_SOURCES): New variable.
22009 (video_cirrus_mod_CFLAGS): Likewise.
22010 (video_cirrus_mod_LDFLAGS): Likewise.
22011 (video_bochs_mod_SOURCES): Likewise.
22012 (video_bochs_mod_CFLAGS): Likewise.
22013 (video_bochs_mod_LDFLAGS): Likewise.
22014 * include/grub/vga.h: New file.
22015 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
22016 (grub_video_fb_set_page_t): New type.
22017 (grub_video_fb_setup): New prototype.
22018 (grub_video_fb_swap_buffers): Likewise.
22019 (grub_video_fb_get_info_and_fini): Likewise.
22020 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
22021 (CRTC_DATA_PORT): Likewise.
22022 (CRTC_CURSOR): Likewise.
22023 (CRTC_CURSOR_ADDR_HIGH): Likewise.
22024 (CRTC_CURSOR_ADDR_LOW): Likewise.
22025 (CRTC_CURSOR_DISABLE): Likewise.
22026 (update_cursor): Use grub_vga_cr_write.
22027 (grub_vga_text_setcursor): Likewise.
22028 * video/bochs.c: New file.
22029 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
22030 (palette): Likewise.
22031 (palette_size): Likewise.
22032 (framebuffer): New variable.
22033 (grub_video_fb_init): Use 'framebuffer'.
22034 (grub_video_fb_fini): Likewise.
22035 (grub_video_fb_get_info): Likewise.
22036 (grub_video_fb_get_palette): Likewise.
22037 (grub_video_fb_set_palette): Likewise.
22038 (grub_video_fb_set_viewport): Likewise.
22039 (grub_video_fb_get_viewport): Likewise.
22040 (grub_video_fb_map_color): Likewise.
22041 (grub_video_fb_map_rgb): Likewise.
22042 (grub_video_fb_map_rgba): Likewise.
22043 (grub_video_fb_unmap_color): Likewise.
22044 (grub_video_fb_unmap_color_int): Likewise.
22045 (grub_video_fb_fill_rect): Likewise.
22046 (grub_video_fb_blit_bitmap): Likewise.
22047 (grub_video_fb_blit_render_target): Likewise.
22048 (grub_video_fb_scroll): Likewise.
22049 (grub_video_fb_create_render_target): Likewise.
22050 (grub_video_fb_doublebuf_blit_init): Likewise.
22051 (grub_video_fb_set_active_render_target): Handle doublebuffering.
22052 (doublebuf_pageflipping_update_screen): New function.
22053 (doublebuf_pageflipping_init): Likewise.
22054 (grub_video_fb_setup): Likewise.
22055 (grub_video_fb_swap_buffers): Likewise.
22056 (grub_video_fb_get_info_and_fini): Likewise.
22057 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
22059 (doublebuf_pageflipping_commit): Restructured into ...
22060 (doublebuf_pageflipping_set_page): ... this.
22061 (doublebuf_pageflipping_update_screen): Removed.
22062 (doublebuf_pageflipping_init): Likewise.
22063 (double_buffering_init): Likewise.
22064 (grub_video_vbe_setup): Use grub_video_fb_setup.
22065 (grub_video_vbe_swap_buffers): Removed.
22066 (grub_video_vbe_set_active_render_target): Likewise.
22067 (grub_video_vbe_get_active_render_target): Likewise.
22068 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
22069 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
22070 grub_video_fb_set_active_render_target and
22071 grub_video_fb_get_active_render_target.
22072 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
22073 (SEQUENCER_DATA_PORT): Likewise.
22074 (MAP_MASK_REGISTER): Likewise.
22075 (CRTC_ADDR_PORT): Likewise.
22076 (CRTC_DATA_PORT): Likewise.
22077 (START_ADDR_HIGH_REGISTER): Likewise.
22078 (START_ADDR_LOW_REGISTER): Likewise.
22079 (GRAPHICS_ADDR_PORT): Likewise.
22080 (GRAPHICS_DATA_PORT): Likewise.
22081 (READ_MAP_REGISTER): Likewise.
22082 (INPUT_STATUS1_REGISTER): Likewise.
22083 (INPUT_STATUS1_VERTR_BIT): Likewise.
22084 (get_map_mask): Use grub_vga_sr_read.
22085 (set_map_mask): Use grub_vga_sr_write.
22086 (set_read_map): Use grub_vga_gr_write.
22087 (set_start_address): Use grub_vga_cr_write.
22088 * video/sm712.c (framebuffer): Remove leftover fields.
22090 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
22092 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
22093 setting GRUB_VIDEO_BACKEND. Make it available as a user override
22094 instead. Replace the gfxterm backend check with a check that
22095 ${GRUB_PREFIX}/video.lst is non-empty.
22096 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
22098 (load_video): New generated function. Call it before loading
22099 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
22100 * util/grub.d/10_linux.in (linux_entry): Call load_video.
22101 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
22102 * docs/grub.texi (Simple configuration): Document
22103 GRUB_VIDEO_BACKEND.
22105 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22107 Use video functions in linux and xnu loaders.
22109 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
22110 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
22111 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
22112 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
22113 loader/i386/pc/linux.c.
22114 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
22115 (find_line_len): Removed.
22116 (find_framebuf): Likewise.
22117 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
22118 * loader/i386/efi/xnu.c: Removed.
22119 * loader/i386/pc/xnu.c: Moved from here...
22120 * loader/i386/xnu.c: ...here.
22122 Enable priorities in video drivers.
22124 * include/grub/video.h (grub_video_adapter_prio_t): New type.
22125 (grub_video_adapter): New field prio.
22126 (grub_video_register): Respect prio when inserting.
22127 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
22128 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
22129 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
22130 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
22131 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
22132 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
22133 * video/sm712.c (grub_video_sm712_adapter): Likewise.
22137 * include/grub/video.h (grub_video_driver_id_t): New value
22138 GRUB_VIDEO_DRIVER_SDL.
22139 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
22141 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22143 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
22144 argument to printf.
22145 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22147 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22149 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
22150 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22152 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22154 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
22155 directly, and recommend grub-install instead.
22156 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22158 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22160 Fix i386-pc prefix handling with nested partitions (Debian bug
22161 #585068). Note that the case where the core image is booted using
22162 multiboot and relocated from its original location still requires
22165 * kern/i386/pc/init.c (make_install_device): If the prefix starts
22166 with "(,", fill the boot drive in between those two characters, but
22167 expect that a full partition specification including partition map
22169 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
22170 specified, write a prefix without the drive name but including a
22171 full partition specification.
22173 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
22175 * util/grub-mkconfig.in: Ignore non-option arguments, for
22176 compatibility with older versions (before 2010-06-12) which did the
22177 same. In particular, this makes it easier to ship an update-grub
22178 wrapper which is compatible with that used with GRUB Legacy (Debian
22181 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22183 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
22184 for manual page generation.
22186 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22188 * po/POTFILES: Remove leftover commands/handler.c.
22190 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
22192 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
22193 left this script non-functional.
22195 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
22197 * docs/man/grub-emu.h2m: New file.
22199 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
22201 * docs/grub.texi (Commands): Document reduced command set in rescue
22203 (cpuid): New section.
22205 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
22207 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
22208 new partition naming style.
22209 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
22211 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
22213 Add "-o grub.iso" like cmdline options support.
22215 * util/grub-install.in: Improve cmdline option parsing.
22216 * util/grub-mkconfig.in: Likewise.
22217 * util/grub-mkrescue.in: Likewise.
22218 * util/grub-reboot.in: Likewise.
22219 * util/grub-set-default.in: Likewise.
22220 * util/i386/efi/grub-install.in: Likewise.
22221 * util/ieee1275/grub-install.in: Likewise.
22222 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22224 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22226 * .bzrignore: Ignore 41_custom.
22228 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
22230 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
22232 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22234 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
22235 prototype declarations.
22237 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
22238 generating fs, partmap, and video lists.
22239 * include/grub/fs.h (grub_fs_register): Omit prototype if
22240 GRUB_LST_GENERATOR is defined.
22241 * include/grub/partition.h (grub_partition_map_register): Likewise.
22242 * include/grub/video.h (grub_video_register): Likewise.
22244 2010-06-12 Javier Martín <lordhabbit@gmail.com>
22246 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
22248 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
22250 * util/grub-mkrescue.in: Support --xorriso argument.
22252 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22254 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
22255 Suggested by: Thomas Schmitt.
22257 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22259 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
22260 Suggested by: Thomas Schmitt.
22262 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22264 custom.cfg support.
22266 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
22267 * util/grub.d/41_custom.in: New file.
22269 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22271 * util/grub-mkrescue.in (make_image): Remove sh module, which has
22272 been merged back into normal.
22274 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
22276 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
22277 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
22279 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
22281 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
22282 when generating manual pages.
22283 * docs/man/grub-bin2h.h2m: New file.
22284 * docs/man/grub-editenv.h2m: New file.
22285 * docs/man/grub-fstest.h2m: New file.
22286 * docs/man/grub-install.h2m: New file.
22287 * docs/man/grub-macho2img.h2m: New file.
22288 * docs/man/grub-mkconfig.h2m: New file.
22289 * docs/man/grub-mkdevicemap.h2m: New file.
22290 * docs/man/grub-mkfont.h2m: New file.
22291 * docs/man/grub-mkimage.h2m: New file.
22292 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
22293 * docs/man/grub-mkrelpath.h2m: New file.
22294 * docs/man/grub-mkrescue.h2m: New file.
22295 * docs/man/grub-ofpathname.h2m: New file.
22296 * docs/man/grub-pe2elf.h2m: New file.
22297 * docs/man/grub-probe.h2m: New file.
22298 * docs/man/grub-reboot.h2m: New file.
22299 * docs/man/grub-script-check.h2m: New file.
22300 * docs/man/grub-set-default.h2m: New file.
22301 * docs/man/grub-setup.h2m: New file.
22303 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
22305 Use FOR_* macros instead of *_iterate whenever possible.
22307 * commands/handler.c: Removed.
22308 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
22309 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
22310 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22311 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
22312 (grub_probe_SOURCES): Remove kern/parser.c.
22313 (util/grub-script-check.c_DEPENDENCIES): Removed.
22314 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
22315 and grub_script_check_init.c.
22316 (grub_script_check_init.lst): Removed.
22317 (grub_script_check_init.h): Likewise.
22318 (grub_script_check_init.c): Likewise.
22319 (pkglib_MODULES): Remove handler.mod and sh.mod.
22320 (handler_mod_SOURCES): Removed.
22321 (handler_mod_CFLAGS): Likewise.
22322 (handler_mod_LDFLAGS): Likewise.
22323 (normal_mod_SOURCES): Remove normal/handler.c.
22324 Add script/main.c, script/script.c, script/execute.c,
22325 script/function.c, script/lexer.c, grub_script.tab.c
22326 and grub_script.yy.c.
22327 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22328 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22329 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
22330 (grub_setup_SOURCES): Remove kern/parser.c.
22331 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22332 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
22333 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22334 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22335 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22336 (grub_setup_SOURCES): Remove kern/parser.c.
22337 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22338 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
22339 * include/grub/command.h (grub_command_iterate): Removed.
22340 (FOR_COMMANDS): New macro.
22341 * include/grub/dl.h (grub_dl): New member next.
22342 (grub_dl_iterate): Removed.
22343 (grub_dl_head): New variable declaration.
22344 (FOR_DL_MODULES): New macro.
22345 * include/grub/fs.h: Include list.h.
22346 (grub_fs): Make next first element.
22347 (grub_fs_list): New variable declaration.
22348 (grub_fs_register): Make inline.
22349 (grub_fs_unregister): Likewise.
22350 (grub_fs_iterate): Removed.
22351 (FOR_FILESYSTEMS): New macro.
22352 * include/grub/handler.h: Removed.
22353 * include/grub/list.h (grub_list_hook_t): Removed.
22354 (grub_list_test_t): Likewise.
22355 (grub_list_pop): Likewise.
22356 (grub_list_iterate): Likewise.
22357 (grub_list_insert): Likewise.
22358 (FOR_LIST_ELEMENTS): New macro.
22359 * include/grub/parser.h (grub_parser_class): Removed.
22360 (grub_parser_register): Likewise.
22361 (grub_parser_unregister): Likewise.
22362 (grub_parser_get_current): Likewise.
22363 (grub_parser_set_current): Likewise.
22364 (grub_register_rescue_parser): Likewise.
22365 (grub_rescue_parse_line): New function.
22366 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
22367 * include/grub/script_sh.h (grub_script_function_list): New variable
22369 (FOR_SCRIPT_FUNCTIONS): New macro.
22370 (grub_script_function_iterate): Removed.
22371 (grub_normal_parse_line): New prototype.
22372 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
22373 (FOR_DISABLED_TERM_INPUTS): Likewise.
22374 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
22375 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
22376 * include/grub/video.h (grub_video_adapter): Move 'next' to first
22378 (grub_video_register): Inline.
22379 (grub_video_unregister): Likewise.
22380 (grub_video_adapter_list): New variable declaration.
22381 (grub_video_iterate): Removed.
22382 (FOR_VIDEO_ADAPTERS): New macro.
22383 * kern/dl.c (grub_dl_list): Removed. All users updated.
22384 (grub_dl_iterate): Removed.
22385 * kern/fs.c (grub_fs_list): Make global.
22386 (grub_fs_register): Removed.
22387 (grub_fs_unregister): Likewise.
22388 (grub_fs_iterate): Likewise.
22389 * kern/handler.c: Removed.
22390 * kern/list.c (grub_list_pop): Removed.
22391 (grub_list_iterate): Likewise.
22392 (grub_list_insert): Likewise.
22393 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
22394 (grub_prio_list_insert): Don't use grub_list_insert.
22395 * kern/main.c (grub_register_rescue_parser): Don't call
22396 grub_register_rescue_parser.
22397 * kern/parser.c (grub_parser_class): Removed.
22398 (grub_parser_execute): Use grub_rescue_parse_line.
22399 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
22400 (grub_rescue_parser): Removed.
22401 (grub_register_rescue_parser): Likewise.
22402 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
22403 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
22404 (grub_auth_check_authentication): Likewise.
22405 * normal/completion.c (iterate_command): Removed.
22406 (grub_normal_do_completion): Use FOR_COMMANDS.
22407 * normal/handler.c: Removed.
22408 * normal/main.c (read_config_file): Remove parser changing.
22409 (grub_normal_execute): Don't call read_handler_list.
22410 (grub_normal_read_line_real): Statically allocate prompt.
22411 (grub_cmdline_run): Use grub_normal_parse_line.
22412 (GRUB_MOD_FINI): Don't call free_handler_list.
22413 * normal/menu_entry.c (run): Likewise.
22414 * script/function.c (grub_script_function_list): Make global.
22415 (grub_script_function_iterate): Removed.
22416 * script/main.c (grub_normal_parse_line): Make global.
22417 (grub_sh_parser): Removed.
22418 (GRUB_MOD_INIT): Likewise.
22419 (GRUB_MOD_FINI): Likewise.
22420 * tests/lib/functional_test.c (grub_functional_test): Use
22422 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
22423 (grub_test_run): Use FOR_LIST_ELEMENTS.
22424 * tests/lib/unit_test.c (main): Likewise.
22425 * util/deviceiter.c (grub_util_iterate_devices): Don't use
22427 * util/grub-fstest.c (grub_term_input_class): Removed.
22428 (grub_term_output_class): Likewise.
22429 * util/grub-probe.c: Likewise.
22430 * util/i386/pc/grub-setup.c: Likewise.
22431 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22432 * util/grub-script-check.c (main): Don't call grub_init_all and
22434 * video/video.c (grub_video_adapter_list): Make global.
22435 (grub_video_register): Removed.
22436 (grub_video_unregister): Likewise.
22437 (grub_video_iterate): Likewise.
22439 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
22441 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
22442 reported by Henrique Ferreiro.
22444 2010-06-09 Robert Millan <rmh@gnu.org>
22446 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
22447 ones, when both are available.
22449 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22451 Make --version uniform and avoid hard-coded program name.
22453 * util/grub-mkimage.c (main): Use `program_name' instead of
22455 * util/i386/pc/grub-setup.c (main): Likewise.
22456 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
22457 * util/grub-install.in: Save the basename of $0 in $self, and use the
22458 latter in informational messages. Use the same format for --version
22459 as the binary programs.
22460 * util/grub-mkconfig.in: Likewise.
22461 * util/grub-mkrescue.in: Likewise.
22462 * util/grub-reboot.in: Likewise.
22463 * util/grub-set-default.in: Likewise.
22464 * util/i386/efi/grub-install.in: Likewise.
22465 * util/ieee1275/grub-install.in: Likewise.
22466 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22468 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22470 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
22471 embedding area. Use <= instead of == when checking for non-emptiness.
22473 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22475 * configure.ac: Add `.' to the directories searched for unifont.
22477 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
22479 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
22482 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
22484 * docs/grub.texi (History): Expand to cover GRUB 2.
22485 (Serial terminal): Refer to `terminal_input' and `terminal_output'
22486 commands, not `terminal'.
22487 (serial): Likewise.
22488 (terminal_input): New section.
22489 (terminal_output): New section.
22490 (uppermem): New section (stub).
22491 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
22493 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
22495 * docs/grub.texi (Security): Menu entries are unrestricted by
22496 default, not restricted to superusers as I had previously thought.
22497 Reword to account for this.
22499 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22501 * kern/emu/misc.c (device_mapper_null_log): New function.
22502 (grub_device_mapper_supported): New function.
22503 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
22505 * kern/emu/hostdisk.c (find_partition_start): Check whether
22506 device-mapper is supported before trying to use it.
22507 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
22509 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22511 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
22512 (File name syntax): Likewise.
22513 (help): --all is no longer supported in GRUB 2. Be more precise
22514 about pattern matching.
22516 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22518 * normal/completion.c (grub_normal_do_completion): When completing
22519 arguments to "set" and the current word contains an equals sign,
22520 skip to after the equals sign before starting completion.
22522 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22524 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
22526 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22528 * docs/grub.texi (Network): New section.
22529 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
22530 `(nd)' as in GRUB Legacy.
22531 (pxe_unload): New section.
22533 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22535 * docs/grub.texi (Troubleshooting): `echo' is not usually available
22536 in the rescue shell, so recommend using `set' instead. Thanks,
22539 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22541 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
22542 (password): New section.
22543 (password_pbkdf2): New section.
22544 (search): New section.
22545 (Security): New section.
22546 (Troubleshooting): New section, currently very incomplete.
22547 (Invoking grub-mkpasswd-pbkdf2): New section.
22548 (Internals): New section, currently very incomplete.
22550 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22552 * util/grub.d/00_header.in: Add some more quoting (of
22553 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
22555 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
22557 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22559 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
22560 to `count', fixing variable shadowing that broke the -c option.
22562 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
22564 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
22565 in case they contain spaces.
22567 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
22569 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
22570 "part_" to partmap module names, in line with grub-install.
22571 Reported by: Jindřich Makovička (Debian bug #584426).
22573 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
22575 * util/grub-mkimage.c: Make target-related error messages slightly
22576 more helpful; -O talks about "format". Explicitly point to the use
22577 of -O if no target is specified.
22578 Reported by: Didier Raboud (Debian bug #584415).
22580 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
22582 * INSTALL: Document several build requirements for optional features
22583 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
22585 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
22587 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
22588 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
22589 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
22591 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22593 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
22594 Thanks to Jordan Uggla for spotting this.
22596 2010-06-02 Aleš Nesrsta <starous@volny.cz>
22598 Finally make USB usable.
22600 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
22601 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
22602 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
22603 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
22604 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
22605 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
22606 (GRUB_OHCI_FSMPS): Likewise.
22607 (GRUB_OHCI_PERIODIC_START): Likewise.
22608 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
22609 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
22610 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
22611 (GRUB_OHCI_SET_PORT_RESET): Likewise.
22612 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
22613 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
22614 (grub_ohci_transaction): Likewise.
22615 (grub_ohci_transfer): Improve condition detection algorithms.
22616 Handle toggle property. Program the transactions correctly.
22617 Improve error handling. Various important fixups.
22618 (grub_ohci_portstatus): Put register writes in right order.
22619 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
22620 (grub_uhci_transfer): Don't show "failed" message on success.
22621 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
22623 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
22624 determine its size.
22625 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
22626 before initialization is completed. Use IN direction for empty
22627 transfers. Use last_trans and compute toggle.
22628 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
22629 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
22630 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
22631 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
22632 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
22633 (grub_usb_device): Increase toggle to 256.
22634 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
22635 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
22636 GRUB_USBMS_SUBCLASS_SFF8070.
22637 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
22638 (grub_scsi_inquiry): New member page and alloc_length.
22639 (grub_scsi_request_sense): New structure.
22640 (grub_scsi_request_sense_data): Likewise.
22641 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
22643 * disk/scsi.c (grub_scsi_request_sense): New function.
22644 (grub_scsi_test_unit_ready): Likewise.
22645 (grub_scsi_inquiry): Fill new fields.
22646 (grub_scsi_read_capacity): Likewise.
22647 (grub_scsi_read10): Add request sense at the end.
22648 (grub_scsi_read12): Likewise.
22649 (grub_scsi_write10): Likewise.
22650 (grub_scsi_write12): Likewise.
22651 (grub_scsi_open): Add Test Unit Ready.
22652 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
22653 Support additional subclasses. Con't clear halt yet. Activate the
22654 proper config. Calculate LUNs correctly.
22655 (grub_usbms_transfer): Various important fixups.
22657 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22659 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
22660 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
22661 (grub_ohci_fini_hw): New function.
22662 (grub_ohci_restore_hw): Likewise.
22663 (GRUB_MOD_INIT(ohci)): Register preboot hook.
22664 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
22665 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
22667 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22669 Dedicated DMA allocations.
22671 * bus/pci.c (grub_memalign_dma32): New function
22672 (grub_dma_free): Likewise.
22673 (grub_dma_get_virt): Likewise.
22674 (grub_dma_get_phys): Likewise.
22675 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
22676 (grub_ohci_pci_iter): Use dma32_alloc.
22677 (grub_ohci_transfer): Likewise.
22678 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
22679 (grub_usb_bulk_readwrite): Likewise.
22680 * include/grub/pci.h: Add declarations.
22682 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22686 * bus/cs5536.c: New file.
22687 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
22688 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
22689 (cs5536_mod_SOURCES): New variable.
22690 (cs5536_mod_CFLAGS): Likewise.
22691 (cs5536_mod_LDFLAGS): Likewise.
22692 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
22694 (kernel_img_SOURCES): Add bus/cs5536.c.
22695 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
22697 (usb_mod_SOURCES): New variable.
22698 (usb_mod_CFLAGS): New variable.
22699 (usb_mod_LDFLAGS): New variable.
22700 (usbtest_mod_SOURCES): New variable.
22701 (usbtest_mod_CFLAGS): New variable.
22702 (usbtest_mod_LDFLAGS): New variable.
22703 (ohci_mod_SOURCES): New variable.
22704 (ohci_mod_CFLAGS): New variable.
22705 (ohci_mod_LDFLAGS): New variable.
22706 (usbms_mod_SOURCES): New variable.
22707 (usbms_mod_CFLAGS): New variable.
22708 (usbms_mod_LDFLAGS): New variable.
22709 (usb_keyboard_mod_SOURCES): New variable.
22710 (usb_keyboard_mod_CFLAGS): New variable.
22711 (usb_keyboard_mod_LDFLAGS): New variable.
22712 * include/grub/smbus.h: New file.
22713 * include/grub/cs5536.h: New file.
22715 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22717 * util/grub.d/00_header.in: Add safety check to make sure that
22718 ${locale_dir} exists before trying to probe it.
22720 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22722 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
22723 per the GNU Coding Standards; this is now too obscure to be worth
22726 (chainloader): Remove cross-reference to `SCO UnixWare'.
22728 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22730 * docs/grub.texi (Chain-loading): New section.
22731 (DOS/Windows): New section, borrowed from GRUB Legacy with details
22732 adjusted for GRUB 2.
22733 (SCO UnixWare): Likewise.
22735 (chainloader): Add reference to `Block list syntax'.
22736 (drivemap): New section.
22737 (parttool): New section.
22739 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22741 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
22743 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
22744 (Installing GRUB using grub-install): Remove reference to the grub
22745 shell; mention `grub-mkimage' and `grub-setup' instead.
22746 (Invoking grub-install): Likewise.
22747 (Interface): Add reference to `Menu entry editor'.
22748 (serial): Remove `--device' option.
22750 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22752 * docs/grub.texi (Configuration): New section, documenting
22753 configuration file generation using grub-mkconfig. I've left a slot
22754 for documenting the full shell scripting format but have not yet
22755 started on writing that up.
22756 (Invoking grub-mkconfig): New section.
22758 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22760 * docs/grub.texi (direntry): Remove grub-terminfo reference.
22761 (GNU GRUB manual): Likewise.
22762 (General commands): Update description of `terminfo' for GRUB 2.
22764 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22766 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
22767 (GRUB_MOD_INIT): Fix capitalisation.
22768 * docs/grub.texi (Command-line and menu entry commands): Document
22769 gettext and gptsync commands.
22771 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22773 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
22774 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
22776 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
22778 Add btrfs probing support, currently only in the single-device case.
22780 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
22782 (grub_guess_root_device): Call find_root_device_from_mountinfo
22783 before looking in /dev.
22785 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22787 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
22788 GRUB_DISK_SIZE_UNKNOWN.
22789 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
22791 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
22793 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
22794 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
22795 corrupted or not synced properly.
22797 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22799 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
22800 Reported by: Seth Goldberg.
22802 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22804 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
22806 Reported by: Seth Goldberg.
22808 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22810 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
22811 Reported by: Seth Goldberg.
22813 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22815 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
22816 64-bit address as signed on MIPS.
22818 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
22820 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
22821 to the empty string.
22823 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
22825 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
22827 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
22828 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
22829 * kern/misc.c (__enable_execute_stack): Disable on
22832 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
22834 Make grub-probe work with symbolic links under /dev/mapper as well
22835 as with real block devices. The Linux world seems to be (at best)
22836 in transition here, and GRUB shouldn't get caught in the middle.
22838 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
22841 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
22843 * util/grub-script-check.c (main): Ensure defined behaviour on empty
22844 input files (in which case exit zero).
22846 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
22848 * kern/emu/misc.c (canonicalize_file_name): realpath can still
22849 return NULL for various reasons even if it has a maximum-length
22850 buffer: for example, there might be a symlink loop, or the path
22851 might exceed PATH_MAX. If this happens, return NULL.
22853 2010-05-27 Robert Millan <rmh@gnu.org>
22855 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
22856 partmap module to handle cross-partmap setups.
22857 Reported by Orestes Mas. Gràcies!
22859 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
22861 * util/grub-mkrescue.in: Initialise override_dir rather than
22862 assuming that it's unset or empty in the environment.
22864 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
22866 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
22867 variable index into p_index to suppress a warning with -Wshadow.
22869 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
22871 * INSTALL: Added flex >= 2.5.35 requirement.
22873 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22875 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
22877 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22881 * commands/i386/cmostest.c: New file.
22882 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
22883 (cmostest_mod_SOURCES): New variable.
22884 (cmostest_mod_CFLAGS): Likewise.
22885 (cmostest_mod_LDFLAGS): Likewise.
22886 * conf/i386-pc.rmk: Likewise.
22887 * docs/grub.texi (Vendor power-on keys): New section.
22888 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
22889 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
22890 and GRUB_BUTTON_CMOS_ADDRESS.
22891 * util/grub.d/00_header.in: Handle powering-on by separate button.
22893 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22895 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
22896 Removed drawing_scrollbar argument. All users updated
22898 Reported by Jo Shields
22900 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22902 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
22903 buffer since gfxterm handles double repaint.
22905 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22907 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
22908 * term/gfxterm.c (real_scroll): Likewise.
22910 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22912 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
22913 before calling BIOS.
22915 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22917 * include/grub/i18n.h: Always enable grub_gettext.
22919 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22921 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
22922 partition naming style.
22924 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
22926 * util/grub-mkconfig.in: Fix handling of -o so that it works when
22927 not the first option.
22929 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
22931 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
22933 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
22935 * util/misc.c: Move inclusion of <limits.h> to ...
22936 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
22938 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
22940 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
22941 Fix merge error in NetBSD code.
22942 (find_partition_start) [__NetBSD__]: Likewise.
22944 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
22946 Fix grub-mkrescue usage unit testing.
22948 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
22950 2010-05-18 Christian Franke <franke@computer.org>
22952 * util/grub.d/10_windows.in: Use path names instead of
22953 drive letters to prevent warning from Cygwin 1.7.
22954 Add drivemap command to menuentry if needed.
22956 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
22958 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
22959 gnumach and gnumach.gz.
22961 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22963 * include/grub/i18n.h (gettext): Inline instead of using #define.
22964 (grub_gettext): Likewise.
22967 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22969 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
22970 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
22971 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
22972 (main): Add a slash after pkglibdirroot.
22974 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22976 * util/grub-install.in: Add missing "in" keyword.
22978 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22980 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
22981 Reported by: Seth Goldberg.
22983 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22985 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
22987 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
22989 * configure.ac: Check for Linux device-mapper support.
22991 * util/hostdisk.c (device_is_mapped): New function.
22992 (find_partition_start): New function, partly broken out from
22993 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
22994 device-mapper support added.
22995 (linux_find_partition): Use find_partition_start.
22996 (convert_system_partition_to_system_disk): Add `st' argument.
22997 Support Linux /dev/mapper/* devices if device-mapper support is
22998 available; only DM-RAID devices are understood at present.
22999 (find_system_device): Add `st' argument. Pass it to
23000 convert_system_partition_to_system_disk.
23001 (grub_util_biosdisk_get_grub_dev): Pass stat result to
23002 find_system_device and convert_system_partition_to_system_disk. Use
23003 find_partition_start.
23005 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
23006 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
23007 * util/deviceiter.c [__linux__]: Define MINOR.
23008 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
23009 * util/mkdevicemap.c (grub_putchar): New function.
23010 (grub_getkey): New function.
23011 (grub_refresh): New function.
23012 (main): Set debug=all if -v -v is used.
23014 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23016 Fix build with non-GNU libcs.
23018 * util/misc.c (canonicalize_file_name): Move to ...
23019 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
23020 grub_make_system_path_relative_to_its_root.
23022 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23024 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
23025 we handle finding grub-mkimage. Default to finding grub-mkimage in
23026 ${bindir} with program_transform_name applied, and provide a
23027 --grub-mkimage option to override this.
23029 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23031 Remove grub-mkisofs.
23033 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
23034 (grub_mkisofs_SOURCES): Removed.
23035 (grub_mkisofs_CFLAGS): Removed.
23036 * util/mkisofs/defaults.h: Removed.
23037 * util/mkisofs/eltorito.c: Likewise.
23038 * util/mkisofs/exclude.h: Likewise.
23039 * util/mkisofs/hash.c: Likewise.
23040 * util/mkisofs/include/: Likewise.
23041 * util/mkisofs/include/fctldefs.h: Likewise.
23042 * util/mkisofs/include/mconfig.h: Likewise.
23043 * util/mkisofs/include/prototyp.h: Likewise.
23044 * util/mkisofs/include/statdefs.h: Likewise.
23045 * util/mkisofs/iso9660.h: Likewise.
23046 * util/mkisofs/joliet.c: Likewise.
23047 * util/mkisofs/match.c: Likewise.
23048 * util/mkisofs/match.h: Likewise.
23049 * util/mkisofs/mkisofs.c: Likewise.
23050 * util/mkisofs/mkisofs.h: Likewise.
23051 * util/mkisofs/msdos_partition.h: Likewise.
23052 * util/mkisofs/multi.c: Likewise.
23053 * util/mkisofs/name.c: Likewise.
23054 * util/mkisofs/rock.c: Likewise.
23055 * util/mkisofs/tree.c: Likewise.
23056 * util/mkisofs/write.c: Likewise.
23058 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23060 Unify grub-mkimage accross platforms.
23062 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
23063 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
23064 (grub_mkelfimage_SOURCES): Removed.
23065 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
23066 (util/grub-mkimage.c_DEPENDENCIES): .. this.
23067 (bin_UTILITIES): Add grub-mkimage.
23068 (grub_mkimage_SOURCES): New variable.
23069 (kernel_img_HEADERS): Remove machine/kernel.h.
23070 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
23071 (pkglib_PROGRAMS): Add kernel.img.
23072 (kernel_img_HEADERS): Add machine/kernel.h.
23073 (kernel_img_FORMAT): Removed.
23074 (bin_UTILITIES): Remove grub-mkimage.
23075 (grub_mkimage_SOURCES): Removed.
23076 (grub_mkimage_CFLAGS): Likewise.
23077 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23078 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
23079 (pkglib_PROGRAMS): Add kernel.img.
23080 (bin_UTILITIES): Remove grub-mkimage.
23081 (grub_mkimage_SOURCES): Removed.
23082 (grub_mkimage_CFLAGS): Likewise.
23083 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23084 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
23085 (pkglib_PROGRAMS): Add kernel.img.
23086 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
23087 (pkglib_PROGRAMS): Add kernel.img.
23088 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
23089 (grub_mkimage_SOURCES): Removed.
23090 (grub_mkimage_CFLAGS): Likewise.
23091 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23092 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
23093 (pkglib_PROGRAMS): Add kernel.img.
23094 (bin_UTILITIES): Remove grub-mkimage.
23095 (grub_mkimage_SOURCES): Removed.
23096 (grub_mkimage_CFLAGS): Likewise.
23097 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23098 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
23099 (grub_mkimage_SOURCES): Removed.
23100 (grub_mkimage_CFLAGS): Likewise.
23101 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23102 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
23103 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
23104 (grub_pe32_optional_header): ... this.
23105 (grub_pe64_optional_header): ... and this. All users updated.
23106 (GRUB_PE32_PE32_MAGIC): Split into ..
23107 (GRUB_PE32_PE32_MAGIC): .. this.
23108 (GRUB_PE32_PE64_MAGIC): .. and this.
23109 (GRUB_PE32_SIGNATURE_SIZE): New definition.
23110 * include/grub/elf.h (PT_GNU_STACK): New definition.
23111 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
23112 * include/grub/i386/efi/kernel.h: Likewise.
23113 * include/grub/i386/kernel.h: Likewise.
23114 * include/grub/i386/pc/kernel.h: Likewise.
23115 * include/grub/i386/qemu/boot.h: Likewise.
23116 * include/grub/mips/kernel.h: Likewise.
23117 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23118 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
23119 * include/grub/powerpc/kernel.h: Likewise.
23120 * include/grub/sparc64/ieee1275/boot.h: Likewise.
23121 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
23122 * include/grub/sparc64/kernel.h: Likewise.
23123 * include/grub/x86_64/efi/kernel.h: Likewise.
23124 * include/grub/x86_64/kernel.h: Likewise.
23125 * include/grub/offsets.h: New file.
23126 * include/grub/kernel.h (grub_module_info): Split into ...
23127 (grub_module_info32): ... this.
23128 (grub_module_info64): ... and this.
23129 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
23130 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
23131 (grub_boot_blocklist): Moved from here ...
23132 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
23133 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
23134 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
23135 * include/grub/types.h (grub_target_to_host16): Removed.
23136 (grub_target_to_host32): Likewise.
23137 (grub_target_to_host64): Likewise.
23138 (grub_host_to_target16): Likewise.
23139 (grub_host_to_target32): Likewise.
23140 (grub_host_to_target64): Likewise.
23141 (grub_host_to_target_addr): Likewise.
23143 Support grub-mkrescue for efi, coreboot and qemu.
23145 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
23146 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
23147 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
23148 * util/grub-mkrawimage.c: Moved from here ...
23149 * util/grub-mkimage.c: ... here. All users updated.
23150 (ALIGN_ADDR): Use image_target.
23151 (TARGET_NO_FIELD): New const.
23152 (image_target_desc): New type.
23153 (image_targets): New array.
23154 (grub_target_to_host64): Use image_target.
23155 (grub_target_to_host32): Likewise.
23156 (grub_target_to_host16): Likewise.
23157 (grub_host_to_target64): Likewise.
23158 (grub_host_to_target32): Likewise.
23159 (grub_host_to_target16): Likewise.
23160 (grub_host_to_target_addr): Likewise.
23161 (generate_image): Handle multiimage.
23162 (main): Require -O parameter. All users updated.
23163 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
23164 util/efi/grub-mkimage.c
23165 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
23166 New option --rom-directory.
23168 * util/i386/efi/grub-mkimage.c: Removed.
23169 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
23170 (grub_target_to_host32): Likewise.
23171 (grub_target_to_host64): Likewise.
23172 (grub_host_to_target16): Likewise.
23173 (grub_host_to_target32): Likewise.
23174 (grub_host_to_target64): Likewise.
23175 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
23176 (grub_target_to_host32): Likewise.
23177 (grub_target_to_host64): Likewise.
23178 (grub_host_to_target16): Likewise.
23179 (grub_host_to_target32): Likewise.
23180 (grub_host_to_target64): Likewise.
23182 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
23184 Source tree is reorganized for emu build.
23186 * include/grub/util/console.h: Move from here...
23187 * include/grub/emu/console.h: ...to here.
23188 * include/grub/util/getroot.h: Move from here...
23189 * include/grub/emu/getroot.h: ...to here.
23190 * include/grub/util/hostdisk.h: Move from here...
23191 * include/grub/emu/hostdisk.h: ...to here.
23192 * util/console.c: Move from here...
23193 * kern/emu/console.c: ...to here.
23194 * util/getroot.c: Move from here...
23195 * kern/emu/getroot.c: ...to here.
23196 * util/grub-emu.c: Move from here...
23197 * kern/emu/main.c: ...to here.
23198 * util/hostdisk.c: Move from here...
23199 * kern/emu/hostdisk.c: ...to here.
23200 * util/hostfs.c: Move from here...
23201 * kern/emu/hostfs.c: ...to here.
23202 * util/mm.c: Move from here...
23203 * kern/emu/mm.c: ...to here.
23204 * util/pci.c: Move from here...
23205 * bus/emu/pci.c: ...to here.
23206 * util/sdl.c: Move from here...
23207 * video/emu/sdl.c: ...to here.
23208 * util/time.c: Move from here...
23209 * kern/emu/time.c: ...to here.
23210 * util/usb.c: Move from here...
23211 * bus/usb/emu/usb.c: ...to here.
23213 * include/grub/emu/misc.h: New header for grub-emu functions.
23214 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
23216 * conf/any-emu.rmk: Rule updates for above renames.
23217 * conf/common.rmk: Likewise.
23218 * conf/i386-pc.rmk: Likewise.
23219 * conf/i386-qemu.rmk: Likewise.
23220 * conf/mips.rmk: Likewise.
23221 * conf/sparc64-ieee1275.rmk: Likewise.
23222 * conf/x86-efi.rmk: Likewise.
23224 * disk/lvm.h: #include updates for above renames.
23225 * util/grub-mkrelpath.c: Likewise.
23226 * util/grub-probe.c: Likewise.
23227 * util/i386/pc/grub-setup.c: Likewise.
23228 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23229 * kern/emu/console.c: Likewise.
23230 * kern/emu/getroot.c: Likewise.
23231 * kern/emu/hostdisk.c: Likewise.
23232 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
23234 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
23235 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
23236 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
23237 * util/misc.c: Remove grub-emu functions.
23239 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
23242 Reported by: Thorsten Grützmacher.
23244 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
23246 (circprog_set_property): Register and unregister timeout hook.
23247 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
23248 (label_destroy): Free template. and unregister hook.
23249 (label_set_state): New function.
23250 (label_set_property): Handle templates and hooks.
23251 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
23253 (progress_bar_set_property): Register and unregister timeout hook.
23254 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
23255 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
23256 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
23257 (update_timeout_visit): Removed.
23258 (update_timeouts): New function.
23259 (redraw_timeouts): Likewise.
23260 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
23261 (grub_gfxmenu_clear_timeout): Likewise.
23262 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
23263 (grub_gfxmenu_timeout_notify): Likewise.
23264 (grub_gfxmenu_timeout_notifications): New external variable.
23265 (grub_gfxmenu_timeout_register): New function.
23266 (grub_gfxmenu_timeout_unregister): Likewise.
23268 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23270 Transform (broken) vga terminal into (working) vga video driver.
23272 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
23273 video/i386/pc/vga.c.
23274 * include/grub/video.h (grub_video_driver_id):
23275 Add GRUB_VIDEO_DRIVER_VGA.
23276 * term/i386/pc/vga.c: Renamed to ...
23277 * video/i386/pc/vga.c: ...this
23278 (DEBUG_VGA): Removed.
23279 (CHAR_WIDTH): Likewise.
23280 (CHAR_HEIGHT): Likewise.
23281 (TEXT_WIDTH): Likewise.
23282 (TEXT_HEIGHT): Likewise.
23283 (DEFAULT_FG_COLOR): Likewise.
23284 (DEFAULT_BG_COLOR): Likewise.
23285 (colored_char): Likewise.
23288 (cursor_state): Likewise.
23289 (fg_color): Likewise.
23290 (bg_color): Likewise.
23291 (text_buf): Likewise.
23294 (framebuffer): New variable.
23295 (set_read_map): Disabled.
23296 (setup): New variable.
23297 (is_target): Likewise.
23298 (grub_vga_mod_init): Likewise.
23299 (grub_vga_mod_fini): Likewise.
23300 (check_vga_mem): Likewise.
23301 (write_char): Likewise.
23302 (write_cursor): Likewise.
23303 (scroll_up): Likewise.
23304 (grub_vga_putchar): Likewise.
23305 (grub_vga_getcharwidth): Likewise.
23306 (grub_vga_getwh): Likewise.
23307 (grub_vga_getxy): Likewise.
23308 (grub_vga_gotoxy): Likewise.
23309 (grub_vga_cls): Likewise.
23310 (grub_vga_setcolorstate): Likewise.
23311 (grub_vga_setcursor): Likewise.
23312 (grub_video_vga_init): New function.
23313 (grub_video_vga_setup): Likewise.
23314 (grub_video_vga_fini): Likewise.
23315 (update_target): Likewise.
23316 (grub_video_vga_blit_bitmap): Likewise.
23317 (grub_video_vga_blit_render_target): Likewise.
23318 (grub_video_vga_set_active_render_target): Likewise.
23319 (grub_video_vga_get_active_render_target): Likewise.
23320 (grub_video_vga_swap_buffers): Likewise.
23321 (grub_video_vga_set_palette): Likewise.
23322 (grub_video_vga_get_info_and_fini): Likewise.
23323 (grub_vga_term): Removed.
23324 (grub_video_vga_adapter): New variable.
23325 (GRUB_MOD_INIT): Register a video driver instead of terminal.
23326 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
23328 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23330 * video/readers/jpeg.c: Indented.
23332 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23334 Various jpeg cleanups.
23336 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
23337 (grub_jpeg_decode_quan_table): Use sizeof.
23338 (grub_jpeg_decode_du): Use ARRAY_SIZE.
23340 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
23342 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
23343 tables. Ignore non-last ac bit.
23344 (grub_jpeg_decode_quan_table): Likewise.
23346 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23348 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
23349 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
23350 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23351 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
23352 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
23353 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
23355 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23357 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
23360 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23362 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
23364 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23366 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
23369 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23371 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
23374 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23376 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
23379 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23381 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
23383 2010-05-01 Christian Franke <franke@computer.org>
23385 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
23386 Remove broken Cygwin path conversion.
23387 * util/misc.c: [__CYGWIN__] Add include and define.
23388 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
23390 (make_system_path_relative_to_its_root): Simplify loop, replace early
23392 [__CYGWIN__] Add conversion to win32 path.
23393 Include "/" case in trailing slash removal.
23395 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23397 * kern/main.c (grub_load_config): Fix copy-pasted comment.
23398 Reported by: Seth Goldberg
23400 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23402 * commands/help.c (grub_cmd_help): Fix a typo.
23403 Reported by: Seth Goldberg
23405 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23407 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
23409 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
23410 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
23411 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
23412 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
23413 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
23414 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
23415 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
23416 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
23417 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
23418 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
23419 * normal/context.c (GRUB_MOD_INIT): Likewise.
23420 * normal/main.c (GRUB_MOD_INIT): Likewise.
23421 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
23422 * term/serial.c (GRUB_MOD_INIT): Likewise.
23423 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
23425 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23427 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
23430 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23432 * commands/iorw.c: New file.
23433 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
23434 (iorw_mod_SOURCES): New variable.
23435 (iorw_mod_CFLAGS): Likewise.
23436 (iorw_mod_LDFLAGS): Likewise.
23438 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23442 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
23443 * normal/main.c (hotkey_aliases): New variable.
23444 (grub_normal_add_menu_entry): Parse "--hotkey".
23445 * normal/menu_text.c (run_menu): Handle hotkeys.
23447 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23449 * kern/i386/coreboot/init.c (grub_machine_init): Call
23450 grub_machine_mmap_init on qemu.
23452 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23454 * boot/i386/qemu/boot.S: Add a missing .code16.
23456 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23458 Use LBIO on coreboot.
23460 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
23461 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
23462 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
23464 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
23465 grub_machine_mmap_init on coreboot.
23466 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
23467 GRUB_LINUXBIOS_MEMBER_LINK.
23468 (grub_machine_mmap_iterate): Fix declaration.
23469 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
23471 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23473 Split coreboot and multiboot ports.
23475 * conf/i386-multiboot.rmk: New file.
23476 * configure.ac: Add multiboot port.
23477 * include/grub/i386/multiboot/boot.h: New file.
23478 * include/grub/i386/multiboot/console.h: Likewise.
23479 * include/grub/i386/multiboot/init.h: Likewise.
23480 * include/grub/i386/multiboot/kernel.h: Likewise.
23481 * include/grub/i386/multiboot/loader.h: Likewise.
23482 * include/grub/i386/multiboot/memory.h: Likewise.
23483 * include/grub/i386/multiboot/serial.h: Likewise.
23484 * include/grub/i386/multiboot/time.h: Likewise.
23485 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
23486 * loader/multiboot.c: Likewise.
23487 * loader/multiboot_mbi2.c: Likewise.
23488 * util/grub-mkrescue.in: Generate multiboot rescue.
23490 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23492 * kern/parser.c (grub_parser_execute): Cope with read-only config.
23494 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23496 Merge handling of input and output terminals. Fix a hang.
23498 * commands/terminal.c (abstract_terminal): New struct.
23499 (handle_command): New function. Based on grub_cmd_terminal_input.
23500 (grub_cmd_terminal_input): Use handle_command.
23501 (grub_cmd_terminal_output): Use handle_command.
23503 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
23505 Fix comment handling.
23507 * tests/grub_script_comments.in: New testcase.
23508 * conf/tests.rmk: Rules for new testcase.
23509 * script/yylex.l: Updated flex rules.
23511 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
23513 * docs/grub.texi (play): Document that zero pitches produce rests.
23514 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
23517 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
23519 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
23522 2010-04-26 Christian Franke <franke@computer.org>
23524 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
23525 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
23526 (grub_get_prefix): Remove function.
23527 * util/grub-emu.c (main): Replace grub_get_prefix () call by
23528 make_system_path_relative_to_its_root ().
23529 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
23531 2010-04-24 Christian Franke <franke@computer.org>
23533 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
23534 (kernel_img_LDFLAGS): Remove -static-libgcc.
23536 2010-04-24 Christian Franke <franke@computer.org>
23538 * configure.ac: Do not CHECK_BSS_START_SYMBOL
23539 and CHECK_END_SYMBOL if grub-emu is built.
23540 Unset TARGET_OBJ2ELF if grub-emu is built
23541 without module support.
23543 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
23547 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
23548 (grub_fstest_SOURCES): Likewise.
23549 (pkglib_MODULES): Add nilfs2.mod.
23550 (nilfs2_mod_SOURCES): New variable.
23551 (nilfs2_mod_CFLAGS): Likewise.
23552 (nilfs2_mod_LDFLAGS): Likewise.
23553 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
23554 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
23555 * fs/nilfs2.c: New file.
23557 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
23559 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
23562 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
23564 Add grub-mkconfig support for NetBSD.
23566 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
23567 * util/grub-mkconfig.in: export new NetBSD specific variables.
23568 * po/POTFILES-shell: added 10_netbsd.in.
23569 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
23571 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
23573 Fix emu build with grub-emu-pci and grub-emu-modules.
23575 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
23577 * include/grub/libpciaccess.h: New file.
23578 * conf/any-emu.rmk: Update kernel headers for emu build.
23580 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23582 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
23584 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23586 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
23588 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23590 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
23591 Retrieve chosen/bootpath if bootpath isn't hardcoded.
23592 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
23593 util/ieee1275/ofpath.c.
23594 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
23595 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
23596 * include/grub/sparc64/ieee1275/boot.h
23597 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
23598 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
23599 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
23600 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
23602 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
23603 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
23604 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
23607 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
23609 * util/grub-mkconfig.in: Corrected two == equality tests.
23610 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
23611 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
23612 expect a number appended to it.
23613 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
23614 expects a number appended to it.
23616 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23618 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
23620 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23622 * util/hostdisk.c (make_device_name): Change to new partition naming.
23624 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
23626 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
23628 2010-04-17 Christian Franke <franke@computer.org>
23630 * Makefile.in: Add missing localedir setting.
23632 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
23634 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
23635 mistake in r2156. Noticed by Anthony Fok.
23637 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
23639 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
23641 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
23643 Fix a spurious, uninitialized variable warning.
23645 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
23646 Initialize variable, shdr.
23647 (grub_freebsd_load_elfmodule): Likewise.
23648 (grub_freebsd_load_elf_meta): Likewise.
23650 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
23652 Fix for escaped dollar in double quoted strings.
23654 * script/yylex.l: Updated flex rules.
23655 * conf/tests.rmk: Rule for new testcase.
23656 * tests/grub_script_dollar.in: New testcase.
23658 2010-04-13 Carles Pina i Estany <carles@pina.cat>
23659 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
23661 Enclose all translated strings in grub.cfg in single quotes, and
23662 escape them appropriately (Ubuntu bug #552921).
23664 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
23665 * util/grub.d/10_hurd.in: Use it.
23666 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
23667 * util/grub.d/10_linux.in (linux_entry): Likewise.
23669 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23671 Fix cygwin compilation.
23673 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
23674 * include/grub/misc.h (__register_frame_info)
23675 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
23676 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23677 * kern/misc.c (__register_frame_info)
23678 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
23679 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23681 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23683 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
23685 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23687 Unify libgcc processing.
23689 * Makefile.in (kernel_img_LDFLAGS): New variable.
23690 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
23691 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
23693 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
23694 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
23695 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
23696 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
23697 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
23698 overwriting. Remove -lgcc and -static-libgcc
23699 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
23700 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23701 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23702 (kernel_img_LDFLAGS): Append instead of overwriting.
23703 Remove -lgcc and -static-libgcc
23704 * conf/sparc64-ieee1275.rmk: Likewise.
23705 * include/grub/powerpc/libgcc.h: Move to ...
23706 * include/grub/libgcc.h: .. this.
23707 * include/grub/libgcc.h: Don't export most of the function on x86.
23708 (__bswapsi2): New export.
23709 (__bswapdi2): Likewise.
23710 * include/grub/mips/libgcc.h: Removed.
23711 * include/grub/sparc64/libgcc.h: Likewise.
23713 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23715 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
23716 disk_info_msg (conflicts with gettexting into languages with cases).
23718 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
23720 Add grub-probe support for NetBSD.
23722 * util/getroot.c (find_root_device): Convert block device to
23723 character device on NetBSD.
23724 * util/probe.c (probe): Require character device on NetBSD.
23725 * util/hostdisk.c: NetBSD specific headers.
23726 (configure_device_driver): new function to tune device driver
23727 parameters (currently only for NetBSD floppy driver).
23728 (grub_util_biosdisk_open): NetBSD specific code (get disk size
23729 via disklabel ioctl).
23730 (open_device): call configure_device_driver on NetBSD.
23731 (convert_system_partition_to_system_disk): NetBSD specific code.
23732 (device_is_wholedisk): Likewise.
23733 (grub_util_biosdisk_get_grub_dev): Likewise.
23734 (make_device_name): Fixed a typo in bsd_part_str.
23735 * configure.ac: check for opendisk() and getrawpartition() on
23736 NetBSD and set LIBUTIL.
23737 * Makefile.in: add LIBUTIL to LIBS.
23739 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23743 * util/grub-script-check.c: Better help message.
23745 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23749 * configure.ac: Flex version check.
23750 * conf/common.rmk: Add -Wno-error to sh.mod.
23751 * script/yylex.l: Remove all #pragma.
23753 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23755 * include/grub/util/misc.h (canonicalise_file_name): Add missing
23757 Reported by: Seth Goldberg.
23759 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23761 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
23762 Rename "module" to "module2".
23763 Reported by: Seth Goldberg.
23765 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23767 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
23769 Reported by: Seth Goldberg.
23771 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23773 * lib/posix_wrap/locale.h: Add missing file.
23774 Reported by: Seth Goldberg.
23776 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23778 grub-emu module load support.
23780 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
23781 NO_DYNAMIC_MODULES switched to this.
23782 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
23783 (CFLAGS): Likewise.
23784 * conf/any-emu.rmk: Generate symlist.
23785 (kernel_img_HEADERS): Add util/datetime.h.
23786 (kernel_img_HEADERS) [sdl]: Add sdl.h.
23787 (kernel_img_HEADERS) [libusb]: Add libusb.h.
23788 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
23789 kern/$(target_cpu)/cache.S.
23790 * configure.ac (grub-emu-modules): New option.
23791 * genmk.rb: Handle multiple source lists.
23792 * include/grub/sdl.h: New file.
23793 * include/grub/libusb.h: Likewise.
23794 * util/grub-emu.c (main): Hanle (host) root.
23795 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
23796 GRUB_ERR_UNKNOWN_DEVICE.
23797 * util/misc.c: Move mm functions to ...
23798 * util/mm.c: ... here. All users updated.
23800 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23802 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
23803 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
23805 (maintainer-clean): Remove libgcrypt-grub.
23807 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23809 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
23811 2010-04-09 EFI Coder <eficoder@hotmail.com>
23813 * normal/menu_text.c (print_message): Clean up the message and show
23814 the Fn information when on EFI
23815 * term/efi/console.c (grub_console_checkkey): Add F4 support.
23817 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23819 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
23821 * normal/crypto.c (read_crypto_list): Likewise.
23822 * normal/dyncmd.c (read_command_list): Likewise.
23823 * normal/term.c (read_terminal_list): Likewise.
23824 * normal/main.c (read_lists): Use explicit prefix.
23825 (read_lists_hook): Use read_lists.
23826 (grub_normal_execute): Likewise.
23828 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23830 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
23831 Reported by: Thomas Schmitt.
23832 Add -no-emul-boot to grub-mkisofs parameters.
23834 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23836 * font/font.c: Indented.
23838 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23840 Elif support to GRUB script (by Deepak Vankadaru).
23842 * tests/grub_script_if.in: New testcase.
23843 * conf/tests.rmk: Rule for new testcase.
23844 * script/parser.y: Grammar rules for elif.
23846 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23848 While and until loops support to GRUB script.
23850 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
23851 (grub_script_create_cmdwhile): New function prototype.
23852 (grub_script_execute_cmdwhile): New function prototype.
23853 * script/execute.c (grub_script_execute_cmdwhile): New function.
23854 * script/parser.y (command): New commands.
23855 (whilecmd): New grammar rule.
23856 (untilcmd): New grammar rule.
23857 * script/script.c (grub_script_create_cmdwhile): New function.
23858 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
23861 * tests/grub_script_while1.in: New testcase.
23862 * conf/tests.rmk: Rule for new testcase.
23864 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23866 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
23869 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
23871 GRUB_BACKGROUND support.
23873 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
23874 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
23876 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23878 Load fonts and modules for gfxmenu in grub-mkconfig.
23879 Idea by: Mario Vazquez
23881 * util/grub.d/00_header.in: Load pf2 and image modules.
23883 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23885 grub-mkconfig multiple terminal support.
23887 * util/grub-mkconfig.in: Handle multiple terminals correctly.
23888 * util/grub.d/00_header.in: Likewise.
23890 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23892 * Makefile.in: Specify files explicitly instead of using $< and $@ since
23893 we use cd $(srcdir).
23895 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
23897 * util/grub.d/10_linux.in: Only use the first word of
23898 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
23899 spaces in GRUB_DISTRIBUTOR.
23900 * util/grub.d/10_kfreebsd.in: Likewise.
23901 * util/grub.d/10_hurd.in: Likewise.
23903 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
23905 Fix unit testing framework for Qemu 0.12.
23907 * tests/util/grub-shell.in: Remove -serial stdio option.
23909 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
23911 POSIX header file wrappers.
23913 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
23915 * lib/posix_wrap/ctype.h: Likewise.
23916 * lib/posix_wrap/errno.h: Likewise.
23917 * lib/posix_wrap/langinfo.h: Likewise.
23918 * lib/posix_wrap/limits.h: Likewise.
23919 * lib/posix_wrap/localcharset.h: Likewise.
23920 * lib/posix_wrap/stdint.h: Likewise.
23921 * lib/posix_wrap/stdio.h: Likewise.
23922 * lib/posix_wrap/stdlib.h: Likewise.
23923 * lib/posix_wrap/string.h: Likewise.
23924 * lib/posix_wrap/sys/types.h: Likewise.
23925 * lib/posix_wrap/unistd.h: Likewise.
23926 * lib/posix_wrap/wchar.h: Likewise.
23927 * lib/posix_wrap/wctype.h: Likewise.
23928 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
23929 (grub_script.yy.h): Likewise.
23930 * script/yylex.l: Remove POSIX emulation #defines.
23931 * Makefile.in (POSIX_CFLAGS): New variable.
23932 (GNULIB_UTIL_CFLAGS): Likewise.
23936 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
23937 (regexp_mod_SOURCES): New variable.
23938 (regexp_mod_CFLAGS): Likewise.
23939 (regexp_mod_LDFLAGS): Likewise.
23940 * commands/regexp.c: New file.
23941 * gnulib/regcomp.c: New file. Imported from gnulib.
23942 * gnulib/regex.c: Likewise.
23943 * gnulib/regex_internal.c: Likewise.
23944 * gnulib/regex_internal.h: Likewise.
23945 * gnulib/regexec.c: Likewise.
23946 * gnulib/regex.h: Likewise.
23948 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23950 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
23951 unsupported video mode types.
23953 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23955 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
23957 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23959 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
23960 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
23962 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
23964 Remove unused grub_vga_get_font.
23966 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
23967 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
23969 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23971 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
23972 * include/grub/misc.h: Likewise.
23974 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23976 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
23977 for which failure is fatal.
23979 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23981 * util/grub-install.in: Use mkdir -p to create grub directory.
23982 * util/i386/efi/grub-install.in: Likewise.
23983 * util/ieee1275/grub-install.in: Likewise.
23985 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23987 * Makefile.in (LEX): new variable.
23989 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23991 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
23992 `=' and added double quotes on operands of this equality test.
23994 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
23996 * Makefile.in (uninstall): Remove a leftover debug echo.
23997 Reported by: Grégoire Sutre
23999 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
24001 MIPS multiboot2 support.
24003 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
24004 (multiboot2_mod_SOURCES): New variable.
24005 (multiboot2_mod_CFLAGS): Likewise.
24006 (multiboot2_mod_LDFLAGS): Likewise.
24007 (multiboot2_mod_ASFLAGS): Likewise.
24008 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
24010 (MULTIBOOT_ENTRY_REGISTER): Likewise.
24011 (MULTIBOOT_MBI_REGISTER): Likewise.
24012 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
24013 (MULTIBOOT_ELF32_MACHINE): Likewise.
24014 (MULTIBOOT_ELF64_MACHINE): Likewise.
24015 * include/grub/mips/multiboot.h: New file.
24016 * include/grub/video.h (grub_video_driver_id): New type
24017 GRUB_VIDEO_DRIVER_SM712.
24018 (grub_video_get_info_and_fini): Export.
24019 (grub_video_get_palette): Likewise.
24020 (grub_video_get_driver_id): Likewise.
24021 * include/multiboot2.h: Resynced with spec.
24022 * loader/i386/multiboot.c: Moved from here ...
24023 * loader/multiboot.c: ... here. All users updated.
24024 (grub_multiboot_boot): Use platform-specific macros.
24025 * loader/i386/multiboot_elfxx.c: Moved from here ...
24026 * loader/multiboot_elfxx.c: ... here. All users updated.
24027 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
24028 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
24029 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
24031 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
24033 Import gnulib argp module.
24035 * gnulib/argp-ba.c: New file.
24036 * gnulib/argp-eexst.c: Likewise.
24037 * gnulib/argp-fmtstream.c: Likewise.
24038 * gnulib/argp-fmtstream.h: Likewise.
24039 * gnulib/argp-fs-xinl.c: Likewise.
24040 * gnulib/argp-help.c: Likewise.
24041 * gnulib/argp-namefrob.h: Likewise.
24042 * gnulib/argp-parse.c: Likewise.
24043 * gnulib/argp-pin.c: Likewise.
24044 * gnulib/argp-pv.c: Likewise.
24045 * gnulib/argp-pvh.c: Likewise.
24046 * gnulib/argp-version-etc.c: Likewise.
24047 * gnulib/argp-version-etc.h: Likewise.
24048 * gnulib/argp-xinl.c: Likewise.
24049 * gnulib/argp.h: Likewise.
24051 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
24053 * kern/device.c (grub_device_iterate): Clear errors after failed
24056 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
24058 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
24059 returned by firmware.
24061 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
24063 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
24064 compilation on coreboot and qemu
24066 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
24068 * include/multiboot2.h: Resync with spec.
24070 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
24072 Multiboot2 tag support
24074 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
24075 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
24076 Remove loader/multiboot_loader.c.
24077 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
24078 (grub_multiboot2_real_boot): Likewise.
24079 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
24080 (grub_get_multiboot_mmap_count): New proto.
24081 (grub_fill_multiboot_mmap): Likewise.
24082 (grub_multiboot_set_video_mode): Likewise.
24083 (grub_multiboot_set_console): Likewise.
24084 (grub_multiboot_load): Likewise.
24085 (grub_multiboot_load_elf): Likewise.
24086 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
24087 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
24088 * include/multiboot.h: Resynced with specification.
24089 * include/multiboot2.h: Resynced with specification.
24090 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
24091 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
24092 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
24093 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
24095 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
24096 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
24097 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
24099 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
24101 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
24102 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
24104 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
24105 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
24106 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
24108 * loader/i386/multiboot_mbi2.c: New file.
24110 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
24112 Resync with gnulib.
24114 * Makefile.in (GNULIB_CFLAGS): New variable.
24115 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
24116 (grub_script_check_CFLAGS): New variable.
24117 * gnulib/alloca.h: Resync with gnulib.
24118 * gnulib/error.c: Likewise.
24119 * gnulib/error.h: Likewise.
24120 * gnulib/fnmatch.c: Likewise.
24121 * gnulib/fnmatch_loop.c: Likewise.
24122 * gnulib/getdelim.c: Likewise.
24123 * gnulib/getline.c: Likewise.
24124 * gnulib/getopt.c: Likewise.
24125 * gnulib/getopt1.c: Likewise.
24126 * gnulib/getopt_int.h: Likewise.
24127 * gnulib/gettext.h: Likewise.
24128 * gnulib/progname.c: Likewise.
24129 * gnulib/progname.h: Likewise.
24131 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
24133 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
24134 which is the case with --disabled-nls.
24136 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
24137 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
24138 * util/misc.c: Likewise.
24139 * util/mkisofs/mkisofs.c: Likewise.
24140 * util/mkisofs/mkisofs.h: Likewise.
24142 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
24144 Simplify Apple CC support.
24146 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
24147 Add 0 byte at the end not to have a symbol with empty target.
24148 * mmap/i386/pc/mmap_helper.S: Likewise.
24149 * genmk.rb: Ignore errors 2030 and 2050.
24150 * kern/i386/pc/startup.S: Use LOCAL when possible.
24152 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
24154 Testcase and the fix for final semicolon on cmdline.
24156 * tests/grub_script_final_semicolon.in: New testcase.
24157 * conf/tests.rmk: Rules for the new testcase.
24158 * script/parser.y: Grammar fix.
24160 2010-03-26 BVK Chaitanya <bvk@localhost>
24162 Blank lines testcase for GRUB script.
24164 * tests/grub_script_blanklines.in: New testcase.
24165 * conf/tests.rmk: Rules for the new testcase.
24167 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24169 Don't use __FILE__.
24171 * genmk.rb: Add -DGRUB_FILE to all C targets.
24172 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
24173 * include/grub/list.h: Likewise.
24174 * include/grub/misc.h: Likewise.
24175 * include/grub/mm.h: Likewise.
24176 * include/grub/test.h: Likewise.
24177 * kern/mm.c: Likewise.
24178 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24180 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24182 Sunpc partitions support.
24184 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
24185 (grub_fstest_SOURCES): Likewise.
24186 (pkglib_MODULES): Add part_sunpc.mod.
24187 (part_sunpc_mod_SOURCES): New variable.
24188 (part_sunpc_mod_CFLAGS): Likewise.
24189 (part_sunpc_mod_LDFLAGS): Likewise.
24190 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
24191 * partmap/sunpc.c: New file.
24193 2010-03-26 BVK Chaitanya <bvk@localhost>
24195 For loop support to GRUB script.
24197 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
24198 (grub_script_create_cmdfor): New function prototype.
24199 (grub_script_execute_cmdfor): New function prototype.
24200 * script/execute.c (grub_script_execute_cmdfor): New function.
24201 * script/parser.y (command): New for command.
24202 (forcmd): New grammar rule.
24203 * script/script.c (grub_script_create_cmdfor): New function.
24204 * util/grub-script-check.c (grub_script_execute_cmdfor): New
24206 * tests/grub_script_for1.in: New testcase.
24207 * conf/tests.rmk: Rules for new testcase.
24209 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24213 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
24214 'partition' is NULL, grub_partition_get_start already does that.
24215 * commands/loadenv.c (check_blocklists): Likewise.
24216 (write_blocklists): Likewise.
24217 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
24218 (grub_fstest_SOURCES): Likewise.
24219 (pkglib_MODULES): Add part_bsd.mod.
24220 (part_bsd_mod_SOURCES): New variable.
24221 (part_bsd_mod_CFLAGS): Likewise.
24222 (part_bsd_mod_LDFLAGS): Likewise.
24223 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
24224 (grub_emu_SOURCES): Likewise.
24225 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24226 * include/grub/bsdlabel.h: New file.
24227 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
24229 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
24230 (grub_partition_map_list): New variable.
24231 (grub_partition_map_register): Inline.
24232 (grub_partition_map_unregister): Likewise.
24233 (FOR_PARTITION_MAPS): New macro.
24234 (grub_partition_map_iterate): Removed.
24235 (grub_partition_get_start): Handle nested partitions.
24236 * include/grub/msdos_partition.h: Remove bsd-related entries.
24237 (grub_pc_partition): Remove.
24238 * kern/disk.c (grub_disk_close): Free partition data.
24239 (grub_disk_adjust_range): Handle nested partitions.
24240 * kern/partition.c (grub_partition_map_probe): New function.
24241 (grub_partition_probe): Parse name to number, handle subpartitions.
24242 (get_partmap): New function.
24243 (grub_partition_iterate): Handle subpartitions.
24244 (grub_partition_get_name): Likewise.
24245 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
24246 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
24247 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
24248 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
24250 (acorn_partition_map_probe): Remove.
24251 (acorn_partition_map_get_name): Likewise.
24252 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
24254 Set 'index' to 0 since there can be only one partition entry per sector.
24255 (amiga_partition_map_probe): Remove.
24256 (amiga_partition_map_get_name): Likewise.
24257 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
24259 Set 'offset' and 'index' to real positions of partitions.
24260 (apple_partition_map_probe): Remove.
24261 (apple_partition_map_get_name): Likewise.
24262 * partmap/bsdlabel.c: New file.
24263 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
24265 Allocate 'data' so it can be correctly freed.
24266 Set 'index' to offset inside sector.
24267 (gpt_partition_map_probe): Remove.
24268 (gpt_partition_map_get_name): Likewise.
24269 * partmap/msdos.c (grub_partition_parse): Remove.
24270 (pc_partition_map_iterate): Don't force raw access.
24272 Make 'ext_offset' a local variable.
24273 (pc_partition_map_probe): Remove.
24274 (pc_partition_map_get_name): Remove.
24275 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
24277 (sun_partition_map_probe): Remove.
24278 (sun_partition_map_get_name): Likewise.
24279 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
24280 (grub_pcpart_type): Likewise.
24281 * util/hostdisk.c (open_device): Handle new numbering scheme.
24282 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
24283 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
24284 * util/grub-probe.c (probe_partmap): Handle nested paritions.
24285 * util/grub-install.in: Insert all subpartition modules.
24286 * util/ieee1275/grub-install.in: Likewise.
24288 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
24290 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
24293 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
24295 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
24297 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
24299 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
24300 match where 'make install' puts them.
24301 * util/i386/efi/grub-install.in: Likewise.
24303 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
24305 * .bzrignore: Add gentrigtables, grub-script-check,
24306 grub_script_check_init.c, grub_script_check_init.h, and
24309 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
24311 * kern/parser.c: Indented.
24313 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
24315 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
24317 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
24319 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
24320 alpha_mask_size == 0 case.
24322 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
24324 GRUB shell lexer and parser improvements.
24326 * conf/any-emu.rmk: Build rule updates.
24327 * conf/common.rmk: Likewise.
24328 * conf/i386-coreboot.rmk: Likewise.
24329 * conf/i386-efi.rmk: Likewise.
24330 * conf/i386-ieee1275.rmk: Likewise.
24331 * conf/i386-pc.rmk: Likewise.
24332 * conf/powerpc-ieee1275.rmk: Likewise.
24333 * conf/x86_64-efi.rmk: Likewise.
24335 * configure.ac: Configure check for flex.
24337 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
24339 (grub_lexer_param): Struct member updates.
24340 (grub_parser_param): Likewise.
24341 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
24342 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
24343 (grub_script_lexer_init): Prototype update.
24344 (grub_script_lexer_record_start): Likewise.
24345 (grub_script_lexer_record_stop): Likewise.
24346 (grub_script_lexer_yywrap): New function prototype.
24347 (grub_script_lexer_fini): Likewise.
24348 (grub_script_execute_argument_to_string): Removed by...
24349 (grub_script_execute_argument_to_argv): ...better version.
24351 * script/execute.c (ROUND_UPTO): New macro.
24352 (grub_script_execute_cmdline): Out of memory fixes.
24353 (grub_script_execute_menuentry): Likewise.
24354 (grub_script_execute_argument_to_string): Removed. Update all
24356 (grub_script_execute_argument_to_argv): ...better version.
24357 * script/function.c (grub_script_function_create): Use
24358 grub_script_execute_argument_to_argv instead of
24359 grub_script_execute_argument_to_string.
24361 * script/lexer.c (check_varstate): Removed.
24362 (check_textstate): Removed.
24363 (grub_script_lexer_record_start): Likewise.
24364 (grub_script_lexer_record_stop): Likewise.
24365 (recordchar): Replaced with...
24366 (grub_script_lexer_record): ...new function.
24367 (nextchar): Removed.
24368 (grub_script_lexer_init): Rewritten.
24369 (grub_script_yylex): Rewritten.
24370 (append_newline): New function.
24371 (grub_script_lexer_yywrap): New function.
24372 (grub_script_lexer_fini): New function.
24373 (grub_script_yyerror): Sets error flag.
24375 * script/yylex.l: New file.
24376 (grub_lexer_yyfree): Wrapper for flex yyffre.
24377 (grub_lexer_yyalloc): Likewise.
24378 (grub_lexer_yyrealloc): Likewise.
24379 * script/parser.y: Refactored.
24381 * script/script.c (grub_script_arg_add): Out of memory fixes.
24382 (grub_script_add_arglist): Likewise.
24383 (grub_script_create_cmdline): Likewise.
24384 (grub_script_create_cmdmenu): Likewise.
24385 (grub_script_add_cmd): Likewise.
24386 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
24387 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
24390 * tests/grub_script_echo1.in: New testcase.
24391 * tests/grub_script_vars1.in: New testcase.
24392 * tests/grub_script_echo_keywords.in: New testcase.
24394 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24396 Remove some redundancy in build system.
24398 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
24399 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
24400 (TARGET_LDFLAGS): Add -nostdlib.
24401 (TARGET_IMG_LDFLAGS): Likewise.
24402 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
24403 anything since mmap isn't available.
24404 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
24406 (pkglib_MODULES): Remove reboot.mod.
24407 (reboot_mod_SOURCES): Removed.
24408 (reboot_mod_CFLAGS): Likewise.
24409 (reboot_mod_LDFLAGS): Likewise.
24410 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
24411 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
24412 (DEFSYMFILES): Add kernel_syms.lst.
24413 (kernel_img_HEADERS): Add common headers.
24414 (symlist.c): New target.
24415 (kernel_syms.lst): Likewise.
24416 (pkglib_MODULES): Add memdisk.mod.
24417 (memdisk_mod_SOURCES): New variable.
24418 (memdisk_mod_CFLAGS): Likewise.
24419 (memdisk_mod_LDFLAGS): Likewise.
24420 (pkglib_MODULES): Add reboot.mod.
24421 (reboot_mod_SOURCES): New variable.
24422 (reboot_mod_CFLAGS): Likewise.
24423 (reboot_mod_LDFLAGS): Likewise.
24424 (pkglib_MODULES): Add date.mod.
24425 (date_mod_SOURCES): New variable.
24426 (date_mod_CFLAGS): Likewise.
24427 (date_mod_LDFLAGS): Likewise.
24428 (pkglib_MODULES): Add datehook.mod.
24429 (datehook_mod_SOURCES): New variable.
24430 (datehook_mod_CFLAGS): Likewise.
24431 (datehook_mod_LDFLAGS): Likewise.
24432 (pkglib_MODULES): Add lsmmap.mod.
24433 (lsmmap_mod_SOURCES): New variable.
24434 (lsmmap_mod_CFLAGS): Likewise.
24435 (lsmmap_mod_LDFLAGS): Likewise.
24436 (pkglib_MODULES): Add boot.mod.
24437 (boot_mod_SOURCES): New variable.
24438 (boot_mod_CFLAGS): Likewise.
24439 (boot_mod_LDFLAGS): Likewise.
24440 * conf/i386-coreboot.rmk: Removed redundant parts.
24441 * conf/i386-ieee1275.rmk: Likewise.
24442 * conf/i386-pc.rmk: Likewise.
24443 * conf/mips-yeeloong.rmk: Likewise.
24444 * conf/mips.rmk: Likewise.
24445 * conf/powerpc-ieee1275.rmk: Likewise.
24446 * conf/sparc64-ieee1275.rmk: Likewise.
24447 * conf/x86_64-efi.rmk: Likewise.
24448 * conf/i386-coreboot.rmk: Moved qemu parts ..
24449 * conf/i386-qemu.rmk: ... here
24450 * conf/i386-efi.rmk: Moved common parts to...
24451 * conf/x86-efi.rmk: ... here.
24452 * conf/i386.rmk: Added modules common to all x86 variants.
24453 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
24454 * disk/memdisk.c: Remove grub/machine/kernel.h.
24455 * gensymlist.sh.in: Include symbol.h.
24456 * hook/datehook.c: Correct module name.
24457 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
24458 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
24459 * include/grub/i386/efi/serial.h: New file.
24460 * include/grub/x86_64/efi/serial.h: Likewise.
24461 * util/time.c: Likewise.
24462 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
24464 2010-03-14 Colin King <colin.king@ubuntu.com>
24465 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
24467 Shrink the pre-partition-table part of boot.img by eight bytes.
24469 * boot/i386/pc/boot.S (ERR): New macro.
24470 (chs_mode): Use ERR.
24471 (geometry_error): Likewise.
24472 (hd_probe_error): Remove. This is only used once, so we wrwite
24474 (read_error): Instead of printing read_error_string, just set up
24475 %si and fall through to ...
24476 (error_message): ... this new function, also used by ERR.
24478 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
24480 Speed up consecutive hostdisk operations on the same device.
24482 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
24483 (grub_util_biosdisk_open): Initialise disk->data.
24484 (struct linux_partition_cache): New structure.
24485 (linux_find_partition): Cache partition start positions; these are
24486 expensive to compute on every read and write.
24487 (open_device): Cache open file descriptor in disk->data, so that we
24488 don't have to reopen it and flush the buffer cache for consecutive
24489 operations on the same device.
24490 (grub_util_biosdisk_close): New function.
24491 (grub_util_biosdisk_dev): Set `close' member.
24493 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
24494 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
24495 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
24496 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
24497 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
24499 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24501 Compile parts of grub-emu as modules.
24503 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
24504 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
24505 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
24506 (all-local): Add $(GRUB_EMU).
24507 (install-local): Install $(GRUB_EMU).
24508 (uninstall): Uninstall $(GRUB_EMU).
24509 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
24510 * kern/dl.c: Likewise.
24511 * commands/sleep.c: Not include machine/time.h.
24512 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
24513 (COMMON_CFLAGS): Likewise.
24514 (sbin_UTILITIES): Remove grub-emu.
24515 (grub_emu_SOURCES): Removed.
24516 (kernel_img_RELOCATABLE): New variable.
24517 (pkglib_PROGRAMS): Add kernel.img.
24518 (kernel_img_SOURCES): New variable
24519 (kernel_img_CFLAGS): Likewise.
24520 (kernel_img_LDFLAGS): Likewise.
24521 (TARGET_NO_STRIP): Likewise.
24522 (TARGET_NO_DYNAMIC_MODULES): Likewise.
24523 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
24524 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
24525 (grub-emu): New target.
24526 (GRUB_EMU): New variable.
24527 * configure.ac: Whitelist -emu as possible x86_64 architecture.
24528 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
24529 * loader/xnu.c: Likewise.
24530 * include/grub/pci.h: Likewise.
24531 * genemuinit.sh: New file.
24532 * genemuinitheader.sh: Likewise.
24533 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
24534 Support TARGET_NO_DYNAMIC_MODULES.
24535 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
24536 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
24537 * disk/loopback.c: Likewise.
24538 * font/font_cmd.c: Likewise.
24539 * partmap/acorn.c: Likewise.
24540 * partmap/amiga.c: Likewise.
24541 * partmap/apple.c: Likewise.
24542 * partmap/gpt.c: Likewise.
24543 * partmap/msdos.c: Likewise.
24544 * partmap/sun.c: Likewise.
24545 * parttool/msdospart.c: Likewise.
24546 * term/gfxterm.c: Likewise.
24547 * video/bitmap.c: Likewise.
24548 * video/readers/jpeg.c: Likewise.
24549 * video/readers/png.c: Likewise.
24550 * video/readers/tga.c: Likewise.
24551 * video/video.c: Likewise.
24552 * util/grub-emu.c (read_command_list): Removed.
24553 (main): Don't call util_init_nls.
24554 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
24555 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
24557 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24559 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
24560 date.mod, datehook.mod.
24561 (datetime_mod_SOURCES): New variable.
24562 (datetime_mod_CFLAGS): Likewise.
24563 (datetime_mod_LDFLAGS): Likewise.
24564 (date_mod_SOURCES): Likewise.
24565 (date_mod_CFLAGS): Likewise.
24566 (date_mod_LDFLAGS): Likewise.
24567 (datehook_mod_SOURCES): Likewise.
24568 (datehook_mod_CFLAGS): Likewise.
24569 (datehook_mod_LDFLAGS): Likewise.
24570 * conf/sparc64-ieee1275.rmk: Likewise.
24571 * lib/ieee1275/datetime.c: New file.
24573 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24575 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
24576 (ieee1275_fb_mod_SOURCES): New variable.
24577 (ieee1275_fb_mod_CFLAGS): Likewise.
24578 (ieee1275_fb_mod_LDFLAGS): Likewise.
24579 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
24581 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
24582 (HEAP_MAX_ADDR): Likewise.
24583 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
24585 Correct stop condition.
24586 (grub_ieee1275_devices_iterate): New function.
24587 * video/ieee1275.c: New file.
24589 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24591 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
24593 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
24595 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
24596 SCRATCH_PAD_DISKBOOT as scratch.
24597 (bootit): Pass Openfirmware pointer in %o4.
24598 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
24600 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
24601 with util/grub-mkrawimage.c.
24602 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
24603 * include/grub/aout.h (AOUT_MID_SUN): New definition.
24604 (grub_aout_get_type) [GRUB_UTIL]: Removed.
24605 (grub_aout_load) [GRUB_UTIL]: Likewise.
24606 * include/grub/kernel.h (grub_modules_get_end): New proto.
24607 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
24608 (SCRATCH_PAD_BOOT): New definition.
24609 (SCRATCH_PAD_DISKBOOT): Likewise.
24610 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
24611 * include/grub/sparc64/ieee1275/ieee1275.h
24612 (grub_ieee1275_original_stack): New variable
24613 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24615 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
24616 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
24617 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
24618 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
24619 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
24620 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
24621 (grub_platform_image_format_t): New type.
24622 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
24623 * kern/main.c (grub_modules_get_end)
24624 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
24625 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
24626 (codestart): Switch stacks.
24627 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
24629 (grub_heap_init): Use grub_modules_get_end.
24630 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
24632 * util/grub-mkrawimage.c (generate_image): Support sparc64.
24634 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
24636 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
24638 * util/grub-mkrescue.in: Base ISO UUID on UTC.
24640 2010-03-08 Matt Kraai <kraai@ftbfs.org>
24642 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
24645 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
24647 * genmoddep.awk: Output all missing symbols and not only first.
24649 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24651 * NEWS: Put the date of 1.98 release.
24653 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24655 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
24658 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24660 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
24661 completition in the middle of string.
24663 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24665 * util/grub-mkrescue.in: Use mktemp with explicit template.
24667 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24669 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
24671 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24673 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
24676 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24678 Fix FreeBSD compilation.
24680 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
24681 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
24683 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24685 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
24687 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24689 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
24691 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24693 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
24695 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
24697 Support relative image path in theme file.
24699 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
24700 (image_set_property): Handle theme_dir and relative path.
24702 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24704 * configure.ac: Alias amd64 to x86_64.
24706 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24708 * NEWS: mention multiboot on EFI.
24710 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24712 * kern/main.c (grub_load_modules): Handle errors from init functions of
24715 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24717 * normal/autofs.c (autoload_fs_module): Handle errors.
24719 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24721 Disable linux.mod on qemu-mips since it's not functional and leads
24722 to compilation failure.
24724 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
24725 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
24726 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
24727 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
24728 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
24729 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
24730 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
24731 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
24732 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
24733 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
24734 Reported by: BVK Chaitanya
24736 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
24738 * INSTALL: Add gettext as a dependency and add qemu to a new section
24739 "Prerequisites for make-check".
24741 2010-03-04 Christian Franke <franke@computer.org>
24743 * util/grub-pe2elf.c: Add missing include "progname.h".
24745 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24747 * normal/crypto.c (read_crypto_list): Fix a typo.
24748 Reported by: Seth Goldberg.
24750 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24752 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
24753 Reported by: Seth Goldberg.
24755 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24757 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
24760 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24762 * genmk.rb: Remove terminal*.lst in make clean.
24763 Reported by: Seth Goldberg.
24765 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24767 * util/i386/efi/grub-install.in: Copy gettext files.
24769 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24771 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
24773 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24775 Wait for user entry basing on presence of output rather than on errors.
24777 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
24778 (grub_install_newline_hook): Likewise.
24779 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
24780 * normal/menu.c (show_menu): Check line_counter to determine presence
24782 * normal/term.c (grub_normal_line_counter): New variable.
24783 (grub_normal_get_line_counter): New function.
24784 (grub_install_newline_hook): Likewise.
24786 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24788 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
24790 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24792 * configure.ac: Update version to 1.98.
24794 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
24796 * util/grub.d/10_linux.in (linux_entry): Don't default to
24797 gfxpayload=keep if Linux doesn't support video handover.
24799 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
24801 Don't compile video modules on yeeloong since video subsystem is part
24804 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
24805 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
24806 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
24807 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
24808 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
24809 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
24810 * include/grub/bitmap_scale.h: Likewise.
24811 * include/grub/bufio.h: Likewise.
24812 * include/grub/font.h: Likewise.
24813 * include/grub/gfxterm.h: Likewise.
24814 * include/grub/video.h: Likewise.
24815 * include/grub/vbe.h: Don't include video_fb.h.
24816 * video/i386/pc/vbe.c: Include video_fb.h.
24817 * commands/i386/pc/vbetest.c: Include video.h.
24819 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
24821 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
24822 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
24823 default entry if GRUB_SAVEDEFAULT=true. This allows using
24824 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
24825 saving a new default on every boot.
24827 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24829 * normal/crypto.c (read_crypto_list): Fix a memory leak.
24830 * normal/term.c (read_terminal_list): Likewise.
24831 * normal/main.c (grub_normal_init_page): Likewise.
24832 (grub_normal_read_line_real): Likewise.
24834 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24836 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
24838 Reported by: Seth Goldberg.
24840 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
24842 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
24843 duplicate declaration of `start'.
24845 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
24847 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
24849 Reported by: Georgy Buranov
24851 2010-02-20 Carles Pina i Estany <carles@pina.cat>
24853 * util/grub-mkrawimage.c (usage): Change string formatting to
24856 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
24858 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
24861 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
24863 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
24864 Reported by: Michael Suchanek.
24866 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
24868 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
24869 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
24871 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
24873 Remove any reference to non-free fonts.
24875 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
24876 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
24877 uses non-free components.
24878 * font/font.c (grub_font_get_name): Remove example name.
24879 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
24880 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
24881 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
24882 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
24884 2010-02-16 Georgy Buranov <gburanov@gmail.com>
24886 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
24888 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
24890 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
24892 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
24894 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
24896 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
24898 * gensymlist.sh.in: Use TARGET_CC instead of CC.
24900 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24902 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
24903 * docs/grub.texi (Command-line and menu entry commands): Document play
24906 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24908 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
24909 parse arguments as inline tempo and notes. Move code for playing notes
24911 (play): ... new function.
24913 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24915 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
24916 grub_uint16_t instead of short.
24917 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
24918 disk from little endian to cpu endianness.
24920 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
24922 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
24923 GRUB_TICKS_PER_SECOND instead of 120.
24925 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24927 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
24928 escape sequence after \e.
24930 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24932 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
24933 non-ASCII characters.
24935 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24937 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
24938 set root in single quotes to prevent \, from being unescaped.
24940 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24942 Prevent unknown commands from stopping menuentry execution.
24944 * script/execute.c (grub_script_execute_cmdline): Print error after
24947 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24949 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
24950 Reported by: Pavel Pisa.
24952 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24954 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
24956 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24958 Merge grub_ieee1275_map_physical into grub_map and rename to
24961 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
24962 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
24964 * kern/ieee1275/openfw.c (grub_map): Rename to ...
24965 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
24967 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
24969 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24971 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
24972 opening and not after.
24974 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24976 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
24979 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24981 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
24982 (alloc_phys): Use ALIGN_UP instead of align_addr.
24984 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24986 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
24988 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24990 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
24992 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24994 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
24997 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24999 Fix over-4GiB seek on sparc64.
25001 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
25002 Replace pos_i and pos_lo with pos. All users updated.
25003 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
25005 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
25007 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
25010 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25012 * util/grub-mkrawimage.c (main): Call set_program_name.
25014 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25016 Properly align 64-bit targets.
25018 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
25019 (generate_image): Use ALIGN_ADDR.
25021 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25023 Properly create cross-endian images.
25025 * include/grub/types.h (grub_host_to_target_addr): New macro
25026 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
25028 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25030 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
25032 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25034 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
25036 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
25037 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
25038 (grub_linux_boot): Divide by 64K when on VESA.
25040 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25042 Support GRUB_GFXPAYLOAD_LINUX.
25044 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
25045 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
25047 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25049 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
25050 to show messages instead of discarding them.
25051 Process errors after executing command and not before. Keep old method
25054 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
25056 * configure.ac: Check for ft2build.h.
25058 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25060 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
25062 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25064 * genkernsyms.sh.in: Use TARGET_CC.
25066 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
25070 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25072 * include/grub/multiboot2.h: Remove leftover file.
25073 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
25074 * include/grub/partition.h [GRUB_UTIL]: Likewise.
25076 2010-02-07 Yves Blusseau <blusseau@zetam.org>
25078 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
25080 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25082 Fix warnings in grub-emu when compiling with maximum warning options.
25084 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
25085 (grub_arch_modules_addr): Return 0 and not NULL.
25086 * util/misc.c (ENABLE_RELOCATABLE): New definition.
25087 (xstrdup): Use newstr instead of dup.
25088 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
25089 of disk to dsk to avoid shadowing.
25090 (find_free_slot): Fix prototype.
25091 * util/getroot.c (grub_util_is_dmraid): Make static.
25092 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
25093 Add missing prototype.
25094 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
25096 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25098 * loader/i386/linux.c (grub_linux_setup_video): Handle error
25101 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25103 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
25106 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25108 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
25109 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
25110 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
25111 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
25112 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
25113 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
25115 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25117 * include/grub/err.h (grub_err_printf): Don't export.
25119 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25121 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
25123 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25125 * include/grub/i18n.h (grub_gettext_dummy): Removed.
25126 * kern/misc.c (grub_gettext_dummy): Make static.
25128 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25130 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
25132 * kern/term.c (grub_putchar): Likewise.
25134 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25136 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
25137 buggy hook call and memory leak.
25139 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25141 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
25143 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25145 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
25147 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25149 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
25151 Return grub_errno on allocation error.
25153 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25155 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
25157 2010-02-06 Yves Blusseau <blusseau@zetam.org>
25159 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
25160 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
25162 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25164 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
25166 (grub_pxefs_open): Likewise.
25168 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25170 * util/grub.d/10_hurd.in: Add --class information to menuentries.
25171 * util/grub.d/10_kfreebsd.in: Likewise.
25172 * util/grub.d/10_linux.in: Likewise.
25174 2010-02-06 Colin D Bennett <colin@gibibit.com>
25176 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
25177 (gfxmenu_mod_SOURCES): New variable.
25178 (gfxmenu_mod_CFLAGS): Likewise.
25179 (gfxmenu_mod_LDFLAGS): Likewise.
25180 * include/grub/term.h (grub_term_set_current_output): Declare
25182 * docs/gfxmenu-theme-example.txt: New file.
25183 * gfxmenu/gfxmenu.c: Likewise.
25184 * gfxmenu/gui_box.c: Likewise.
25185 * gfxmenu/gui_canvas.c: Likewise.
25186 * gfxmenu/gui_circular_progress.c: Likewise.
25187 * gfxmenu/gui_image.c: Likewise.
25188 * gfxmenu/gui_label.c: Likewise.
25189 * gfxmenu/gui_list.c: Likewise.
25190 * gfxmenu/gui_progress_bar.c: Likewise.
25191 * gfxmenu/gui_string_util.c: Likewise.
25192 * gfxmenu/gui_util.c: Likewise.
25193 * gfxmenu/icon_manager.c: Likewise.
25194 * gfxmenu/model.c: Likewise.
25195 * gfxmenu/named_colors.c: Likewise.
25196 * gfxmenu/theme_loader.c: Likewise.
25197 * gfxmenu/view.c: Likewise.
25198 * gfxmenu/widget-box.c: Likewise.
25199 * include/grub/gfxmenu_model.h: Likewise.
25200 * include/grub/gfxmenu_view.h: Likewise.
25201 * include/grub/gfxwidgets.h: Likewise.
25202 * include/grub/gui.h: Likewise.
25203 * include/grub/gui_string_util.h: Likewise.
25204 * include/grub/icon_manager.h: Likewise.
25206 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25208 Agglomerate scrolling in gfxterm.
25210 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
25211 (grub_virtual_screen_setup): Initialise 'total_screen'.
25212 (write_char): Split to ...
25213 (paint_char): ... this ...
25214 (write_char): ... and this.
25215 (paint_char): Handle delayed scrolling.
25216 (draw_cursor): Likewise.
25217 (scroll_up): Split to ...
25218 (real_scroll): ... this ...
25219 (scroll_up): ... and this.
25220 (real_scroll): Handle multi-line scroll and draw below-the-bottom
25222 (grub_gfxterm_refresh): Call real_scroll.
25224 2010-02-06 Colin D Bennett <colin@gibibit.com>
25226 * include/grub/misc.h (grub_iscntrl): New inline function.
25227 (grub_isalnum): Likewise.
25228 (grub_strtol): Likewise.
25230 2010-02-06 Colin D Bennett <colin@gibibit.com>
25232 * normal/menu_text.c (get_entry_number): Move from here ...
25233 * normal/menu.c (get_entry_number): ... moved here.
25234 * include/grub/menu.h (grub_menu_get_default_entry_index):
25236 * normal/menu.c (grub_menu_get_default_entry_index): New function.
25237 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
25238 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
25239 (grub_menu_viewer_should_return): Likewise.
25240 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
25241 * normal/menu_text.c (run_menu): Enable menu switching.
25242 * normal/menu_viewer.c (should_return): New variable.
25243 (menu_viewer_changed): Likewise.
25244 (grub_menu_viewer_show_menu): Handle menu viewer changes.
25245 (grub_menu_viewer_should_return): New function.
25246 (menuviewer_write_hook): Likewise.
25247 (grub_menu_viewer_init): Likewise.
25249 2010-02-06 Colin D Bennet <colin@gibibit.com>
25250 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25252 Support for gfxterm in a window.
25254 * include/grub/gfxterm.h: New file.
25255 * include/grub/video.h (struct grub_video_rect): New declaration.
25256 (grub_video_rect_t): Likewise.
25257 * term/gfxterm.c (struct grub_gfxterm_window): New type.
25258 (refcount): New variable.
25259 (render_target): Likewise.
25260 (window): Likewise.
25261 (repaint_callback): Likewise.
25262 (grub_virtual_screen_setup): Use 'render_target'.
25263 (init_window): New function.
25264 (grub_gfxterm_init_window): Likewise.
25265 (grub_gfxterm_init): Check reference counter.
25267 (destroy_window): New function.
25268 (grub_gfxterm_destroy_window): Likewise.
25269 (grub_gfxterm_fini): Check reference counter.
25270 Use destroy_window.
25271 (redraw_screen_rect): Restore viewport.
25272 Use 'render_target' and 'window'.
25273 Call 'repaint_callback'.
25274 (write_char): Use 'render_target'.
25275 (draw_cursor): Likewise.
25276 (scroll_up): Restore viewport.
25277 Use 'render_target' and 'window'.
25278 Call 'repaint_callback'.
25279 (grub_gfxterm_cls): Likewise.
25280 (grub_gfxterm_refresh): Use 'window'.
25281 (grub_gfxterm_set_repaint_callback): New function.
25282 (grub_gfxterm_background_image_cmd): Use 'window'.
25283 (grub_gfxterm_get_term): New function.
25284 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
25286 2010-02-06 Colin D Bennett <colin@gibibit.com>
25288 Bitmap scaling support.
25290 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
25291 (bitmap_scale_mod_SOURCES): New variable.
25292 (bitmap_scale_mod_CFLAGS): Likewise.
25293 (bitmap_scale_mod_LDFLAGS): Likewise.
25294 * include/grub/bitmap_scale.h: New file.
25295 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
25296 (background_image_cmd_options): New variable.
25297 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
25298 (cmd): Rename and change type to ...
25299 (background_image_cmd_handle): ... this. All users updated.
25300 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
25301 * video/bitmap_scale.c: New file.
25303 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25307 * Makefile.in (LIBSDL): New variable.
25308 (enable_grub_emu_sdl): Likewise.
25309 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
25310 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
25311 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
25312 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
25313 * util/sdl.c: New file.
25315 2010-02-06 Colin D Bennett <colin@gibibit.com>
25316 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25318 Double buffering support.
25320 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
25321 * include/grub/video.h: Update comment.
25322 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
25324 (grub_video_fb_doublebuf_blit_init): New prototype.
25325 * term/gfxterm.c (scroll_up): Support double buffering.
25326 (grub_gfxterm_refresh): Likewise.
25327 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
25328 (grub_video_fb_doublebuf_blit_init): Likewise.
25329 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
25330 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
25331 'displayed_page', 'render_page' and 'update_screen'.
25332 (grub_video_vbe_fini): Free offscreen buffer.
25333 (doublebuf_pageflipping_commit): New function.
25334 (doublebuf_pageflipping_update_screen): Likewise.
25335 (doublebuf_pageflipping_init): Likewise.
25336 (double_buffering_init): Likewise.
25337 (grub_video_vbe_setup): Enable doublebuffering.
25338 (grub_video_vbe_swap_buffers): Implement.
25339 (grub_video_vbe_set_active_render_target): Handle double buffering.
25340 (grub_video_vbe_get_active_render_target): Likewise.
25341 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
25342 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
25343 (grub_video_vbe_enable_double_buffering): Likewise.
25344 (grub_video_vbe_swap_buffers): Use update_screen.
25345 (grub_video_set_mode): Use double buffering.
25347 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25349 * maintainance/gentrigtables.py: Remove.
25350 * lib/trig.c: Likewise.
25352 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
25354 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
25356 (trigtables.c): New rule.
25357 (gentrigtables): Likewise.
25358 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
25360 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25362 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
25365 2010-02-06 Colin D Bennet <colin@gibibit.com>
25367 Trigonometry support.
25369 * include/grub/trig.h: New file.
25370 * lib/trig.c: Likewise.
25371 * maintainance/gentrigtables.py: Likewise.
25372 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
25373 (trig_mod_SOURCES): New variable.
25374 (trig_mod_CFLAGS): Likewise.
25375 (trig_mod_LDFLAGS): Likewise.
25377 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25379 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
25382 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25384 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
25387 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
25389 * util/hostdisk.c (open_device): Don't use partition device when reading
25390 before the partition.
25391 (grub_util_biosdisk_read): Don't read from partition and before the
25392 partition in single operation.
25393 (grub_util_biosdisk_write): Don't write to partition and before the
25394 partition in single operation.
25396 2010-02-03 Torsten Landschoff <torsten@debian.org>
25398 * kern/disk.c (grub_disk_read): Fix offset computation when reading
25401 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
25403 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
25405 (grub_biosdisk_write): Refuse to write to CDROM.
25407 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
25409 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
25411 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
25413 * font/font.c (find_glyph): Check that bmp_idx is available before
25415 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
25416 with (font == NULL).
25418 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
25420 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
25422 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
25424 * include/grub/script_sh.h (sourcecode): Add const qualifier.
25425 * util/grub-script-check.c (getline): Fix empty lines case.
25427 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
25429 * Makefile.in (check): Exit with fail status when one of the tests
25431 * tests/example_functional_test.c (example_test): Fix reversed assert.
25432 * tests/example_unit_test.c (example_test): Likewise.
25434 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
25436 * util/grub.d/10_linux.in: This script does not use any of the
25437 contents of gettext.sh, only the external command `gettext', so stop
25438 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
25439 the same prefix as GRUB.)
25440 * util/grub.d/10_kfreebsd.in: Likewise.
25442 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25444 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
25447 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25449 * kern/disk.c (grub_disk_read): Fix offset computation when reading
25452 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25454 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
25455 having a 4KiB and not 32KiB buffer size.
25457 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25459 * util/hostfs.c: Include `<errno.h>'.
25460 (grub_hostfs_read): Handle errors from fseeko() and fread().
25462 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25464 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
25465 loop when using read hooks on files whose size isn't sector-aligned.
25467 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25469 Remove unused parameter.
25471 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
25472 (grub_iso9660_open): Remove initialization of `data->length'.
25474 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25476 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
25477 memleak conditions.
25479 2010-01-27 Carles Pina i Estany <carles@pina.cat>
25481 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
25482 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
25484 2010-01-26 Carles Pina i Estany <carles@pina.cat>
25486 * util/bin2h.c (usage): Fix warning (space after backslash).
25488 2010-01-26 Carles Pina i Estany <carles@pina.cat>
25490 * font/font.c: Include `grub/fontformat.h.
25491 Remove font file format constants.
25492 (grub_font_load): Use the new macros.
25493 * include/grub/fontformat.h: New file.
25494 * util/grub-mkfont.c: Include `grub/fontformat.c'.
25495 (write_font_pf2): Use the new macros.
25497 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
25499 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
25502 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
25504 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
25506 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
25507 (_start): Macroify `0x7F'.
25509 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
25510 (make_install_device): Use "(pxe)" as fallback prefix when booting
25513 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
25515 * configure.ac: Reset LIBS after check for libgcc symbols.
25517 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
25519 * util/hostdisk.c (open_device): Add trailing newline to debug
25522 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
25524 * configure.ac: Check for `limits.h'.
25525 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
25527 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
25529 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
25530 capitalize error strings.
25532 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
25534 * util/grub.d/10_hurd.in: Add a recovery mode.
25536 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
25538 * configure.ac: Check for libgcc symbols with -nostdlib.
25540 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
25542 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
25544 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25546 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
25547 stack since heap may be unavailable at that point.
25548 (grub_ofconsole_gotoxy): Likewise.
25550 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25552 * configure.ac: Check for _restgpr_14_x.
25553 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
25554 and _savegpr_* prototypes.
25556 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
25558 Use generic grub_reboot() for i386-efi.
25560 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
25561 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
25562 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
25564 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25566 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
25567 presence of "prefix" variable as it breaks when normal.mod is
25570 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25572 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
25573 stack since heap is unavailable at that point.
25575 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25577 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
25578 (grub_freebsd_bootinfo): Rewritten.
25579 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
25581 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25583 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
25585 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
25587 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
25590 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
25592 * util/misc.c (make_system_path_relative_to_its_root): Change the work
25593 around for handling "/" to the correct fix. Fix a memory leak. Use
25594 xstrdup instead of strdup.
25596 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25598 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
25600 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25602 Optimise glyph lookup by Basic Multilingual Plane lookup array.
25604 * font/font.c (struct grub_font): New member 'bmp_idx'.
25605 (font_init): Initialise 'bmp_idx'.
25606 (load_font_index): Fill 'bmp_idx'.
25607 (find_glyph): Make inline. Use bmp_idx for BMP characters.
25609 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25611 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
25614 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25616 Move context handling out of the kernel.
25618 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
25619 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
25620 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
25621 * conf/i386-efi.rmk: Likewise.
25622 * conf/i386-ieee1275.rmk: Likewise.
25623 * conf/i386-pc.rmk: Likewise.
25624 * conf/powerpc-ieee1275.rmk: Likewise.
25625 * conf/sparc64-ieee1275.rmk: Likewise.
25626 * conf/x86_64-efi.rmk: Likewise.
25627 * include/grub/env.h: Include grub/menu.h.
25628 (grub_env_var_type): Removed.
25629 (grub_env_var): Replaced field 'type' with 'global'.
25630 (grub_env_find): New prototype.
25631 (grub_env_context_open): Remove EXPORT_FUNC.
25632 (grub_env_context_close): Likewise.
25633 (grub_env_export): Likewise.
25634 (grub_env_set_data_slot): Removed.
25635 (grub_env_get_data_slot): Likewise.
25636 (grub_env_unset_data_slot): Likewise.
25637 (grub_env_unset_menu): New prototype.
25638 (grub_env_set_menu): Likewise.
25639 (grub_env_get_menu): Likewise.
25640 * include/grub/env_private.h: New file.
25641 * include/grub/normal.h (grub_context_init): New prototype.
25642 (grub_context_fini): Likewise.
25643 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
25644 * normal/context.c (grub_cmd_export): ... to here.
25645 * kern/env.c: Include env_private.h.
25646 (HASHSZ): Moved to include/grub/env_private.h.
25647 (grub_env_context): Likewise.
25648 (grub_env_sorted_var): Likewise.
25649 (current_context): Renamed from this ...
25650 (grub_current_context): ...to this. 'static' removed. All users updated.
25651 (grub_env_find): Removed 'static'.
25652 (grub_env_context_open): Moved to normal/context.c.
25653 (grub_env_context_close): Likewise.
25654 (grub_env_export): Likewise.
25655 (mangle_data_slot_name): Removed.
25656 (grub_env_set_data_slot): Likewise.
25657 (grub_env_get_data_slot): Likewise.
25658 (grub_env_unset_data_slot): Likewise.
25659 * kern/main.c (grub_set_root_dev): Don't export root.
25660 It will be done later.
25661 (grub_main): Don't export prefix.
25662 It will be done later.
25663 * normal/context.c: New file.
25664 * normal/main.c (free_menu): Use grub_env_unset_menu.
25665 (grub_normal_add_menu_entry): Use grub_env_get_menu.
25666 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
25667 (GRUB_MOD_INIT(normal)): Call grub_context_init.
25668 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
25670 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25674 * commands/setpci.c: New file.
25675 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
25676 (setpci_mod_SOURCES): New variable.
25677 (setpci_mod_CFLAGS): Likewise.
25678 (setpci_mod_LDFLAGS): Likewise.
25680 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25682 Byte-addressable PCI configuration space.
25684 * bus/pci.c (grub_pci_make_address): Use byte address instead of
25686 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
25687 GRUB_PCI_REG_CACHELINE.
25688 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
25689 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
25690 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
25691 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
25692 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
25693 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
25694 grub_pci_make_address.
25695 (lock_rom_area): Likewise.
25696 * commands/lspci.c (grub_lspci_iter): Use macroses
25697 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
25698 of grub_pci_make_address.
25699 * disk/ata.c (grub_ata_pciinit): Likewise.
25700 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
25701 (GRUB_PCI_REG_VENDOR): Likewise.
25702 (GRUB_PCI_REG_DEVICE): Likewise.
25703 (GRUB_PCI_REG_COMMAND): Likewise.
25704 (GRUB_PCI_REG_STATUS): Likewise.
25705 (GRUB_PCI_REG_REVISION): Likewise.
25706 (GRUB_PCI_REG_CLASS): Likewise.
25707 (GRUB_PCI_REG_CACHELINE): Likewise.
25708 (GRUB_PCI_REG_LAT_TIMER): Likewise.
25709 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
25710 (GRUB_PCI_REG_BIST): Likewise.
25711 (GRUB_PCI_REG_ADDRESSES): Likewise.
25712 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25713 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25714 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25715 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25716 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25717 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25718 (GRUB_PCI_REG_CIS_POINTER): Likewise.
25719 (GRUB_PCI_REG_SUBVENDOR): Likewise.
25720 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
25721 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
25722 (GRUB_PCI_REG_CAP_POINTER): Likewise.
25723 (GRUB_PCI_REG_IRQ_LINE): Likewise.
25724 (GRUB_PCI_REG_IRQ_PIN): Likewise.
25725 (GRUB_PCI_REG_MIN_GNT): Likewise.
25726 (GRUB_PCI_REG_MAX_LAT): Likewise.
25727 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
25728 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
25729 * video/efi_uga.c (find_framebuf): Likewise.
25730 * video/sm712.c (grub_video_sm712_setup): Likewise.
25731 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
25734 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25736 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
25737 can be reliably determined to be supported.
25739 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25741 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
25742 that VESA is supported.
25743 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
25746 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25748 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
25750 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25752 * util/misc.c (make_system_path_relative_to_its_root): Work around
25753 special-casing of "/", as previous incarnation of this routine did.
25755 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25757 Fix any-emu compilation.
25759 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
25760 * grub_bin2h_SOURCES: New variable.
25762 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25764 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
25766 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25768 * util/grub.d/00_header.in: Fix handling of locale_dir.
25770 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25772 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
25773 as possible unifont location (Gentoo).
25774 Reported by: Alexander Brüning
25776 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25778 Don't try to generate lists for kernel.img.
25780 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
25781 (pkglib_MODULES): Remove kernel.img.
25782 (kernel_img_EXPORTS): Removed.
25783 (kernel_img_RELOCATABLE): New variable.
25784 * conf/x86_64-efi.rmk: Likewise.
25785 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
25787 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25789 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
25790 grub_xasprintf or grub_snprintf.
25791 (grub_vsprintf): Likewise.
25792 (grub_snprintf): New proto.
25793 (grub_vsnprintf): Likewise.
25794 (grub_xasprintf): Likewise.
25795 (grub_xvasprintf): Likewise.
25796 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
25797 (grub_sprintf): Removed.
25798 (grub_vsnprintf): New function.
25799 (grub_snprintf): Likewise.
25800 (grub_xvasprintf): Likewise.
25801 (grub_xasprintf): Likewise.
25802 (grub_vsprintf): Renamed to ...
25803 (grub_vsnprintf_real): ...this. New argument max_len.
25805 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
25807 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
25808 fix grub-script-check warning.
25810 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25812 * include/grub/font.h (grub_font_load): Fix prototype.
25814 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25816 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
25818 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25820 * include/grub/x86_64/at_keyboard.h: New file.
25822 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25824 * loader/mips/linux.c: Include missing grub/i18n.h.
25826 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25828 * normal/menu.c (notify_execution_failure): Clarify error message.
25830 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25832 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
25833 return value (and revert all return statements). Update users.
25835 2010-01-20 Dan Merillat <debian@dan.merillat.org>
25837 * kern/device.c (grub_device_iterate): Allocate new part_ent
25838 structure based on sizeof (*p) rather than sizeof (p->next), to
25839 account for structure padding.
25841 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
25842 disk is NULL, which might happen for LVM physical volumes with no
25845 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25847 * loader/mips/linux.c (grub_cmd_initrd)
25848 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
25850 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25852 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
25853 (grub_video_video_init, grub_video_bitmap_init)
25854 (grub_font_manager_init, grub_term_gfxterm_init)
25855 (grub_at_keyboard_init): New extern declarations.
25856 (grub_machine_init): Initialize gfxterm and at_keyboard.
25858 * kern/main.c (grub_main): Revert grub_printf delay kludge.
25860 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
25861 `gfxterm.mod' into core image.
25863 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25864 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25865 (kernel_img_FORMAT): Copy to ...
25867 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25868 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25869 (kernel_img_FORMAT): ... here, and ...
25871 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25872 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25873 (kernel_img_FORMAT): ... here.
25875 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
25876 and input (at_keyboard) terminals in kernel.
25877 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
25879 (pkglib_MODULES): Remove `pci.mod'.
25880 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
25881 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
25882 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
25883 (at_keyboard_mod_LDFLAGS): Remove variables.
25885 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
25887 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
25889 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
25891 * include/grub/mips/libgcc.h: Only export symbols for functions
25892 that libgcc provides.
25894 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
25898 * bus/bonito.c: New file.
25899 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
25900 GRUB_PCI_NUM_DEVICES.
25901 * term/i386/pc/serial.c: Move to ...
25902 * term/serial.c: ... here. All users updated.
25903 * util/i386/pc/grub-mkimage.c: Move to ...
25904 * util/grub-mkrawimage.c: ... here. All users updated.
25905 * term/i386/pc/at_keyboard.c: Move to ...
25906 * term/at_keyboard.c: ... here. All users updated.
25907 * conf/mips-qemu-mips.rmk: New file.
25908 * conf/mips-yeeloong.rmk: Likewise.
25909 * conf/mips.rmk: Likewise.
25910 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
25912 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
25914 (grub_ata_pciinit): Support CS5536.
25915 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
25916 * font/font_cmd.c (loadfont_command): Open file before passing it to
25918 (pseudo_file_read): New function.
25919 (pseudo_file_close): Likewise.
25920 (pseudo_fs): New structure.
25921 (load_font_module): New function.
25922 (GRUB_MOD_INIT(font_manager)): Load embedded font.
25923 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
25924 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
25925 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
25926 * include/grub/i386/at_keyboard.h: Split into ...
25927 * include/grub/at_keyboard.h: ... this ...
25928 * include/grub/i386/at_keyboard.h: ... and this.
25929 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
25931 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
25933 (grub_elf64_size): Likewise.
25934 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
25936 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
25937 * include/grub/i386/coreboot/serial.h: Rewritten.
25938 * include/grub/i386/ieee1275/serial.h: Include
25939 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
25940 * include/grub/i386/pc/serial.h: Moved from here ...
25941 * include/grub/serial.h: ... to here. All users updated.
25942 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
25943 (GRUB_PCI_NUM_BUS): Likewise.
25944 (GRUB_PCI_NUM_DEVICES): Likewise.
25945 (grub_pci_device_map_range): Add missing volatile keyword.
25946 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
25947 * include/grub/mips/at_keyboard.h: New file.
25948 * include/grub/mips/cache.h: Likewise.
25949 * include/grub/mips/io.h: Likewise.
25950 * include/grub/mips/kernel.h: Likewise.
25951 * include/grub/mips/libgcc.h: Likewise.
25952 * include/grub/mips/pci.h: Likewise.
25953 * include/grub/mips/qemu-mips/boot.h: Likewise.
25954 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25955 * include/grub/mips/qemu-mips/loader.h: Likewise.
25956 * include/grub/mips/qemu-mips/memory.h: Likewise.
25957 * include/grub/mips/qemu-mips/serial.h: Likewise.
25958 * include/grub/mips/qemu-mips/time.h: Likewise.
25959 * include/grub/mips/relocator.h: Likewise.
25960 * include/grub/mips/time.h: Likewise.
25961 * include/grub/mips/types.h: Likewise.
25962 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
25963 * include/grub/mips/yeeloong/boot.h: Likewise.
25964 * include/grub/mips/yeeloong/kernel.h: Likewise.
25965 * include/grub/mips/yeeloong/loader.h: Likewise.
25966 * include/grub/mips/yeeloong/memory.h: Likewise.
25967 * include/grub/mips/yeeloong/pci.h: Likewise.
25968 * include/grub/mips/yeeloong/serial.h: Likewise.
25969 * include/grub/mips/yeeloong/time.h: Likewise.
25970 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
25971 * kern/elf.c (grub_elf32_size): New parameter. All users
25973 (grub_elf64_size): Likewise.
25974 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
25975 Load modules before saying "Welcome to GRUB!".
25976 Call grub_refresh after saying "Welcome to GRUB!".
25977 * kern/mips/cache.S: New file.
25978 * kern/mips/cache_flush.S: Likewise.
25979 * kern/mips/dl.c: Likewise.
25980 * kern/mips/init.c: Likewise.
25981 * kern/mips/qemu-mips/init.c: Likewise.
25982 * kern/mips/startup.S: Likewise.
25983 * kern/mips/yeeloong/init.c: Likewise.
25984 * kern/term.c (grub_putcode): Handle NULL terminal.
25985 (grub_getcharwidth): Likewise.
25986 (grub_getkey): Likewise.
25987 (grub_checkkey): Likewise.
25988 (grub_getkeystatus): Likewise.
25989 (grub_getxy): Likewise.
25990 (grub_getwh): Likewise.
25991 (grub_gotoxy): Likewise.
25992 (grub_cls): Likewise.
25993 (grub_setcolorstate): Likewise.
25994 (grub_setcolor): Likewise.
25995 (grub_getcolor): Likewise.
25996 (grub_refresh): Likewise.
25997 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
25998 (write_jump): Add hatch nop.
25999 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
26000 * lib/mips/setjmp.S: New file.
26001 * loader/mips/linux.c: Likewise.
26002 * term/i386/pc/at_keyboard.c: Move from here ...
26003 * term/at_keyboard.c: ... to here.
26004 * term/i386/pc/serial.c: Moved from here ...
26005 * term/serial.c: ... to here. All users updated.
26006 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
26007 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
26008 (serial_translate_key_sequence): Avoid deadlock.
26009 (grub_serial_getkey): Handle backspace.
26010 (grub_serial_putchar): Fix newline handling.
26011 * util/i386/pc/grub-mkimage.c: Move from here ...
26012 * util/grub-mkrawimage.c: ... to here. All users updated.
26013 (generate_image): New parameters 'font_path' and 'format'.
26014 Support embedding font.
26015 Use grub_host_to_target* instead of grub_cpu_to_le*.
26016 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
26017 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
26018 (options): New option "--font".
26020 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
26021 (main): Handle "--font".
26022 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
26023 (grub_virtual_screen_setup): Set bg_color_display.
26024 (redraw_screen_rect): Use bg_color_display instead of incorrect
26026 (grub_gfxterm_cls): Likewise.
26027 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
26028 Support embedding config file.
26029 (add_segments): Likewise.
26030 (options): New option "--config".
26031 (main): Handle "--config".
26032 * video/sm712.c: New file.
26034 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26036 Fix parallel builds.
26038 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
26039 font.c depend on ascii.h).
26041 2010-01-12 Carles Pina i Estany <carles@pina.cat>
26043 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
26045 2010-01-11 Carles Pina i Estany <carles@pina.cat>
26047 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
26048 By default: disabled.
26049 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
26052 2010-01-10 Carles Pina i Estany <carles@pina.cat>
26054 * font/font.c: Update copyright years.
26055 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
26057 2010-01-10 Carles Pina i Estany <carles@pina.cat>
26059 * font/font.c: Include `ascii.h'.
26060 (ASCII_BITMAP_SIZE): New macro.
26061 (ascii_font_glyph): Define.
26062 (ascii_glyph_lookup): New function.
26063 (grub_font_get_string_width): Change comment. If glyph not found, use
26064 ascii_glyph_lookup.
26065 (grub_font_get_glyph_with_fallback): If glyph not available returns
26066 ascii_glyph_lookup.
26067 * util/grub-mkfont.c (file_formats): New enum.
26068 (options): Add `ascii-bitmaps' new option.
26069 (usage): Add `asii-bitmaps' new option.
26070 (write_font_ascii_bitmap): New function.
26071 (write_font): Rename to ...
26072 (write_font_p2): ... this. Remove print_glyphs call.
26073 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
26074 used. Call print_glyphs.
26075 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
26077 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
26079 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
26080 (grub_bin2h_SOURCES): New variable.
26081 * util/bin2h.c: New file.
26083 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26085 * include/multiboot.h: Resynced with spec.
26086 * include/multiboot2.h: Likewise.
26087 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
26088 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
26090 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26092 * include/grub/term.h (grub_term_register_input,
26093 grub_term_register_output): Check return of terminal init()
26094 routines, and abort if errors are raised.
26096 * commands/terminal.c: Update copyright year.
26098 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26100 * commands/terminal.c (grub_cmd_terminal_input)
26101 (grub_cmd_terminal_output): Check return of terminal init()
26102 routines, and abort if errors are raised.
26104 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
26106 * include/grub/i386/bsd.h: Fix include pathes.
26108 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
26110 Add missing *BSD copyright headers.
26112 * include/grub/aout.h: Add BSD licence.
26113 * include/grub/i386/bsd.h: Parts under different licences moved to ...
26114 * include/grub/i386/freebsd_linker.h: ... here,
26115 * include/grub/i386/freebsd_reboot.h: ... here,
26116 * include/grub/i386/netbsd_bootinfo.h: ... here,
26117 * include/grub/i386/netbsd_reboot.h: ... here,
26118 * include/grub/i386/openbsd_bootarg.h: ... here,
26119 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
26120 licence to each file.
26122 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26124 * acinclude.m4: Remove `nop' assembly instruction; it's not
26125 implemented by all architectures.
26127 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26129 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
26130 ELILO. This is no longer necessary.
26132 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
26134 Added new tool, grub-scrit-check to verify grub.cfg syntax.
26136 * util/grub-script-check.c: grub-script-check tool.
26137 * conf/common.rmk: Make rules for grub-script-check.
26139 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26141 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
26142 spotting it back in 2008. Shame on me for forgetting he did.
26144 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
26146 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26148 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
26149 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
26150 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
26151 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
26152 (GRUB_VIDEO_TYPE_EFI): Rename to ...
26153 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
26155 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
26157 * include/grub/test.h: Add license header.
26158 * tests/example_functional_test.c: Likewise.
26159 * tests/example_unit_test.c: Likewise.
26160 * tests/lib/functional_test.c: Likewise.
26161 * tests/lib/test.c: Likewise.
26162 * tests/lib/unit_test.c: Likewise.
26164 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
26166 Use flag-based instead of hook-based video mode selection and "auto"
26169 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
26170 (grub_video_set_mode): Changed prototype. All users updated.
26171 (grub_video_check_mode_flag): New inline function.
26172 * video/video.c (parse_modespec): New function.
26173 (grub_video_set_mode): Parse flags and keywords.
26175 2010-01-17 Carles Pina i Estany <carles@pina.cat>
26177 * util/misc.c (grub_util_info): Fix the order of the parameters in a
26180 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
26182 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
26184 2010-01-16 Carles Pina i Estany <carles@pina.cat>
26186 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
26188 * util/grub-emu.c (usage): Likewise.
26189 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
26190 * util/i386/efi/grub-mkimage.c (usage): Likewise.
26191 * util/i386/pc/grub-mkimage.c (usage): Likewise.
26192 * util/i386/pc/grub-setup.c (usage): Likewise.
26194 2010-01-16 Carles Pina i Estany <carles@pina.cat>
26196 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
26198 (grub_util_info): Likewise.
26199 (grub_util_error): Likewise.
26200 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
26201 and/or new lines in `grub_util_warna', `grub_util_info',
26202 `grub_util_error' calls.
26203 * util/getroot.c: Likewise.
26204 * util/grub-editenv.c: Likewise.
26205 * util/grub-emu.c: Likewise.
26206 * util/grub-fstest.c: Likewise.
26207 * util/grub-mkdevicemap.c: Likewise.
26208 * util/grub-mkfont.c: Likewise.
26209 * util/grub-mkpasswd-pbkdf2.c: Likewise.
26210 * util/grub-mkrelpath.c: Likewise.
26211 * util/grub-pe2elf.c: Likewise.
26212 * util/grub-probe.c: Likewise.
26213 * util/hostdisk.c: Likewise.
26214 * util/i386/efi/grub-mkimage.c: Likewise.
26215 * util/i386/pc/grub-mkimage.c: Likewise.
26216 * util/i386/pc/grub-setup.c: Likewise.
26217 * util/ieee1275/ofpath.c: Likewise.
26218 * util/mkisofs/eltorito.c: Likewise.
26219 * util/mkisofs/rock.c: Likewise.
26220 * util/mkisofs/write.c: Likewise.
26221 * util/raid.c: Likewise.
26222 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26223 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26225 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26227 Enable multiboot on non-pc.
26229 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
26230 multiboot.mod and multiboot2.mod to ...
26231 * conf/i386.rmk (pkglib_MODULES): ... here.
26232 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
26234 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
26235 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
26237 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
26238 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
26240 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
26241 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
26243 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
26244 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
26246 (ata_mod_SOURCES): Removed.
26247 (ata_mod_CFLAGS): Likewise.
26248 (ata_mod_LDFLAGS): Likewise.
26249 (relocator_mod_SOURCES): Removed.
26250 (relocator_mod_CFLAGS): Likewise.
26251 (relocator_mod_ASFLAGS): Likewise.
26252 (relocator_mod_LDFLAGS): Likewise.
26254 * include/grub/x86_64/multiboot.h: New file.
26255 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
26258 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26260 Video multiboot support.
26262 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
26264 * include/multiboot.h: Resynced with multiboot specification.
26265 * include/multiboot2.h: Likewise.
26266 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
26267 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
26268 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
26269 (HAS_VGA_TEXT): Likewise.
26270 (accepts_video): New variable.
26271 (grub_multiboot_set_accepts_video): New function.
26272 (grub_multiboot_get_mbi_size): Account for video structures.
26273 (set_video_mode): New function.
26274 (retrieve_video_parameters): Likewise.
26275 (grub_multiboot_make_mbi): Fill video fields.
26277 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26281 * include/grub/video.h (grub_video_driver_id): New type.
26282 (grub_video_adapter): New member 'id'. All users updated.
26283 (grub_video_get_driver_id): New proto.
26284 * video/video.c (grub_video_get_driver_id): New function.
26286 2010-01-14 Carles Pina i Estany <carles@pina.cat>
26288 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
26291 2010-01-14 Carles Pina i Estany <carles@pina.cat>
26293 * normal/cmdline.c (print_completion): Gettextizze.
26295 2001-01-14 Carles Pina i Estany <carles@pina.cat>
26297 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
26299 2010-01-14 Carles Pina i Estany <carles@pina.cat>
26301 * gettext/gettext.c (grub_gettext_translate): Push and pop
26303 (grub_gettext_delete_list): Change comment style.
26304 * kern/err.c (grub_error): Gettextizze.
26305 (grub_fatal): Gettextizze.
26307 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
26309 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
26310 (grub_linux16_real_boot): ... this.
26311 * kern/i386/loader.S: Likewise.
26312 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
26313 (grub_linux16_boot): New function. Switches to text mode and calls
26314 grub_linux16_real_boot().
26316 * loader/i386/bsd.c: Include `<grub/video.h>'.
26317 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
26318 text mode before calling grub_unix_real_boot().
26320 * loader/i386/multiboot.c: Include `<grub/video.h>'.
26321 (grub_multiboot_boot): Switch to text mode before calling
26322 grub_relocator32_boot().
26324 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
26325 (grub_chainloader_boot): Switch to text mode before calling
26326 grub_chainloader_real_boot().
26328 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
26329 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26331 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
26334 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
26335 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26337 * util/grub.d/00_header.in: Define a "savedefault" function for use
26339 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
26341 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
26342 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26344 * util/grub-mkconfig_lib.in (save_default_entry): Only set
26345 saved_entry if boot_once is unset.
26346 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
26347 previous saved entry (i.e. grub-reboot).
26349 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26351 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
26353 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26355 * util/grub.d/00_header.in: Use `set var=val' rather than plain
26357 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
26359 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26361 * util/grub-reboot.in: Fix --version output.
26362 * util/grub-set-default.in: Likewise.
26364 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26366 * util/grub.d/00_header.in: Silently ignore zero-sized environment
26369 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26371 * util/grub.d/00_header.in: Quote the value assigned to `default',
26372 in case it contains spaces.
26374 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26376 * util/grub.d/30_os-prober.in: Fix merge error that moved a
26377 `save_default_entry' call from the macosx case to the linux case.
26379 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
26380 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
26382 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
26383 in `chosen' environment variable.
26384 * normal/menu_text.c (get_entry_number): Check if the variable
26385 matches the title of a menu entry.
26386 (run_menu): Pass menu to get_entry_number.
26388 * util/grub-reboot.in: New file.
26389 * util/grub-set-default.in: New file.
26390 * conf/common.rmk (grub-reboot): New utility.
26391 (grub-set-default): New utility.
26393 * util/grub-mkconfig_lib.in (save_default_entry): New function.
26394 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
26395 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
26396 move it to `saved_entry' for the next boot. Load environment on
26398 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
26399 * util/grub.d/10_hurd.in: Likewise.
26400 * util/grub.d/10_linux.in (linux_entry): Likewise.
26401 * util/grub.d/10_windows.in: Likewise.
26402 * util/grub.d/30_os-prober.in: Likewise.
26404 * util/grub-install.in: Create environment block.
26405 * util/i386/efi/grub-install.in: Likewise.
26406 * util/ieee1275/grub-install.in: Likewise.
26407 * util/sparc64/ieee1275/grub-install.in: Likewise.
26409 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
26411 Unit testing framework for GRUB.
26413 * Makefile.in: Test framework build rules for 'make check'.
26414 * conf/tests.rmk: Build rules for individual tests and framework.
26416 * include/grub/test.h: Header file for whitebox tests.
26417 * tests/lib/functional_test.c: Framework support for whitebox
26419 * tests/lib/test.c: Common whitebox testing code for unit and
26421 * tests/lib/unit_test.c: Framework support for whitebox unit
26424 * tests/util/grub-shell-tester.in: Support utility for grub-script
26426 * tests/util/grub-shell.in: Utility to execute grub-script
26427 commands in a Qemu instance.
26429 * tests/example_functional_test.c: Example whitebox functional
26431 * tests/example_grub_script_test.in: Example grub-script test.
26432 * tests/example_scripted_test.in: Example scripted test.
26433 * tests/example_unit_test.c: Example whitebox unit test.
26435 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
26437 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
26438 Add loader/i386/multiboot_mbi.c.
26439 (multiboot2_mod_SOURCES): Likewise.
26440 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
26441 (multiboot2_mod_SOURCES): Likewise.
26442 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
26443 (grub_multiboot_make_mbi): Likewise.
26444 (grub_multiboot_free_mbi): Likewise.
26445 (grub_multiboot_init_mbi): Likewise.
26446 (grub_multiboot_add_module): Likewise.
26447 (grub_multiboot_set_bootdev): Likewise.
26448 * loader/i386/multiboot.c (mbi): Removed.
26449 (mbi_dest): Likewise.
26450 (alloc_mbi): New variable.
26451 (grub_multiboot_payload_size): Removed. All users updated.
26452 (grub_multiboot_pure_size): New variable.
26453 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
26454 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
26455 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
26456 (grub_fill_multiboot_mmap): Likewise.
26457 (grub_multiboot_get_bootdev): Likewise.
26458 (grub_multiboot): Use multiboot_mbi functions.
26459 * loader/i386/multiboot_mbi.c: New file.
26461 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
26463 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
26464 it would result in module crash.
26466 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
26468 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
26469 (grub_ofconsole_getwh): Split to ...
26470 (grub_ofconsole_getwh): ... this.
26471 (grub_ofconsole_dimensions): ...and this.
26472 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
26474 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
26476 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
26478 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
26480 * loader/i386/pc/multiboot2.c: Removed stalled file.
26482 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
26484 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
26485 Reported by: Grégoire Sutre
26487 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
26489 * util/misc.c (canonicalize_file_name): New function.
26490 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
26491 instead of realpath().
26493 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
26495 * util/grub-install.in (usage): Clarify meaning of --root-directory,
26496 and make it clearer that it's optional. Based on confusion
26499 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
26501 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
26502 in premature implicit newline.
26504 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
26506 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
26507 which resulted in garbled command line at the end of screen.
26509 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26511 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
26512 initialization with similar approach as with other Linux loaders.
26514 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26516 Fix i386-ieee1275 build.
26518 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
26519 and grub_term_height() for video_{width,height} initialization.
26521 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26523 Fix grub-emu build.
26525 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
26527 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26528 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
26530 Support for multiple terminals.
26532 * Makefile.in (pkglib_DATA): terminal.lst.
26533 (terminal.lst): New target.
26534 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
26535 (GRUB_MOD_INIT(handler)): Likewise.
26536 (GRUB_MOD_FINI(handler)): Likewise.
26537 * commands/help.c (grub_cmd_help): Handle multiple terminals.
26538 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
26539 * commands/sleep.c (do_print): Use grub_term_restore_pos.
26540 (grub_cmd_sleep): Use grub_term_save_pos.
26541 * commands/terminal.c: New file.
26542 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
26543 commands/terminal.c and lib/charset.c.
26544 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
26545 (pkglib_MODULES): Add terminal.mod.
26546 (terminal_mod_SOURCES): New variable.
26547 (terminal_mod_CFLAGS): Likewise.
26548 (terminal_mod_LDFLAGS): Likewise.
26549 * genhandlerlist.sh: Don't handle terminals.
26550 * genmk.rb: Generate terminal-*.lst.
26551 * genterminallist.sh: New file.
26552 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
26553 (grub_is_valid_utf8): Likewise.
26554 (grub_utf8_to_ucs4_alloc): Likewise.
26555 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
26556 (grub_menu_register_viewer): Changed argument.
26557 (grub_menu_try_text): New proto.
26558 (grub_gfxmenu_try_hook): New declaration.
26559 * include/grub/normal.h (grub_normal_exit_level): New declaration.
26560 (grub_menu_init_page): Additional argument term.
26561 (grub_normal_init_page): Likewise.
26562 (grub_cmdline_get): Arguments simplified.
26563 (grub_utf8_to_ucs4_alloc): Removed.
26564 (grub_print_ucs4): Additional argument term.
26565 (grub_getstringwidth): Likewise.
26566 (grub_print_message_indented): Likewise.
26567 (grub_menu_text_register_instances): New proto.
26568 (grub_show_menu): Likewise.
26569 (read_terminal_list): Likewise.
26570 (grub_set_more): Likewise.
26571 * include/grub/parser.h: Include handler.h.
26572 * include/grub/reader.h: Rewritten.
26573 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
26574 (GRUB_TERM_WIDTH): Changed to function.
26575 (GRUB_TERM_HEIGHT): Likewise.
26576 (GRUB_TERM_BORDER_WIDTH): Likewise.
26577 (GRUB_TERM_BORDER_HEIGHT): Likewise.
26578 (GRUB_TERM_NUM_ENTRIES): Likewise.
26579 (GRUB_TERM_ENTRY_WIDTH): Likewise.
26580 (GRUB_TERM_CURSOR_X): Likewise.
26581 (grub_term_input_class): Likewise.
26582 (grub_term_output_class): Likewise.
26583 (grub_term_outputs_disabled): New declaration.
26584 (grub_term_inputs_disabled): Likewise.
26585 (grub_term_outputs): Likewise.
26586 (grub_term_inputs): Likewise.
26587 (grub_term_register_input): Rewritten.
26588 (grub_term_register_output): Likewise.
26589 (grub_term_unregister_input): Likewise.
26590 (grub_term_unregister_output): Likewise.
26591 (FOR_ACTIVE_TERM_INPUTS): New macro.
26592 (FOR_DISABLED_TERM_INPUTS): Likewise.
26593 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
26594 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
26595 * include/grub/terminfo.h: Add oterm argument to all protypes.
26596 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
26597 Use grub_rescue_run.
26598 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
26600 * kern/reader.c: Removed. All users updated.
26601 * kern/rescue_reader.c (grub_rescue_init): Removed.
26602 (grub_rescue_reader): Likewise.
26603 (grub_register_rescue_reader): Likewise.
26604 (grub_rescue_run): New function based on kern/reader.c.
26605 * kern/term.c: Adapted for multiterm.
26606 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
26607 (grub_is_valid_utf8): Likewise.
26608 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
26609 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
26611 * loader/i386/linux.c (grub_linux_boot): Likewise.
26612 * normal/auth.c (grub_username_get): New function.
26613 (grub_auth_check_authentication): Use grub_username_get.
26614 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
26615 * normal/color.c: Adapt for multiterm.
26616 * normal/main.c (read_config_file): Don't use grub_reader_loop.
26617 (grub_normal_init_page): Additional argument term.
26618 (read_lists): Call read_terminal_lists.
26619 (grub_enter_normal_mode): Call grub_cmdline_run.
26620 Handle grub_normal_exit_level.
26621 (grub_cmd_normal): Make reentrant.
26622 (grub_cmd_normal_exit): New function.
26623 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
26624 * normal/menu.c: Adapt for multiterm.
26625 * normal/menu_entry.c: Likewise.
26626 * normal/menu_text.c: Likewise.
26627 * normal/menu_viewer.c: Removed. All users updated.
26628 * normal/term.c: New file.
26629 * util/console.c: Change order of includes to workaround a bug in
26631 * term/terminfo.c: New argument oterm on all exported functions.
26633 * util/grub-editenv.c (grub_term_input_class): Removed.
26634 (grub_term_output_class): Likewise.
26636 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
26638 Make loader output a bit more user-friendly.
26640 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
26641 is being loaded. Likewise for the Hurd.
26643 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
26644 that kernel of FreeBSD ${version} is being loaded.
26646 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
26648 (grub_cmd_initrd): Likewise.
26649 * util/grub.d/10_linux.in (linux_entry): Print message indicating
26650 that Linux ${version} is being loaded. Likewise for initrd.
26652 2010-01-09 Carles Pina i Estany <carles@pina.cat>
26654 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
26656 2010-01-08 Carles Pina i Estany <carles@pina.cat>
26658 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
26659 (GRUB_MOD_INIT): Gettextizze.
26660 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
26661 (GRUB_MOD_INIT): Gettextizze.
26662 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
26663 (grub_cmd_linux): Capitalise Linux.
26664 (GRUB_MOD_INIT): Gettextizze.
26665 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
26666 (grub_cmd_linux): Capitalise Linux.
26667 (GRUB_MOD_INIT): Gettextizze.
26668 * loader/i386/linux.c: Include `<grub/i18n.h>'.
26669 (grub_cmd_linux): Capitalise Linux.
26670 (GRUB_MOD_INIT): Gettextizze.
26671 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
26672 (GRUB_MOD_INIT): Gettextizze.
26673 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
26674 (grub_cmd_linux): Capitalise Linux.
26675 (GRUB_MOD_INIT): Gettextizze.
26676 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
26677 (grub_cpu_xnu_init): Gettextizze.
26678 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
26679 (GRUB_MOD_INIT): Gettextizze.
26680 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
26681 (GRUB_MOD_INIT): Gettextizze.
26682 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
26683 (grub_linux_load64): Capitalise Linux.
26684 (GRUB_MOD_INIT): Gettextizze.
26685 * loader/xnu.c: Include `<grub/i18n.h>'.
26686 (GRUB_MOD_INIT): Gettextizze.
26687 * po/POTFILES: Add `loader/efi/appleloader.c',
26688 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
26689 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
26690 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
26691 `loader/i386/xnu.c', `loader/multiboot_loader.c',
26692 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
26693 and `loader/xnu.c'.
26695 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
26697 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
26699 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
26701 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
26702 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
26703 * util/mkisofs/mkisofs.c (main): Readjust --version output.
26705 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26707 Reset Multiboot 2 support. New loader implements the draft in
26708 /branches/multiboot2 and shares as much code as possible with the
26709 production Multiboot 1 implementation.
26711 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
26712 * loader/multiboot2.c: Likewise.
26713 * loader/i386/multiboot_helper.S: Likewise.
26714 * include/multiboot2.h: Replace with latest version from the draft
26715 in /branches/multiboot2.
26717 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
26718 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
26719 and `loader/multiboot2.c'.
26720 (pkglib_MODULES): Add `multiboot2.mod'.
26721 (multiboot2_mod_SOURCES): New variable.
26722 (multiboot2_mod_LDFLAGS): Likewise.
26723 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
26725 * conf/i386-pc.rmk: Likewise.
26727 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26728 (multiboot_mod_SOURCES): Remove variable.
26729 (multiboot_mod_LDFLAGS): Likewise.
26730 (multiboot_mod_CFLAGS): Likewise.
26732 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
26733 `<multiboot2.h>' instead of `<multiboot.h>'.
26734 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
26735 (MULTIBOOT_HEADER_MAGIC): New macros.
26737 * loader/multiboot_loader.c (module_version_status): Remove variable.
26738 (find_multi_boot2_header): Remove function.
26739 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
26740 logic. Always check for the Multiboot version we're compiling for.
26741 (grub_cmd_module_loader): Likewise.
26742 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
26743 command instead of `multiboot'.
26745 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26747 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
26748 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
26751 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26752 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26754 Fix breakage introduced with previous commit.
26756 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
26758 * normal/handler.c (read_handler_list): Revert part of previous commit
26759 affecting this file.
26760 * normal/main.c (read_lists): Move read_handler_list() call back to ...
26761 (grub_normal_execute): ... here.
26763 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26765 Merge prefix-redefinition-fix branch.
26767 * normal/autofs.c (read_fs_list): Make function capable of being
26768 run multiple times, gracefuly replacing the previous data
26770 * normal/dyncmd.c (read_command_list): Likewise.
26771 * normal/handler.c (read_handler_list): Likewise.
26772 * normal/main.c (read_lists): New function. Calls all the
26773 list reading functions.
26774 (grub_normal_execute): Use read_lists() instead of calling all
26775 list reading functions explicitly. Register read_lists() as a
26776 variable hook attached to ${prefix}.
26778 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26780 Merge crypto branch.
26782 * Makefile.in (pkglib_DATA): Add crypto.lst.
26783 (crypto.lst): New target.
26784 * commands/hashsum.c: New file.
26785 * commands/password.c (check_password): Use grub_crypto_memcmp.
26786 * commands/password_pbkdf2.c: New file.
26787 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
26788 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
26789 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
26790 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
26791 -I$(srcdir)/lib/libgcrypt_wrap.
26792 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
26793 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
26794 password_pbkdf2.mod.
26795 (crypto_mod_SOURCES): New variable.
26796 (crypto_mod_CFLAGS): Likewise.
26797 (crypto_mod_LDFLAGS): Likewise.
26798 (hashsum_mod_SOURCES): New variable.
26799 (hashsum_mod_CFLAGS): Likewise.
26800 (hashsum_mod_LDFLAGS): Likewise.
26801 (pbkdf2_mod_SOURCES): New variable.
26802 (pbkdf2_mod_CFLAGS): Likewise.
26803 (pbkdf2_mod_LDFLAGS): Likewise.
26804 (password_pbkdf2_mod_SOURCES): New variable.
26805 (password_pbkdf2_mod_CFLAGS): Likewise.
26806 (password_pbkdf2_mod_LDFLAGS): Likewise.
26807 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
26808 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
26809 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
26810 Include conf/gcry.rmk.
26811 * include/grub/auth.h: Rewritten.
26812 * include/grub/crypto.h: New file.
26813 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
26814 * include/grub/normal.h (read_crypto_list): New prototype.
26815 * lib/crypto.c: New file.
26816 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26817 * lib/pbkdf2.c: Likewise.
26818 * normal/auth.c (grub_auth_strcmp): Removed.
26819 (grub_iswordseparator): Likewise.
26820 (grub_auth_strword): Likewise.
26821 (is_authenticated): Use grub_strword.
26822 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
26823 and grub_strword. Pass entered password to authentication callback.
26824 * normal/crypto.c: New file.
26825 * normal/main.c: Call read_crypto_list.
26826 * util/grub-mkpasswd-pbkdf2.c: New file.
26827 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
26829 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
26831 Fix descent and ascent calculation.
26833 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
26834 (options): New option "asce".
26836 (add_char): Ignore invalid glyphs for descent calculation.
26837 Calculate ascent from actual content.
26838 (print_glyphs): Use 'asce'.
26839 (write_font): Likewise. Allow ascent override.
26840 (main): Handle "asce" option.
26842 2010-01-06 Carles Pina i Estany <carles@pina.cat>
26844 * kern/err.c: Include `<grub/i18n.h>'.
26845 (grub_print_error): Add full stop. Gettextizze.
26846 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
26847 (grub_bsd_load_elf): Capitalise ELF.
26848 (grub_cmd_freebsd_loadenv): Add `s' in error string.
26849 (grub_cmd_freebsd_module): Likewise.
26850 (grub_cmd_freebsd_module_elf): Likewise.
26851 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
26853 2010-01-06 Carles Pina i Estany <carles@pina.cat>
26855 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
26856 * commands/search_file.c (HELP_MESSAGE): New macro.
26857 * commands/search_label.c (HELP_MESSAGE): Likewise.
26858 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
26859 * po/POTFILES: Add `commands/search_file.c',
26860 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
26861 `commands/search.c'.
26863 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
26865 * config.rpath: Update from Gnulib.
26867 2010-01-05 Yves Blusseau <blusseau@zetam.org>
26869 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
26871 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
26873 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
26875 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26877 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
26878 arguments to fread so that we get a return value in bytes, rather
26879 than something that will normally be rounded down to 0.
26880 Adjust error handling to avoid producing garbage when size_t is not
26881 the same size as long long.
26883 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26885 * util/mkisofs/write.c (padblock_write): Check return value of
26888 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
26890 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
26893 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
26895 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
26897 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
26898 instead of manual alignment.
26899 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
26900 verbose). Avoid attempts to read past end of the device
26901 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
26902 but GRUB_DISK_CACHE_SIZE may exceed that).
26904 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
26906 * commands/crc.c (grub_cmd_crc): Abort on read errors.
26907 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
26910 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
26912 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
26914 (grub_efi_piwg_device_path): New structure
26915 (grub_efi_piwg_device_path_t): New type.
26916 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
26917 (devpath_1): Transform to a structure. All users updated.
26918 (devpath_2): Likewise.
26919 (devpath_3): Likewise.
26920 (devpath_4): Likewise.
26921 (devpath_5): Likewise.
26923 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
26925 * loader/efi/appleloader.c: Restored. Update all users.
26927 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26929 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
26931 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
26932 (struct boot_blocklist): Move from here ...
26933 * include/grub/i386/pc/boot.h [ASM_FILE]
26934 (struct grub_boot_blocklist): ... to here. Update all users.
26935 (setup): Only initialize `start' member of `first_block'
26936 structure. Add assert() calls to verify the other members.
26938 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
26939 (generate_image): Fix broken blocklist length initialization.
26940 Add assert() call to verify blocklist `segment' field.
26942 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26944 * loader/efi/appleloader.c: Remove. Update all users.
26946 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26948 * boot/i386/pc/boot.S: Update copyright year.
26949 * boot/i386/pc/cdboot.S: Likewise.
26950 * boot/i386/pc/diskboot.S: Likewise.
26951 * boot/i386/pc/lnxboot.S: Likewise.
26952 * boot/i386/pc/pxeboot.S: Likewise.
26953 * bus/pci.c: Likewise.
26954 * commands/cmp.c: Likewise.
26955 * commands/help.c: Likewise.
26956 * commands/hexdump.c: Likewise.
26957 * commands/i386/pc/halt.c: Likewise.
26958 * commands/i386/pc/play.c: Likewise.
26959 * commands/i386/pc/vbeinfo.c: Likewise.
26960 * commands/ls.c: Likewise.
26961 * commands/test.c: Likewise.
26962 * disk/dmraid_nvidia.c: Likewise.
26963 * disk/i386/pc/biosdisk.c: Likewise.
26964 * disk/ieee1275/nand.c: Likewise.
26965 * disk/ieee1275/ofdisk.c: Likewise.
26966 * disk/lvm.c: Likewise.
26967 * disk/raid.c: Likewise.
26968 * disk/raid6_recover.c: Likewise.
26969 * disk/scsi.c: Likewise.
26970 * fs/affs.c: Likewise.
26971 * fs/cpio.c: Likewise.
26972 * fs/ext2.c: Likewise.
26973 * fs/hfs.c: Likewise.
26974 * fs/iso9660.c: Likewise.
26975 * fs/ntfs.c: Likewise.
26976 * fs/sfs.c: Likewise.
26977 * fs/udf.c: Likewise.
26978 * fs/ufs.c: Likewise.
26979 * fs/xfs.c: Likewise.
26980 * gencmdlist.sh: Likewise.
26981 * genmk.rb: Likewise.
26982 * include/grub/disk.h: Likewise.
26983 * include/grub/efi/api.h: Likewise.
26984 * include/grub/efi/efi.h: Likewise.
26985 * include/grub/efi/pe32.h: Likewise.
26986 * include/grub/elf.h: Likewise.
26987 * include/grub/fs.h: Likewise.
26988 * include/grub/i386/at_keyboard.h: Likewise.
26989 * include/grub/i386/pc/memory.h: Likewise.
26990 * include/grub/i386/pc/vbe.h: Likewise.
26991 * include/grub/i386/pci.h: Likewise.
26992 * include/grub/i386/tsc.h: Likewise.
26993 * include/grub/ieee1275/ieee1275.h: Likewise.
26994 * include/grub/ntfs.h: Likewise.
26995 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
26996 * include/grub/sparc64/libgcc.h: Likewise.
26997 * include/grub/symbol.h: Likewise.
26998 * include/grub/types.h: Likewise.
26999 * include/multiboot2.h: Likewise.
27000 * io/gzio.c: Likewise.
27001 * kern/device.c: Likewise.
27002 * kern/disk.c: Likewise.
27003 * kern/efi/efi.c: Likewise.
27004 * kern/efi/mm.c: Likewise.
27005 * kern/elf.c: Likewise.
27006 * kern/file.c: Likewise.
27007 * kern/i386/dl.c: Likewise.
27008 * kern/i386/pc/init.c: Likewise.
27009 * kern/i386/pc/startup.S: Likewise.
27010 * kern/ieee1275/ieee1275.c: Likewise.
27011 * kern/ieee1275/init.c: Likewise.
27012 * kern/main.c: Likewise.
27013 * kern/mm.c: Likewise.
27014 * kern/powerpc/dl.c: Likewise.
27015 * kern/sparc64/dl.c: Likewise.
27016 * kern/x86_64/dl.c: Likewise.
27017 * lib/hexdump.c: Likewise.
27018 * loader/efi/appleloader.c: Likewise.
27019 * loader/i386/ieee1275/linux.c: Likewise.
27020 * loader/i386/pc/chainloader.c: Likewise.
27021 * loader/i386/pc/linux.c: Likewise.
27022 * loader/i386/pc/multiboot2.c: Likewise.
27023 * loader/ieee1275/multiboot2.c: Likewise.
27024 * loader/multiboot2.c: Likewise.
27025 * loader/multiboot_loader.c: Likewise.
27026 * loader/powerpc/ieee1275/linux.c: Likewise.
27027 * normal/completion.c: Likewise.
27028 * normal/menu_entry.c: Likewise.
27029 * partmap/apple.c: Likewise.
27030 * util/grub.d/10_hurd.in: Likewise.
27031 * util/hostfs.c: Likewise.
27032 * video/readers/png.c: Likewise.
27034 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
27036 * include/grub/misc.h (GNUC_PREREQ): New macro.
27037 (ATTRIBUTE_ERROR): New macro.
27038 * include/grub/list.h (grub_bad_type_cast_real): Use
27041 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27043 * normal/menu_text.c (print_message): Change messages.
27045 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27047 * normal/menu_entry.c (store_completion): Gettextizze.
27049 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27051 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
27053 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27055 * po/POTFILES: Sort correctly.
27057 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27059 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
27060 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
27061 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
27063 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
27064 summary. Gettextizze the strings.
27065 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
27066 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
27067 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
27069 (GRUB_MOD_INIT): Remove command name from summary.
27070 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
27072 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
27073 * term/i386/pc/serial.c (options): Add full stops.
27074 (GRUB_MOD_INIT): Remove command name from the summary.
27076 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27078 * commands/acpi.c: Gettextizze help strings and/or options. Include
27079 `grub/i18n.h' if needed.
27080 * commands/blocklist.c: Likewise.
27081 * commands/boot.c: Likewise.
27082 * commands/cat.c: Likewise.
27083 * commands/cmp.c: Likewise.
27084 * commands/configfile.c: Likewise.
27085 * commands/crc.c: Likewise.
27086 * commands/date.c: Likewise.
27087 * commands/echo.c: Likewise.
27088 * commands/efi/fixvideo.c: Likewise.
27089 * commands/efi/loadbios.c: Likewise.
27090 * commands/gptsync.c: Likewise.
27091 * commands/halt.c: Likewise.
27092 * commands/handler.c: Likewise.
27093 * commands/hdparm.c: Likewise.
27094 * commands/hexdump.c: Likewise.
27095 * commands/i386/cpuid.c: Likewise.
27096 * commands/i386/pc/drivemap.c: Likewise.
27097 * commands/i386/pc/halt.c: Likewise.
27098 * commands/i386/pc/pxecmd.c: Likewise.
27099 * commands/i386/pc/vbeinfo.c: Likewise.
27100 * commands/i386/pc/vbetest.c: Likewise.
27101 * commands/ieee1275/suspend.c: Likewise.
27102 * commands/keystatus.c: Likewise.
27103 * commands/loadenv.c: Likewise.
27104 * commands/ls.c: Likewise.
27105 * commands/lsmmap.c: Likewise.
27106 * commands/lspci.c: Likewise.
27107 * commands/memrw.c: Likewise.
27108 * commands/minicmd.c: Likewise.
27109 * commands/parttool.c: Likewise.
27110 * commands/password.c: Likewise.
27111 * commands/probe.c: Likewise.
27112 * commands/read.c: Likewise.
27113 * commands/reboot.c: Likewise.
27114 * commands/search.c: Likewise.
27115 * commands/sleep.c: Likewise.
27116 * commands/test.c: Likewise.
27117 * commands/true.c: Likewise.
27118 * commands/usbtest.c: Likewise.
27119 * commands/videotest.c: Likewise.
27120 * commands/xnu_uuid.c: Likewise.
27121 * disk/loopback.c: Likewise.
27122 * hello/hello.c: Likewise.
27123 * loader/i386/bsd.c: Likewise.
27124 * term/i386/pc/serial.c: Likewise.
27125 * po/POTFILES: Add new files.
27127 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
27129 * term/i386/pc/at_keyboard.c
27130 (keyboard_controller_wait_untill_ready): Rename to ...
27131 (keyboard_controller_wait_until_ready): ... this. Update all users.
27133 2010-01-01 Carles Pina i Estany <carles@pina.cat>
27135 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
27136 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
27137 string using string width.
27138 * normal/menu_text.c (grub_print_message_indented): Use
27139 grub_print_spaces and not print_spaces.
27140 (print_timeout): Likewise.
27141 (print_spaces): Move to...
27142 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
27144 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
27146 Import from Gnulib.
27148 * gnulib/getdelim.c: New file.
27149 * gnulib/getline.c: Likewise.
27151 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
27153 * include/grub/list.h (grub_assert_fail): Removed.
27154 (grub_bad_type_cast_real): New function.
27155 (grub_bad_type_cast): New macro.
27156 (GRUB_AS_LIST): Use grub_bad_type_cast.
27157 (GRUB_AS_LIST_P): Likewise.
27158 (GRUB_AS_NAMED_LIST): Likewise.
27159 (GRUB_AS_NAMED_LIST_P): Likewise.
27160 (GRUB_AS_PRIO_LIST): Likewise.
27161 (GRUB_AS_PRIO_LIST_P): Likewise.
27162 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
27164 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
27166 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
27169 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
27171 * configure.ac: Check for TARGET_CFLAGS initialization before we
27172 initialize it ourselves (sigh).
27173 Move a few modifications to TARGET_CFLAGS to be unconditional
27174 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
27177 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
27178 * term/i386/pc/at_keyboard.c
27179 (keyboard_controller_wait_untill_ready): Likewise.
27180 (keyboard_controller_led): Rename `led_status' paramter to avoid
27183 2009-12-28 Carles Pina i Estany <carles@pina.cat>
27185 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
27188 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27190 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
27192 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27194 * normal/menu_text.c (grub_print_message_indented): Prevent
27195 past-the-end-of-array dereference.
27197 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27199 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
27200 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
27202 2009-12-27 Carles Pina i Estany <carles@pina.cat>
27204 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
27205 * normal/main.c (grub_normal_read_line): Remove a space from the
27208 2009-12-27 Carles Pina i Estany <carles@pina.cat>
27210 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
27211 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27212 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
27213 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
27214 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27215 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27216 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27218 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27220 * video/readers/jpeg.c (cmd): Declare.
27221 (grub_cmd_jpegtest): Use `grub_command_t' type.
27222 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27224 (GRUB_MOD_FINI): Use `cmd' to unregister.
27225 * video/readers/png.c (cmd): Declare.
27226 (grub_cmd_pngtest): Use `grub_command_t' type.
27227 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27229 (GRUB_MOD_FINI): Use `cmd' to unregister.
27230 * video/readers/tga.c (cmd): Declare.
27231 (grub_cmd_tgatest): Use `grub_command_t' type.
27232 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27234 (GRUB_MOD_FINI): Use `cmd' to unregister.
27236 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27238 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
27240 * kern/corecmd.c (grub_register_core_commands): Likewise.
27241 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
27242 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
27243 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
27244 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27245 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
27246 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
27247 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
27248 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
27249 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27250 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27251 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27252 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27253 * normal/handler.c (insert_handler): Likewise.
27254 * normal/main.c (GRUB_MOD_INIT): Likewise.
27255 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
27257 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27259 * commands/help.c (grub_cmd_help): Print the command name before the
27261 (GRUB_MOD_INIT): Remove command name from the summary.
27262 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
27264 * lib/arg.c (find_long): Print the command name before the summary.
27265 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
27267 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
27268 * commands/cat.c (GRUB_MOD_INIT): Likewise.
27269 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
27270 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
27271 * commands/crc.c (GRUB_MOD_INIT): Likewise.
27272 * commands/date.c (GRUB_MOD_INIT): Likewise.
27273 * commands/echo.c (GRUB_MOD_INIT): Likewise.
27274 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
27275 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27276 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27277 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
27278 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
27279 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
27280 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
27281 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27282 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
27283 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
27284 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
27285 * commands/ls.c (GRUB_MOD_INIT): Likewise.
27286 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27287 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
27288 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
27289 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
27290 * commands/password.c (GRUB_MOD_INIT): Likewise.
27291 * commands/probe.c (GRUB_MOD_INIT): Likewise.
27292 * commands/read.c (GRUB_MOD_INIT): Likewise.
27293 * commands/search.c (GRUB_MOD_INIT): Likewise.
27294 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
27295 * commands/test.c (GRUB_MOD_INIT): Likewise.
27296 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
27297 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
27298 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
27299 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
27300 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
27301 * lib/arg.c (GRUB_MOD_INIT): Likewise.
27302 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
27303 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
27304 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27305 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27306 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
27307 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
27308 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
27309 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
27311 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
27313 Use search command for preliminar UUID search.
27315 * commands/search.c: Split into ...
27316 * commands/search_wrap.c: ...this
27317 * commands/search.c: ...and this.
27318 * commands/search_file.c: New file.
27319 * commands/search_label.c: New file.
27320 * commands/search_uuid.c: New file.
27321 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
27322 Add commands/search_wrap.c, commands/search_file.c,
27323 commands/search_label.c and commands/search_uuid.c.
27324 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
27325 (search_mod_SOURCES): Set to commands/search_wrap.c.
27326 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
27328 (search_fs_file_mod_SOURCES): New variable.
27329 (search_fs_file_mod_CFLAGS): Likewise.
27330 (search_fs_file_mod_LDFLAGS): Likewise.
27331 (search_label_mod_SOURCES): Likewise.
27332 (search_label_mod_CFLAGS): Likewise.
27333 (search_label_mod_LDFLAGS): Likewise.
27334 (search_fs_uuid_mod_SOURCES): New variable.
27335 (search_fs_uuid_mod_CFLAGS): Likewise.
27336 (search_fs_uuid_mod_LDFLAGS): Likewise.
27337 (fs_file_mod_SOURCES): Removed.
27338 (fs_file_mod_CFLAGS): Likewise.
27339 (fs_file_mod_LDFLAGS): Likewise.
27340 (fs_uuid_mod_SOURCES): Removed.
27341 (fs_uuid_mod_CFLAGS): Likewise.
27342 (fs_uuid_mod_LDFLAGS): Likewise.
27343 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
27344 Set to util/grub-install.in.
27345 * disk/fs_file.c: Removed.
27346 * disk/fs_uuid.c: Likewise.
27347 * include/grub/search.h: New file.
27348 * util/grub-install.in: Handle sparc64.
27349 Create and use load.cfg.
27350 * util/sparc64/ieee1275/grub-install.in: Removed.
27352 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
27354 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
27355 Ignore return status if CF is cleared.
27356 (grub_biosdisk_get_diskinfo_standard): Likewise.
27358 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
27360 * term/i386/pc/at_keyboard.c
27361 (keyboard_controller_wait_untill_ready): New function.
27362 (grub_keyboard_controller_write, grub_keyboard_controller_read)
27363 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
27364 for keyboard polling, rather than duplicate the same loop. This
27365 saves a few bytes in code size.
27367 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
27369 Support for (pxe[:server[:gateway]]) syntax and
27370 use environment variable for PXE.
27372 * commands/i386/pc/pxecmd.c (options): Removed.
27373 (print_ip): Removed.
27374 (grub_cmd_pxe): Removed
27375 (grub_cmd_pxe_unload): New function.
27376 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
27377 (grub_pxe_your_ip): Made static.
27378 (grub_pxe_default_server_ip): Likewise.
27379 (grub_pxe_default_gateway_ip): Likewise.
27380 (grub_pxe_blksize): Likewise.
27381 (parse_ip): New function.
27382 (grub_pxe_open): Support server and gateway specification.
27383 (grub_pxe_close): Free disk->data.
27384 (grub_pxefs_open): Use disk->data.
27385 (grub_pxefs_read): Likewise.
27386 (grub_env_write_readonly): New function.
27387 (set_mac_env): Likewise.
27388 (set_env_limn_ro): Likewise.
27389 (parse_dhcp_vendor): Likewise.
27390 (grub_pxe_detect): Set the environment variables.
27391 (set_ip_env): New function.
27392 (write_ip_env): Likewise.
27393 (grub_env_write_pxe_default_server): Likewise.
27394 (grub_env_write_pxe_default_gateway): Likewise.
27395 (grub_env_write_pxe_blocksize): Likewise.
27396 (GRUB_MOD_INIT(pxe)): Set environment variables.
27397 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
27398 (grub_pxe_mac_addr_t): ... this. All users updated.
27399 (grub_pxe_your_ip): Removed.
27400 (grub_pxe_server_ip): Likewise.
27401 (grub_pxe_gateway_ip): Likewise.
27402 (grub_pxe_blksize): Likewise.
27404 2009-12-25 Carles Pina i Estany <carles@pina.cat>
27406 * commands/help.c: Include `<grub/i18n.h>'.
27407 (grub_cmd_help): Gettextizze.
27408 (GRUB_MOD_INIT): Likewise.
27409 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
27410 (GRUB_MOD_INIT): Gettextizze.
27411 * commands/search.c: Include `<grub/i18n.h>'.
27412 (options): Gettextizze.
27413 (GRUB_MOD_INIT): Gettextizze.
27414 * lib/arg.c: Include `<grub/i18n.h>'.
27415 (help_options): Gettextizze.
27416 (find_long): Likewise.
27417 (grub_arg_show_help): Likewise.
27418 * normal/dyncmd.c: Include `<grub/i18n.h>'.
27419 (read_command_list): Gettextizze.
27420 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
27421 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
27423 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
27425 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
27426 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
27427 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
27428 (led_status): New variable.
27429 (keyboard_controller_led): New function.
27430 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
27431 update led status for caps lock, num lock and scroll lock.
27433 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
27435 * util/hostdisk.c (open_device): Fix a comment.
27437 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27439 * util/grub-install.in (host_os): New variable.
27440 * util/i386/efi/grub-install.in (host_os): Likewise.
27442 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27444 * util/mkisofs/write.c (padblock_write): Abort when given an
27445 excedingly large embed image, instead of silently truncating it.
27447 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27449 * include/multiboot.h: Indentation fixes.
27451 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27453 * include/multiboot.h (struct multiboot_aout_symbol_table)
27454 (struct multiboot_elf_section_header_table): New structure
27455 declarations (stolen from GRUB Legacy).
27456 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
27459 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
27460 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
27463 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27465 * include/multiboot.h: Make comments src2texi-friendly.
27467 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27469 For consistency with [multiboot]/docs/boot.S.
27471 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
27472 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
27473 (MULTIBOOT_MAGIC2): Rename from this ...
27474 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
27476 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27478 * include/multiboot.h: Remove `<grub/types.h>'.
27479 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
27480 types. Update all users.
27482 2009-12-25 Carles Pina i Estany <carles@pina.cat>
27484 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
27485 `couldn't' and `can not' by `cannot'.
27486 * commands/i386/pc/drivemap.c: Likewise.
27487 * disk/ata.c: Likewise.
27488 * disk/ieee1275/nand.c: Likewise.
27489 * fs/affs.c: Likewise.
27490 * fs/fat.c: Likewise.
27491 * fs/hfs.c: Likewise.
27492 * fs/hfsplus.c: Likewise.
27493 * fs/iso9660.c: Likewise.
27494 * fs/jfs.c: Likewise.
27495 * fs/minix.c: Likewise.
27496 * fs/reiserfs.c: Likewise.
27497 * fs/sfs.c: Likewise.
27498 * fs/udf.c: Likewise.
27499 * fs/ufs.c: Likewise.
27500 * fs/xfs.c: Likewise.
27501 * loader/powerpc/ieee1275/linux.c: Likewise.
27502 * loader/sparc64/ieee1275/linux.c: Likewise.
27503 * util/grub-probe.c: Likewise.
27504 * util/misc.c: Likewise.
27506 2009-12-24 Carles Pina i Estany <carles@pina.cat>
27508 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
27510 * commands/acpi.c: Likewise.
27511 * commands/blocklist.c: Likewise.
27512 * commands/efi/loadbios.c: Likewise.
27513 * commands/i386/pc/drivemap.c: Likewise.
27514 * commands/loadenv.c: Likewise.
27515 * commands/memrw.c: Likewise.
27516 * commands/password.c: Likewise.
27517 * commands/videotest.c: Likewise.
27518 * disk/ata.c: Likewise.
27519 * disk/ata_pthru.c: Likewise.
27520 * disk/dmraid_nvidia.c: Likewise.
27521 * disk/ieee1275/nand.c: Likewise.
27522 * disk/ieee1275/ofdisk.c: Likewise.
27523 * disk/loopback.c: Likewise.
27524 * disk/lvm.c: Likewise.
27525 * disk/mdraid_linux.c: Likewise.
27526 * disk/raid.c: Likewise.
27527 * disk/raid6_recover.c: Likewise.
27528 * disk/scsi.c: Likewise.
27529 * efiemu/main.c: Likewise.
27530 * efiemu/mm.c: Likewise.
27531 * efiemu/pnvram.c: Likewise.
27532 * efiemu/symbols.c: Likewise.
27533 * font/font.c: Likewise.
27534 * fs/cpio.c: Likewise.
27535 * fs/hfsplus.c: Likewise.
27536 * fs/iso9660.c: Likewise.
27537 * fs/jfs.c: Likewise.
27538 * fs/minix.c: Likewise.
27539 * fs/ntfs.c: Likewise.
27540 * fs/ntfscomp.c: Likewise.
27541 * fs/reiserfs.c: Likewise.
27542 * fs/ufs.c: Likewise.
27543 * fs/xfs.c: Likewise.
27544 * gettext/gettext.c: Likewise.
27545 * include/grub/auth.h: Likewise.
27546 * kern/elf.c: Likewise.
27547 * kern/file.c: Likewise.
27548 * kern/ieee1275/init.c: Likewise.
27549 * kern/ieee1275/mmap.c: Likewise.
27550 * kern/ieee1275/openfw.c: Likewise.
27551 * kern/powerpc/dl.c: Likewise.
27552 * kern/sparc64/dl.c: Likewise.
27553 * lib/arg.c: Likewise.
27554 * loader/i386/bsd.c: Likewise.
27555 * loader/i386/bsdXX.c: Likewise.
27556 * loader/i386/efi/linux.c: Likewise.
27557 * loader/i386/efi/xnu.c: Likewise.
27558 * loader/i386/ieee1275/linux.c: Likewise.
27559 * loader/i386/linux.c: Likewise.
27560 * loader/i386/multiboot.c: Likewise.
27561 * loader/i386/pc/linux.c: Likewise.
27562 * loader/i386/pc/multiboot2.c: Likewise.
27563 * loader/i386/xnu.c: Likewise.
27564 * loader/ieee1275/multiboot2.c: Likewise.
27565 * loader/macho.c: Likewise.
27566 * loader/machoXX.c: Likewise.
27567 * loader/multiboot2.c: Likewise.
27568 * loader/multiboot_loader.c: Likewise.
27569 * loader/powerpc/ieee1275/linux.c: Likewise.
27570 * loader/sparc64/ieee1275/linux.c: Likewise.
27571 * loader/xnu.c: Likewise.
27572 * loader/xnu_resume.c: Likewise.
27573 * mmap/i386/pc/mmap.c: Likewise.
27574 * normal/menu_viewer.c: Likewise.
27575 * partmap/acorn.c: Likewise.
27576 * partmap/amiga.c: Likewise.
27577 * partmap/apple.c: Likewise.
27578 * script/lexer.c: Likewise.
27579 * term/gfxterm.c: Likewise.
27580 * term/i386/pc/serial.c: Likewise.
27581 * term/i386/pc/vga.c: Likewise.
27582 * term/ieee1275/ofconsole.c: Likewise.
27583 * term/terminfo.c: Likewise.
27584 * video/bitmap.c: Likewise.
27585 * video/efi_gop.c: Likewise.
27586 * video/efi_uga.c: Likewise.
27587 * video/fb/video_fb.c: Likewise.
27588 * video/i386/pc/vbe.c: Likewise.
27589 * video/readers/tga.c: Likewise.
27590 * video/video.c: Likewise.
27592 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
27594 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
27595 * commands/lspci.c: Likewise.
27596 * commands/probe.c: Likewise.
27597 * commands/xnu_uuid.c: Likewise.
27598 * conf/i386-coreboot.rmk: Likewise.
27599 * conf/i386-efi.rmk: Likewise.
27600 * conf/i386-ieee1275.rmk: Likewise.
27601 * conf/i386-pc.rmk: Likewise.
27602 * conf/powerpc-ieee1275.rmk: Likewise.
27603 * conf/sparc64-ieee1275.rmk: Likewise.
27604 * conf/x86_64-efi.rmk: Likewise.
27605 * fs/i386/pc/pxe.c: Likewise.
27606 * gettext/gettext.c: Likewise.
27607 * include/grub/efi/graphics_output.h: Likewise.
27608 * include/grub/i386/pc/memory.h: Likewise.
27609 * kern/env.c: Likewise.
27610 * kern/i386/qemu/startup.S: Likewise.
27611 * lib/i386/pc/biosnum.c: Likewise.
27612 * lib/i386/relocator.c: Likewise.
27613 * lib/i386/relocator_asm.S: Likewise.
27614 * lib/relocator.c: Likewise.
27615 * loader/i386/bsd.c: Likewise.
27616 * loader/i386/multiboot.c: Likewise.
27617 * loader/i386/pc/chainloader.c: Likewise.
27618 * loader/i386/xnu.c: Likewise.
27619 * loader/xnu.c: Likewise.
27620 * normal/main.c: Likewise.
27621 * normal/menu_text.c: Likewise.
27622 * util/getroot.c: Likewise.
27623 * util/grub-mkconfig_lib.in: Likewise.
27624 * util/grub.d/00_header.in: Likewise.
27625 * util/i386/pc/grub-mkimage.c: Likewise.
27626 * util/mkisofs/eltorito.c: Likewise.
27627 * util/mkisofs/exclude.h: Likewise.
27628 * util/mkisofs/hash.c: Likewise.
27629 * util/mkisofs/iso9660.h: Likewise.
27630 * util/mkisofs/joliet.c: Likewise.
27631 * util/mkisofs/mkisofs.c: Likewise.
27632 * util/mkisofs/mkisofs.h: Likewise.
27633 * util/mkisofs/multi.c: Likewise.
27634 * util/mkisofs/name.c: Likewise.
27635 * util/mkisofs/rock.c: Likewise.
27636 * util/mkisofs/tree.c: Likewise.
27637 * util/mkisofs/write.c: Likewise.
27638 * video/efi_gop.c: Likewise.
27640 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
27642 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
27645 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27647 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
27648 * genmk.rb (class SCRIPT): Modify the target file instead of source.
27650 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27652 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
27653 (GRUB_MOD_INIT(memrw)): Update help line.
27655 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27657 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
27658 Use grub_extcmd_t. All users updated.
27659 (options): New variable.
27660 (grub_cmd_read): Restructure for readability. Support "-v" option.
27661 (grub_cmd_write): Restructure for readability.
27663 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27665 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
27667 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27669 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
27670 with the actual contents of the correspondending make variable.
27671 * util/grub-mkrescue.in (pkglib_DATA): New variable.
27672 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
27673 specifying `*.lst' and `efiemu??.o'
27675 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27677 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
27678 after function name.
27679 Noticed by Rene Engelhard <rene@debian.org>.
27681 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27683 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
27684 (options): New variable.
27685 (iospace): Likewise.
27686 (grub_lspci_iter): List IO spaces if "-i" was given.
27687 (grub_cmd_lspci): Parse options.
27688 (GRUB_MOD_INIT(lspci)): Use extcmd.
27689 (GRUB_MOD_FINI(lspci)): Likewise.
27691 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27693 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
27694 `function' keyword.
27695 Patch by Tony Mancill <tmancill@debian.org>.
27697 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27699 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
27700 (grub_uhci_portstatus): Likewise.
27701 (grub_uhci_portstatus): Add necessary delay.
27702 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
27704 2009-12-21 Carles Pina i Estany <carles@pina.cat>
27706 * commands/acpi.c (options): Fix capitalizations and/or full stops.
27707 (GRUB_MOD_INIT): Likewise.
27708 * commands/boot.c (GRUB_MOD_INIT): Likewise.
27709 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
27710 * commands/echo.c (options): Fix capitalizations and/or full stops.
27711 * commands/efi/loadbios.c (enable_rom_area): Likewise.
27712 (enable_rom_area): Likewise.
27713 (GRUB_MOD_INIT): Likewise.
27714 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27715 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
27716 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27717 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
27718 * commands/hexdump.c (options): Likewise.
27719 * commands/i386/cpuid.c (options): Likewise.
27720 (GRUB_MOD_INIT): Likewise.
27721 * commands/i386/pc/drivemap.c (options): Likewise.
27722 (GRUB_MOD_INIT): Likewise.
27723 * commands/i386/pc/halt (options): Likewise.
27724 (GRUB_MOD_INIT): Likewise.
27725 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27726 * commands/i386/pc/pxecmd.c (options): Likewise.
27727 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
27728 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
27729 * commands/keystatus.c (options): Likewise.
27730 (GRUB_MOD_INIT): Likewise.
27731 * commands/loadenv.c (options): Likewise.
27732 * commands/ls.c (options): Likewise.
27733 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27734 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
27735 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
27736 * commands/parttool.c (helpmsg): Likewise.
27737 * commands/probe.c (options): Likewise.
27738 * commands/read.c (GRUB_MOD_INIT): Likewise.
27739 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
27740 * commands/search.c (options): Likewise.
27741 * commands/sleep.c (options): Likewise.
27742 * commands/test.c (GRUB_MOD_INIT): Likewise.
27743 * commands/true.c (GRUB_MOD_INIT): Likewise.
27744 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
27745 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
27746 * lib/arg.c (help_options): Likewise.
27747 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
27749 * po/POTFILES: Add `commands/loadenv.c'.
27751 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
27753 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
27754 instead of specifying them explicit.
27756 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27758 * NEWS: Add grub-probe support for GNU/Hurd.
27760 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27762 * NEWS: gettext was added after 1.97.
27764 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27766 * util/mkisofs/msdos_partition.h: New file (based on
27767 include/grub/msdos_partition.h).
27768 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
27769 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
27770 (ld_options, main): Recognize --protective-msdos-label.
27771 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
27772 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
27773 (padblock_write): If `use_protective_msdos_label' is set, patch a
27774 protective DOS-style label in the output image.
27776 * util/grub-mkrescue.in: Use --protective-msdos-label.
27778 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27780 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
27783 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27785 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
27787 (ld_options, main): Recognize `--embedded-boot'.
27788 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
27790 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
27791 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
27792 (padblock_write): Likewise. Rewrite to support embedded boot image.
27794 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
27795 for BIOS-based disk boot instead of only ElTorito.
27797 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27799 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
27800 build (not needed for bootstrap).
27802 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27804 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
27805 from i386-pc build (not needed for bootstrap).
27806 Rewrite a pair of strings.
27808 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27810 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
27812 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
27814 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
27816 2009-12-21 Andreas Born <futur.andy@googlemail.com>
27818 * kern/env.c (grub_env_context_open): Mark exported variable for
27821 2009-12-21 Andreas Born <futur.andy@googlemail.com>
27823 * kern/env.c (grub_env_export): Create nonexistent variables before
27826 2009-12-20 Carles Pina i Estany <carles@pina.cat>
27828 * include/grub/auth.h: Include `<grub/i18n.h>'.
27829 (GRUB_GET_PASSWORD): Gettextizze string.
27830 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
27832 (grub_utf8_to_ucs4_alloc): Fix indentation.
27833 (grub_print_ucs4): Likewise.
27834 (grub_getstringwidth): Likewise.
27835 (print_message_indented): New declaration.
27836 * normal/auth.c: Include `<grub/i18n.h>'.
27837 (grub_auth_check_authentication): Gettexttize string.
27838 * normal/cmdline.c: Include `<grub/i18n.h>'.
27839 (grub_cmdline_get): Gettextizze.
27840 * normal/color.c: Include `<grub/i18n.h>'.
27841 (grub_parse_color_name_pair): Gettexttize strings.
27842 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
27843 string (use `print_message_indented').
27844 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
27845 `include/grub/normal.h'.
27846 (print_message_indented): Renamed to ...
27847 (grub_print_message_indented): ... this. Remove `static' qualifer (now
27848 used in normal/main.c).
27849 (print_message): Use `grub_print_message_indented' instead of
27850 `print_message_indented'.
27851 (print_timeout): Likewise.
27852 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
27853 (grub_normal_print_device_info): Gettexttize strings.
27854 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
27856 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
27858 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
27859 of arguments. Return number of tokens and not arguments. All users
27862 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
27864 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
27865 non-MSDOS paritions.
27867 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
27869 * include/grub/types.h (UNUSED): Removed since it conflicts with
27870 NetBSD headers. All users changed to direct __attribute__ ((unused)).
27871 Reported by Grégoire Sutre.
27873 2009-12-19 Carles Pina i Estany <carles@pina.cat>
27875 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
27876 (grub_print_ucs4_alloc): Likewise.
27877 (grub_getstringwidth): Likewise.
27878 * normal/main.c (grub_normal_init_page): Gettextize version string.
27879 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
27880 (getstringwidth): Renamed to ...
27881 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
27882 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
27883 (grub_print_ucs4): Remove `static' qualifer (now used in
27885 * po/POTFILES: Add normal/main.c.
27887 2009-12-19 Carles Pina i Estany <carles@pina.cat>
27889 * normal/menu_text.c (STANDARD_MARGIN): New macro.
27890 (print_message_indented): Add `margin_left' and `margin_right'
27892 (print_message): Update `print_message_indented' calls. Adds '\n' to the
27894 (print_timeout): Use `print_message_indented' to print the message.
27895 Deletes `second_stage' parameter.
27896 (run_menu): Update `print_timeout' calls.
27898 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27900 Fix console palette on OpenFirmware.
27902 * term/ieee1275/ofconsole.c (MAX): Removed.
27903 (colors): Redone based on VGA palette.
27904 (grub_ofconsole_setcolor): Discard brightness bit since only 8
27905 colors are supported.
27906 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
27908 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27910 Fix potential EfiEmu double prepare.
27912 * efiemu/main.c (prepared): New variable
27913 (grub_efiemu_unload): Set prepare to '0'.
27914 (grub_efiemu_prepare): Return if already prepared. Set prepared.
27916 set_virtual_address_map support.
27918 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
27920 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
27922 (grub_efiemu_crc32): Likewise.
27923 (grub_efiemu_crc64): Likewise.
27924 (grub_efiemu_set_virtual_address_map): Likewise.
27925 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
27927 (grub_autoefi_set_virtual_address_map): Likewise.
27928 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
27929 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
27930 Restructure flow to accomodate it.
27931 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
27932 (grub_efiemu_crc): Recompute CRC32.
27933 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
27934 (efiemu_ptv_relocated): ... this. Made global. All users updated.
27935 * efiemu/symbols.c (relocated_handle): New variable.
27936 (grub_efiemu_free_syms): Free relocated_handle.
27937 (grub_efiemu_alloc_syms): Allocate relocated_handle.
27938 (grub_efiemu_write_sym_markers): New function.
27939 (grub_efiemu_set_virtual_address_map): Likewise.
27941 Newer XNU parameters.
27943 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
27944 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
27945 (grub_xnu_fill_devicetree): New prototype.
27946 (grub_xnu_heap_real_start): New variable.
27947 * loader/xnu.c (get_name_ptr): New function.
27948 (grub_xnu_load_driver): Fill namelen and name.
27950 64-bit xnu support.
27952 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
27953 and 'loader/macho64.c'.
27954 * conf/i386-pc.rmk: Likewise.
27955 * conf/x86_64-efi.rmk: Likewise.
27956 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
27957 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
27958 * include/grub/macho.h (grub_macho_segment64): New structure.
27959 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
27960 (grub_macho_size32): ... to this.
27961 (grub_macho32_get_entry_point): Renamed from ...
27962 (grub_macho_get_entry_point32): ... to this.
27963 (grub_macho_contains_macho64): New prototype.
27964 (grub_macho_size64): Likewise.
27965 (grub_macho_get_entry_point64): Likewise.
27966 (grub_macho32_load): Renamed from ...
27967 (grub_macho_load32): ... to this.
27968 (grub_macho32_filesize): Renamed from ...
27969 (grub_macho_filesize32): ... to this.
27970 (grub_macho32_readfile): Renamed from ...
27971 (grub_macho_readfile32): ... to this.
27972 (grub_macho_filesize64): New prototype.
27973 (grub_macho_readfile64): Likewise.
27974 (grub_macho_parse32): Likewise.
27975 (grub_macho_parse64): Likewise.
27976 * loader/macho.c: Split into ...
27977 * loader/machoXX.c: ... and this. Replace 32 with XX.
27978 * loader/macho32.c: New file.
27979 * loader/macho64.c: Likewise.
27980 * loader/xnu.c (grub_xnu_is_64bit): New variable.
27981 (grub_cmd_xnu_kernel): Make 32-bit only.
27982 (grub_cmd_xnu_kernel64): New function.
27983 (grub_xnu_load_driver): Support Mach-O 64.
27984 (grub_cmd_xnu_mkext): Likewise.
27985 * util/grub.d/30_os-prober.in (osx_entry): New function.
27986 Generate entries for 64-bit boot too.
27988 Eliminate ad-hoc tree format in XNU and EfiEmu.
27990 * efiemu/main.c (grub_efiemu_prepare): Update comment.
27991 * efiemu/pnvram.c: Rewritten to use environment variables.
27994 Inline utf16_to_utf8.
27996 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
27997 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
27999 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
28001 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
28002 * commands/usbtest.c (grub_usb_get_string): ... move here.
28003 (usb_print_str): Fix error handling.
28004 * include/grub/usb.h (grub_usb_get_string): Remove.
28006 UTF-8 to UTF-16 transformation.
28008 * conf/common.rmk (pkglib_MODULES): Add charset.mod
28009 (charset_mod_SOURCES): New variable.
28010 (charset_mod_CFLAGS): Likewise.
28011 (charset_mod_LDFLAGS): Likewise.
28012 * include/grub/utf.h: New file.
28013 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
28015 Support for device properties.
28017 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
28018 (grub_xnu_devprop_device_header): Likewise.
28019 (grub_xnu_devprop_device_descriptor): Likewise.
28020 (grub_xnu_devprop_add_device): New prototype.
28021 (grub_xnu_devprop_remove_device): Likewise.
28022 (grub_xnu_devprop_remove_property): Likewise.
28023 (grub_xnu_devprop_add_property_utf8): Likewise.
28024 (grub_xnu_devprop_add_property_utf16): Likewise.
28025 (grub_cpu_xnu_init): Likewise.
28026 (grub_cpu_xnu_fini): Likewise.
28027 (grub_cpu_xnu_unload): Likewise.
28028 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
28029 (property_descriptor): Likewise.
28030 (devices): New variable.
28031 (grub_xnu_devprop_remove_property): New function.
28032 (grub_xnu_devprop_add_device): Likewise.
28033 (grub_xnu_devprop_remove_device): Likewise.
28034 (grub_xnu_devprop_add_property): Likewise.
28035 (grub_xnu_devprop_add_property_utf8): Likewise.
28036 (grub_xnu_devprop_add_property_utf16): Likewise.
28037 (hextoval): Likewise.
28038 (grub_cpu_xnu_fill_devprop): Likewise.
28039 (grub_cmd_devprop_load): Likewise.
28040 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
28041 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
28042 (cmd_devprop_load): New variable.
28043 (grub_cpu_xnu_init): New function.
28044 (grub_cpu_xnu_fini): Likewise.
28045 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
28046 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
28047 (grub_cmd_xnu_devtree): Likewise.
28048 (hextoval): New function.
28049 (unescape): Likewise.
28050 (grub_xnu_fill_devicetree): Likewise.
28052 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
28053 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
28055 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28057 Workaround for broken ATI VBE.
28059 * video/i386/pc/vbe.c (last_set_mode): New variable.
28060 (grub_vbe_set_video_mode): Set 'last_set_mode'.
28061 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
28062 (grub_video_vbe_setup): Don't check for reserved flag.
28064 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
28066 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
28067 the `find' command.
28069 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
28071 UUID support for HFS.
28073 * fs/hfs.c (grub_hfs_uuid): New function.
28074 (grub_hfs_fs): New value .uuid.
28075 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
28077 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
28079 Fix a segfault with parsing unknown long options.
28081 * util/grub-mkrelpath.c (options): Zero terminate it.
28083 2009-12-13 Carles Pina i Estany <carles@pina.cat>
28085 * include/grub/misc.h (grub_puts): New declaration.
28086 (grub_puts_): Likewise.
28087 * kern/misc.c (grub_puts): New definition.
28088 (grub_puts_): Likewise.
28090 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
28092 * util/grub-probe.c (probe): Improve error message.
28094 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
28096 * loader/i386/multiboot_elfxx.c
28097 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
28100 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
28102 Relocator framework
28104 * loader/i386/xnu_helper.S: Removed. All users updated.
28105 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
28106 (relocator_mod_SOURCES): New variable.
28107 (relocator_mod_CFLAGS): Likewise.
28108 (relocator_mod_LDFLAGS): Likewise.
28109 (relocator_mod_ASFLAGS): Likewise.
28110 * conf/x86_64.rmk: Likewise.
28111 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
28112 (grub_multiboot_payload_entry_offset): Likewise.
28113 (grub_multiboot_forward_relocator): Likewise.
28114 (grub_multiboot_forward_relocator_end): Likewise.
28115 (grub_multiboot_backward_relocator): Likewise.
28116 (grub_multiboot_backward_relocator_end): Likewise.
28117 (grub_multiboot_payload_eip): New variable.
28118 (grub_multiboot_payload_orig): Likewise.
28119 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
28120 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
28121 * include/grub/i386/memory.h
28122 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
28123 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
28124 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
28125 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
28126 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
28127 * include/grub/i386/relocator.h: New file.
28128 * include/grub/x86_64/relocator.h: Likewise.
28129 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
28130 (XNU_RELOCATOR): New macro.
28131 (grub_xnu_launcher_start): Remove.
28132 (grub_xnu_launcher_end): Likewise.
28133 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
28134 (grub_xnu_heap_real_start): Remove.
28135 (grub_xnu_heap_start): Change to void *. All users updated.
28136 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
28137 * lib/i386/relocator.c: New file.
28138 * lib/i386/relocator_asm.S: Likewise.
28139 * lib/i386/relocator_backward.S: Likewise.
28140 * lib/mips/relocator.c: Likewise.
28141 * lib/mips/relocator_asm.S: Likewise.
28142 * lib/relocator.c: Likewise.
28143 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
28145 (playground): Likewise.
28146 (grub_multiboot_payload_orig): New variable.
28147 (grub_multiboot_payload_dest): Likewise.
28148 (grub_multiboot_payload_size): Likewise.
28149 (grub_multiboot_payload_eip): Likewise.
28150 (grub_multiboot_payload_esp): Likewise.
28151 (grub_multiboot_boot): Use grub_relocator32_boot.
28152 (grub_multiboot_unload): Free relocators.
28153 (grub_multiboot): Setup stack. Use relocators.
28154 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
28155 (grub_multiboot_load_elfXX): Use relocators.
28156 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
28157 (grub_multiboot_payload_size): Likewise.
28158 (grub_multiboot_payload_dest): Likewise.
28159 (grub_multiboot_payload_entry_offset): Likewise.
28160 (grub_multiboot_forward_relocator): Likewise.
28161 (grub_multiboot_backward_relocator): Likewise.
28162 (grub_multiboot_real_boot): Likewise.
28163 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
28164 (grub_xnu_entry_point): Likewise.
28165 (grub_xnu_arg1): Likewise.
28166 (grub_xnu_stack): Likewise.
28167 (grub_xnu_launch): Removed.
28168 (grub_xnu_boot_resume): New function.
28169 (grub_xnu_boot): Use relocators.
28170 * loader/i386/xnu_helper.S: Removed.
28171 * loader/xnu.c (grub_xnu_heap_start): New variable.
28172 (grub_xnu_heap_size): Likewise.
28173 (grub_xnu_heap_malloc): Use relocators.
28174 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
28176 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
28178 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
28181 2009-12-13 Carles Pina i Estany <carles@pina.cat>
28183 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
28184 GRUB_ERR_NONE before calling grub_env_set.
28186 2009-12-12 Robert Millan <rmh@aybabtu.com>
28188 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
28189 * genmk.rb (video): New variable.
28190 (CLEANFILES, VIDEOFILES): Add #{video}.
28191 (#{video}): New target rule.
28192 * genvideolist.sh: New file.
28193 * Makefile.in (pkglib_DATA): Add video.lst.
28194 (video.lst): New target rule.
28195 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
28197 * util/grub.d/30_os-prober.in: Replace `vbe' with
28198 ${GRUB_VIDEO_BACKEND}.
28200 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
28202 * THANKS: Add David Miller.
28204 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
28206 libpciaccess support.
28208 * Makefile.in (LIBPCIACCESS): New variable.
28209 (enable_grub_emu_pci): Likewise.
28210 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
28211 util/pci.c and commands/lspci.c.
28212 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
28213 * configure.ac (grub-emu-pci): New option.
28214 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
28215 (grub_pci_device_unmap_range): Likewise.
28216 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
28217 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
28218 (grub_pci_address_t) [!GRUB_UTIL]: New type.
28219 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
28220 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
28221 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
28222 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
28223 * include/grub/pciutils.h: New file.
28224 * util/pci.c: Likewise.
28226 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
28228 * util/misc.c: Don't include <errno.h> twice.
28230 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
28232 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
28233 name in an error message.
28234 (grub_biosdisk_rw): Likewise.
28236 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28238 Eliminate NTFS 4Gib barrier.
28240 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
28241 (read_run_data): Likewise.
28242 (grub_ntfs_read_run_list): Likewise.
28243 (grub_ntfs_read_block): Likewise.
28244 (grub_ntfs_iterate_dir): Likewise.
28245 (read_mft): Likewise.
28246 (read_data): Likewise.
28248 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
28249 to avoid 64-bit division
28250 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
28251 (grub_ntfs_rlst): Use grub_disk_addr_t.
28253 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28255 Eliminate grub-fstest 4Gib barrier.
28257 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
28258 (read_file): Fix error reporting.
28260 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28262 Eliminate hexdump 4Gib barrier.
28264 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
28265 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
28267 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28269 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
28272 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
28274 Remove miscellaneous files in distclean target.
28276 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
28278 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
28280 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
28281 if they're already set. This resolves the conflict between my
28282 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
28283 fixing the --grub-probe option again.
28284 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
28285 change on 2009-10-06, so that we now once again source
28286 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
28288 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
28290 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
28291 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
28292 `util/devicemap.c'.
28294 2009-12-08 Carles Pina i Estany <carles@pina.cat>
28296 * include/grub/misc.h (grub_printf_): New declaration.
28297 * kern/misc.c (grub_printf_): New definition.
28298 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
28299 instead of `grub_printf' and `_'.
28300 * normal/menu_entry.c (store_completion): Likewise.
28302 (grub_menu_entry_run): Likewise.
28303 * normal/menu_text.c (grub_wait_after_message): Likewise.
28304 (notify_booting): Likewise.
28305 (notify_fallback): Likewise.
28306 (notify_execution_failure): Likewise.
28308 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
28310 * configure.ac: Check for vasprintf.
28311 * util/misc.c (asprintf): Move allocation from here ...
28312 (vasprintf): ... to here. New function.
28313 (xasprintf): New function.
28314 * include/grub/util/misc.h (vasprintf, xasprintf): Add
28316 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
28317 * util/grub-mkfont.c (write_font): Likewise.
28318 * util/grub-probe.c (probe): Likewise.
28319 * util/hostdisk.c (make_device_name): Likewise.
28321 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
28323 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
28324 anything even prefixed with 'cdrom' as a cdrom.
28326 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
28328 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
28331 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28333 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
28334 grub_gettext_msg_list.
28335 (grub_gettext_gettranslation_from_position): Return const char *
28337 (grub_gettext_translate): Add the translated strings into a list,
28338 returns from the list if existing there.
28339 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
28340 (grub_gettext_delete_list): Delete the list.
28341 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
28342 lang environment variable is changed.
28343 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
28345 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
28347 Rename kernel.mod to kernel.img.
28349 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
28350 (kernel_mod_EXPORTS): Rename to ...
28351 (kernel_img_EXPORTS): ... this.
28352 (kernel_mod_SOURCES): Rename to ...
28353 (kernel_img_SOURCES): ... this.
28354 (kernel_mod_HEADERS): Rename to ...
28355 (kernel_img_HEADERS): ... this. All users updated.
28356 (kernel_mod_CFLAGS): Rename to ...
28357 (kernel_img_CFLAGS): ... this.
28358 (kernel_mod_ASFLAGS): Rename to ...
28359 (kernel_img_ASFLAGS): ... this.
28360 (kernel_mod_LDFLAGS): Rename to ...
28361 (kernel_img_LDFLAGS): ... this.
28362 * conf/x86_64-efi.rmk: Likewise.
28363 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
28364 (read_kernel_image): ... this. All users updated.
28365 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
28367 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28369 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
28370 (print_spaces): New function.
28371 (grub_print_ucs4): New function.
28372 (getstringwidth): New function.
28373 (print_message_indented): New function.
28374 (print_message): Gettexttize strings using print_message_indented.
28375 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
28377 (get_entry_number): Gettextize and uses dynamic terminal width.
28378 (notify_booting, notify_fallback, notify_execution_failure):
28380 * normal/menu_entry.c (store_completion): Cleanup the gettextized
28383 (grub_menu_entry_run): Likewise.
28384 * PO/POTFILES: Add normal/menu_entry.c.
28386 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
28388 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
28390 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28392 * util/grub-install.in: Install gettext .mo files.
28393 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
28395 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28397 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
28400 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
28402 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
28403 non-firmware-dependant one in realmode.S takes precedence.
28405 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
28407 * commands/halt.c: Replace misc arch-specific headers with
28409 * commands/reboot.c: Likewise.
28410 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
28412 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
28413 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
28414 (kernel_img_SOURCES): ... to here.
28416 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
28417 * include/grub/i386/pc/init.h: Likewise.
28418 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28419 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28421 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
28423 * include/grub/i386/halt.h: Remove.
28424 * include/grub/i386/reboot.h: Likewise.
28426 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
28428 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
28430 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
28431 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
28432 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
28434 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
28435 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28436 (usage): Add missing comma in printf.
28438 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
28440 Use the same reboot approach on i386 coreboot and qemu as we do on
28443 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
28444 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
28445 * kern/i386/reboot.c: Remove.
28446 * include/grub/i386/reboot.h (grub_reboot): Export function.
28447 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
28448 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
28449 0xf000:0xfff0 instead of 0xffff:0x0000.
28450 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
28451 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
28453 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
28455 Fix $srcdir != $objdir build.
28457 * Makefile.in (po/%.po): Rewrite as ...
28458 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
28460 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
28462 Fix GNU/Hurd grub-install crash.
28463 * util/grub-probe.c (probe): Try to access `path' only when it is not
28466 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28468 Correct module naming.
28470 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
28471 (GRUB_MOD_INIT(efi_uga)): ... to this
28472 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
28473 (GRUB_MOD_FINI(efi_uga)): ... to this
28474 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
28475 (GRUB_MOD_INIT(efi_gop)): ... to this
28476 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
28477 (GRUB_MOD_FINI(efi_gop)): ... to this
28479 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
28481 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
28483 (usage): Translate `arg' strings using gettext().
28484 Thanks to Jordi Mallach for the suggestion.
28486 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28488 GOP support. Based on patch from Bean
28489 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28491 * video/efi_gop.c: New file.
28492 * include/grub/efi/graphics_output.h: Likewise.
28493 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
28494 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28496 * conf/x86_64-efi.rmk: Likewise.
28498 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28500 Rename efi_fb to efi_uga.
28502 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
28504 (efi_fb_mod_SOURCES): Rename this ...
28505 (efi_uga_mod_SOURCES): ... to this.
28506 (efi_fb_mod_CFLAGS): Rename this ...
28507 (efi_uga_mod_CFLAGS): ... to this.
28508 (efi_fb_mod_LDFLAGS): Rename this ...
28509 (efi_uga_mod_LDFLAGS): ... to this.
28510 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
28512 (efi_fb_mod_SOURCES): Rename this ...
28513 (efi_uga_mod_SOURCES): ... to this.
28514 (efi_fb_mod_CFLAGS): Rename this ...
28515 (efi_uga_mod_CFLAGS): ... to this.
28516 (efi_fb_mod_LDFLAGS): Rename this ...
28517 (efi_uga_mod_LDFLAGS): ... to this.
28518 * video/efi_fb.c: Move this ...
28519 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
28521 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28523 * po/README: New file. Explain our PO file workflow.
28525 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28527 * po/ChangeLog: Remove. Move relevant entries back to ...
28528 * ChangeLog: ... here.
28529 * po/ca.po: Remove (now handled by TLP).
28530 * po/id.po: Likewise.
28531 * po/zh_CN.po: Likewise.
28532 * Makefile.in (LINGUAS): Initialize in a way that supports
28535 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28537 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
28538 reliing on po/LINGUAS.
28539 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
28540 (po/%.po): ... this.
28542 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28544 * util/i386/efi/grub-mkimage.c: Include "progname.h".
28545 (main): Use `program_name' instead of nonexistent `progname'.
28547 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28549 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28550 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
28552 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28554 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
28556 * conf/i386-efi.rmk: Likewise.
28557 * conf/i386-ieee1275.rmk: Likewise.
28558 * conf/powerpc-ieee1275.rmk: Likewise.
28559 * conf/sparc64-ieee1275.rmk: Likewise.
28560 * conf/x86_64-efi.rmk: Likewise.
28562 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28564 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
28566 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28568 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
28570 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28572 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
28573 (grub_mkdevicemap_SOURCES): New variable.
28574 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
28575 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
28576 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
28577 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
28578 (grub_mkdevicemap_SOURCES): Remove.
28579 * conf/i386-efi.rmk: Likewise.
28580 * conf/i386-ieee1275.rmk: Likewise.
28581 * conf/i386-pc.rmk: Likewise.
28582 * conf/powerpc-ieee1275.rmk: Likewise.
28583 * conf/sparc64-ieee1275.rmk: Likewise.
28584 * conf/x86_64-efi.rmk: Likewise.
28585 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
28586 (usage): Fix strings to use `program_name'.
28587 (main): Initialize gettext.
28588 * util/grub-editenv.c: Likewise.
28589 * util/grub-emu.c: Likewise.
28590 * util/grub-fstest.c: Likewise.
28591 * util/grub-mkdevicemap.c: Likewise.
28592 * util/grub-mkfont.c: Likewise.
28593 * util/grub-mkrelpath.c: Likewise.
28594 * util/grub-pe2elf.c: Likewise.
28595 * util/grub-probe.c: Likewise.
28596 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28597 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
28598 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28600 * util/misc.c: Include `"progname.h"'.
28601 (progname): Remove variable.
28602 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
28604 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
28606 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
28607 printf and print a newline after the menuentry header line.
28608 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28610 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
28612 autoconf >= 2.60 support $(localedir).
28614 * INSTALL: Note that autoconf 2.60 is required.
28615 * configure.ac (AC_PREREQ): Bump to 2.60.
28616 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
28617 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28619 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
28621 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
28624 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28626 * normal/main.c (grub_normal_read_line): Fix off-by-one
28629 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28631 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
28632 "parser.grub" in grub_command_execute() call.
28634 2009-11-24 Carles Pina i Estany <carles@pina.cat>
28636 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
28637 * conf/i386-efi.rmk: Likewise.
28638 * conf/i386-ieee1275.rmk: Likewise.
28639 * conf/i386-pc.rmk: Likewise.
28640 * conf/powerpc-ieee1275.rmk: Likewise.
28641 * conf/sparc64-ieee1275.rmk: Likewise.
28642 * conf/x86_64-efi.rmk: Likewise.
28643 * gettext/gettex.c: Include <grub/i18n.h>.
28644 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
28646 * include/grub/i18n.h: ... to here
28647 * include/grub/i18n.h: ... to here.
28648 * kern/misc.c: Include <grub/i18n.h>
28649 (grub_gettext_dummy): Move above user.
28651 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28653 * util/Makefile.in (install-local): Convert a `for' into a normal
28656 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
28658 * autogen.sh: Add automake call.
28659 * config.guess: Remove.
28660 * config.sub: Likewise.
28661 * install-sh: Likewise.
28663 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28665 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
28667 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28669 * util/Makefile.in (install-local): Convert a make `$(foreach)'
28670 function to a normal shell `for'.
28672 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28674 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28676 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28678 * util/grub-mkrelpath.c: New file.
28679 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
28680 (grub_mkrelpath_SOURCES): New variable.
28681 * include/grub/util/misc.h: New function prototype.
28682 * util/misc.c (make_system_path_relative_to_its_root): New function.
28684 * util/grub-mkconfig_lib.in (bindir): New variable.
28685 (grub_mkrelpath): Likewise.
28686 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
28688 * util/probe.c (probe): Make the file path relative to its root.
28689 Change a info message to use the GRUB path. Enable again the
28690 check if we can read the file with GRUB facilities.
28692 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
28695 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28697 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
28700 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28702 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
28705 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28707 * util/getroot.c (grub_util_is_dmraid): New function.
28708 (grub_util_get_dev_abstraction): Treat dmraid and multipath
28709 devices as normal ones, not as LVM.
28711 2009-11-23 Carles Pina i Estany <carles@pina.cat>
28713 * conf/common.rmk: Add grub-gettext_lib target and updates
28714 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
28716 * gettext/gettext.c: New file. (Reads mo files).
28717 * include/grub/file.h (grub_file_pread): New prototype.
28718 * include/grub/i18n.h (_): New prototype.
28719 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
28721 * kern/misc.c (grub_gettext_dummy): New function.
28722 * normal/menu_text.c: Include <grub/i18n.h>.
28723 * normal/menu_text.c (print_timeout): Gettexttize string.
28724 * normal/menu_text.c (print_message): Gettexttize string.
28725 * po/POTFILES: Add `normal/menu_text.c'.
28726 * po/ca.po: Add new translations.
28727 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
28728 gettext module and defines locale_dir and lang in grub.cfg.
28729 * NEWS: Add gettext support.
28731 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28733 * util/hostdisk.c: Include `<grub/i18n.h>'.
28734 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
28735 (make_device_name): Rewrite using asprintf.
28736 (convert_system_partition_to_system_disk): Replace 0 with NULL.
28737 (find_system_device): If a device is not found, generate one just
28738 by reusing the OS path name.
28739 (read_device_map): Make it permissible for device.map not to exist.
28741 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28743 * script/sh/execute.c: Move from here ...
28744 * script/execute.c: ... to here. Update all users.
28745 * script/sh/function.c: Move from here ...
28746 * script/function.c: ... to here. Update all users.
28747 * script/sh/lexer.c: Move from here ...
28748 * script/lexer.c: ... to here. Update all users.
28749 * script/sh/main.c: Move from here ...
28750 * script/main.c: ... to here. Update all users.
28751 * script/sh/parser.y: Move from here ...
28752 * script/parser.y: ... to here. Update all users.
28753 * script/sh/script.c: Move from here ...
28754 * script/script.c: ... to here. Update all users.
28756 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28758 * configure.ac: Detect all `emu' platforms. Define
28759 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
28760 --enable-grub-emu logic. Disable include/grub/machine
28761 symlink on `emu' platforms.
28763 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
28764 * gensymlist.sh.in: Likewise.
28766 * include/grub/i386/coreboot/machine.h: Remove file.
28767 * include/grub/i386/efi/machine.h: Likewise.
28768 * include/grub/i386/ieee1275/machine.h: Likewise.
28769 * include/grub/i386/pc/machine.h: Likewise.
28770 * include/grub/i386/qemu/machine.h: Likewise.
28771 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28772 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28773 * include/grub/x86_64/efi/machine.h: Likewise.
28775 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
28776 * commands/halt.c: Likewise.
28777 * commands/reboot.c: Likewise.
28778 * include/grub/autoefi.h: Likewise.
28779 * include/grub/i386/at_keyboard.h: Likewise.
28780 * include/grub/i386/kernel.h: Likewise.
28781 * include/grub/i386/loader.h: Likewise.
28782 * include/grub/i386/pc/memory.h: Likewise.
28783 * kern/dl.c: Likewise.
28784 * kern/i386/coreboot/init.c: Likewise.
28785 * loader/i386/bsd.c: Likewise.
28786 * loader/i386/linux.c: Likewise.
28787 * loader/multiboot_loader.c: Likewise.
28788 * term/i386/pc/serial.c: Likewise.
28789 * term/usb_keyboard.c: Likewise.
28791 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
28792 `<grub/machine/machine.h>'
28793 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
28794 * util/misc.c: Remove `<grub/machine/machine.h>' and
28795 `<grub/machine/time.h>'.
28797 * Makefile.in (enable_grub_emu): Remove variable.
28798 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
28800 * conf/any-emu.rmk: New file.
28801 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
28802 (grub_emu_init.c): Move from here ...
28803 * conf/any-emu.rmk: ... to here.
28805 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
28806 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
28807 * conf/any-emu.rmk: ... to here.
28809 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28811 * include/grub/parser.h (grub_parser_register): Document need
28812 of `name' parameter.
28813 * normal/main.c (grub_normal_read_line): Simplify prompt string.
28814 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
28817 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28819 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
28821 * include/grub/i18n.h (N_): New macro.
28822 * util/mkisofs/mkisofs.h: Likewise.
28823 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
28825 (usage): Use gettext() to translate help strings when printing them.
28827 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28829 Based on patch from Bean
28830 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28832 * video/efi_fb.c: New file.
28833 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
28834 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28836 * conf/x86_64-efi.rmk: Likewise.
28838 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
28840 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
28841 * util/i386/pc/grub-setup.c: Likewise.
28843 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
28845 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
28847 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
28848 file_get_storage_info to implement grub_guess_root_device.
28850 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
28852 * Makefile.in (target): Use make's builtin $(shell) function
28853 instead of calling directly $(SHELL) to create the locale directories,
28854 inside the $(foreach) function.
28856 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
28858 * util/grub-mkrescue.in: Print an error and usage if output option
28859 has not been given.
28861 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
28863 Patch from Loïc Minier <loic.minier@ubuntu.com>.
28864 * util/grub.d/30_os-prober.in: Cope with Linux entries where
28865 root and /boot are on different devices.
28867 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28869 Fix build for srcdir != objdir.
28871 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
28872 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
28874 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
28875 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
28876 reference for input.
28878 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28880 * util/grub-mkrescue.in: Use source directory direcly (without copiing
28881 or hardlinking it). Remove -J option, Joliet is not compatible with
28882 multiple source directories.
28884 2009-11-21 Carles Pina i Estany <carles@pina.cat>
28885 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28887 * util/grub-mkrescue.in: Recognize `--override-directory' option.
28888 (process_input_dir): New function. Process an arbitrary input
28890 Misc adjustments to support both "override mode" and system-wide mode.
28892 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
28894 * configure.ac (UNIFONT_BDF): Rename to ...
28895 (FONT_SOURCE): ... this. Update all users.
28897 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
28899 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
28900 to the list of unifont files to look for.
28902 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28904 Patch from Joe Auricchio <jauricchio@gmail.com>
28905 * commands/minicmd.c (grub_mini_cmd_clear): New function.
28906 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
28907 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
28909 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
28911 * Makefile.in (install-local): Add a missing backslash.
28913 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
28915 * include/grub/x86_64/io.h: New file.
28917 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28919 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
28920 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
28921 Include `"progname.h"'.
28922 (main): Initialize gettext.
28923 * util/i386/pc/grub-setup.c: Gettexttize.
28924 * util/i386/pc/grub-mkimage.c: Likewise.
28926 * Makefile.in (po/*.po): Redefine as ...
28927 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
28929 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
28931 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28933 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
28934 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
28935 (program_name): Remove.
28936 (main): Initialize gettext support.
28937 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
28938 Include `<libintl.h>'.
28941 * util/mkisofs/eltorito.c: Gettexttize.
28942 * util/mkisofs/joliet.c: Likewise.
28943 * util/mkisofs/mkisofs.c: Likewise.
28944 * util/mkisofs/multi.c: Likewise.
28945 * util/mkisofs/rock.c: Likewise.
28946 * util/mkisofs/tree.c: Likewise.
28947 * util/mkisofs/write.c: Likewise.
28949 * po/POTFILES: Update with new files.
28951 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28953 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
28954 * util/mkisofs/iso9660.h: Likewise.
28955 * util/mkisofs/joliet.c: Likewise.
28956 * util/mkisofs/mkisofs.c: Likewise.
28957 * util/mkisofs/mkisofs.h: Likewise.
28958 * util/mkisofs/rock.c: Likewise.
28959 * util/mkisofs/tree.c: Likewise.
28960 * util/mkisofs/write.c: Likewise.
28962 * util/mkisofs/eltorito.c (rcsid): Remove.
28963 * util/mkisofs/hash.c: Likewise.
28964 * util/mkisofs/joliet.c: Likewise.
28965 * util/mkisofs/name.c: Likewise.
28966 * util/mkisofs/rock.c: Likewise.
28967 * util/mkisofs/tree.c: Likewise.
28968 * util/mkisofs/write.c: Likewise.
28970 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28972 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
28973 instead of static allocation.
28974 * util/mkisofs/match.h: Likewise.
28976 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28978 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
28979 and `util/grub.d/10_linux.in'.
28980 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
28981 translatable Shell files.
28983 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28985 * Makefile.in ($(srcdir)/aclocal.m4): New target.
28987 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28989 * INSTALL: Document Automake is needed for bootstrap.
28990 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
28991 * util/grub.d/10_kfreebsd.in (bindir): New variable.
28992 Add gettext initialization.
28993 (kfreebsd_entry): Make menuentry output translatable.
28995 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28997 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
28998 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
28999 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
29000 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
29001 (LINGUAS): Auto-generate using `po/LINGUAS'.
29002 * po/LINGUAS: New file.
29004 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29006 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
29008 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
29009 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
29010 bindtextdomain() calls for gettext initialization.
29012 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29014 * gnulib/progname.c: New file (imported from Gnulib).
29015 * gnulib/progname.h: Likewise.
29016 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
29017 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
29018 (usage): Replace `progname' with `program_name'.
29019 (main): Use set_program_name() for program name initialization.
29021 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29023 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
29025 * Makefile.in (CPPFLAGS): ... to here.
29027 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29029 * aclocal.m4: Move from here ...
29030 * acinclude.m4: ... to here.
29031 * autogen.sh: Add call to `aclocal'.
29032 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
29034 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29036 * Makefile.in (CLEANFILES): Add `po/*.mo'.
29037 (LINGUAS): New variable.
29038 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
29039 (install-local): Install MO files.
29040 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
29041 * include/grub/i18n.h: New file.
29042 * po/POTFILES: New file.
29043 * po/ca.po: New file.
29044 * util/grub.d/10_linux.in (bindir): New variable.
29045 Add gettext initialization.
29046 (linux_entry): Make menuentry output translatable.
29047 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
29048 (usage): Make --help output translatable.
29049 (main): Initialize gettext.
29051 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29053 * import_gcry.py: New file (written by Vladimir with minor
29055 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
29057 * INSTALL: Document that Python is required for bootstrap.
29059 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29061 Import ciphers from libgcrypt 1.4.4.
29063 * lib/libgcrypt/cipher/ChangeLog
29064 * lib/libgcrypt/cipher/ac.c
29065 * lib/libgcrypt/cipher/arcfour.c
29066 * lib/libgcrypt/cipher/bithelp.h
29067 * lib/libgcrypt/cipher/blowfish.c
29068 * lib/libgcrypt/cipher/camellia-glue.c
29069 * lib/libgcrypt/cipher/camellia.c
29070 * lib/libgcrypt/cipher/camellia.h
29071 * lib/libgcrypt/cipher/cast5.c
29072 * lib/libgcrypt/cipher/cipher.c
29073 * lib/libgcrypt/cipher/crc.c
29074 * lib/libgcrypt/cipher/des.c
29075 * lib/libgcrypt/cipher/dsa.c
29076 * lib/libgcrypt/cipher/ecc.c
29077 * lib/libgcrypt/cipher/elgamal.c
29078 * lib/libgcrypt/cipher/hash-common.c
29079 * lib/libgcrypt/cipher/hash-common.h
29080 * lib/libgcrypt/cipher/hmac-tests.c
29081 * lib/libgcrypt/cipher/md.c
29082 * lib/libgcrypt/cipher/md4.c
29083 * lib/libgcrypt/cipher/md5.c
29084 * lib/libgcrypt/cipher/primegen.c
29085 * lib/libgcrypt/cipher/pubkey.c
29086 * lib/libgcrypt/cipher/rfc2268.c
29087 * lib/libgcrypt/cipher/rijndael-tables.h
29088 * lib/libgcrypt/cipher/rijndael.c
29089 * lib/libgcrypt/cipher/rmd.h
29090 * lib/libgcrypt/cipher/rmd160.c
29091 * lib/libgcrypt/cipher/rsa.c
29092 * lib/libgcrypt/cipher/seed.c
29093 * lib/libgcrypt/cipher/serpent.c
29094 * lib/libgcrypt/cipher/sha1.c
29095 * lib/libgcrypt/cipher/sha256.c
29096 * lib/libgcrypt/cipher/sha512.c
29097 * lib/libgcrypt/cipher/tiger.c
29098 * lib/libgcrypt/cipher/twofish.c
29099 * lib/libgcrypt/cipher/whirlpool.c
29101 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29103 Fix build for systems without error().
29105 * gnulib/error.c: New file (imported from Gnulib).
29106 * gnulib/error.h: Likewise.
29107 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
29108 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
29109 (this variable is now used by error()).
29111 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
29113 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
29114 instead of relying that char is signed.
29116 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
29118 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
29119 blocksize different from specified.
29120 (grub_pxefs_read): Likewise.
29122 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
29124 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
29126 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
29127 (grub_ata_readwrite): Likewise. Update 2 format strings.
29128 (grub_atapi_read): Likewise.
29130 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
29131 * conf/i386.rmk (pkglib_MODULES): ... to here ...
29132 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
29133 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
29134 (ata_mod_LDFLAGS): Move from here ...
29135 * conf/i386.rmk: ... to here ...
29136 * conf/x86_64-efi.rmk: ... and here.
29137 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
29138 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
29140 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29142 Relicense multiboot.h, with RMS' blessing.
29144 * include/multiboot.h: Change to X11 license.
29146 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
29148 Support --version in grub-mkisofs.
29150 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
29151 (OPTION_VERSION): New macro.
29152 (ld_options): Recognize --version.
29153 (usage): Move `program_name' from here ...
29154 (program_name): ... to here. Add `static' qualifier.
29155 (main): Recognize `OPTION_VERSION'.
29157 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
29159 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
29160 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
29162 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
29164 Fix help2man generation for mkisofs.
29166 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
29167 (usage): Send output to stdout (rather than stderr).
29169 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
29171 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
29172 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
29173 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
29174 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
29175 (bin_SCRIPTS): Add `grub-mkfloppy'.
29176 (grub_mkfloppy_SOURCES): New variable.
29178 * util/grub-mkrescue.in: New file.
29179 * util/i386/pc/grub-mkfloppy.in: New file.
29181 * util/i386/coreboot/grub-mkrescue.in: Remove.
29182 * util/i386/pc/grub-mkrescue.in: Remove.
29184 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29186 * include/grub/multiboot.h (struct grub_multiboot_header): Move
29188 * include/multiboot.h (struct multiboot_header): ... to here. Update
29190 * include/grub/multiboot.h (struct grub_multiboot_info): Move
29192 * include/multiboot.h (struct multiboot_info): ... to here. Update
29194 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
29196 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
29198 * include/grub/multiboot.h (struct grub_mod_list): Move
29200 * include/multiboot.h (struct multiboot_mod_list): ... to here.
29203 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29205 * include/multiboot2.h (multiboot_word): Rename from this ...
29206 (multiboot2_word): ... to this. Update all users.
29207 (multiboot_header): Rename from this ...
29208 (multiboot2_header): ... to this. Update all users.
29209 (multiboot_tag_header): Rename from this ...
29210 (multiboot2_tag_header): ... to this. Update all users.
29211 (multiboot_tag_start): Rename from this ...
29212 (multiboot2_tag_start): ... to this. Update all users.
29213 (multiboot_tag_name): Rename from this ...
29214 (multiboot2_tag_name): ... to this. Update all users.
29215 (multiboot_tag_module): Rename from this ...
29216 (multiboot2_tag_module): ... to this. Update all users.
29217 (multiboot_tag_memory): Rename from this ...
29218 (multiboot2_tag_memory): ... to this. Update all users.
29219 (multiboot_tag_unused): Rename from this ...
29220 (multiboot2_tag_unused): ... to this. Update all users.
29221 (multiboot_tag_end): Rename from this ...
29222 (multiboot2_tag_end): ... to this. Update all users.
29224 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29226 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
29227 this platform we should support Multiboot1 first.
29229 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
29230 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
29231 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
29233 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
29235 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
29236 of write calls (converting them to fwrite() if they aren't already).
29237 (get_torito_desc): Likewise.
29238 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
29240 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
29242 * util/i386/pc/grub-install.in: Move from here ...
29243 * util/grub-install.in: ... to here. Update all users.
29245 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
29247 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
29249 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
29251 Support for El Torito without floppy emulation.
29253 * util/mkisofs/eltorito.c: Include `<errno.h>'.
29254 (init_boot_catalog): Improve error handling.
29255 (get_torito_desc): Don't use floppy emulation unless requested by
29256 user. Patch boot information table when requested via
29257 `-boot-info-table'.
29258 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
29259 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
29260 (use_boot_info_table): New variables.
29261 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
29262 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
29263 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
29264 `--eltorito-emul-floppy'.
29265 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
29266 and `OPTION_ELTORITO_EMUL_FLOPPY'.
29267 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
29268 (use_boot_info_table, get_731): New prototypes.
29269 * util/mkisofs/write.c (get_731): New function.
29271 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
29273 Fix the generation of the man page.
29275 * util/pc/i386/grub-install.in: Source
29276 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
29278 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
29280 Large file support for grub-mkisofs.
29282 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
29283 * util/mkisofs/mkisofs.c (next_extent, last_extent)
29284 (session_start): Upgrade type to `uint64_t'. Update all users.
29285 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
29286 (struct directory_entry): Upgrade type of `starting_block' and
29287 `size' to `uint64_t'. Update all users.
29288 (struct deferred): Remove unused structure.
29289 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
29291 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
29292 file is larger than `UINT32_MAX'.
29293 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
29294 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
29296 (struct deferred_write): Upgrade type of `extent' and `size' to
29297 `uint64_t'. Update all users.
29298 (last_extent_written): Upgrade type to `uint64_t'. Update all
29300 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
29301 Update all users. Upgrade type of `remain' to `int64_t' and
29302 `use' to `size_t'. Use error() to handle fread() errors.
29303 (write_files): Rely on write_one_file() rather than calling
29304 xfwrite() directly.
29306 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
29308 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
29310 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29312 * util/mkisofs/fnmatch.c: Remove.
29313 * util/mkisofs/getopt1.c: Likewise.
29314 * util/mkisofs/getopt.c: Likewise.
29315 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
29316 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
29317 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
29318 `gnulib/getopt1.c' and `gnulib/getopt.c'.
29319 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
29321 * configure.ac: Detect `mingw32msvc' host_os.
29322 Check for lstat(), getuid() and getgid().
29324 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
29325 instances of `u_char' with `uint8_t'.
29327 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
29328 [!HAVE_GETUID] (getuid): New function (stub).
29329 [!HAVE_GETGID] (getgid): Likewise.
29330 [!HAVE_LSTAT] (lstat): Likewise.
29331 [!S_IROTH] (S_IROTH): New macro (dummy).
29332 [!S_IRGRP] (S_IRGRP): Likewise.
29334 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29336 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
29337 conditional expression).
29339 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29341 Import from Gnulib.
29343 * gnulib/fnmatch.c: New file.
29344 * gnulib/fnmatch.h: Likewise.
29345 * gnulib/fnmatch_loop.c: Likewise.
29346 * gnulib/getopt.c: Likewise.
29347 * gnulib/getopt.h: Likewise.
29348 * gnulib/getopt1.c: Likewise.
29349 * gnulib/getopt_int.h: Likewise.
29350 * gnulib/gettext.h: Likewise.
29352 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29354 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
29355 * normal/handler.c (read_handler_list): Likewise.
29357 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29361 * kern/command.c (grub_register_command_prio): Use
29362 grub_zalloc() instead of explicitly zeroing data.
29363 * kern/list.c: Include `<grub/mm.h>'.
29364 (grub_named_list_find): Replace `0' with `NULL'.
29365 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
29366 (fs_module_list): Change type to `grub_named_list_t'. Update all
29368 * normal/dyncmd.c (read_command_list): Add space between function
29369 call and parenthesis.
29370 * normal/handler.c (read_handler_list): Likewise.
29372 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29374 * normal/auth.c (punishment_delay): Moved from here ...
29375 (grub_auth_strcmp): ... to here (inside function).
29377 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29379 * include/grub/list.h (struct grub_named_list): Remove `const'
29380 qualifier from `name'.
29381 (struct grub_prio_list): Likewise.
29383 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29385 * normal/auth.c: Include `<grub/time.h>'.
29386 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
29388 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29390 * normal/auth.c (punishment_delay): New variable.
29391 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
29392 (grub_auth_check_authentication): Punish failed login attempts with
29393 an incremental (2^N) delay.
29395 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29397 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
29398 path with $(srcdir).
29400 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
29402 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
29404 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29406 * util/i386/coreboot/grub-mkrescue.in: New file.
29407 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
29410 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
29411 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
29412 * configure.ac: Add header and function checks to satisfy grub-mkisofs
29414 * util/mkisofs/defaults.h: New file.
29415 * util/mkisofs/eltorito.c: Likewise.
29416 * util/mkisofs/exclude.h: Likewise.
29417 * util/mkisofs/fnmatch.c: Likewise.
29418 * util/mkisofs/getopt.c: Likewise.
29419 * util/mkisofs/getopt1.c: Likewise.
29420 * util/mkisofs/hash.c: Likewise.
29421 * util/mkisofs/include/fctldefs.h: Likewise.
29422 * util/mkisofs/include/mconfig.h: Likewise.
29423 * util/mkisofs/include/prototyp.h: Likewise.
29424 * util/mkisofs/include/statdefs.h: Likewise.
29425 * util/mkisofs/iso9660.h: Likewise.
29426 * util/mkisofs/joliet.c: Likewise.
29427 * util/mkisofs/match.c: Likewise.
29428 * util/mkisofs/match.h: Likewise.
29429 * util/mkisofs/mkisofs.c: Likewise.
29430 * util/mkisofs/mkisofs.h: Likewise.
29431 * util/mkisofs/multi.c: Likewise.
29432 * util/mkisofs/name.c: Likewise.
29433 * util/mkisofs/rock.c: Likewise.
29434 * util/mkisofs/tree.c: Likewise.
29435 * util/mkisofs/write.c: Likewise.
29437 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
29439 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
29442 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29444 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
29445 `grub-mkimage' (and use $0 when possible).
29447 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29449 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
29450 error message for excessively large memory map.
29452 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29454 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
29457 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29459 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
29460 message for coreboot users.
29462 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
29464 Fix build with GNU gold.
29466 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
29467 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
29468 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
29470 * aclocal.m4: Likewise.
29472 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
29474 * configure.ac (AC_PREREQ): Bump to 2.59d.
29475 * INSTALL: Make it more clear when Autoconf and Ruby are
29476 needed and when to run `./autogen.sh'.
29478 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29480 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
29483 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29485 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
29487 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29489 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
29490 giving it to GNU Mach.
29492 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29494 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
29495 GNU partition number to get internal GRUB partition number.
29497 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29499 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
29500 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
29502 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
29504 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
29505 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
29508 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
29510 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
29512 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
29516 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
29517 `-isystem=$(srcdir)/include'.
29519 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
29521 * util/i386/pc/grub-install.in: Remove hint that device.map should be
29522 checked (grub-install doesn't currently rely on it).
29524 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
29528 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
29529 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
29530 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
29531 * conf/i386-ieee1275.rmk: Likewise.
29532 * conf/i386-pc.rmk: Likewise.
29533 * conf/powerpc-ieee1275.rmk: Likewise.
29534 * conf/sparc64-ieee1275.rmk: Likewise.
29535 * conf/x86_64-efi.rmk: Likewise.
29537 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29539 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
29541 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29543 * include/grub/misc.h: Stop checking for APPLE_CC.
29545 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29547 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
29548 doesn't cause an infinite call loop.
29550 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
29552 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
29555 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29557 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
29559 * Makefile.in: Likewise.
29561 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29563 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
29565 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29567 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
29569 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29571 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
29573 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29575 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
29577 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
29579 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29581 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
29582 in $(MAKEINFO) invocation. This makes it clear in output that
29583 errors are being ignored.
29585 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29587 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
29589 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
29590 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
29591 * conf/i386-ieee1275.rmk: Likewise.
29592 * conf/i386-pc.rmk: Likewise.
29593 * conf/powerpc-ieee1275.rmk: Likewise.
29594 * conf/sparc64-ieee1275.rmk: Likewise.
29595 * conf/x86_64-efi.rmk: Likewise.
29597 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
29599 * util/grub-editenv.c (main): If only a command is given, use
29600 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
29601 (usage): FILENAME is now optional and has a default.
29603 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
29605 Improve grub-mkconfig performance when there are several menu
29606 entries on a single filesystem.
29608 * util/grub.d/10_linux.in (linux_entry): Cache the output of
29609 prepare_grub_to_access_device.
29610 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29611 * util/grub.d/30_os-prober.in: Likewise.
29613 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29615 * util/grub.d/10_freebsd.in: Remove.
29616 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
29617 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
29619 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29621 * docs/grub.cfg: Fix example usage of *BSD loaders.
29623 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29625 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
29626 grub_util_error() call.
29628 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29630 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
29631 `reserved_first_sector' member.
29632 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
29633 `reserved_first_sector' to 1.
29634 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
29635 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
29636 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
29637 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
29638 filesystems which begin at first sector.
29639 (options): New option --skip-fs-probe.
29640 (main): Handle --skip-fs-probe and pass it to setup().
29642 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29644 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
29645 (memset): Fix function prototype.
29647 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29648 2009-10-25 Vasily Averin <vvs@parallels.com>
29650 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
29651 `dirent.direntlen == 0'.
29653 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29655 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
29657 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
29659 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29661 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
29662 `__trampoline_setup' and `__ucmpdi2'.
29663 * include/grub/powerpc/libgcc.h: Only export symbols for functions
29664 that libgcc provides.
29666 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29668 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
29669 * include/grub/sparc64/libgcc.h (memset): Likewise.
29670 * include/grub/misc.h (memset, memcmp): New function prototypes.
29672 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29674 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
29676 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
29678 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29680 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
29681 * docs/grub.cfg: Compensate for recent change in multiboot
29682 loader (since 2009-08-14 it won't pass filename to payload).
29683 * util/grub.d/10_hurd.in: Likewise.
29685 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
29687 * config.guess: Update to latest version from config git
29689 * config.sub: Likewise.
29691 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
29693 Fix build on sparc64.
29695 * configure.ac: Perform checks for libgcc symbols before
29696 adding `-nostdlib' to LDFLAGS.
29698 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29700 Let user specify OpenBSD root device.
29702 * loader/i386/bsd.c (openbsd_root): New variable.
29703 (openbsd_opts): New option 'root'.
29704 (OPENBSD_ROOT_ARG): New macro.
29705 (grub_openbsd_boot): Use 'openbsd_root'.
29706 (grub_cmd_openbsd): Fill 'openbsd_root'.
29708 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29710 * NEWS: Misc adjustments.
29712 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29714 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
29716 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29718 * configure.ac: Bump version to 1.97.
29720 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
29722 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
29723 -mno-3dnow on x86 architectures. Some toolchains enable these
29724 features by default, but they rely on registers that aren't enabled
29725 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
29727 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
29729 Make entry text a bit more readable.
29731 * util/grub.d/10_linux.in: Add `with' before `Linux'.
29733 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29735 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
29737 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29739 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
29742 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29744 * configure.ac: Add missing dollar.
29746 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29748 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
29750 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
29751 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
29753 * include/grub/sparc64/libgcc.h: Likewise. Use
29754 preprocessor conditionals.
29756 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29758 * conf/common.rmk (grub-dumpbios): Remove rule.
29759 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
29760 * util/grub-dumpbios.in: Remove file.
29762 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29764 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
29765 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
29767 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
29768 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
29771 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
29772 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
29773 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
29774 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
29777 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
29779 * term/tparm.c: Switch to GPLv3.
29781 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29783 * include/grub/i386/cpuid.h: Add header protection.
29785 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29787 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
29789 * include/grub/i386/cpuid.h: New file.
29790 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
29791 (has_longmode): Rename to ...
29792 (grub_cpuid_has_longmode): ... this. Update all users. Remove
29793 `static' attribute.
29794 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
29795 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
29796 on a CPU that doesn't implement AMD64 instruction set.
29798 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
29800 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
29801 that version.texi is rebuilt on version number changes.
29803 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
29805 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
29808 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
29810 * util/i386/pc/grub-install.in: Source
29811 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
29812 that the --grub-probe option will work.
29813 * util/sparc64/ieee1275/grub-install.in: Likewise.
29815 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
29817 * configure.ac: Bump version to 1.97~beta4.
29819 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
29821 Resync grub-mkdevicemap in x86_64-efi.
29823 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
29824 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
29825 `util/devicemap.c'.
29827 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
29829 * util/grub-editenv.c (create_envblk_file): Write new block with a
29830 .new suffix and then rename it into place, to ensure atomic
29833 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
29835 Do not automatically install headers.
29837 * Makefile.in (include_DATA): Remove. Update all users.
29839 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
29841 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
29842 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
29844 * util/osdetect.lua: Remove.
29845 * script/lua/lauxlib.c: Likewise.
29846 * script/lua/ldebug.c: Likewise.
29847 * script/lua/grub_main.c: Likewise.
29848 * script/lua/lauxlib.h: Likewise.
29849 * script/lua/ldebug.h: Likewise.
29850 * script/lua/ltablib.c: Likewise.
29851 * script/lua/liolib.c: Likewise.
29852 * script/lua/lstrlib.c: Likewise.
29853 * script/lua/lualib.h: Likewise.
29854 * script/lua/ldo.c: Likewise.
29855 * script/lua/ldump.c: Likewise.
29856 * script/lua/ldo.h: Likewise.
29857 * script/lua/loslib.c: Likewise.
29858 * script/lua/lundump.c: Likewise.
29859 * script/lua/grub_lib.c: Likewise.
29860 * script/lua/ldblib.c: Likewise.
29861 * script/lua/lundump.h: Likewise.
29862 * script/lua/lmem.c: Likewise.
29863 * script/lua/grub_lib.h: Likewise.
29864 * script/lua/lmathlib.c: Likewise.
29865 * script/lua/lstate.c: Likewise.
29866 * script/lua/ltm.c: Likewise.
29867 * script/lua/lvm.c: Likewise.
29868 * script/lua/lmem.h: Likewise.
29869 * script/lua/lstate.h: Likewise.
29870 * script/lua/ltm.h: Likewise.
29871 * script/lua/ltable.c: Likewise.
29872 * script/lua/lvm.h: Likewise.
29873 * script/lua/llex.c: Likewise.
29874 * script/lua/lgc.c: Likewise.
29875 * script/lua/grub_lua.h: Likewise.
29876 * script/lua/loadlib.c: Likewise.
29877 * script/lua/lfunc.c: Likewise.
29878 * script/lua/lopcodes.c: Likewise.
29879 * script/lua/lparser.c: Likewise.
29880 * script/lua/ltable.h: Likewise.
29881 * script/lua/llex.h: Likewise.
29882 * script/lua/lgc.h: Likewise.
29883 * script/lua/lfunc.h: Likewise.
29884 * script/lua/lbaselib.c: Likewise.
29885 * script/lua/lopcodes.h: Likewise.
29886 * script/lua/lparser.h: Likewise.
29887 * script/lua/lzio.c: Likewise.
29888 * script/lua/linit.c: Likewise.
29889 * script/lua/lobject.c: Likewise.
29890 * script/lua/llimits.h: Likewise.
29891 * script/lua/lstring.c: Likewise.
29892 * script/lua/lzio.h: Likewise.
29893 * script/lua/lapi.c: Likewise.
29894 * script/lua/lcode.c: Likewise.
29895 * script/lua/lua.h: Likewise.
29896 * script/lua/lobject.h: Likewise.
29897 * script/lua/lstring.h: Likewise.
29898 * script/lua/lapi.h: Likewise.
29899 * script/lua/lcode.h: Likewise.
29900 * script/lua/luaconf.h: Likewise.
29902 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
29904 * docs/grub.texi (Command-line and menu entry commands): Document
29905 date and echo commands.
29907 2009-09-24 Pavel Roskin <proski@gnu.org>
29909 * include/grub/kernel.h (struct grub_module_header): Remove
29910 `grub_module_header_types'. Make `type' unsigned. Make `size'
29911 32-bit on all platforms.
29912 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
29913 8-bit field. Use grub_host_to_target32() for `size'.
29914 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
29915 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
29916 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
29918 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29920 Fix "lost keypress" bug in at_keyboard.
29922 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
29923 Checks for readyness of input buffer (without flushing it).
29924 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
29925 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
29927 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29929 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
29930 size check within GRUB_MACHINE_PCBIOS section.
29932 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29934 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
29936 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
29937 KEYBOARD_ISREADY check.
29938 (grub_at_keyboard_checkkey): Rename to ...
29939 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
29940 Remove gratuitous cast.
29942 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
29944 * configure.ac: Call AC_PROG_MKDIR_P.
29945 * Makefile.in (docs/stamp-vti): Create docs directory. Create
29946 version.texi in $(builddir) rather than $(srcdir).
29947 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
29948 to makeinfo's @include search path.
29950 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
29952 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
29954 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
29956 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
29959 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
29961 Build info documentation. Some code borrowed from Automake.
29963 * configure.ac: Check for makeinfo.
29964 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
29965 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
29967 (MOSTLYCLEANFILES): Add vti.tmp.
29968 (docs/version.texi, docs/stamp-vti): Update automatically.
29969 (docs/grub.info): Build info documentation. Use --force and ignore
29971 (all-local): Add $(INFOS).
29972 (install-local): Install info files.
29973 (uninstall): Uninstall info files.
29974 * docs/version.texi: Remove from revision control. This file is
29975 automatically generated on build now.
29976 * gendistlist.sh: Add `*.info'.
29978 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
29980 * kern/term.c: Fix indentation.
29982 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
29984 * util/hostdisk.c: Fix a comment.
29986 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
29988 Fix regression introduced in r2539.
29990 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
29993 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
29995 * util/grub.d/30_os-prober.in: Don't throw away stderr from
29996 os-prober. Under normal operation, it does not print anything to
29997 stderr; if it does, we need to debug it, and throwing away stderr
29998 makes that excessively difficult.
30000 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
30002 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
30004 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
30006 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
30007 AC_LANG_PROGRAM from autoconf.
30008 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
30009 prototypes (fixes warning).
30011 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
30012 `--disable-werror' was used.
30014 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
30016 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
30017 uninitialized `lastaddr'.
30019 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
30021 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
30023 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
30025 * commands/test.c (get_fileinfo): Return immediately if
30026 grub_fs_probe fails.
30028 2009-09-14 José Martínez <xosemp@gmail.com>
30030 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
30032 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
30034 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
30037 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
30039 * configure.ac: Remove --enable-grub-pe2elf. Only build
30040 grub-pe2elf when needed by the build system itself.
30041 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
30043 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30045 * configure.ac: Bump version to 1.97~beta3.
30046 * docs/version.texi: Likewise.
30048 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30050 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
30051 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
30053 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
30054 (grub_linux_setup_video): ... to here (with some adjustments).
30056 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30058 Fix memory corruption issue (spotted by Colin Watson).
30060 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
30061 causing returned size to be stored in an incorrect memory location.
30062 Fix use of uninitialized value when storing the returned size.
30064 2009-09-12 Yves Blusseau <blusseau@zetam.org>
30066 Change clean rules to properly remove files
30068 * genmk.rb: add new clean rules
30069 * Makefile.in (clean): add the new targets
30070 (mostlyclean): likewise
30072 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
30074 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
30076 * fs/ntfs.c (init_file): Understand 64-bit sizes for
30077 non-resident files.
30079 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
30081 * configure.ac: Don't look for help2man when cross-compiling. Fixes
30082 part of bug #27349.
30084 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
30086 * util/grub-mkconfig.in: Make the created config mode 400 and
30087 print a warning if it fails.
30089 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
30091 * util/grub.d/40_custom.in: Ask user to type custom entries below
30092 comment, rather than below 'exec tail' line.
30094 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
30096 * util/grub.d/40_custom.in: Make sure that the explanatory text is
30097 visible in grub.cfg.
30099 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
30101 * util/grub.d/40_custom.in: Make it a little clearer how to use this
30104 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
30106 * docs/grub.cfg: Add an example menu entry for memtest86+.
30108 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
30110 * config.guess: Update to latest version from config git.
30111 * config.sub: Likewise.
30113 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
30115 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
30116 unknown-command case. Fixes bug #27320.
30118 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
30120 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
30121 `help' if the command exists.
30123 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
30125 * INSTALL: Require GCC 4.1.3 or later.
30127 2009-09-06 Yves Blusseau <blusseau@zetam.org>
30129 * Makefile.in (RMKFILES): add i386-qemu.rmk
30130 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
30131 $(srcdir)/stamp-h.in
30133 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
30135 * util/grub-probe.c (probe): Comment out buggy codepath, which
30136 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
30137 should be re-enabled after 1.97.
30139 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
30141 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
30144 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
30146 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
30147 unnecessary calls to grub_error.
30149 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
30151 * NEWS: Mention `keystatus' and Unicode fonts.
30153 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
30155 * configure.ac: Bump version to 1.97~beta2.
30156 * docs/version.texi: Likewise.
30158 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
30160 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
30161 containing unwind information in some cases where it previously did
30162 not. Use -fno-dwarf2-cfi-asm if available to restore the old
30163 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
30166 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
30168 Embedding loadenv module into grub-emu
30170 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
30172 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
30173 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
30174 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
30175 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
30176 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
30177 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
30179 2009-09-03 Magnus Granberg <zorry@ume.nu>
30181 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
30182 include -fPIE in the default specs.
30183 * configure.ac: Check if pie_possible is yes and add -fno-PIE
30186 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
30188 * INSTALL: Note that GNU Bison 2.3 or later is required.
30190 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
30192 * kern/i386/pc/startup.S: Fix typo.
30194 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
30196 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
30199 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30201 * docs/grub.texi (Naming convention): Describe one-based partition
30203 (Device syntax): Likewise.
30204 (File name syntax): Likewise.
30205 (Block list syntax): Likewise.
30206 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
30208 (File name syntax): Likewise.
30209 (Command-line and menu entry commands): Document acpi, blocklist,
30210 crc, export, insmod, keystatus, ls, set, and unset commands.
30212 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30214 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
30215 to avoid implying that only one of --shift, --ctrl, or --alt may be
30218 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30220 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
30221 rather than comparing against S_IFREG, which will almost never work.
30223 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
30225 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
30226 (write_blocklists): Likewise.
30228 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
30230 * script/lua/grub_lua.h (fputs): Supply a format string as the first
30231 argument to grub_printf.
30233 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
30235 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
30238 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
30240 * kern/file.c (grub_file_read): Spelling fix
30242 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
30244 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
30245 loading of headers in some cases.
30247 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
30249 * configure.ac: Bump version to 1.97~beta1.
30250 * docs/version.texi: Likewise.
30252 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
30254 * include/grub/i386/xnu.h: Add license header.
30255 include grub/err.h explicitly.
30257 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
30259 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
30260 to `ufs' in the vfs.root.mountfrom kernel parameter.
30262 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
30264 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
30266 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
30267 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
30269 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
30270 `ARRAY_SIZE' macro.
30272 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30274 * kern/file.c (grub_file_read): Check offset.
30275 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
30276 * fs/jfs.c (grub_jfs_read_file): Likewise.
30277 * fs/ntfs.c (grub_ntfs_read): Likewise.
30278 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
30279 * fs/minix.c (grub_minix_read_file): Correct offset check.
30280 * fs/ufs.c (grub_ufs_read_file): Likewise.
30282 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30284 * term/i386/pc/console.c (bios_data_area): Cast
30285 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
30287 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30289 1-bit optimised blitters.
30291 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
30293 (grub_video_fbblit_replace_24bit_1bit): Likewise.
30294 (grub_video_fbblit_replace_16bit_1bit): Likewise.
30295 (grub_video_fbblit_replace_8bit_1bit): Likewise.
30296 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
30297 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
30298 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
30299 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
30301 (grub_video_fbblit_replace_24bit_1bit): Likewise.
30302 (grub_video_fbblit_replace_16bit_1bit): Likewise.
30303 (grub_video_fbblit_replace_8bit_1bit): Likewise.
30304 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
30305 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
30306 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
30307 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
30309 * video/video.c (grub_video_get_blit_format): Return
30310 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
30312 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30314 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
30315 the first argument to grub_printf.
30317 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30318 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
30320 Add `getkeystatus' terminal method. Add a new `keystatus' command
30323 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
30324 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
30325 modifier key bitmasks.
30326 (struct grub_term_input): Add `getkeystatus' member.
30327 (grub_getkeystatus): Add prototype.
30328 * kern/term.c (grub_getkeystatus): New function.
30330 * include/grub/i386/pc/memory.h
30331 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
30332 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
30334 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
30335 (grub_console_term_input): Set `getkeystatus' member.
30336 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
30338 (grub_usb_keyboard_getreport): Likewise.
30339 (grub_usb_keyboard_checkkey): Likewise.
30340 (grub_usb_keyboard_getkeystatus): New function.
30341 (grub_usb_keyboard_term): Set `getkeystatus' member.
30343 * commands/keystatus.c: New file.
30344 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
30345 (keystatus_mod_SOURCES): New variable.
30346 (keystatus_mod_CFLAGS): Likewise.
30347 (keystatus_mod_LDFLAGS): Likewise.
30348 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
30349 commands/keystatus.c.
30350 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30351 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30352 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30354 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30355 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30357 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30359 Split befs.mod and afs.mod into *_be.mod and *.mod
30361 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
30362 (grub_fstest_SOURCES): Likewise.
30363 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
30364 (afs_be_mod_SOURCES): New variable.
30365 (afs_be_mod_CFLAGS): Likewise.
30366 (afs_be_mod_LDFLAGS): Likewise.
30367 (befs_be_mod_SOURCES): Likewise.
30368 (befs_be_mod_CFLAGS): Likewise.
30369 (befs_be_mod_LDFLAGS): Likewise.
30370 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
30371 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30372 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30373 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30374 (grub_emu_SOURCES): Likewise.
30375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30376 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30377 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30378 * fs/afs_be.c: New file.
30379 * fs/befs_be.c: New file.
30380 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
30381 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
30382 (U16): Replaced with ...
30383 (grub_afs_to_cpu16): ...this. All users updated.
30384 (U32): Replaced with ...
30385 (grub_afs_to_cpu32): ...this. All users updated.
30386 (U64): Replaced with ...
30387 (grub_afs_to_cpu64): ...this. All users updated.
30388 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
30389 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
30390 (grub_afs_validate_sblock): Check only one endianness.
30391 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
30392 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
30393 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
30394 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
30395 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
30396 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
30397 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
30398 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
30400 2009-08-26 Bean <bean123ch@gmail.com>
30402 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
30404 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
30405 (grub_xfs_inode_block): Change return type to grub_uint64_t.
30406 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
30408 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30410 NetBSD memory map support.
30412 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
30413 (grub_netbsd_btinfo_mmap_header): New structure.
30414 (grub_netbsd_btinfo_mmap_entry): Likewise.
30415 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
30417 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30419 Enable bsd.mod on coreboot.
30421 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
30422 (bsd_mod_SOURCES): New variable.
30423 (bsd_mod_CFLAGS): Likewise.
30424 (bsd_mod_LDFLAGS): Likewise.
30425 (bsd_mod_ASFLAGS): Likewise.
30426 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
30427 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
30429 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30431 Cleanup NetBSD root support.
30433 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
30434 grub_bsd_get_device.
30437 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
30439 * util/grub.d/00_header.in: Move check for the video backend of
30440 gfxterm from here ...
30441 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
30442 a suitable video backend.
30444 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30446 Fix breakage in grub-setup.
30448 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
30449 "msdos_partition_map".
30451 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30453 Fix breakage in normal/auth.c.
30455 * normal/auth.c (grub_iswordseparator): New function.
30457 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30459 Authentication support.
30461 * commands/password.c: New file.
30462 * conf/common.rmk (pkglib_MODULES): Add password.mod.
30463 (password_mod_SOURCES): New variable.
30464 (password_mod_CFLAGS): Likewise.
30465 (password_mod_LDFLAGS): Likewise.
30466 (normal_mod_SOURCES): Add normal/auth.c.
30467 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
30469 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30470 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30471 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30472 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30473 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30474 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30475 * include/grub/auth.h: New file.
30476 * include/grub/err.h (grub_err_t): New enum value
30477 GRUB_ERR_ACCESS_DENIED.
30478 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
30480 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
30481 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
30483 * normal/auth.c: New file.
30484 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
30485 (grub_cmdline_run): Don't allow to go to command line without
30487 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
30488 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
30489 menuentry without superuser rights.
30490 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
30491 user isn't a superuser.
30493 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30495 Save space by inlining misc.c functions.
30497 * kern/misc.c (grub_iswordseparator): Made static.
30498 * kern/misc.c (grub_strcat): Moved from here ...
30499 * include/grub/misc.h (grub_strcat): ... here. Inlined.
30500 * kern/misc.c (grub_strncat): Moved from here ...
30501 * include/grub/misc.h (grub_strncat): ... here. Inlined.
30502 * kern/misc.c (grub_strcasecmp): Moved from here ...
30503 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
30504 * kern/misc.c (grub_strncasecmp): Moved from here ...
30505 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
30506 * kern/misc.c (grub_isalpha): Moved from here ...
30507 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
30508 * kern/misc.c (grub_isdigit): Moved from here ...
30509 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
30510 * kern/misc.c (grub_isgraph): Moved from here ...
30511 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
30512 * kern/misc.c (grub_tolower): Moved from here ...
30513 * include/grub/misc.h (grub_tolower): ... here. Inlined.
30515 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30517 * script/sh/function.c (grub_script_function_find): Cut error message
30518 not to flood terminal.
30519 * script/sh/lexer.c (grub_script_yylex): Remove command line length
30521 * script/sh/script.c (grub_script_arg_add): Duplicate string.
30523 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
30525 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
30526 `report' grub_uint8_t *.
30527 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
30528 Use a 50-millisecond timeout rather than just repeating
30529 grub_usb_keyboard_getreport 50 times.
30530 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
30532 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30534 Rename *_partition_map to part_*
30536 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
30537 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
30538 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
30539 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
30541 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
30543 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
30544 * util/grub-probe.c (probe_partmap): Don't transform partition name
30545 to get module name.
30547 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30549 Fix OpenBSD and NetBSD support.
30551 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
30552 memory address conflict.
30553 (OPENBSD_MMAP_ACPI): New definition.
30554 (OPENBSD_MMAP_NVS): Likewise.
30555 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
30556 and OPENBSD_MMAP_NVS.
30557 Add memory map terminator
30558 Explicit cast when calling grub_unix_real_boot.
30559 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
30561 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30563 Let user specify NetBSD root device.
30565 * loader/i386/bsd.c (netbsd_root): New variable.
30566 (netbsd_opts): New option 'root'.
30567 (NETBSD_ROOT_ARG): New macro.
30568 (grub_netbsd_boot): Use 'netbsd_root'.
30569 (grub_bsd_unload): Free 'netbsd_root'.
30570 (grub_cmd_netbsd): Fill 'netbsd_root'.
30572 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30574 Support for 64-bit NetBSD.
30576 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
30577 point when booting non-FreeBSD.
30579 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30581 Support --no-smp and --no-acpi for NetBSD.
30583 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
30584 (NETBSD_AB_NOACPI): Likewise.
30585 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
30586 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
30588 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30590 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
30592 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
30593 errors. Call grub_error when needed.
30595 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30597 * commands/search.c (search_fs): Try searching without autoload first.
30598 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
30599 filesystem module explicitly for faster booting.
30601 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
30603 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
30605 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
30607 * util/grub.d/30_os-prober.in: Disable os-prober if
30608 `GRUB_DISABLE_OS_PROBER' was set to true.
30610 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
30612 * partmap/pc.c: Rename to ...
30613 * partmap/msdos.c: ... this. Update all users.
30614 (grub_pc_partition_map): Rename to ...
30615 (grub_msdos_partition_map): ... this. Update all users.
30617 * parttool/pcpart.c: Rename to ...
30618 * parttool/msdospart.c: ... this. Update all users.
30620 * include/grub/pc_partition.h: Rename to ...
30621 * include/grub/msdos_partition.h: ... this. Update all users.
30622 (grub_pc_partition_bsd_entry): Rename to ...
30623 (grub_msdos_partition_bsd_entry): ... this. Update all users.
30624 (grub_pc_partition_disk_label): Rename to ...
30625 (grub_msdos_partition_disk_label): ... this. Update all users.
30626 (grub_pc_partition_entry): Rename to ...
30627 (grub_msdos_partition_entry): ... this. Update all users.
30628 (grub_pc_partition_mbr): Rename to ...
30629 (grub_msdos_partition_mbr): ... this. Update all users.
30630 (grub_pc_partition): Rename to ...
30631 (grub_msdos_partition): ... this. Update all users.
30632 (grub_pc_partition_is_empty): Rename to ...
30633 (grub_msdos_partition_is_empty): ... this. Update all users.
30634 (grub_pc_partition_is_extended): Rename to ...
30635 (grub_msdos_partition_is_extended): ... this. Update all users.
30636 (grub_pc_partition_is_bsd): Rename to ...
30637 (grub_msdos_partition_is_bsd): ... this. Update all users.
30639 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
30640 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
30641 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
30642 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
30643 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
30644 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
30645 (gpt_mod_LDFLAGS): Rename to ...
30646 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
30647 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
30648 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
30649 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
30650 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
30651 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
30652 (part_gpt_mod_LDFLAGS): ... this.
30653 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
30654 `pcpart.mod' to `msdospart.mod'.
30655 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
30657 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
30658 (msdospart_mod_LDFLAGS): ... this.
30660 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30662 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
30663 (openbsd_opts): Likewise.
30664 (netbsd_opts): Likewise.
30665 (freebsd_flags): Added 0 terminator.
30666 (openbsd_flags): Likewise.
30667 (netbsd_flags): Likewise.
30668 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
30669 (grub_cmd_freebsd): Transformed into extended command.
30670 (grub_cmd_openbsd): Likewise.
30671 (grub_cmd_netbsd): Likewise.
30672 (cmd_freebsd): Changed type to grub_extcmd_t.
30673 (cmd_openbsd): Likewise.
30674 (cmd_netbsd): Likewise.
30675 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
30676 grub_cmd_openbsd as extended commands.
30677 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
30678 cmd_netbsd and cmd_openbsd
30680 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
30682 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
30684 2009-08-21 Pavel Roskin <proski@gnu.org>
30686 * Makefile.in (install-local): When checking if a file is in the
30687 build directory, use "test -e" to detect symlinks.
30689 * Makefile.in (install-local): Remove all files in
30690 $(DESTDIR)$(pkglibdir) before installing new files there.
30692 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
30694 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
30697 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
30699 * util/grub-mkconfig.in: Don't use gfxterm by default if not
30700 explicitly specified by the user.
30702 2009-08-18 Pavel Roskin <proski@gnu.org>
30704 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
30705 grub_uint8_t pointer for data.
30706 * include/grub/fbutil.h (struct grub_video_fbblit_info):
30708 * video/fb/fbutil.c: Remove unnecessary casts.
30710 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
30714 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
30715 (grub_vbe_set_video_mode): Save active mode info
30716 only after setting the mode.
30717 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
30720 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
30722 Rename variables for clarity.
30724 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
30725 (active_vbe_mode_info): ... this. All users updated.
30726 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
30728 (initial_mode): Rename to ...
30729 (initial_vbe_mode): ... this. All users updated.
30730 (mode_in_use): Rename to ..
30731 (vbe_mode_in_use): ... this. All users updated.
30732 (mode_list): Rename to ..
30733 (vbe_mode_list): ... this. All users updated.
30734 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
30735 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
30736 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
30737 'mode_list_size' to 'vbe_mode_list_size'.
30738 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
30739 'best_mode_info' to 'best_vbe_mode_info' and
30740 'best_mode' to 'best_vbe_mode'
30742 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
30744 Remove duplicate grub_video_fb_get_video_ptr.
30746 * include/grub/fbutil.h (get_data_ptr): Rename to ...
30747 (grub_video_fb_get_video_ptr): ... this.
30748 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
30749 * video/fb/fbutil.c: Add comment about addressing.
30750 (get_data_ptr): Rename to ...
30751 (grub_video_fb_get_video_ptr): ... this. All users updated.
30752 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
30754 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30756 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
30757 grub_dprintf() that was just added.
30759 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30761 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
30762 (DEFAULT_VIDEO_MODE): Remove macros.
30763 (grub_linux_boot): Remove assumption that Linux has FB support,
30764 and use "text" as default video mode.
30766 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
30768 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
30770 * fs/fat.c (grub_fat_read_data): Likewise.
30772 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30774 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
30776 (grub_module): Likewise.
30778 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30780 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
30781 mbi->cmdline but free playground.
30783 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30785 Handle group offset on UFS1.
30787 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
30788 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
30790 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30792 Split ufs.mod into ufs1.mod and ufs2.mod.
30794 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
30795 (grub_fstest_SOURCES): Likewise.
30796 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
30797 (ufs_mod_SOURCES): Remove.
30798 (ufs_mod_CFLAGS): Likewise.
30799 (ufs_mod_LDFLAGS): Likewise.
30800 (ufs1_mod_SOURCES): New variable.
30801 (ufs1_mod_CFLAGS): Likewise.
30802 (ufs1_mod_LDFLAGS): Likewise.
30803 (ufs2_mod_SOURCES): New variable.
30804 (ufs2_mod_CFLAGS): Likewise.
30805 (ufs2_mod_LDFLAGS): Likewise.
30806 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
30807 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30809 (grub_emu_SOURCES): Likewise.
30810 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30811 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30812 (grub_setup_SOURCES): Likewise.
30813 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30814 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
30815 (grub_setup_SOURCES): Likewise.
30816 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30818 * fs/ufs2.c: New file.
30819 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
30821 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30825 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
30826 subsystem at the end.
30827 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
30828 (video_fb_mod_SOURCES): New variable.
30829 (video_fb_mod_CFLAGS): Likewise.
30830 (video_fb_mod_LDFLAGS): Likewise.
30831 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
30832 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
30833 * video/i386/pc/vbeblit.c: Moved from here ...
30834 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
30835 * video/i386/pc/vbefill.c: Moved from here ...
30836 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
30837 * video/i386/pc/vbeutil.c: Moved from here ...
30838 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
30839 * include/grub/i386/pc/vbeblit.h: Moved from here ...
30840 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
30841 * include/grub/i386/pc/vbefill.h: Moved from here ...
30842 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
30843 * include/grub/i386/pc/vbeutil.h: Moved from here ...
30844 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
30845 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
30846 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
30847 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
30848 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
30849 (grub_video_adapter): Added 'get_info_and_fini'.
30850 (grub_video_get_info_and_fini): New prototype.
30851 (grub_video_set_mode): make modestring const char *.
30852 * loader/i386/linux.c (grub_linux_setup_video): Use
30853 grub_video_get_info_and_fini.
30854 (grub_linux_boot): Move modesetting just before booting.
30855 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
30856 grub_video_get_info_and_fini.
30857 * video/i386/pc/vbe.c: Moved framebuffer part ...
30858 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
30859 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
30860 grub_video_fbstd_colors and grub_video_fb_set_palette.
30861 (grub_video_vbe_init): Clear 'framebuffer' variable and use
30862 grub_video_fb_init.
30863 (grub_video_vbe_fini): Use grub_video_fb_fini.
30864 (grub_video_vbe_setup): Use framebuffer.render_target instead of
30865 render_target and use grub_video_fb_set_active_render_target and
30866 grub_video_fb_set_palette.
30867 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
30868 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
30869 (grub_video_vbe_adapter): Use framebuffer.
30870 * video/video.c (grub_video_get_info_and_fini): New function.
30871 (grub_video_set_mode): Make modestring const char *.
30872 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
30873 values are already initialised.
30875 2009-08-14 Pavel Roskin <proski@gnu.org>
30877 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
30879 * boot/i386/pc/diskboot.S: Likewise.
30880 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
30881 sectors allow compilation on MacOSX.
30882 * conf/i386-pc.rmk: Enable unconditional compilation of
30885 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
30887 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
30888 * util/grub.d/00_header.in: Enter interruptible sleep if
30889 GRUB_HIDDEN_TIMEOUT is set.
30891 2009-08-13 Yves Blusseau <blusseau@zetam.org>
30893 * include/grub/symbol.h: Add the LOCAL macro.
30894 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
30895 starting with "L_".
30897 2009-08-13 Pavel Roskin <proski@gnu.org>
30899 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
30900 any modern compilers we support.
30902 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
30903 Use local labels starting with "L_" so that Apple assembler
30904 knows they are local.
30906 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
30908 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
30909 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
30910 (bsd_kernel_types): ... this enum.
30912 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
30913 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
30914 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
30916 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
30917 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
30918 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
30921 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
30923 * util/grub-dumpdevtree: Moved from here ...
30924 * util/i386/efi/grub-dumpdevtree: ... to here.
30925 (hexify): New function. Converts a string to its hex version.
30926 Generate hex versions of "efi" and "device-properties" by calling
30927 hexify() on the ASCII strings rather than by hardcoding numbers.
30929 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
30931 * fs/jfs.c: Update copyright year.
30933 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
30935 * util/grub.d/00_header.in: Fix a comment.
30936 * util/grub.d/10_linux.in: Likewise.
30937 * util/grub.d/10_windows.in: Likewise.
30938 * util/grub.d/10_hurd.in: Likewise.
30940 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
30942 * util/grub-mkconfig.in: Allow the user to specify the used font
30945 2009-08-08 Pavel Roskin <proski@gnu.org>
30947 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
30948 available, xfs.mod needs it now.
30950 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
30951 the "g" modifier in sed when the intention is to strip something
30952 once. This fixes comparison of kernels with multiple dashes.
30954 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
30955 on it. Add missing space before closing bracket. Fix
30956 misleading formatting.
30958 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30960 * docs/grub.texi: Major overhaul. Remove all sections that are
30961 specific to GRUB Legacy, or mostly composed of Legacy-specific
30964 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30966 * docs/version.texi: New file. Provides version information for
30969 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30971 * docs/grub.texi: Update CVS information to SVN.
30972 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
30974 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
30976 * util/grub-mkconfig.in: Remove a wrong `fi'.
30978 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
30980 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
30981 (grub_jfs_uuid): New function.
30982 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
30984 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
30986 * util/grub-mkconfig_lib.in (font_path): Move the functionality
30988 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
30989 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
30991 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30993 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
30994 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
30997 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
30998 not just "vmlinu[zx]".
30999 Moved from here ...
31000 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
31003 * util/grub.d/10_linux.in (find_latest): Moved from here ...
31004 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
31007 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31009 * util/grub.d/10_freebsd.in: Use an absolute device path for
31010 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
31012 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
31014 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
31015 handling of multiple abstraction modules.
31017 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
31019 Fix a bug resulting in black screen when loading Linux using a
31022 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
31025 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
31026 (grub_vbe_bios_getset_dac_palette_width): New function.
31027 (grub_vbe_bios_get_dac_palette_width)
31028 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
31029 grub_vbe_bios_getset_dac_palette_width()).
31031 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
31032 check for return status.
31033 (grub_vbe_get_video_mode_info): When getting information for a packed
31034 mode (<= 8 bpp), obtain DAC palette width using
31035 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
31036 {red,green,blue}_mark_size.
31038 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
31040 * commands/search.c (options): Fix help output to match actual code.
31042 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
31044 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
31047 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31049 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
31050 on XFS or ReiserFS.
31052 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31054 Support Apple partition map with sector size different from 512 bytes.
31056 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
31057 (apple_partition_map_iterate): Respect 'aheader.blocksize'
31058 and 'apart.partmap_size'.
31060 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31061 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
31065 * commands/i386/cpuid.c (options): New variable.
31066 (grub_cmd_cpuid): Return real error.
31067 (GRUB_MOD_INIT(cpuid)): Declare options.
31069 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
31071 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
31074 2009-07-31 Bean <bean123ch@gmail.com>
31076 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
31078 (grub_fshelp_node): Move inode field to the end.
31079 (grub_xfs_data): Remove inode field.
31080 (grub_xfs_inode_block): Calculate inode size using sblock.
31081 (grub_xfs_inode_offset): Likewise.
31082 (grub_xfs_read_inode): Calculate inode size using sblock.
31083 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
31084 (grub_xfs_iterate_dir): Calculate inode size using sblock.
31085 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
31086 to match inode size.
31087 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
31088 not accessible when data is null.
31089 (grub_xfs_open): Likewise.
31091 2009-07-31 Bean <bean123ch@gmail.com>
31093 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
31094 Don't change pv->disk if it's already set.
31096 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
31097 (grub_raid_register): ... here.
31098 (grub_raid_rescan): Removed.
31100 * include/grub/raid.h (grub_raid_rescan): Removed.
31102 * util/grub-fstest.c: Remove include file <grub/raid.h>.
31103 (fstest): Replace grub_raid_rescan with module fini function followed
31106 * util/grub-probe.c: Add include file <grub/raid.h>.
31107 (probe_raid_level): New function.
31108 (probe): Detect abstraction by walking the disk device, support two
31109 level of abstraction (LVM on RAID) when detecting partition map.
31111 2009-07-31 Pavel Roskin <proski@gnu.org>
31113 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
31114 to grub_zalloc(), it was erroneous.
31115 Reported by Bean <bean123ch@gmail.com>
31117 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
31119 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
31120 embedding zone, not only the first one.
31122 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
31124 * term/gfxterm.c (clear_char): New function.
31125 (grub_virtual_screen_setup): Use clear_char.
31126 (scroll_up): Likewise.
31127 (grub_virtual_screen_cls): Likewise.
31129 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
31131 * util/deviceiter.c (get_acceleraid_disk_name): New static
31133 (grub_util_iterate_devices): Handle Accelraid devices.
31134 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
31136 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
31138 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
31139 separator for the suggested gfxpayload string (';' collides with the
31140 parser and needs escaping).
31142 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
31144 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
31145 Clear direction flag before jumping to OS.
31146 (grub_multiboot2_real_boot): Likewise.
31148 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
31150 * util/i386/pc/grub-install: Fix parsing of --disk-module
31153 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
31155 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
31158 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
31160 * util/grub-mkconfig.in (package_version): New variable.
31161 Use it do display the version.
31163 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
31165 * kern/file.c (grub_file_open): Revert to previous check with
31168 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
31170 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
31171 from help line. It's out of sync with code.
31173 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
31175 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
31176 entries on failed boot.
31178 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
31180 * kern/file.c (grub_file_open): Fix an error check.
31182 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
31184 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
31185 partition map couldn't be identified.
31187 2009-07-23 Pavel Roskin <proski@gnu.org>
31189 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
31190 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
31191 case of little endian words becomes just an optimization.
31192 Respect const modifier.
31193 (md5_final): Use code that doesn't depend on endianness.
31195 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
31196 to avoid loss of upper bits if align is unsigned and shorter
31199 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
31201 UUID support for UFS
31203 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
31204 (grub_ufs_uuid): New function.
31205 (grub_ufs_fs): add .uuid
31207 2009-07-21 Pavel Roskin <proski@gnu.org>
31209 * kern/dl.c (grub_dl_check_header): Make static.
31211 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
31213 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
31214 add drivemap for Vista. It breaks Windows 7.
31216 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
31218 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
31221 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31225 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
31226 (grub_fstest_SOURCES): Likewise.
31227 (pkglib_MODULES): Add befs.mod.
31228 (befs_mod_SOURCES): New variable.
31229 (befs_mod_CFLAGS): Likewise.
31230 (befs_mod_LDFLAGS): Likewise.
31231 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31232 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31233 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31234 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31235 (grub_setup_SOURCES): Likewise.
31236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31237 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31238 (grub_setup_SOURCES): Likewise.
31239 * fs/befs.c: New file.
31240 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
31241 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
31242 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
31243 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
31244 (B_KEY_INDEX_ALIGN): New declaration.
31245 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
31246 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
31247 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
31248 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
31249 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
31250 (grub_afs_mount) [MODE_BFS]: Likewise.
31251 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
31252 (grub_afs_fs): Use GRUB_AFS_FSNAME
31253 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
31254 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
31255 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
31256 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
31258 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
31260 * util/getroot.c (find_root_device): Add support for MacOSX.
31261 * util/hostdisk.c: Likewise.
31263 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31265 * font/font.c (find_glyph): Check whether a font is present to avoid
31266 segmentation fault.
31268 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
31270 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
31272 2009-07-20 Pavel Roskin <proski@gnu.org>
31274 * configure.ac: Trim excessively wordy excuses.
31276 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31278 Add symlink, mtime and label support to AtheFS.
31280 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
31281 (grub_afs_iterate_dir): Handle symlinks.
31282 (grub_afs_open): Use grub_afs_read_symlink.
31283 (grub_afs_dir): Likewise.
31285 (grub_afs_label): New function.
31286 (grub_afs_fs): Add grub_afs_label.
31287 (grub_afs_read_symlink): New function.
31289 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31291 Fix AtheFS support.
31293 * fs/afs.c: Fix comments style.
31294 (grub_afs_blockrun): Declare as packed.
31295 (grub_afs_datastream): Likewise.
31296 (grub_afs_bnode): Likewise.
31297 (grub_afs_btree): Likewise.
31298 (grub_afs_sblock): Likewise.
31299 Declare `name' as char.
31300 (grub_afs_inode): Declare as packed.
31301 Change void *vnode to grub_uint32_t unused.
31302 (grub_afs_iterate_dir): Check that key_size is positive.
31303 (grub_afs_mount): Don't read superblock twice.
31304 (grub_afs_dir): Don't free node in case of error,
31305 grub_fshelp_find_file already handles this.
31306 (grub_afs_open): Likewise.
31308 2009-07-19 Pavel Roskin <proski@gnu.org>
31310 * Makefile.in: Remove LIBLZO and enable_lzo.
31311 * conf/i386-pc.rmk: Remove lzo support.
31312 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
31313 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
31315 * kern/i386/pc/lzo1x.S: Remove.
31316 * kern/i386/pc/startup.S: Remove lzo support.
31317 * util/i386/pc/grub-mkimage.c: Likewise.
31319 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
31321 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
31322 * fs/xfs.c (grub_xfs_dir): Likewise.
31323 * fs/afs.c (grub_afs_dir): Likewise.
31324 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
31325 (grub_iso9660_open): Likewise.
31326 * fs/jfs.c (grub_jfs_open): Likewise.
31327 * fs/ext2.c (grub_ext2_dir): Likewise.
31328 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
31329 * script/sh/lexer.c (grub_script_yylex): Likewise.
31331 2009-07-16 Pavel Roskin <proski@gnu.org>
31333 * configure.ac: Never add "-c" to CFLAGS.
31335 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
31337 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
31338 grub_cv_cc_efiemu should be used.
31340 * configure.ac: Typo fixes.
31342 * kern/mm.c (grub_zalloc): New function.
31343 (grub_debug_zalloc): Likewise.
31344 * include/grub/mm.h: Declare grub_zalloc() and
31345 grub_debug_zalloc().
31346 * util/misc.c (grub_zalloc): New function.
31347 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
31348 instead of grub_malloc(), remove unneeded initializations.
31349 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
31350 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
31351 * commands/parttool.c (grub_cmd_parttool): Likewise.
31352 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
31353 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
31354 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
31355 * disk/usbms.c (grub_usbms_finddevs): Likewise.
31356 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
31357 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
31358 (grub_cmd_efiemu_pnvram): Likewise.
31359 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
31360 * fs/iso9660.c (grub_iso9660_mount): Likewise.
31361 (grub_iso9660_iterate_dir): Likewise.
31362 * fs/jfs.c (grub_jfs_opendir): Likewise.
31363 * fs/ntfs.c (list_file): Likewise.
31364 (grub_ntfs_mount): Likewise.
31365 * kern/disk.c (grub_disk_open): Likewise.
31366 * kern/dl.c (grub_dl_load_core): Likewise.
31367 * kern/elf.c (grub_elf_file): Likewise.
31368 * kern/env.c (grub_env_context_open): Likewise.
31369 (grub_env_set): Likewise.
31370 (grub_env_set_data_slot): Likewise.
31371 * kern/file.c (grub_file_open): Likewise.
31372 * kern/fs.c (grub_fs_blocklist_open): Likewise.
31373 * loader/i386/multiboot.c (grub_module): Likewise.
31374 * loader/xnu.c (grub_xnu_create_key): Likewise.
31375 (grub_xnu_create_value): Likewise.
31376 * normal/main.c (grub_normal_add_menu_entry): Likewise.
31377 (read_config_file): Likewise.
31378 * normal/menu_entry.c (make_screen): Likewise.
31379 * partmap/sun.c (sun_partition_map_iterate): Likewise.
31380 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
31381 * script/sh/script.c (grub_script_parse): Likewise.
31382 * video/bitmap.c (grub_video_bitmap_create): Likewise.
31383 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
31384 * video/readers/png.c (grub_png_output_byte): Likewise.
31385 (grub_video_reader_png): Likewise.
31387 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31389 Enable all targets that can be built by default
31391 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
31392 grub-mkfont and grub-fstest if they can be built
31394 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31396 Fix hang and segmentation fault in grub-emu-usb
31398 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
31399 * util/usb.c (grub_libusb_devices): likewise
31400 (grub_libusb_init): rename to ...
31401 (GRUB_MOD_INIT (libusb)):...this
31402 (grub_libusb_fini): rename to ..
31403 (GRUB_MOD_FINI (libusb)):...this
31404 * disk/usbms.c (grub_usbms_transfer): fix retry logic
31405 * include/grub/disk.h (grub_raid_init): removed, it's useless
31406 (grub_raid_fini): likewise
31407 (grub_lvm_init): likewise
31408 (grub_lvm_fini): likewise
31409 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
31412 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31416 * Makefile.in (LIBUSB): new macro
31417 * genmk.rb (Utility/print_tail): new method
31418 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
31419 (top level): call util.print_tail at the end.
31421 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31423 Make FreeBSD accept zpool.cache
31425 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
31426 type is /boot/zfs/zpool.cache
31428 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31432 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
31433 correct wrong typedef
31434 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
31436 2009-07-15 Pavel Roskin <proski@gnu.org>
31438 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
31439 * kern/disk.c (struct grub_disk_cache): Likewise.
31441 * commands/probe.c (options): Typo fix.
31443 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
31444 Increase to 0x5a to accommodate FAT32. Adjust other offsets
31446 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
31448 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
31449 the end of "Error" to make the message more readable.
31451 * boot/i386/pc/boot.S (kernel_segment): Remove.
31452 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
31455 * boot/i386/pc/boot.S (boot_version): Remove.
31456 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
31459 * include/grub/i386/pc/boot.h: Sort all offsets.
31460 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
31461 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
31462 * boot/i386/pc/boot.S: Assert location of every offset listed in
31463 include/grub/i386/pc/boot.h.
31465 2009-07-13 Pavel Roskin <proski@gnu.org>
31467 * include/grub/i386/coreboot/machine.h: Rename
31468 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
31469 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
31470 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
31472 * kern/dl.c: Force native word size to suppress warnings when
31473 compiling grub-emu.
31475 * kern/device.c (grub_device_iterate): Change struct part_ent to
31476 hold the name, not a pointer to it. Use one grub_malloc() per
31477 partition, not two. Free partition_name if grub_malloc() fails.
31478 Set ents to NULL only before grub_partition_iterate() is called.
31480 2009-07-11 Bean <bean123ch@gmail.com>
31482 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
31485 2009-07-10 Bean <bean123ch@gmail.com>
31486 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
31488 * kern/ieee1275/openfw.c (grub_children_iterate)
31489 (grub_devalias_iterate): Fix size evaluation for property or path
31490 strings, which was broken since r2132.
31492 2009-07-07 Pavel Roskin <proski@gnu.org>
31494 * commands/search.c (search_file): Merge into ...
31495 (search_fs): ... this. Accept search type as argument.
31496 (grub_cmd_search): Pass search type to search_fs().
31498 * include/grub/util/console.h: New file.
31499 * util/console.c: Use it instead of grub/machine/console.h.
31500 * util/grub-emu.c: Likewise.
31502 * lib/arg.c (find_long_option): Remove.
31503 (find_long): Add `len' argument, make `s' const char *.
31504 (grub_arg_parse): Parse long options in place, not in a
31507 2009-07-06 Pavel Roskin <proski@gnu.org>
31509 * commands/search.c (search_fs): Fix potential NULL pointer
31512 * commands/search.c (search_fs): Replace QUID macro with quid_fn
31515 2009-07-06 Daniel Mierswa <impulze@impulze.org>
31517 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
31520 2009-07-05 Pavel Roskin <proski@gnu.org>
31522 * include/grub/i386/linux.h (struct linux_kernel_params):
31523 Restore padding3, it's still needed.
31525 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
31527 * util/osdetect.lua: Likewise.
31529 2009-07-05 Bean <bean123ch@gmail.com>
31531 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
31533 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
31534 (grub_lua_getenv): Likewise.
31535 (grub_lua_setenv): Likewise.
31536 (save_errno): New function.
31537 (push_result): Likewise.
31538 (grub_lua_enum_device): Likewise.
31539 (grub_lua_enum_file): Likewise.
31540 (grub_lua_file_open): Likewise.
31541 (grub_lua_file_close): Likewise.
31542 (grub_lua_file_seek): Likewise.
31543 (grub_lua_file_read): Likewise.
31544 (grub_lua_file_getline): Likewise.
31545 (grub_lua_file_getsize): Likewise.
31546 (grub_lua_file_getpos): Likewise.
31547 (grub_lua_file_eof): Likewise.
31548 (grub_lua_file_exist): Likewise.
31549 (grub_lua_add_menu): Likewise.
31551 * script/lua/grub_lua.h (isupper): New inline function.
31552 (islower): Likewise.
31553 (ispunct): Likewise.
31554 (isxdigit): Likewise.
31555 (strcspn): Change to normal function.
31556 (strpbkr): New function declaration.
31557 (memchr): Likewise.
31559 * script/lua/grub_main.c (scan_str): New function.
31560 (strcspn): Likewise.
31561 (strpbrk): Likewise.
31562 (memchr): Likewise.
31564 * script/lua/linit.c (lualibs): Enable the string library.
31566 * util/osdetect.lua: New file.
31568 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
31570 * include/grub/i386/linux.h (struct linux_kernel_params): Add
31571 `capabilities' member.
31573 2009-07-02 Pavel Roskin <proski@gnu.org>
31575 * genparttoollist.sh: Add missing newline at the end.
31577 2009-07-01 Pavel Roskin <proski@gnu.org>
31579 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
31581 * util/hostdisk.c (open_device): Remove `const' from
31582 `sysctl_size', as sysctlbyname() can change it (in this case it
31583 doesn't actually happen).
31585 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
31586 using signed long int constants.
31588 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
31589 constant to avoid a warning on FreeBSD.
31591 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
31594 * Makefile.in: Install include/grub/machine symlink.
31596 * Makefile.in: When installing symlinks, use "cp -fR", which
31597 works on FreeBSD and MacOSX.
31598 From Yves Blusseau <cl7m42e02@sneakemail.com>
31600 * kern/dl.c (grub_dl_resolve_symbol): Make static.
31601 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
31603 * util/misc.c: Move grub_reboot() and grub_halt() ...
31604 * util/grub-emu.c: ... here. Make main_env static.
31605 * include/grub/util/misc.h: Remove main_env.
31607 * kern/mm.c: Use correct format to print size_t.
31609 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
31610 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
31611 * kern/powerpc/dl.c: Likewise.
31612 * kern/sparc64/dl.c: Likewise.
31613 * kern/x86_64/dl.c: Likewise.
31615 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31617 Fix grub-emu build on sparc64-ieee1275.
31619 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
31620 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
31622 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31624 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
31625 (grub_reboot, grub_halt): New functions.
31627 * util/i386/pc/misc.c: Delete. Update all users.
31628 * util/sparc64/ieee1275/misc.c: Likewise.
31629 * util/powerpc/ieee1275/misc.c: Likewise.
31631 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31633 * conf/i386.rmk (setjmp_mod_SOURCES)
31634 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
31635 * conf/common.rmk (setjmp_mod_SOURCES)
31636 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
31637 to use $(target_cpu).
31638 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
31639 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
31640 * conf/powerpc-ieee1275.rmk: Likewise.
31641 * conf/sparc64-ieee1275.rmk: Likewise.
31643 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
31644 $(target_cpu) for kern/$(target_cpu)/dl.c.
31645 * conf/i386-efi.rmk: Likewise.
31646 * conf/i386-ieee1275.rmk: Likewise.
31647 * conf/x86_64-efi.rmk: Likewise.
31648 * conf/i386-coreboot.rmk: Likewise.
31649 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
31650 $(target_cpu) for kern/$(target_cpu)/dl.c and for
31651 kern/$(target_cpu)/cache.S.
31652 * conf/sparc64-ieee1275.rmk: Likewise.
31654 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31656 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
31657 type to `grub_uint8_t', and adjust `padding9' accordingly.
31659 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31661 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
31663 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
31664 assembly in final jump, using register constraints.
31666 (grub_linux_boot): For text mode, initialize `have_vga' using
31667 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
31669 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
31670 right before the final jump.
31672 Set `video_mode' to 0x3.
31674 Document initialization of `video_page', `video_mode' and
31677 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31679 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
31680 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
31681 and set GRUB_LINUX_FLAG_QUIET appropriately.
31683 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31685 Fix build on Debian / sparc.
31687 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
31689 2009-06-28 Pavel Roskin <proski@gnu.org>
31691 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
31694 * util/grub.d/10_linux.in: Match SUSE style initrd names.
31696 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31698 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
31701 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31705 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
31706 file can't be opened. grub_file_open() is already supposed to set
31707 grub_errno / grub_errmsg appropriately.
31708 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31710 2009-06-27 Pavel Roskin <proski@gnu.org>
31711 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31713 * include/grub/dl.h: Include grub/elf.h.
31714 (struct grub_dl): Add symtab field.
31715 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
31716 GRUB_MODULES_MACHINE_READONLY.
31717 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
31718 of the header for read-only modules.
31719 (grub_dl_unload): Free mod->symtab for read-only modules.
31720 * kern/i386/dl.c: Use mod->symtab.
31721 * kern/powerpc/dl.c: Likewise.
31722 * kern/sparc64/dl.c: Likewise.
31723 * kern/x86_64/dl.c: Likewise.
31725 * conf/i386-qemu.rmk: New file.
31726 * kern/i386/qemu/startup.S: Likewise.
31727 * kern/i386/qemu/mmap.c: Likewise.
31728 * boot/i386/qemu/boot.S: Likewise.
31729 * include/grub/i386/qemu/time.h: Likewise.
31730 * include/grub/i386/qemu/serial.h: Likewise.
31731 * include/grub/i386/qemu/kernel.h: Likewise.
31732 * include/grub/i386/qemu/console.h: Likewise.
31733 * include/grub/i386/qemu/boot.h: Likewise.
31734 * include/grub/i386/qemu/init.h: Likewise.
31735 * include/grub/i386/qemu/machine.h: Likewise.
31736 * include/grub/i386/qemu/loader.h: Likewise.
31737 * include/grub/i386/qemu/memory.h: Likewise.
31739 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
31740 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
31741 [qemu] (pkglib_IMAGES): Add `boot.img'.
31742 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
31743 [qemu] (boot_img_FORMAT): New variables.
31744 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
31745 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
31746 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
31747 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31748 [qemu] (kernel_img_FORMAT): New variables.
31750 * configure.ac: Recognise `i386-qemu'.
31752 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
31753 (for no compression).
31754 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
31755 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
31756 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
31757 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
31760 2009-06-27 Pavel Roskin <proski@gnu.org>
31762 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
31764 * efiemu/prepare32.c: Likewise.
31765 * efiemu/prepare64.c: Likewise.
31767 2009-06-26 Pavel Roskin <proski@gnu.org>
31769 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
31770 * include/grub/elf.h: Define symbols without "32" or "64" based
31771 on GRUB_TARGET_WORDSIZE.
31772 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
31773 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
31775 * efiemu/loadcore64.c: Likewise.
31776 * loader/i386/bsd32.c: Likewise.
31777 * loader/i386/bsd64.c: Likewise.
31778 * kern/dl.c: Remove own ELF definitions.
31779 * util/i386/efi/grub-mkimage.c: Likewise.
31781 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
31783 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
31784 segment 0x0 unconditionally, because the reference generated by
31785 GAS is an absolute address.
31787 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31789 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
31790 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
31792 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31794 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
31795 indexes. Check for -f explicitly.
31796 (search_file): Improve error message.
31797 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
31799 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31801 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
31802 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
31804 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31806 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
31807 * conf/i386-ieee1275.rmk: Likewise.
31808 * conf/i386-coreboot.rmk: Likewise.
31810 * kern/i386/pc/startup.S (grub_stop): Remove function.
31811 * kern/i386/ieee1275/startup.S: Likewise.
31812 * kern/i386/coreboot/startup.S: Likewise.
31813 * kern/i386/misc.S (grub_stop): New function.
31815 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31817 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
31818 * kern/i386/realmode.S (real_to_prot): ... to here.
31820 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31822 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
31824 (kernel_elf_SOURCES): Rename to ...
31825 (kernel_img_SOURCES): ... this.
31826 (kernel_elf_HEADERS): Rename to ...
31827 (kernel_img_HEADERS): ... this. Update all users.
31828 (kernel_elf_ASFLAGS): Rename to ...
31829 (kernel_img_ASFLAGS): ... this.
31830 (kernel_elf_CFLAGS): Rename to ...
31831 (kernel_img_CFLAGS): ... this.
31832 (kernel_elf_LDFLAGS): Rename to ...
31833 (kernel_img_LDFLAGS): ... this.
31834 * conf/i386-coreboot.rmk: Likewise.
31835 * conf/powerpc-ieee1275.rmk: Likewise.
31837 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
31840 2009-06-21 Pavel Roskin <proski@gnu.org>
31842 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
31843 to match nested functions.
31844 * loader/sparc64/ieee1275/linux.c: Likewise.
31846 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
31848 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
31850 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
31851 all i386 platforms.
31853 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
31855 Fix asm file handling on ELF, and remove workarounds.
31857 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
31858 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
31859 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
31860 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
31862 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
31864 Load BSD ELF modules
31866 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
31867 and loader/i386/bsd64.c
31868 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
31869 (FREEBSD_MODTYPE_ELF_MODULE): New definition
31870 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
31871 (grub_freebsd_load_elfmodule32): New declaration
31872 (grub_freebsd_load_elfmoduleobj64): Likewise
31873 (grub_freebsd_load_elf_meta32): Likewise
31874 (grub_freebsd_load_elf_meta64): Likewise
31875 (grub_freebsd_add_meta): Likewise
31876 (grub_freebsd_add_meta_module): Likewise
31877 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
31878 (grub_freebsd_add_meta_module): Likewise and move module-specific
31879 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
31880 (grub_cmd_freebsd): Add elf-kernel specific parts
31881 based on grub_freebsd_add_meta_module
31882 (grub_cmd_freebsd_module): Add type parsing moved from
31883 grub_freebsd_add_meta_module
31884 (grub_cmd_freebsd_module_elf): New function
31885 (cmd_freebsd_module_elf): New variable
31886 (GRUB_MOD_INIT): Register freebsd_module_elf
31887 * loader/i386/bsd32.c: New file
31888 * loader/i386/bsd64.c: Likewise
31889 * loader/i386/bsdXX.c: Likewise
31890 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
31891 (grub_elf64_load): Likewise
31892 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
31894 (grub_elf64_load_hook_t): Likewise
31896 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
31898 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
31900 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
31901 don't write a menu entry for recovery mode.
31903 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
31905 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
31906 after it's no longer needed.
31908 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
31910 * include/grub/i386/loader.h (grub_linux_prot_size)
31911 (grub_linux_tmp_addr, grub_linux_real_addr)
31912 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
31913 GRUB_MACHINE_PCBIOS.
31914 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
31915 common grub_util_info() call to ...
31916 (generate_image): ... here.
31917 Fix use of uninitialized memory, comparison of signed with
31918 unsigned integers and memory leak.
31919 Remove bogus module address message.
31921 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
31923 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
31925 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
31927 2009-06-19 Pavel Roskin <proski@gnu.org>
31929 * configure.ac: Remove stray AC_MSG_CHECKING.
31931 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
31933 * disk/scsi.c (grub_scsi_open): use continue instead of big if
31935 2009-06-18 Pavel Roskin <proski@gnu.org>
31937 * conf/common.rmk: Add fs_file.mod.
31938 * disk/fs_file.c: New file.
31939 * include/grub/disk.h (enum grub_disk_dev_id): Add
31940 GRUB_DISK_DEVICE_FILE_ID.
31942 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31944 Fix build with Apple's toolchain. Part 2
31946 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
31949 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31951 Fix build with Apple's toolchain. Part 1
31953 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
31955 * configure.ac: remove a leftover AC_MSG_RESULT
31956 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
31959 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31963 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
31964 (decomp_block): initialize ch
31965 use grub_memcpy instead of memcpy
31967 2009-06-17 Pavel Roskin <proski@gnu.org>
31969 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
31970 version, use declarations needed to use vga_text as the startup
31973 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
31974 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
31976 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
31977 and grub_at_keyboard_fini(), it's done on module load and
31980 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
31982 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
31983 file can't be found.
31984 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31986 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
31988 Fix newline handling
31990 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
31991 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
31992 (grub_script_yylex): don't segfault on unterminated script
31993 newline terminates command and variable
31995 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
31997 avoid double grub_adjust_range call. Bug reported by David Simner
31999 * kern/disk.c (grub_disk_write): change to raw disk access before
32002 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
32004 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
32005 spaces, for the benefit of help2man.
32006 * util/i386/efi/grub-mkimage.c (usage): Likewise.
32008 2009-06-16 Pavel Roskin <proski@gnu.org>
32010 * kern/i386/halt.c: Include grub/machine/init.h.
32011 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
32013 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
32015 * util/grub.d/30_os-prober.in: Use ${root} in the generated
32016 drivemap menuentry.
32018 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
32020 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
32023 2009-06-16 Pavel Roskin <proski@gnu.org>
32025 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
32026 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
32027 save %dx, we only need %dl and we never change it.
32028 * boot/i386/pc/cdboot.S: Don't set the root drive.
32029 * boot/i386/pc/pxeboot.S: Likewise.
32030 * include/grub/i386/pc/boot.h: Remove
32031 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
32032 GRUB_BOOT_MACHINE_DRIVE_CHECK.
32033 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
32034 * kern/i386/pc/init.c (make_install_device): Remove references
32035 to grub_root_drive.
32036 * kern/i386/pc/startup.S: Likewise.
32037 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
32039 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
32043 * commands/xnu_uuid.c: new file
32044 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
32045 (xnu_uuid_mod_SOURCES): new variable
32046 (xnu_uuid_mod_CFLAGS): likewise
32047 (xnu_uuid_mod_LDFLAGS): likewise
32048 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
32049 * conf/i386-ieee1275.rmk: likewise
32050 * conf/i386-pc.rmk: likewise
32051 * conf/powerpc-ieee1275.rmk: likewise
32052 * conf/sparc64-ieee1275.rmk: likewise
32053 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
32055 2009-06-16 Pavel Roskin <proski@gnu.org>
32057 * configure.ac: Avoid '==' in test command, it's not portable.
32059 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
32063 * commands/probe.c: new file
32064 * conf/common.rmk (pkglib_MODULES): add probe.mod
32065 (probe_mod_SOURCES): new variable
32066 (probe_mod_CFLAGS): likewise
32067 (probe_mod_LDFLAGS): likewise
32068 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
32069 * conf/i386-ieee1275.rmk: likewise
32070 * conf/i386-pc.rmk: likewise
32071 * conf/powerpc-ieee1275.rmk: likewise
32072 * conf/sparc64-ieee1275.rmk: likewise
32074 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
32076 Fix handling of string like \"hello\" and "a
32079 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
32080 (grub_script_yylex): fix parsing of quoting, escaping and newline
32082 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
32084 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
32087 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
32089 * util/grub-mkconfig.in: Fix parsing of --output option.
32091 2009-06-12 Pavel Roskin <proski@gnu.org>
32093 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
32094 genmk.rb don't need to be generated or installed.
32096 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
32098 * commands/i386/pc/drivemap_int13h.S: add more comments
32100 2009-06-11 Pavel Roskin <proski@gnu.org>
32102 * Makefile.in (uninstall): Uninstall manuals.
32104 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
32105 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
32106 and update-grub_lib in two places.
32107 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
32109 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
32110 a compiler warning.
32112 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
32113 `entry_lo' to fix variable shadowing.
32115 2009-06-11 Christian Franke <franke@computer.org>
32117 * kern/misc.c (__enable_execute_stack): Add missing return type
32118 to prevent gcc warning.
32120 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
32122 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
32124 2009-06-11 Pavel Roskin <proski@gnu.org>
32126 * Makefile.in: Don't rely on any scripts being executable.
32127 Always use $(SHELL) to run shell scripts.
32129 * configure.ac: Always define ___main if using -nostdlib. This
32130 fixes tests on Cygwin.
32132 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
32136 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
32137 is in bytes and not in blocks
32139 2009-06-11 Pavel Roskin <proski@gnu.org>
32141 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
32144 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
32146 * util/grub.d/30_os-prober.in: Fix a comment. Source
32147 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
32148 to set the root device. Place drivemap command in the generated
32151 2009-06-11 Pavel Roskin <proski@gnu.org>
32153 * configure.ac: Remove host_m32. Issues with 64-bit utilities
32154 have long been resolved.
32156 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
32158 * util/grub.d/10_linux.in: Capitalise "Linux".
32160 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
32162 2009-06-11 Pavel Roskin <proski@gnu.org>
32164 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
32165 fix a gcc warning and ensure that the function won't ever exit.
32167 * kern/i386/ieee1275/init.c: Add missing prototype for
32168 grub_stop_floppy().
32170 * loader/ieee1275/multiboot2.c [__i386__]: Include
32171 grub/cpu/multiboot.h.
32173 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
32174 casts to short - they are not portable and cause warnings. Fix
32175 use of uninitialized values in input_buf. Use ARRAY_SIZE.
32177 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
32181 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
32183 (grub_get_root_biosnumber_saved): new variable
32184 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
32185 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
32186 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
32187 %dx after the call if necessary
32188 * conf/common.rmk (pkglib_MODULES): remove boot.mod
32189 (boot_mod_SOURCES): remove
32190 (boot_mod_CFLAGS): remove
32191 (boot_mod_LDFLAGS): remove
32192 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
32193 (boot_mod_SOURCES): new variable
32194 (boot_mod_CFLAGS): likewise
32195 (boot_mod_LDFLAGS): likewise
32196 * conf/i386-efi.rmk: likewise
32197 * conf/i386-ieee1275.rmk: likewise
32198 * conf/i386-pc.rmk: likewise
32199 * conf/powerpc-ieee1275.rmk: likewise
32200 * conf/sparc64-ieee1275.rmk: likewise
32201 * conf/x86_64-efi.rmk: likewise
32202 * include/grub/i386/pc/biosnum.h: new file
32203 * lib/i386/pc/biosnum.c: likewise
32204 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
32205 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
32206 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
32208 2009-06-10 Pavel Roskin <proski@gnu.org>
32210 * io/gzio.c (test_header): Don't reuse one buffer for all data.
32211 Use separate variables. Read only the file size at the end, but
32212 not the checksum that we don't use.
32214 * kern/file.c (grub_file_read): Use void pointer for the buffer.
32215 Adjust all callers.
32217 * kern/ieee1275/openfw.c: Remove libc includes.
32218 * kern/ieee1275/cmain.c: Likewise.
32219 * include/grub/ieee1275/ieee1275.h: Likewise.
32221 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
32224 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
32226 * Makefile.in: Remove all trailing whitespace.
32227 * conf/i386-pc.rmk: Likewise.
32228 * conf/powerpc-ieee1275.rmk: Likewise.
32229 * conf/sparc64-ieee1275.rmk: Likewise.
32230 * docs/grub.texi: Likewise.
32231 * docs/texinfo.tex: Likewise.
32232 * disk/fs_uuid.c: Likewise.
32233 * disk/lvm.c: Likewise.
32234 * disk/scsi.c: Likewise.
32235 * disk/ata.c: Likewise.
32236 * disk/ieee1275/ofdisk.c: Likewise.
32237 * disk/i386/pc/biosdisk.c: Likewise.
32238 * disk/host.c: Likewise.
32239 * disk/raid.c: Likewise.
32240 * disk/efi/efidisk.c: Likewise.
32241 * disk/usbms.c: Likewise.
32242 * disk/memdisk.c: Likewise.
32243 * disk/loopback.c: Likewise.
32244 * kern/powerpc/dl.c: Likewise.
32245 * kern/device.c: Likewise.
32246 * kern/dl.c: Likewise.
32247 * kern/sparc64/dl.c: Likewise.
32248 * kern/ieee1275/ieee1275.c: Likewise.
32249 * kern/term.c: Likewise.
32250 * kern/fs.c: Likewise.
32251 * kern/i386/dl.c: Likewise.
32252 * kern/i386/pc/startup.S: Likewise.
32253 * kern/i386/pc/init.c: Likewise.
32254 * kern/i386/pc/mmap.c: Likewise.
32255 * kern/i386/pc/lzo1x.S: Likewise.
32256 * kern/i386/ieee1275/init.c: Likewise.
32257 * kern/i386/realmode.S: Likewise.
32258 * kern/i386/tsc.c: Likewise.
32259 * kern/partition.c: Likewise.
32260 * kern/corecmd.c: Likewise.
32261 * kern/file.c: Likewise.
32262 * kern/efi/efi.c: Likewise.
32263 * kern/efi/init.c: Likewise.
32264 * kern/efi/mm.c: Likewise.
32265 * kern/main.c: Likewise.
32266 * kern/err.c: Likewise.
32267 * kern/env.c: Likewise.
32268 * kern/disk.c: Likewise.
32269 * kern/generic/millisleep.c: Likewise.
32270 * kern/generic/rtc_get_time_ms.c: Likewise.
32271 * kern/misc.c: Likewise.
32272 * kern/parser.c: Likewise.
32273 * genmk.rb: Likewise.
32274 * configure.ac: Likewise.
32275 * boot/i386/pc/diskboot.S: Likewise.
32276 * boot/i386/pc/pxeboot.S: Likewise.
32277 * boot/i386/pc/boot.S: Likewise.
32278 * boot/i386/pc/lnxboot.S: Likewise.
32279 * boot/i386/pc/cdboot.S: Likewise.
32280 * parttool/pcpart.c: Likewise.
32281 * video/readers/tga.c: Likewise.
32282 * video/video.c: Likewise.
32283 * video/bitmap.c: Likewise.
32284 * lib/envblk.c: Likewise.
32285 * lib/i386/setjmp.S: Likewise.
32286 * fs/xfs.c: Likewise.
32287 * fs/afs.c: Likewise.
32288 * fs/fat.c: Likewise.
32289 * fs/ntfs.c: Likewise.
32290 * fs/udf.c: Likewise.
32291 * fs/affs.c: Likewise.
32292 * fs/iso9660.c: Likewise.
32293 * fs/hfs.c: Likewise.
32294 * fs/fshelp.c: Likewise.
32295 * fs/ext2.c: Likewise.
32296 * fs/jfs.c: Likewise.
32297 * fs/reiserfs.c: Likewise.
32298 * fs/hfsplus.c: Likewise.
32299 * fs/minix.c: Likewise.
32300 * fs/cpio.c: Likewise.
32301 * fs/sfs.c: Likewise.
32302 * fs/ufs.c: Likewise.
32303 * efiemu/prepare.c: Likewise.
32304 * efiemu/loadcore_common.c: Likewise.
32305 * efiemu/runtime/efiemu.sh: Likewise.
32306 * efiemu/runtime/efiemu.S: Likewise.
32307 * efiemu/runtime/efiemu.c: Likewise.
32308 * efiemu/pnvram.c: Likewise.
32309 * efiemu/main.c: Likewise.
32310 * efiemu/i386/pc/cfgtables.c: Likewise.
32311 * efiemu/i386/loadcore64.c: Likewise.
32312 * efiemu/i386/loadcore32.c: Likewise.
32313 * efiemu/loadcore.c: Likewise.
32314 * efiemu/symbols.c: Likewise.
32315 * efiemu/mm.c: Likewise.
32316 * include/grub/autoefi.h: Likewise.
32317 * include/grub/datetime.h: Likewise.
32318 * include/grub/term.h: Likewise.
32319 * include/grub/hfs.h: Likewise.
32320 * include/grub/lvm.h: Likewise.
32321 * include/grub/i386/tsc.h: Likewise.
32322 * include/grub/i386/linux.h: Likewise.
32323 * include/grub/i386/xnu.h: Likewise.
32324 * include/grub/i386/efiemu.h: Likewise.
32325 * include/grub/i386/pc/biosdisk.h: Likewise.
32326 * include/grub/i386/pc/memory.h: Likewise.
32327 * include/grub/i386/pc/vbe.h: Likewise.
32328 * include/grub/parttool.h: Likewise.
32329 * include/grub/video.h: Likewise.
32330 * include/grub/memory.h: Likewise.
32331 * include/grub/fs.h: Likewise.
32332 * include/grub/partition.h: Likewise.
32333 * include/grub/xnu.h: Likewise.
32334 * include/grub/efi/api.h: Likewise.
32335 * include/grub/efi/pe32.h: Likewise.
32336 * include/grub/efi/memory.h: Likewise.
32337 * include/grub/multiboot.h: Likewise.
32338 * include/grub/usbdesc.h: Likewise.
32339 * include/grub/multiboot2.h: Likewise.
32340 * include/grub/acpi.h: Likewise.
32341 * include/grub/efiemu/efiemu.h: Likewise.
32342 * include/grub/disk.h: Likewise.
32343 * include/grub/ieee1275/ieee1275.h: Likewise.
32344 * include/grub/net.h: Likewise.
32345 * include/grub/machoload.h: Likewise.
32346 * include/grub/macho.h: Likewise.
32347 * include/multiboot.h: Likewise.
32348 * genmoddep.awk: Likewise.
32349 * normal/main.c: Likewise.
32350 * normal/menu_entry.c: Likewise.
32351 * normal/menu_viewer.c: Likewise.
32352 * normal/completion.c: Likewise.
32353 * normal/cmdline.c: Likewise.
32354 * normal/misc.c: Likewise.
32355 * normal/datetime.c: Likewise.
32356 * bus/usb/usbtrans.c: Likewise.
32357 * bus/usb/ohci.c: Likewise.
32358 * bus/usb/uhci.c: Likewise.
32359 * bus/usb/usb.c: Likewise.
32360 * mmap/efi/mmap.c: Likewise.
32361 * mmap/i386/pc/mmap_helper.S: Likewise.
32362 * mmap/i386/pc/mmap.c: Likewise.
32363 * mmap/i386/mmap.c: Likewise.
32364 * mmap/i386/uppermem.c: Likewise.
32365 * mmap/mmap.c: Likewise.
32366 * commands/acpi.c: Likewise.
32367 * commands/echo.c: Likewise.
32368 * commands/blocklist.c: Likewise.
32369 * commands/loadenv.c: Likewise.
32370 * commands/usbtest.c: Likewise.
32371 * commands/boot.c: Likewise.
32372 * commands/parttool.c: Likewise.
32373 * commands/search.c: Likewise.
32374 * commands/cat.c: Likewise.
32375 * commands/i386/pc/play.c: Likewise.
32376 * commands/i386/pc/drivemap.c: Likewise.
32377 * commands/i386/pc/vbeinfo.c: Likewise.
32378 * commands/i386/pc/acpi.c: Likewise.
32379 * commands/i386/pc/vbetest.c: Likewise.
32380 * commands/ls.c: Likewise.
32381 * commands/cmp.c: Likewise.
32382 * commands/test.c: Likewise.
32383 * commands/efi/acpi.c: Likewise.
32384 * commands/gptsync.c: Likewise.
32385 * commands/help.c: Likewise.
32386 * partmap/amiga.c: Likewise.
32387 * partmap/apple.c: Likewise.
32388 * partmap/acorn.c: Likewise.
32389 * partmap/pc.c: Likewise.
32390 * partmap/sun.c: Likewise.
32391 * partmap/gpt.c: Likewise.
32392 * script/sh/lexer.c: Likewise.
32393 * script/sh/function.c: Likewise.
32394 * font/font.c: Likewise.
32395 * font/font_cmd.c: Likewise.
32396 * loader/powerpc/ieee1275/linux.c: Likewise.
32397 * loader/efi/chainloader.c: Likewise.
32398 * loader/multiboot_loader.c: Likewise.
32399 * loader/macho.c: Likewise.
32400 * loader/i386/multiboot.c: Likewise.
32401 * loader/i386/linux.c: Likewise.
32402 * loader/i386/pc/linux.c: Likewise.
32403 * loader/i386/pc/multiboot2.c: Likewise.
32404 * loader/i386/pc/chainloader.c: Likewise.
32405 * loader/i386/pc/xnu.c: Likewise.
32406 * loader/i386/bsd_trampoline.S: Likewise.
32407 * loader/i386/efi/linux.c: Likewise.
32408 * loader/i386/multiboot_elfxx.c: Likewise.
32409 * loader/i386/bsd_helper.S: Likewise.
32410 * loader/i386/bsd.c: Likewise.
32411 * loader/i386/linux_trampoline.S: Likewise.
32412 * loader/i386/xnu_helper.S: Likewise.
32413 * loader/i386/xnu.c: Likewise.
32414 * loader/i386/bsd_pagetable.c: Likewise.
32415 * loader/i386/multiboot_helper.S: Likewise.
32416 * loader/xnu.c: Likewise.
32417 * loader/xnu_resume.c: Likewise.
32418 * io/gzio.c: Likewise.
32419 * term/efi/console.c: Likewise.
32420 * term/terminfo.c: Likewise.
32421 * term/ieee1275/ofconsole.c: Likewise.
32422 * term/i386/pc/serial.c: Likewise.
32423 * term/i386/pc/vesafb.c: Likewise.
32424 * term/i386/pc/vga.c: Likewise.
32425 * term/usb_keyboard.c: Likewise.
32426 * term/gfxterm.c: Likewise.
32427 * aclocal.m4: Likewise.
32428 * util/lvm.c: Likewise.
32429 * util/grub.d/30_os-prober.in: Likewise.
32430 * util/grub.d/10_hurd.in: Likewise.
32431 * util/console.c: Likewise.
32432 * util/grub-macho2img.c: Likewise.
32433 * util/grub-probe.c: Likewise.
32434 * util/hostfs.c: Likewise.
32435 * util/i386/pc/grub-mkimage.c: Likewise.
32436 * util/i386/pc/grub-setup.c: Likewise.
32437 * util/i386/efi/grub-mkimage.c: Likewise.
32438 * util/grub-mkconfig.in: Likewise.
32439 * util/raid.c: Likewise.
32440 * util/resolve.c: Likewise.
32441 * util/grub-mkdevicemap.c: Likewise.
32442 * util/grub-emu.c: Likewise.
32443 * util/getroot.c: Likewise.
32444 * util/hostdisk.c: Likewise.
32445 * util/usb.c: Likewise.
32446 * util/grub-editenv.c: Likewise.
32447 * util/misc.c: Likewise.
32449 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
32451 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
32452 `genparttoollist.sh'.
32453 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
32454 Add `*.sh' to the list find searches for and change `mdate.sh'
32457 2009-06-10 Pavel Roskin <proski@gnu.org>
32459 * include/grub/multiboot2.h: Provide compatibility defines for
32461 * include/multiboot2.h: Include stdint.h only if needed, using
32463 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
32465 * loader/ieee1275/multiboot2.c: Likewise.
32466 * loader/multiboot2.c: Likewise.
32467 * loader/multiboot_loader.c: Likewise.
32469 * configure.ac: Use -nostdlib when probing for the target. It
32470 should not be required to have libc for the target.
32472 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
32473 they fail without libc headers for the target.
32474 * include/grub/powerpc/libgcc.h: Use weak attribute for all
32476 * include/grub/sparc64/libgcc.h: Likewise. Don't use
32477 preprocessor conditionals.
32479 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
32480 build system doesn't need to be aware of the tar.c internals.
32482 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
32484 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
32486 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
32488 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
32489 disk limit to 26 for IDE, Virtio, Xen and SCSI.
32491 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
32493 * util/i386/pc/grub-install.in: Change the error message if UUIDs
32494 aren't available if ata.mod gets used.
32496 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
32498 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
32499 initialising controller.
32500 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32502 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32504 * util/i386/pc/grub-install.in: Add a parameter --disk-module
32505 to choose between ata and biosdisk module on i386-pc.
32507 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
32509 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
32510 Subclass and Programming Interface fields in terms of the 3 byte
32511 Class Code register.
32512 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32514 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
32515 interface is OHCI. Add grub_dprintf for symmetry with
32517 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
32518 interface is UHCI. Add interf variable for programming
32519 interface. Print interface with class/subclass.
32521 * bus/usb/ohci.c: Set interf with correct field.
32523 * bus/usb/uhci.c: Remove unneeded doubled lines.
32524 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
32525 Remove whitespace inside comment.
32527 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
32529 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
32530 as fallback an equivalent option without depth.
32532 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
32534 Not fail if unable to retrieve C/H/S on LBA disks
32536 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
32537 if unable to retrieve C/H/S on LBA disks
32539 2009-06-08 Pavel Roskin <proski@gnu.org>
32541 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
32544 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32546 * Makefile.in (uninstall): Remove all $lib_DATA files.
32548 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
32550 Bugfix: install on partitionless device
32552 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
32555 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32557 * Makefile.in (uninstall): Remove all $include_DATA files.
32559 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32561 * commands/true.c: New file. Implement the true and false commands.
32562 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
32563 (true_mod_SOURCES): New variable.
32564 (true_mod_CFLAGS): Likewise.
32565 (true_mod_LDFLAGS): Likewise.
32567 2009-06-05 Colin D Bennett <colin@gibibit.com>
32569 Optimized font character lookup using binary search instead of linear
32570 search. Fonts now are required to have the character index ordered by
32573 * font/font.c (load_font_index): Verify that fonts have ordered
32575 (find_glyph): Use binary search instead of linear search to find a
32576 character in a font.
32578 2009-06-05 Michael Scherer <misc@mandriva.org>
32580 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
32581 uses case sensitive btree.
32582 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
32583 only for case insensitive filesystems.
32585 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
32587 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
32588 * conf/common.rmk (search_mod_CFLAGS): likewise
32590 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32592 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
32593 compensate a compiler bug
32595 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32597 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
32600 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32602 Definitions for creating asm symbols with Apple's CC
32604 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
32605 [APPLE_CC] (VARIABLE): likewise
32607 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32609 Disable lnxboot.img when compiled
32612 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
32613 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
32614 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
32615 [! APPLE_CC] (CODE_LENG): skip
32616 [! APPLE_CC] (setup_sects): likewise
32617 [! APPLE_CC]: skip filling
32619 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32621 Address in trampolines based on 32-bit registers when compiled
32624 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
32626 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
32628 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32630 Avoid aliases when compiling with Apple's CC for PCBIOS machine
32632 * kern/misc.c [APPLE_CC] (memcpy): new function
32633 [APPLE_CC] (memmove): likewise
32634 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
32635 (memcpy): define alias conditionally on !APPLE_CC
32638 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
32639 APPLE_CC are defined
32640 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
32641 (grub_assert_fail): make prototype conditional
32643 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32645 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
32647 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
32649 (CLEANFILES): add grub-macho2img
32650 (grub_macho2img_SOURCES): new variable
32651 * kern/i386/pc/startup.S (bss_start): new variable
32652 (bss_end): likewise
32653 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
32654 * util/grub-macho2img.c: new file
32656 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32658 Use objconv when compiling with Apple's CC
32660 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
32661 (efiemu64.o): likewise
32662 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
32663 when compiling with Apple's CC
32664 (efiemu64_s.o): likewise
32665 * configure.ac: check for objconv when compiling with Apple's CC
32666 * genmk.rb: use objconv for modules when compiled with Apple's CC
32668 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32670 Define segment as well as section when compiling with
32673 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
32674 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
32675 (efiemu_convert_pointer): likewise
32676 (efiemu_set_virtual_address_map): likewise
32677 (efiemu_convert_pointer): likewise
32678 (efiemu_getcrc32): likewise
32679 (init_crc32_table): likewise
32680 (reflect): likewise
32681 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
32682 (GRUB_MOD_DEP): likewise
32684 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32686 Allow a compilation without -mcmodel=large
32688 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
32689 when compiled without -mcmodel=large
32690 (filter_memory_map): remove memory post 4 GiB when compiled
32691 without -mcmodel=large
32692 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
32693 TARGET_CFLAGS when -mcmodel=large isn't supported
32695 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32697 Remove nested functions in efiemu core
32699 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
32701 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32703 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
32705 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
32707 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
32709 (grub_cpu_is_tsc_supported): likewise
32710 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
32712 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32714 Absolute addressing through constant with Apple's cc
32716 * kern/i386/pc/startup.S: Define necessary constants
32717 and address through it when using ABS with Apple's CC
32718 * boot/i386/pc/diskboot.S: likewise
32719 * boot/i386/pc/boot.S: likewise
32720 * boot/i386/pc/lnxboot.S: likewise
32721 * boot/i386/pc/cdboot.S: likewise
32722 * mmap/i386/pc/mmap_helper.S: likewise
32723 * commands/i386/pc/drivemap_int13h.S: likewise
32725 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32727 Check if compiler is apple cc
32729 * Makefile.in (ASFLAGS): new variable
32730 (TARGET_ASFLAGS): likewise
32731 (TARGET_MODULE_FORMAT): likewise
32732 (TARGET_APPLE_CC): likewise
32733 (OBJCONV): likewise
32734 (TARGET_IMG_CFLAGS): likewise
32735 (TARGET_CPPFLAGS): add includedir
32736 * configure.ac: call grub_apple_cc and grub_apple_target_cc
32737 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
32738 Check for linker script only if compiler isn't Apple's CC
32739 (TARGET_MODULE_FORMAT): set
32740 (TARGET_APPLE_CC): likewise
32741 (TARGET_ASFLAGS): likewise
32742 (ASFLAGS): likewise
32743 Check for objcopy only if compiler isn't Apple's CC
32744 Check for BSS symbol only if compiler isn't Apple's CC
32745 * genmk.rb: adapt nm options if we use Apple's utils
32746 * aclocal.m4 (grub_apple_cc): new test
32747 (grub_apple_target_cc): likewise
32749 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32751 Simplify sed expressions and improve awk
32753 * Makefile.in (install-local): simplify sed expression
32754 * gencmdlist.sh: likewise
32755 * genmoddep.awk: avoid adding module as a dependency of itself
32757 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32759 Add missing start symbols
32761 * boot/i386/pc/boot.S: add start
32762 * boot/i386/pc/pxeboot.S: likewise
32764 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32766 Fix wrong assumptions with grub-mkimage on EFI
32768 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
32769 (relocate_addresses): consider both r_addend and value at offset
32770 (make_mods_section): zerofill modinfo and header
32771 (convert_elf): write prefix here
32773 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32775 Use .asciz instead of .string
32777 * i386/pc/diskboot.S: use .asciz instead of .string
32778 * i386/pc/boot.S: likewise
32779 * include/grub/dl.h (GRUB_MOD_DEP): likewise
32780 (GRUB_MOD_NAME): likewise
32782 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32786 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
32787 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
32788 (grub_video_setup): remove
32789 (grub_video_set_mode): new prototype
32790 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
32792 (linux_vesafb_res): compile only on PCBIOS
32793 (grub_linux_boot): support gfxpayload
32794 * loader/i386/pc/xnu.c (video_hook): new function
32795 (grub_xnu_set_video): support gfxpayload
32796 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
32797 (DEFAULT_VIDEO_HEIGHT): likewise
32798 (DEFAULT_VIDEO_FLAGS): likewise
32799 (DEFAULT_VIDEO_MODE): new definition
32800 (video_hook): new function
32801 (grub_gfxterm_init): use grub_video_set_mode
32802 * util/grub.d/30_os-prober.in: remove explicit modesetting before
32804 * video/video.c (grub_video_setup): removed
32805 (grub_video_set_mode): new function based on grub_gfxterm_init and
32808 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32810 Avoid calling biosdisk in drivemap
32812 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
32813 (revparse_biosdisk): likewise
32814 (list_mappings): derive name from id directly
32815 (grub_cmd_drivemap): use tryparse_diskstring
32817 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32821 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
32822 (grub_lexer_param): add tokenonhold
32823 (grub_script_create_cmdline): remove cmdline. All callers updated
32824 (grub_script_function_create): make functionname
32825 grub_script_arg. All callers updated
32826 (grub_script_execute_argument_to_string): new prototype
32827 * kern/parser.c (state_transitions): reorder
32828 (grub_parser_cmdline_state): fix a bug and make more compact
32829 * script/sh/execute.c (grub_script_execute_argument_to_string):
32831 (grub_script_execute_cmdline): use new format
32832 * script/sh/function.c (grub_script_function_create): make functionname
32833 grub_script_arg. All callers updated
32834 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
32835 (grub_script_yylex): remove
32836 (grub_script_yylex2): renamed to ...
32837 (grub_script_yylex): ...renamed
32838 parse the expressions like a${b}c
32839 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
32840 (GRUB_PARSER_TOKEN_VAR): remove
32841 (GRUB_PARSER_TOKEN_NAME): likewise
32842 ("if"): declare as typeless
32843 ("while"): likewise
32844 ("function"): likewise
32849 (argument): likewise
32850 (script): accept empty scripts and make exit on error
32851 (arguments): use GRUB_PARSER_TOKEN_ARG
32852 (function): likewise
32853 (command): move error handling to script
32854 (menuentry): move grub_script_lexer_ref before
32855 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
32856 argument. All callers updated
32858 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
32860 Prevent GRUB from probing floppies during boot.
32862 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
32863 * commands/search.c (options): Add --no-floppy.
32864 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
32865 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
32866 --no-floppy when searching for UUIDs.
32868 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
32870 Simplify the code duplication in commands/search.c.
32872 * commands/search.c (search_label, search_fs_uuid): Merge into ...
32873 (search_fs): ... this. Update all users.
32875 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
32877 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
32879 2009-05-28 Pavel Roskin <proski@gnu.org>
32881 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
32882 Remove the original symlink explicitly.
32884 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
32885 just one slash. That's how grub_fshelp_find_file() does it.
32887 2009-05-26 Pavel Roskin <proski@gnu.org>
32889 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
32892 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
32895 2009-05-25 Christian Franke <franke@computer.org>
32897 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
32899 (grub_atapi_identify): Add wait after drive select.
32900 (grub_ata_identify): Do more strict status register check before
32901 calling grub_atapi_identify (). Suppress error message if status
32902 register is 0x00 after command failure. Add status register
32903 check after PIO read to avoid bogus identify due to stuck DRQ.
32904 Thanks to Pavel Roskin for testing.
32905 (grub_device_initialize): Remove unsafe status register check.
32906 Thanks to 'phcoder' for problem report and patch.
32907 Prevent sign extension in debug message.
32909 2009-05-23 Colin D Bennett <colin@gibibit.com>
32911 Cleaned up `include/grub/normal.h'. Grouped prototypes by
32912 definition file, and functions defined in `normal/menu.c' have had
32913 their prototypes moved to `include/grub/menu.h' for consistency.
32915 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
32917 (grub_menu_get_entry): Likewise.
32918 (grub_menu_get_timeout): Likewise.
32919 (grub_menu_set_timeout): Likewise.
32920 (grub_menu_execute_entry): Likewise.
32921 (grub_menu_execute_with_fallback): Likewise.
32922 (grub_menu_entry_run): Likewise.
32924 * include/grub/normal.h: Re-ordered and grouped function
32925 prototypes by file that the function is defined in.
32926 (grub_menu_execute_callback): Removed; moved to menu.h.
32927 (grub_menu_get_entry): Likewise.
32928 (grub_menu_get_timeout): Likewise.
32929 (grub_menu_set_timeout): Likewise.
32930 (grub_menu_execute_entry): Likewise.
32931 (grub_menu_execute_with_fallback): Likewise.
32932 (grub_menu_entry_run): Likewise.
32933 (grub_menu_addentry): Renamed from this ...
32934 (grub_normal_add_menu_entry): ... to this.
32936 * normal/main.c (grub_menu_addentry): Renamed from this ...
32937 (grub_normal_add_menu_entry): ... to this.
32939 * script/sh/execute.c (grub_script_execute_menuentry): Update
32940 reference to renamed grub_menu_addentry function.
32942 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
32944 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
32946 2009-05-22 Pavel Roskin <proski@gnu.org>
32948 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
32949 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
32950 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
32951 compiling for the i386 targets, but not for the utilities.
32953 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
32955 (grub_root_drive): Likewise.
32956 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
32958 (grub_root_drive): Change size to byte.
32959 (grub_start_addr): Remove.
32960 (grub_end_addr): Likewise.
32961 (grub_apm_bios_info): Likewise.
32963 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
32965 * normal/i386: Remove.
32966 * normal/powerpc: Likewise.
32967 * normal/sparc64: Likewise.
32968 * normal/x86_64: Likewise.
32970 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
32972 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
32973 * loader/i386/linux_trampoline.S: Fix indentation
32974 * loader/i386/xnu_helper.S: Likewise
32976 2009-05-18 Colin D Bennett <colin@gibibit.com>
32978 Display error messages when parsing a Lua statement fails.
32979 Previously, executing a syntactically invalid statement like
32980 ")foo" or "bar;" would silently fail.
32982 * script/lua/grub_main.c (handle_lua_error): New function.
32983 (grub_lua_parse_line): Improved reporting of Lua parser and
32986 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
32988 Remove -Werror which causes build to fail on some systems
32990 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
32991 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
32992 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
32994 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
32996 trampoline for linux on 64-bit platform
32998 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
32999 loader/i386/efi/linux_trampoline.S
33000 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
33002 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
33004 * loader/i386/linux_trampoline.S: moved here
33005 * loader/i386/efi/linux.c (allocate_pages): reserve space for
33007 (jumpvector): removed
33008 (grub_linux_trampoline_start): new declaration
33009 (grub_linux_trampoline_end): likewise
33010 (grub_linux_boot): use trampoline when on 64-bit platform
33011 * loader/i386/linux.c: likewise
33013 2009-05-16 Pavel Roskin <proski@gnu.org>
33015 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
33016 const to avoid a warning.
33017 (grub_lua_setenv): Likewise.
33018 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
33019 lmsg to fix a warning.
33021 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
33023 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
33024 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33025 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
33026 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33027 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
33028 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33029 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
33030 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33032 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
33034 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
33036 2009-05-16 Bean <bean123ch@gmail.com>
33038 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
33039 (lua_mod_SOURCES): New variable.
33040 (lua_mod_CFLAGS): Likewise.
33041 (lua_mod_LDFLAGS): Likewise.
33043 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
33044 (setjmp_mod_SOURCES): New variable.
33045 (setjmp_mod_CFLAGS): Likewise.
33046 (setjmp_LDFLAGS): Likewise.
33048 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
33049 (setjmp_mod_SOURCES): New variable.
33050 (setjmp_mod_CFLAGS): Likewise.
33051 (setjmp_LDFLAGS): Likewise.
33053 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
33054 (setjmp_mod_SOURCES): New variable.
33055 (setjmp_mod_CFLAGS): Likewise.
33056 (setjmp_LDFLAGS): Likewise.
33058 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
33059 (setjmp_mod_SOURCES): New variable.
33060 (setjmp_mod_CFLAGS): Likewise.
33061 (setjmp_LDFLAGS): Likewise.
33063 * normal/i386/setjmp.S: Moved from here ...
33064 * lib/i386/setjmp.S: ... Moved here
33065 * normal/x86_64/setjmp.S: Moved from here ...
33066 * lib/x86_64/setjmp.S: ... Moved here
33067 * normal/powerpc/setjmp.S: Moved from here ...
33068 * lib/powerpc/setjmp.S: ... Moved here
33069 * normal/sparc64/setjmp.S: Moved from here ...
33070 * lib/sparc64/setjmp.S: ... Moved here
33072 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
33073 returns_twice in mingw.
33075 * script/lua/grub_lib.c: New file.
33076 * script/lua/grub_lib.h: Likewise.
33077 * script/lua/grub_lua.h: Likewise.
33078 * script/lua/grub_main.c: Likewise.
33079 * script/lua/lapi.c: Likewise.
33080 * script/lua/lapi.h: Likewise.
33081 * script/lua/lauxlib.c: Likewise.
33082 * script/lua/lauxlib.h: Likewise.
33083 * script/lua/lbaselib.c: Likewise.
33084 * script/lua/lcode.c: Likewise.
33085 * script/lua/lcode.h: Likewise.
33086 * script/lua/ldblib.c: Likewise.
33087 * script/lua/ldebug.c: Likewise.
33088 * script/lua/ldebug.h: Likewise.
33089 * script/lua/ldo.c: Likewise.
33090 * script/lua/ldo.h: Likewise.
33091 * script/lua/ldump.c: Likewise.
33092 * script/lua/lfunc.c: Likewise.
33093 * script/lua/lfunc.h: Likewise.
33094 * script/lua/lgc.c: Likewise.
33095 * script/lua/lgc.h: Likewise.
33096 * script/lua/linit.c: Likewise.
33097 * script/lua/liolib.c: Likewise.
33098 * script/lua/llex.c: Likewise.
33099 * script/lua/llex.h: Likewise.
33100 * script/lua/llimits.h: Likewise.
33101 * script/lua/lmathlib.c: Likewise.
33102 * script/lua/lmem.c: Likewise.
33103 * script/lua/lmem.h: Likewise.
33104 * script/lua/loadlib.c: Likewise.
33105 * script/lua/lobject.c: Likewise.
33106 * script/lua/lobject.h: Likewise.
33107 * script/lua/lopcodes.c: Likewise.
33108 * script/lua/lopcodes.h: Likewise.
33109 * script/lua/loslib.c: Likewise.
33110 * script/lua/lparser.c: Likewise.
33111 * script/lua/lparser.h: Likewise.
33112 * script/lua/lstate.c: Likewise.
33113 * script/lua/lstate.h: Likewise.
33114 * script/lua/lstring.c: Likewise.
33115 * script/lua/lstring.h: Likewise.
33116 * script/lua/lstrlib.c: Likewise.
33117 * script/lua/ltable.c: Likewise.
33118 * script/lua/ltable.h: Likewise.
33119 * script/lua/ltablib.c: Likewise.
33120 * script/lua/ltm.c: Likewise.
33121 * script/lua/ltm.h: Likewise.
33122 * script/lua/lua.h: Likewise.
33123 * script/lua/luaconf.h: Likewise.
33124 * script/lua/lualib.h: Likewise.
33125 * script/lua/lundump.c: Likewise.
33126 * script/lua/lundump.h: Likewise.
33127 * script/lua/lvm.c: Likewise.
33128 * script/lua/lvm.h: Likewise.
33129 * script/lua/lzio.c: Likewise.
33130 * script/lua/lzio.h: Likewise.
33132 2009-05-16 Bean <bean123ch@gmail.com>
33134 * include/grub/kernel.h (grub_module_header_types): Add type
33137 * kern/main.c (grub_load_config): New function.
33138 (grub_main): Call grub_load_config to read boot config.
33140 * grub-mkimage (generate_image): New parameter config_path.
33141 (options): New option --config.
33142 (main): Parse --config option, and pass it to generate_image.
33144 2009-05-14 Christian Franke <franke@computer.org>
33146 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
33147 This fixes build on Cygwin.
33149 2009-05-14 Pavel Roskin <proski@gnu.org>
33151 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
33152 jump. This saves two bytes, so the typical case of 2 swapped
33153 drives would fit 32 bytes.
33155 2009-05-13 Pavel Roskin <proski@gnu.org>
33157 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
33158 grub_uint32_t to avoid a warning.
33160 * loader/i386/linux.c (allocate_pages): When assigning
33161 real_mode_mem, cast through grub_size_t to fix a warning. The
33162 code already makes sure that the value would fit a pointer.
33163 (grub_linux_setup_video): Cast render_target->data to
33164 grub_size_t to fix a warning.
33166 2009-05-13 Javier Martín <lordhabbit@gmail.com>
33168 * commands/i386/pc/drivemap.c: New file - implement drivemap
33170 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
33171 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
33173 2009-05-13 Pavel Roskin <proski@gnu.org>
33175 * util/i386/pc/grub-setup.c (setup): Remove unused variable
33176 embedding_area_exists.
33178 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
33180 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
33181 it easier to understand / work with.
33182 Improve warning messages for cases where there's no embedding area,
33183 or when it is too small (or core.img too large).
33185 2009-05-13 Pavel Roskin <proski@gnu.org>
33187 * loader/i386/pc/multiboot2.c: Add necessary includes for
33188 grub_multiboot2_real_boot().
33190 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
33191 PX record is always little-endian. We only need the lower 2
33194 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
33195 facilitate code reuse.
33196 (grub_cpio_mount): Use "struct head", not a char buffer. This
33197 fixes a warning reported by gcc 4.4.
33199 * kernel/disk.c (grub_disk_read): Use void pointer for the
33201 (grub_disk_write): Use const void pointer for the buffer.
33202 Adjust all callers. Remove unnecessary casts.
33204 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
33206 * util/i386/pc/grub-install.in: Update copyright year.
33208 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
33212 * commands/gptsync.c: new file
33213 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
33214 (gptsync_mod_SOURCES): new variable
33215 (gptsync_mod_CFLAGS): likewise
33216 (gptsync_mod_LDFLAGS): likewise
33217 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
33219 (GRUB_PC_PARTITION_TYPE_HFS): likewise
33220 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
33221 * conf/i386-ieee1275.rmk: likewise
33222 * conf/i386-pc.rmk: likewise
33223 * conf/powerpc-ieee1275.rmk: likewise
33225 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
33229 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
33230 (grub_dl_ref): likewise
33232 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
33234 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
33235 split in two functions (one for msdos and one for gpt).
33237 2009-05-08 Pavel Roskin <proski@gnu.org>
33239 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
33242 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
33243 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
33244 Initialize them with -1. Add sanity check for bad1. Eliminate
33247 2009-05-08 David S. Miller <davem@davemloft.net>
33249 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
33251 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
33253 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
33256 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
33258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
33259 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
33261 2009-05-05 David S. Miller <davem@davemloft.net>
33263 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
33265 2009-05-05 Pavel Roskin <proski@gnu.org>
33267 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
33268 of grub_dl_ref() and grub_dl_unref().
33269 * commands/parttool.c: Remove preprocessor conditionals around
33270 grub_dl_ref() and grub_dl_unref().
33271 * fs/affs.c: Likewise.
33272 * fs/afs.c: Likewise.
33273 * fs/cpio.c: Likewise.
33274 * fs/ext2.c: Likewise.
33275 * fs/fat.c: Likewise.
33276 * fs/hfs.c: Likewise.
33277 * fs/hfsplus.c: Likewise.
33278 * fs/iso9660.c: Likewise.
33279 * fs/jfs.c: Likewise.
33280 * fs/minix.c: Likewise.
33281 * fs/ntfs.c: Likewise.
33282 * fs/reiserfs.c: Likewise.
33283 * fs/sfs.c: Likewise.
33284 * fs/udf.c: Likewise.
33285 * fs/ufs.c: Likewise.
33286 * fs/xfs.c: Likewise.
33287 * include/grub/dl.h: Likewise.
33288 * loader/xnu.c: Likewise.
33290 2009-05-04 Pavel Roskin <proski@gnu.org>
33292 * commands/acpi.c: Remove unused variable my_mod.
33293 * partmap/amiga.c: Likewise.
33294 * partmap/apple.c: Likewise.
33295 * partmap/gpt.c: Likewise.
33296 * partmap/pc.c: Likewise.
33297 * partmap/sun.c: Likewise.
33298 * term/gfxterm.c: Likewise.
33299 * term/i386/pc/vesafb.c: Likewise.
33300 * term/i386/pc/vga.c: Likewise.
33302 2009-05-04 David S. Miller <davem@davemloft.net>
33304 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
33305 pointer args to grub_ieee1275_get_property().
33307 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
33309 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
33310 devices, and do not traverse down under controller nodes.
33312 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
33313 (grub_ofdisk_open): Use it to un-escape "," characters.
33314 * kern/disk.c (find_part_sep): New.
33315 (grub_disk_open): Use it to find the first non-escaped ','
33316 character in the disk name.
33317 * util/ieee1275/devicemap.c (escape_of_path): New.
33318 (grub_util_emit_devicemap_entry): Use it.
33319 * util/sparc64/ieee1275/grub-install.in: Update script to
33320 strip partition specifiers properly by not triggering on
33321 '\' escaped ',' characters.
33323 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33325 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
33327 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
33329 (linux_vesafb_modes): Add a lot of additional modes to the list (based
33330 on documentation from Wikipedia).
33332 2009-05-04 Pavel Roskin <proski@gnu.org>
33334 * disk/ata.c: Spelling fixes.
33335 * disk/raid.c: Likewise.
33336 * disk/usbms.c: Likewise.
33337 * disk/dmraid_nvidia.c: Likewise.
33338 * kern/ieee1275/openfw.c: Likewise.
33339 * kern/ieee1275/init.c: Likewise.
33340 * kern/ieee1275/cmain.c: Likewise.
33341 * boot/i386/pc/cdboot.S: Likewise.
33342 * video/readers/png.c: Likewise.
33343 * video/i386/pc/vbe.c: Likewise.
33344 * fs/udf.c: Likewise.
33345 * fs/hfs.c: Likewise.
33346 * fs/reiserfs.c: Likewise.
33347 * efiemu/runtime/efiemu.c: Likewise.
33348 * efiemu/main.c: Likewise.
33349 * efiemu/mm.c: Likewise.
33350 * include/grub/elf.h: Likewise.
33351 * include/grub/xnu.h: Likewise.
33352 * include/grub/usbdesc.h: Likewise.
33353 * include/grub/usb.h: Likewise.
33354 * include/grub/script_sh.h: Likewise.
33355 * include/grub/lib/LzmaEnc.h: Likewise.
33356 * include/grub/efiemu/efiemu.h: Likewise.
33357 * include/grub/command.h: Likewise.
33358 * normal/menu.c: Likewise.
33359 * normal/main.c: Likewise.
33360 * normal/datetime.c: Likewise.
33361 * bus/usb/uhci.c: Likewise.
33362 * mmap/i386/uppermem.c: Likewise.
33363 * mmap/mmap.c: Likewise.
33364 * commands/acpi.c: Likewise.
33365 * commands/test.c: Likewise.
33366 * partmap/apple.c: Likewise.
33367 * font/font.c: Likewise.
33368 * loader/sparc64/ieee1275/linux.c: Likewise.
33369 * loader/macho.c: Likewise.
33370 * loader/i386/bsd_trampoline.S: Likewise.
33371 * loader/i386/bsd.c: Likewise.
33372 * loader/xnu.c: Likewise.
33373 * term/i386/pc/vesafb.c: Likewise.
33374 * term/usb_keyboard.c: Likewise.
33375 * util/resolve.c: Likewise.
33376 * util/getroot.c: Likewise.
33378 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
33380 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
33382 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33384 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
33387 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33389 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
33390 parameter only available on BIOS.
33392 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33394 Removed wrong semicolon in declaration
33396 * grub/misc.h (grub_dprintf): remove semicolon
33398 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33400 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
33401 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
33402 is done by grub_cmd_linux() now).
33403 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
33404 restore video to text mode.
33405 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
33406 indicates lack of "vga=" parameter. "vga=0" is mapped to
33407 `GRUB_LINUX_VID_MODE_NORMAL'.
33409 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
33411 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
33412 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
33413 and `normal/script.c'. Add `kern/rescue_reader.c',
33414 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
33415 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
33416 `grub_script.tab.c'.
33418 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33419 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33421 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33422 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33424 * Makefile.in: Remove duplicated 2008 in Copyright line.
33426 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33428 * util/misc.c (grub_util_warn): New function. Emits a warning
33430 * include/grub/util/misc.h (grub_util_warn): New declaration.
33432 * util/i386/pc/grub-install.in: Understand --force and pass it down
33435 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
33437 (setup): Improve error messages and add warnings when requested to
33438 install in odd layouts. Refuse to install using blocklists unless
33441 2009-05-04 martin f. krafft <madduck@madduck.net>
33443 * disk/raid.c (grub_raid_scan_device): Improve debug message.
33445 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33447 Updated copyright year
33449 * fs/hfsplus.c: updated copyright year
33451 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33455 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
33456 in the space previously used by unused3
33457 (grub_hfsplus_uuid): new function
33458 (grub_hfsplus_fs): added uuid field
33460 2009-05-03 Pavel Roskin <proski@gnu.org>
33462 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
33463 suppress warnings. It's no longer needed.
33464 * disk/host.c: Likewise.
33465 * disk/ata_pthru.c: Likewise.
33466 * disk/loopback.c: Likewise.
33467 * hook/datehook.c: Likewise.
33468 * parttool/pcpart.c: Likewise.
33469 * fs/i386/pc/pxe.c: Likewise.
33470 * fs/ntfscomp.c: Likewise.
33471 * efiemu/main.c: Likewise.
33472 * mmap/mmap.c: Likewise.
33473 * commands/crc.c: Likewise.
33474 * commands/hexdump.c: Likewise.
33475 * commands/hdparm.c: Likewise.
33476 * commands/acpi.c: Likewise.
33477 * commands/echo.c: Likewise.
33478 * commands/minicmd.c: Likewise.
33479 * commands/blocklist.c: Likewise.
33480 * commands/memrw.c: Likewise.
33481 * commands/loadenv.c: Likewise.
33482 * commands/usbtest.c: Likewise.
33483 * commands/lsmmap.c: Likewise.
33484 * commands/boot.c: Likewise.
33485 * commands/parttool.c: Likewise.
33486 * commands/configfile.c: Likewise.
33487 * commands/search.c: Likewise.
33488 * commands/ieee1275/suspend.c: Likewise.
33489 * commands/cat.c: Likewise.
33490 * commands/i386/pc/pxecmd.c: Likewise.
33491 * commands/i386/pc/play.c: Likewise.
33492 * commands/i386/pc/halt.c: Likewise.
33493 * commands/i386/pc/vbeinfo.c: Likewise.
33494 * commands/i386/pc/vbetest.c: Likewise.
33495 * commands/lspci.c: Likewise.
33496 * commands/date.c: Likewise.
33497 * commands/handler.c: Likewise.
33498 * commands/ls.c: Likewise.
33499 * commands/test.c: Likewise.
33500 * commands/cmp.c: Likewise.
33501 * commands/efi/loadbios.c: Likewise.
33502 * commands/efi/fixvideo.c: Likewise.
33503 * commands/halt.c: Likewise.
33504 * commands/help.c: Likewise.
33505 * commands/reboot.c: Likewise.
33506 * hello/hello.c: Likewise.
33507 * script/sh/main.c: Likewise.
33508 * loader/xnu.c: Likewise.
33509 * term/terminfo.c: Likewise.
33510 * term/i386/pc/serial.c: Likewise.
33511 * term/usb_keyboard.c: Likewise.
33513 2009-05-03 David S. Miller <davem@davemloft.net>
33515 * normal/menu.c: Include grub/parser.h
33517 2009-05-03 Pavel Roskin <proski@gnu.org>
33519 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
33521 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
33522 Suggested by Javier Martín <lordhabbit@gmail.com>
33524 * util/i386/pc/grub-mkrescue.in: Allow for the case when
33525 efiemu??.o doesn't exist.
33526 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
33529 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
33531 FreeBSD 64-bit support
33533 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
33534 and loader/i386/bsd_trampoline.S
33535 (bsd_mod_ASFLAGS): new variable
33536 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
33537 (FREEBSD_MODTYPE_KERNEL64): likewise
33538 (grub_bsd64_trampoline_start): likewise
33539 (grub_bsd64_trampoline_end): likewise
33540 (grub_bsd64_trampoline_selfjump): likewise
33541 (grub_bsd64_trampoline_gdt): likewise
33542 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
33543 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
33544 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
33545 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
33546 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
33548 * loader/i386/bsd_pagetable.c: new file
33549 * loader/i386/bsd_trampoline.S: likewise
33550 * loader/i386/bsd.c (ALIGN_QWORD): new macro
33551 (ALIGN_VAR): likewise
33552 (entry_hi): new variable
33553 (kern_end_mdofs): likewise
33554 (is_64bit): likewise
33555 (grub_freebsd_add_meta): use ALIGN_VAR
33556 (grub_e820_mmap): new declaration
33557 (grub_freebsd_add_mmap): new function
33558 (grub_freebsd_add_meta_module): support 64 bit kernels
33559 (grub_freebsd_list_modules): use ALIGN_VAR
33560 (gdt_descriptor): new declaration
33561 (grub_freebsd_boot): support 64 bit kernels
33562 (grub_bsd_elf64_hook): new function
33563 (grub_bsd_load_elf): support elf64
33565 2009-05-03 Bean <bean123ch@gmail.com>
33567 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
33568 after we get the result of if statement.
33570 2009-05-03 Bean <bean123ch@gmail.com>
33572 * Makefile.in (enable_efiemu): New variable.
33574 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
33576 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
33578 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
33579 path, add -mno-red-zone option.
33580 (efiemu64_s.o): Likewise.
33581 (efiemu64.o): Use macro $^ for source file.
33583 * configure.ac (--enable-efiemu): New option.
33585 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
33589 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
33590 (pkglib_MODULES): add xnu.mod
33591 (xnu_mod_SOURCES): new variable
33592 (xnu_mod_CFLAGS): likewise
33593 (xnu_mod_LDFLAGS): likewise
33594 (xnu_mod_ASFLAGS): likewise
33595 * conf/i386-pc.rmk: likewise
33596 * conf/x86_64-efi.rmk: likewise
33597 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
33599 * include/grub/i386/macho.h: new file
33600 * include/grub/i386/xnu.h: likewise
33601 * include/grub/macho.h: likewise
33602 * include/grub/machoload.h: likewise
33603 * include/grub/x86_64/macho.h: likewise
33604 * include/grub/x86_64/xnu.h: likewise
33605 * include/grub/xnu.h: likewise
33606 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
33607 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
33608 * loader/i386/efi/xnu.c: new file
33609 * loader/i386/pc/xnu.c: likewise
33610 * loader/i386/xnu.c: likewise
33611 * loader/i386/xnu_helper.S: likewise
33612 * loader/macho.c: likewise
33613 * loader/xnu.c: likewise
33614 * loader/xnu_resume.c: likewise
33615 * util/grub-dumpdevtree: likewise
33616 * include/grub/i386/pit.h: include grub/err.h
33617 (grub_pit_wait): export
33618 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
33620 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33624 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
33625 _linux_efi, linux_efi.
33626 new files in grub-emu
33627 new targets efiemu32.o and efiemu64.o
33628 * loader/linux_normal_efiemu.c: likewise
33629 * loader/i386/efi/linux.c: added preliminary efiemu support
33630 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
33632 * include/grub/autoefi.h: new file
33633 * include/grub/i386/efiemu.h: likewise
33634 * include/grub/i386/pc/efiemu.h: likewise
33635 * include/grub/efi/api.h: add LL suffix when necessary
33636 new definitions relating to tables
33637 * include/grub/efiemu/efiemu.h: new file
33638 * include/grub/efiemu/runtime.h: likewise
33639 * efiemu/prepare.c: likewise
33640 * efiemu/loadcore_common.c: likewise
33641 * efiemu/loadcore64.c: likewise
33642 * efiemu/runtime/efiemu.sh: likewise
33643 * efiemu/runtime/efiemu.S: likewise
33644 * efiemu/runtime/efiemu.c: likewise
33645 * efiemu/runtime/config.h: likewise
33646 * efiemu/prepare32.c: likewise
33647 * efiemu/main.c: likewise
33648 * efiemu/modules/pnvram.c: likewise
33649 * efiemu/modules/i386: likewise
33650 * efiemu/modules/i386/pc: likewise
33651 * efiemu/modules/acpi.c: likewise
33652 * efiemu/i386/pc/cfgtables.c: likewise
33653 * efiemu/i386/loadcore64.c: likewise
33654 * efiemu/i386/loadcore32.c: likewise
33655 * efiemu/prepare64.c: likewise
33656 * efiemu/loadcore.c: likewise
33657 * efiemu/symbols.c: likewise
33658 * efiemu/mm.c: likewise
33659 * efiemu/loadcore32.c: likewise
33661 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33665 * commands/acpi.c: new file
33666 * commands/i386/pc/acpi.c: likewise
33667 * commands/efi/acpi.c: likewise
33668 * include/grub/acpi.h: likewise
33669 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
33670 (acpi_mod_SOURCES): new variable
33671 (acpi_mod_CFLAGS): likewise
33672 (acpi_mod_LDFLAGS): likewise
33673 * conf/i386-efi.rmk: likewise
33674 * conf/x86_64-efi.rmk: likewise
33676 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33678 Missing part from mmap patch
33680 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
33681 (grub_mmap_unregister)
33682 (grub_mmap_free_and_unregister): use grub_mmap_register
33684 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33688 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
33689 * loader/i386/linux.c (find_mmap_size): likewise
33690 (allocate_pages): likewise
33691 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
33692 (grub_fill_multiboot_mmap): likewise
33693 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
33694 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
33695 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
33696 (OPENBSD_MMAP_RESERVED): likewise
33697 * include/grub/i386/pc/memory.h: include grub/memory.h
33698 (grub_lower_mem): removed
33699 (grub_upper_mem): likewise
33700 (GRUB_MACHINE_MEMORY_ACPI): new definition
33701 (GRUB_MACHINE_MEMORY_NVS): likewise
33702 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
33703 (GRUB_MACHINE_MEMORY_HOLE): likewise
33704 (grub_machine_mmap_register): likewise
33705 (grub_machine_mmap_unregister): likewise
33706 (grub_machine_get_upper): likewise
33707 (grub_machine_get_lower): likewise
33708 (grub_machine_get_post64): likewise
33709 * include/grub/i386/efi/memory.h: new file
33710 * include/grub/x86_64/efi/memory.h: likewise
33711 * include/grub/efi/memory.h: likewise
33712 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
33713 (mmap_mod_SOURCES): new variable
33714 (mmap_mod_LDFLAGS): likewise
33715 (mmap_mod_ASFLAGS): likewise
33716 * conf/i386-coreboot.rmk: likewise
33717 * conf/i386-ieee1275.rmk: likewise
33718 * conf/i386-efi.rmk: likewise
33719 * conf/x86_64-efi.rmk: likewise
33720 * include/grub/types.h (UINT_TO_PTR): new macro
33721 (PTR_TO_UINT32): likewise
33722 (PTR_TO_UINT64): likewise
33723 * include/grub/memory.h: new file
33724 * mmap/i386/pc/mmap.c: likewise
33725 * mmap/i386/pc/mmap_helper.S: likewise
33726 * mmap/i386/uppermem.c: likewise
33727 * mmap/mmap.c: likewise
33728 * mmap/efi/mmap.c: likewise
33729 * kern/i386/coreboot/init.c (grub_machine_init): don't use
33731 * kern/i386/pc/init.c (grub_lower_mem): removed variable
33732 (grub_upper_mem): likewise
33733 (grub_machine_init): don't use grub_upper_mem,
33734 make grub_lower_mem local
33735 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
33736 grub_mmap_iterate and grub_mmap_get_upper
33737 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
33739 2009-05-02 Bean <bean123ch@gmail.com>
33741 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
33742 script/sh/parser.y.
33743 (pkglib_MODULES): Add normal.mod and sh.mod.
33744 (normal_SOURCES): New variable.
33745 (normal_mod_CFLAGS): Likewise.
33746 (normal_mod_LDFLAGS): Likewise.
33747 (sh_mod_SOURCES): Likewise.
33748 (sh_mod_CFLAGS): Likewise.
33749 (sh_mod_LDFLAGS): Likewise.
33751 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
33752 script/sh/lexer.c_DEPENDENCIES.
33753 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
33754 kern/rescue_reader.c and kern/rescue_parser.c.
33755 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
33756 (grub_emu_SOURCES): Change source files.
33757 (pkglib_MODULES): Remove normal.mod.
33758 (normal_SOURCES): Removed.
33759 (normal_mod_CFLAGS): Likewise.
33760 (normal_mod_LDFLAGS): Likewise.
33761 * conf/i386-coreboot.rmk: Likewise.
33762 * conf/i386-efi.rmk: Likewise.
33763 * conf/i386-ieee1276.rmk: Likewise.
33764 * conf/powerpc-ieee1275.rmk: Likewise.
33765 * conf/sparc64-ieee1275.rmk: Likewise.
33766 * conf/x86_64-efi.rmk: Likewise.
33768 * include/grub/command.h (grub_command_execute): New inline function.
33770 * include/grub/menu.h (grub_menu_entry): Removed commands field.
33772 * include/grub/normal.h: Remove <grub/setjmp.h>.
33773 (grub_fs_module_list): Moved to normal/autofs.c.
33774 (grub_exit_env): Removed.
33775 (grub_command_execute): Likewise.
33776 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
33778 (read_command_list): New function declaration.
33779 (read_fs_list): Likewise.
33781 * include/parser.h: Include <grub/reader.h>.
33782 (grub_parser_split_cmdline): Change type of getline parameter.
33783 (grub_parser): New structure.
33784 (grub_parser_class): New variable.
33785 (grub_parser_execute): New function declaration.
33786 (grub_register_rescue_parser): Likewise.
33787 (grub_parser_register): New inline function.
33788 (grub_parser_unregister): Likewise.
33789 (grub_parser_get_current): Likewise.
33790 (grub_parser_set_current): Likewise.
33792 * include/grub/reader.h: New file.
33793 * kern/reader.c: Likewise.
33794 * kern/rescue_parser.c: Likewise.
33795 * kern/rescue_reader.c: Likewise.
33796 * normal/autofs.c: Likewise.
33797 * normal/dyncmd.c: Likewise.
33799 * include/grub/rescue.h: Removed.
33800 * normal/command.h: Likewise.
33802 * include/grub/script.h: Moved to ...
33803 * include/grub/script_sh.h: ... Moved here.
33804 * normal/execute.c: Moved to ...
33805 * script/sh/execute.c: ... Moved here.
33806 * normal/function.c: Moved to ...
33807 * script/sh/function.c: ... Moved here.
33808 * normal/lexer.c: Moved to ...
33809 * script/sh/lexer.c: ... Moved here.
33810 * normal/parser.y: Moved to ...
33811 * script/sh/parser.y: ... Moved here.
33812 * normal/script.c: Moved to ...
33813 * script/sh/script.c: ... Moved here.
33815 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
33817 (grub_exit_env): Removed.
33818 (fs_module_list): Moved to normal/autofs.c.
33819 (grub_file_getline): Don't handle comment here.
33820 (free_menu): Skip removed field entry->commands.
33821 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
33823 (read_config_file): Removed nested parameter, change getline function.
33824 (grub_enter_normal_mode): Removed.
33825 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
33826 (read_command_list): Likewise.
33827 (autoload_fs_module): Moved to normal/autofs.c.
33828 (read_fs_list): Likewise.
33829 (reader_nested): New variable.
33830 (grub_normal_execute): Run parser.sh to switch to sh parser.
33831 (grub_cmd_rescue): Removed.
33832 (cmd_normal): Removed.
33833 (grub_cmd_normal): Unregister itself at the beginning. Don't register
33835 (grub_cmdline_run): New function.
33836 (grub_normal_reader_init): Likewise.
33837 (grub_normal_read_line): Likewise.
33838 (grub_env_write_pager): Likewise.
33839 (cmdline): New variable.
33840 (grub_normal_reader): Likewise.
33841 (GRUB_MOD_INIT): Register normal reader and set as current, register
33842 pager hook, register normal command with grub_register_command_prio,
33843 so that it won't show up in command.lst.
33844 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
33845 grub_fs_autoload_hook.
33847 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
33848 (grub_menu_execute_entry): Replace grub_script_execute with
33849 grub_parser_execute, change parameter to grub_command_execute.
33851 * normal/menu_text.c: Remove <grub/script.h>.
33853 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
33854 and <grub/parser.h>.
33855 (run): Change editor_getline to use new parser interface. Change
33856 parameter to grub_command_execute.
33858 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
33859 <grub/reader.h> and <grub/parser.h>.
33860 (grub_load_normal_mode): Execute normal command.
33861 (grub_main): Call grub_register_core_commands,
33862 grub_register_rescue_parser and grub_register_rescue_reader, use
33863 grub_reader_loop to enter input loop.
33865 * kern/parser.c (grub_parser_split_cmdline): Change type of
33867 (grub_parser_class): New variable.
33868 (grub_parser_execute): New function.
33870 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
33871 * loader/multiboot2.c: Likewise.
33872 * loader/sparc64/ieee1275/linux.c: Likewise.
33874 * util/grub-emu.c (read_command_list): New dummy function.
33876 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
33878 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
33879 count to 16 for CCISS and IDA.
33881 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
33883 * normal/menu_text.c (grub_wait_after_message): Print a newline
33884 after waiting for user input.
33886 * loader/i386/linux.c: Include `<grub/normal.h>'.
33887 (grub_cmd_linux): Improve the error message about `ask' mode, by
33888 waiting for user input so it's not missed (we can do this, since
33889 user requested interaction).
33891 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33893 Added missing lst to grub-mkrescue
33895 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
33896 and ${input_dir}/parttool.lst
33898 2009-04-30 David S. Miller <davem@davemloft.net>
33900 * util/hostdisk.c (device_is_wholedisk): New function.
33901 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
33902 zero only if device_is_wholedisk() returns true.
33904 * util/hostdisk.c (convert_system_partition_to_system_disk):
33905 Handle virtual disk devices named /dev/vdiskX as found on sparc
33908 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
33909 lettered partition specifier is found, convert to numbered.
33911 2009-04-29 David S. Miller <davem@davemloft.net>
33913 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
33914 * include/grub/sparc64/ieee1275/memory.h: Likewise.
33916 * normal/command.c: Add missing newline at end of file.
33918 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
33920 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
33921 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
33922 grub_ofdisk_read): Likewise, and deal similarly with the fact that
33923 ihandles have a 32-bit type but need to be stored in a "void *".
33925 2009-04-28 Pavel Roskin <proski@gnu.org>
33927 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
33928 not disk. Adjust all dependencies.
33929 (grub_fs_uuid_close): Use grub_device_close(), not
33932 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
33933 parent's partition, don't copy it by reference, as it gets freed
33936 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
33938 Preboot hooks support
33940 * commands/boot.c (struct grub_preboot_t): new declaration
33941 (preboots_head): new variable
33942 (preboots_tail): likewise
33943 (grub_loader_register_preboot_hook): new function
33944 (grub_loader_unregister_preboot_hook): likewise
33945 (grub_loader_set): launch preboot hooks
33946 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
33947 (grub_loader_register_preboot_hook): new declaration
33948 (grub_loader_unregister_preboot_hook): likewise
33950 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
33954 * disk/scsi.c (grub_scsi_open): added missing cast when
33955 calling grub_dprintf
33957 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
33959 Bug and warning fixes
33961 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
33963 * commands/test.c (test_parse): fixed bug with file tests and corrected
33964 declaration of find_file
33966 2009-04-26 Pavel Roskin <proski@gnu.org>
33968 * Makefile.in: Don't install empty manual pages if help2man is
33969 missing. Use help2man option for output, not shell redirection.
33971 2009-04-26 David S. Miller <davem@davemloft.net>
33973 * util/grub-mkdevicemap.c (make_device_map): Add missing
33974 NESTED_FUNC_ATTR to process_device().
33976 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
33980 * commands/test.c: rewritten to use bash-like test
33982 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
33984 Parttool autoloading and improvements
33986 * Makefile.in (pkglib_DATA): add parttool.lst
33987 (parttool.lst): new target
33988 * genmk.rb: generate parttool-*
33989 (CLEANFILES): add #{parttool}
33990 (PARTTOOLFILES): new variable
33991 * genparttoollist.sh: new file
33992 * parttool/pcpart.c (grub_pcpart_boot): more feedback
33993 (grub_pcpart_type): likewise
33994 * commands/parttool.c (helpmsg): new variable
33995 (grub_cmd_parttool): output help if not enough arguments are supplied
33997 (GRUB_MOD_INIT(parttool)): use helpmsg
33999 2009-04-24 David S. Miller <davem@davemloft.net>
34001 Avoiding opening same device multiple times in device iterator.
34003 * kern/device.c: (grub_device_iterate): Define struct part_ent,
34004 and use it to build a list of partitions in iterate_disk() and
34005 iterate_partition().
34007 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
34010 * disk/ieee1275/nand.c (grub_nand_iterate): Return
34011 grub_devalias_iterate() result instead of unconditional 0.
34012 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
34013 Also, capture hook return value, either directly or via
34014 grub_children_iterate(), and propagate to caller.
34015 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
34016 grub_children_iterate): Return value is now 'int' instead of
34018 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
34019 like a proper iterator, stopping when hooks return non-zero.
34020 (grub_devalias_iterate): Likewise.
34022 2009-04-23 David S. Miller <davem@davemloft.net>
34024 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
34026 2009-04-22 David S. Miller <davem@davemloft.net>
34028 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
34029 is larger than address_cells, use that value for address_cells too.
34031 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
34032 IEEE1275_MAX_PATH_LEN): Define.
34033 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
34034 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
34035 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
34036 'devtype'. Explicitly NULL terminate devalias expansion.
34038 * util/sparc64/ieee1275/misc.c: New file.
34039 * util/sparc64/ieee1275/grub-setup.c: New file.
34040 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
34041 * util/sparc64/ieee1275/grub-mkimage.c: New file.
34042 * util/sparc64/ieee1275/grub-install.in: New file.
34043 * util/ieee1275/ofpath.c: New file.
34044 * util/ieee1275/devicemap.c: New file.
34045 * util/devicemap.c: New file.
34046 * util/deviceiter.c: New file.
34047 * kern/sparc64/ieee1275/init.c: New file.
34048 * include/grub/util/ofpath.h: New file.
34049 * include/grub/util/deviceiter.h: New file.
34050 * util/grub-mkdevicemap.c: Include deviceiter.h.
34051 Implement using grub_util_emit_devicemap_entry and
34052 grub_util_iterate_devices.
34053 * conf/i386-corebook.rmk: Build util/deviceiter.c and
34054 util/devicemap.c into grub-mkdevicemap
34055 * conf/i386-efi.rmk: Likewise.
34056 * conf/i386-ieee1275.rmk: Likewise.
34057 * conf/i386-pc.rmk: Likewise.
34058 * conf/powerpc-ieee1275.rmk: Likewise.
34059 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
34060 images and installation utilities. Build kernel as image
34061 instead of as elf binary. Use common rules as much as possible.
34063 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
34065 Correct GPT definition
34067 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
34070 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
34072 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
34074 2009-04-19 David S. Miller <davem@davemloft.net>
34076 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
34077 (grub_rescue_cmd_linux): Rename to...
34078 (grub_cmd_linux): and fix prototype.
34079 (grub_rescue_cmd_initrd): Rename to...
34080 (grub_cmd_initrd): and fix prototype.
34081 (cmd_linux, cmd_initrd): New.
34082 (GRUB_MOD_INIT(linux)): Use grub_register_command().
34083 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
34085 2009-04-17 Pavel Roskin <proski@gnu.org>
34087 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
34089 (grub_ohci_transfer): Likewise.
34091 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
34093 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
34094 return without a value. Fix inconsistent indentation.
34096 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
34097 match struct grub_fs.
34099 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
34100 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
34101 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34102 * commands/lspci.c (grub_lspci_iter): Likewise.
34104 2009-04-16 Bean <bean123ch@gmail.com>
34106 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
34109 2009-04-15 Pavel Roskin <proski@gnu.org>
34111 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
34112 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
34113 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
34116 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
34118 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
34119 that no multiple data or metadata areas are supported and `Unknown
34122 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34124 Move loader out of the kernel
34126 * kern/loader.c: moved to ...
34127 * commands/boot.c: ... moved here
34128 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
34129 * commands/boot.c (grub_cmd_boot): moved here. All users updated
34130 * include/grub/kernel.h (grub_machine_fini): export
34131 * include/grub/loader.h (grub_loader_is_loaded): update declaration
34132 (grub_loader_set): likewise
34133 (grub_loader_unset): likewise
34134 (grub_loader_boot): likewise
34135 * conf/common.rmk: new module boot.mod
34136 (pkglib_MODULES): add boot.mod
34137 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
34138 (grub_emu_SOURCES): likewise
34139 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
34140 (grub_emu_SOURCES): likewise
34141 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
34142 (grub_emu_SOURCES): likewise
34143 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
34144 (grub_emu_SOURCES): likewise
34145 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
34146 (grub_emu_SOURCES): likewise
34147 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
34148 (grub_emu_SOURCES): likewise
34149 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
34150 (grub_emu_SOURCES): likewise
34152 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34154 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
34156 * kern/misc.c (grub_itoa): Removed function
34157 (grub_ltoa): likewise
34158 (grub_vsprintf): use grub_lltoa
34160 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34164 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
34165 * conf/i386-coreboot.rmk: likewise
34166 * conf/i386-ieee1275.rmk: likewise
34167 * conf/powerpc-ieee1275.rmk: likewise
34169 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
34171 * INSTALL: Add that `./autogen.sh' needs to be run before
34174 2009-04-14 Bean <bean123ch@gmail.com>
34176 * Makefile.in (pkglib_DATA): Add handler.lst.
34177 (handler.lst): New rule.
34179 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
34180 * conf/i386-coreboot.rmk: Likewise.
34181 * conf/i386-ieee1275.rmk: Likewise.
34182 * conf/i386-efi.rmk: Likewise.
34183 * conf/x86_64-efi.rmk: Likewise.
34184 * conf/powerpc-ieee1275.rmk: Likewise.
34185 * conf/sparc64-ieee1275.rmk: Likewise.
34187 * genhandlerlist.sh: New file.
34189 * genmk.rb: Add rules to generate handler.lst.
34191 * include/grub/normal.h (grub_file_getline): New function definition.
34192 (read_handler_list): Likewise.
34193 (free_handler_list): Likewise.
34195 * include/grub/term.h (grub_term_register_input): Add name parameter
34196 for auto generation of handler.lst.
34197 (grub_term_register_output): Likewise.
34199 * normal/handler.c: New file.
34201 * normal/main.c (get_line): Renamed to grub_file_getline.
34202 (read_config_file): Use the newly renamed grub_file_getline.
34203 (read_command_list): Likewise.
34204 (read_fs_list): Likewise.
34205 (grub_normal_execute): Call read_handler_list to parse handler.lst.
34206 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
34208 * term/efi/console.c (grub_console_init): Add name parameter for auto
34209 generation of handler.lst.
34210 * term/gfxterm.c: Likewise.
34211 * term/i386/pc/at_keyboard.c: Likewise.
34212 * term/i386/pc/console.c: Likewise.
34213 * term/i386/pc/serial.c: Likewise.
34214 * term/i386/pc/vesafb.c: Likewise.
34215 * term/i386/pc/vga.c: Likewise.
34216 * term/i386/pc/vga_text.c: Likewise.
34217 * term/ieee1275/ofconsole.c: Likewise.
34218 * term/usb_keyboard.c: Likewise.
34220 2009-04-14 Bean <bean123ch@gmail.com>
34222 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
34223 properly with null character.
34225 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
34227 * configure: Remove.
34228 * config.h.in: Likewise.
34229 * stamp-h.in: Likewise.
34230 * DISTLIST: Likewise.
34231 * conf/common.mk: Likewise.
34232 * conf/i386-coreboot.mk: Likewise.
34233 * conf/i386-efi.mk: Likewise.
34234 * conf/i386-ieee1275.mk: Likewise.
34235 * conf/i386.mk: Likewise.
34236 * conf/i386-pc.mk: Likewise.
34237 * conf/powerpc-ieee1275.mk: Likewise.
34238 * conf/sparc64-ieee1275.mk: Likewise.
34239 * conf/x86_64-efi.mk: Likewise.
34241 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
34244 2009-04-14 John Stanley <jpsinthemix@verizon.net>
34245 David S. Miller <davem@davemloft.net>
34247 * util/hostdisk.c (make_device_name): Fix buffer length
34250 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
34252 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
34253 <sys/param.h> and <sys/sysctl.h>.
34254 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
34255 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
34256 opening the device and reset them afterwards.
34258 2009-04-13 Pavel Roskin <proski@gnu.org>
34260 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
34261 Reported by John Stanley <jpsinthemix@verizon.net>
34263 2009-04-13 Robert Millan <rmh@aybabtu.com>
34265 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
34266 that name for menuentries when appropriate.
34268 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34270 * util/grub.d/10_freebsd.in: Add a missing `fi'.
34272 2009-04-13 Robert Millan <rmh@aybabtu.com>
34274 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
34275 to Linux, simply abort telling the user it's no longer supported.
34277 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34279 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
34280 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
34281 `freebsd_loadenv' only when devices.hints exist.
34283 2009-04-13 Pavel Roskin <proski@gnu.org>
34285 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
34287 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34289 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
34291 (grub_drive): Likewise.
34293 2009-04-13 David S. Miller <davem@davemloft.net>
34295 * kern/sparc64/ieee1275/ieee1275.c: New file.
34296 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
34297 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
34298 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
34299 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
34300 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
34301 grub_ieee1275_alloc_physmem): Declare new exported functions.
34303 * include/grub/sparc64/ieee1275/loader.h: New file.
34304 * include/grub/sparc64/ieee1275/memory.h: Likewise.
34305 * include/grub/sparc64/kernel.h: Likewise.
34306 * loader/sparc64/ieee1275/linux.c: Likewise.
34308 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
34309 (grub_fstest_SOURCES): Likewise.
34311 * util/hostdisk.c (make_device_name): Do not make any assumptions
34312 about the length of drive names.
34314 * kern/dl.c (grub_dl_load_file): Close file immediately when
34315 we are done using it.
34317 2009-04-12 David S. Miller <davem@davemloft.net>
34319 * kern/misc.c (grub_ltoa): Fix cast when handling negative
34320 values. Noticed by Pavel Roskin.
34322 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
34325 * genmk.rb: Add more flexible image type specification, also
34326 pass --strip-unneeded to objcopy.
34327 * conf/i386-pc.rmk: Use *_FORMAT.
34328 * conf/i386-pc.mk: Rebuilt.
34330 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
34331 (OFDISK_HASH_SZ): Define.
34332 (ofdisk_hash): New hash table.
34333 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
34334 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
34335 instead of device phandle which is not unique.
34337 * kern/sparc64/ieee1275/init.c: Delete, replace with...
34338 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
34339 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
34340 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
34341 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
34342 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
34343 GRUB_KERNEL_MACHINE_DATA_END): Define.
34344 (grub_kernel_image_size, grub_total_module_size): Declare.
34346 2009-04-12 Pavel Roskin <proski@gnu.org>
34348 * configure.ac: Change the logic when we check for target tools.
34349 Do it when the target is specified and it's different from the
34350 specified value of the host.
34352 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
34354 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
34355 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
34356 GNU/kFreeBSD. Check if a device is a character device. Use
34357 DIOCGMEDIASIZE to get the size.
34358 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
34359 support for GNU/kFreeBSD.
34360 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
34361 is a character device instead of a block device. Add support for
34362 FreeBSD device names.
34364 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
34365 is a character device instead of a block device.
34367 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
34368 is a character device instead of a block device.
34370 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
34372 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
34373 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
34374 FreeBSD. Check if a device is a character device. Use
34375 DIOCGMEDIASIZE to get the size.
34376 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
34377 support for FreeBSD.
34378 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
34379 is a character device instead of a block device. Add support for
34380 FreeBSD device names.
34382 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
34383 a character device instead of a block device.
34384 (grub_util_check_char_device): New function.
34386 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
34387 a character device instead of a block device.
34389 * include/grub/util/getroot.h (grub_util_check_char_device): New
34392 2009-04-11 David S. Miller <davem@davemloft.net>
34394 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
34396 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
34397 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
34398 function, if present.
34399 (__bswapdi2): Likewise.
34401 * include/grub/sparc64/ieee1275/boot.h: New file.
34402 * boot/sparc64/ieee1275/boot.S: Likewise.
34403 * boot/sparc64/ieee1275/diskboot.S: Likewise.
34405 * kern/misc.c (grub_ltoa): New function.
34406 (grub_vsprintf): Use it to format 'long' integers.
34408 2009-04-10 David S. Miller <davem@davemloft.net>
34410 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
34411 slots are of type grub_ieee1275_cell_t.
34412 (grub_nand_read): Likewise.
34413 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
34414 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
34415 macros are used to compare values in arg/ret block of the call.
34416 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
34417 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
34418 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
34419 grub_ieee1275_instance_to_path, grub_ieee1275_write,
34420 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
34421 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
34422 grub_ieee1275_close, grub_ieee1275_set_property,
34423 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
34424 grub_ieee1275_cell_t.
34425 * kern/ieee1275/openfw.c (grub_map): Likewise.
34426 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
34427 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
34429 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
34430 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
34431 (grub_devalias_iterate): Likewise.
34433 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
34437 * fs/ufs.c (INODE_NBLOCKS): new definition
34438 (struct grub_ufs_dirent): added fields for non-BSD dirents
34439 (grub_ufs_get_file_block): fixed double indirect handling
34440 (grub_ufs_lookup_symlink): use more robust way to determine whether
34442 (grub_ufs_find_file): support for non-BSD dirents
34443 (grub_ufs_dir): support for non-BSD dirents
34445 2009-04-10 Bean <bean123ch@gnail.com>
34447 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
34448 attribute, otherwise the size would be wrong for i386 platform.
34450 * include/grub/pci.h (grub_pci_read_word): New inline function.
34451 (grub_pci_read_byte): Likewise.
34452 (grub_pci_write): Likewise.
34453 (grub_pci_write_word): Likewise.
34454 (grub_pci_write_byte): Likewise.
34456 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
34458 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
34459 (find_framebuf): Scan pci to locate the frame buffer address.
34461 * commands/efi/fixvideo.c: New file.
34463 * commands/efi/loadbios.c: Likewise.
34465 * commands/memrw.c: Likewise.
34467 * util/grub-dumpbios.in: Likewise.
34469 * conf/common.rmk (grub-dumpbios): New utility.
34470 (pkglib_MODULES): New module memrw.mod.
34471 (memrw_mod_SOURCE): New macro.
34472 (memrw_mod_CFLAGS): Likewise.
34473 (memrw_mod_LDFLAGS): Likewise.
34475 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
34477 (loadbios_mod_SOURCE): New macro.
34478 (loadbios_mod_CFLAGS): Likewise.
34479 (loadbios_mod_LDFLAGS): Likewise.
34480 (fixvideo_mod_SOURCE): Likewise.
34481 (fixvideo_mod_CFLAGS): Likewise.
34482 (fixvideo_mod_LDFLAGS): Likewise.
34484 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
34486 (loadbios_mod_SOURCE): New macro.
34487 (loadbios_mod_CFLAGS): Likewise.
34488 (loadbios_mod_LDFLAGS): Likewise.
34489 (fixvideo_mod_SOURCE): Likewise.
34490 (fixvideo_mod_CFLAGS): Likewise.
34491 (fixvideo_mod_LDFLAGS): Likewise.
34493 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
34495 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
34497 2009-04-07 David S. Miller <davem@davemloft.net>
34499 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
34500 support for R_SPARC_OLO10 relocations. Fix compile warning for
34501 R_SPARC_WDISP30 case.
34502 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
34504 2009-04-06 Pavel Roskin <proski@gnu.org>
34506 * include/grub/misc.h (ARRAY_SIZE): New macro.
34507 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
34509 * loader/i386/linux.c (allocate_pages): Use free_pages().
34510 (grub_linux_unload): Don't use free_pages().
34511 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
34512 wrong index. Treat all other modes as text modes.
34513 (grub_cmd_linux): Initialize vid_mode unconditionally to
34514 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
34516 * commands/help.c (print_command_help): Use cmd->prio, not
34517 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
34519 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
34523 * parttool/pcpart.c: new file
34524 * commands/parttool.c: likewise
34525 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
34526 (parttool_mod_SOURCES): new variable
34527 (parttool_mod_CFLAGS): likewise
34528 (parttool_mod_LDFLAGS): likewise
34529 (pcpart_mod_SOURCES): likewise
34530 (pcpart_mod_CFLAGS): likewise
34531 (pcpart_mod_LDFLAGS): likewise
34532 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
34533 and parttool/pcpart.c
34534 * conf/i386-efi.rmk: likewise
34535 * conf/i386-ieee1275.rmk: likewise
34536 * conf/i386-pc.rmk: likewise
34537 * conf/powerpc-ieee1275.rmk: likewise
34538 * conf/sparc64-ieee1275.rmk: likewise
34539 * conf/x86_64-ieee1275.rmk: likewise
34541 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34543 Support for mtime and further expandability of dir command
34545 * include/grub/lib/datetime.h: moved to ...
34546 * include/grub/datetime.h: ... moved here and added
34547 declaration of grub_unixtime2datetime. All users updated
34548 * include/grub/fs.h: new syntax for dir and mtime functions in
34550 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
34551 and GRUB_FSHELP_FLAGS_MASK
34552 * commands/ls.c (grub_ls_list_files): Write mtime in long format
34553 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
34554 (grub_ext2_mtime): new function
34555 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
34556 (grub_hfsplus_mtime): new function
34557 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
34558 (GRUB_UFS_ATTR_FILE): likewise
34559 (GRUB_UFS_ATTR_LNK): likewise
34560 (struct grub_ufs_sblock): new fields mtime
34561 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
34563 (grub_ufs_dir): mtime support
34564 (grub_ufs_mtime): new function
34565 * fs/affs.c (grub_affs_dir): use new dir syntax
34566 * fs/afs.c (grub_afs_dir): likewise
34567 * fs/cpio.c (grub_cpio_dir): likewise
34568 * fs/fat.c (grub_fat_find_dir): likewise
34569 * fs/hfs.c (grub_hfs_dir): likewise
34570 * fs/iso9660.c (grub_iso9660_dir): likewise
34571 * fs/jfs.c (grub_jfs_dir): likewise
34572 * fs/minix.c (grub_minix_dir): likewise
34573 * fs/ntfs.c (grub_ntfs_dir): likewise
34574 * fs/reiserfs.c (grub_reiserfs_dir): likewise
34575 * fs/sfs.c (grub_sfs_dir): likewise
34576 * fs/xfs.c (grub_xfs_dir): likewise
34577 * util/hostfs.c (grub_hostfs_dir): likewise
34578 * lib/datetime.c: moved to ...
34579 * normal/datetime.c: ... moved here
34580 (grub_unixtime2datetime): new function
34581 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
34582 * normal/completion.c (iterate_dir): use new dir syntax
34583 * normal/misc.c (grub_normal_print_device_info): tell the
34584 last modification time of a volume
34585 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
34586 * conf/common.rmk: added lib/datetime.c to ls.mod
34587 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
34588 (normal_mod_SOURCES): likewise
34589 (datetime_mod_SOURCES): Removed lib/datetime.c
34590 * conf/i386-efi.rmk: likewise
34591 * conf/i386-ieee1275.rmk: likewise
34592 * conf/i386-pc.rmk: likewise
34593 * conf/powerpc-ieee1275.rmk: likewise
34594 * conf/sparc64-ieee1275.rmk: likewise
34595 * conf/x86_64-efi.rmk: likewise
34597 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34599 Trim trailing spaces in FAT label and support mtools-like labels
34601 * fs/fat.c (grub_fat_iterate_dir): New function based
34602 on grub_fat_find_dir
34603 (grub_fat_find_dir): use grub_fat_iterate_dir
34604 (grub_fat_label): likewise
34606 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
34608 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
34610 remove extraneous kernel_elf_HEADERS
34612 2009-04-04 Bean <bean123ch@gnail.com>
34614 * include/grub/util/misc.h: Add dummy function fsync for mingw.
34616 * util/misc.c: Likewise.
34618 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
34620 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
34621 instead of grub_printf.
34623 2009-04-03 Robert Millan <rmh@aybabtu.com>
34625 * loader/i386/linux.c (grub_linux_setup_video): Fill
34626 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
34627 values from `mode info' structure instead of hardcoded
34630 2009-04-01 Pavel Roskin <proski@gnu.org>
34632 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
34634 * genmk.rb: Likewise.
34635 * configure.ac: Likewise.
34637 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
34639 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
34640 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
34642 2009-04-01 David S. Miller <davem@davemloft.net>
34644 * normal/sparc64/setjmp.S: Fix setjmp implementation.
34645 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
34646 (grub_setjmp): Mark with 'returns_twice' attribute.
34647 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
34648 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
34649 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
34651 2009-04-01 Robert Millan <rmh@aybabtu.com>
34653 Reapply fix from 2008-07-28 which was accidentally reverted; also
34654 perform the same fix to a similar check in same function.
34656 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
34657 with the same number are found, just use issue a warning with
34658 grub_dprintf(), as this error has been reported to be non-fatal.
34660 2009-03-31 Pavel Roskin <proski@gnu.org>
34662 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
34663 for cross-compilation.
34665 2009-03-30 Robert Millan <rmh@aybabtu.com>
34667 Fix i386-ieee1275 build.
34669 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
34670 Remove declaration.
34672 2009-03-30 Pavel Roskin <proski@gnu.org>
34674 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
34675 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
34676 zero-terminated, rely only on the strlen value. Fix comparison
34677 of strings differing in length.
34679 2009-03-30 Robert Millan <rmh@aybabtu.com>
34681 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
34682 checking for abi version. Improve error messages on BIOS to notify
34683 user about `linux16' command.
34685 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
34689 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
34690 in case of collision
34691 * disk/scsi.c (grub_scsi_open): free scsi in case of error
34693 2009-03-29 Robert Millan <rmh@aybabtu.com>
34695 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
34696 set `vid_mode' accordingly.
34697 (grub_linux_boot): Process `vid_mode' and set video mode.
34699 2009-03-29 Robert Millan <rmh@aybabtu.com>
34701 * util/grub.d/10_linux.in (linux_entry): New function.
34702 Factorize generation of Linux boot entries.
34704 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
34706 Make the format of Environment Block plain text. The boot loader
34707 part is not tested well yet.
34709 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
34711 (envblk): Likewise.
34712 (usage): Remove "info" and "clear". Add "unset". Update the
34713 description of "set", as this does not delete variables any
34715 (create_envblk_file): Complete rewrite.
34716 (open_envblk_file): Likewise.
34717 (cmd_info): Removed.
34718 (cmd_list): Likewise.
34719 (cmd_set): Likewise.
34720 (cmd_clear): Likewise.
34721 (list_variables): New function.
34722 (write_envblk): Likewise.
34723 (set_variables): Likewise.
34724 (unset_variables): Likewise.
34725 (main): Complete rewrite.
34727 * commands/loadenv.c (buffer): Removed.
34728 (envblk): Likewise.
34729 (open_envblk_file): New function.
34730 (read_envblk_file): Complete rewrite.
34731 (grub_cmd_load_env): Likewise.
34732 (grub_cmd_list_env): Likewise.
34733 (struct blocklist): New struct.
34734 (free_blocklists): New function.
34735 (check_blocklists): Likewise.
34736 (write_blocklists): Likewise.
34737 (grub_cmd_save_env): Complete rewrite.
34739 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
34740 a plain text signature.
34741 (GRUB_ENVBLK_MAXLEN): Removed.
34742 (struct grub_envblk): Complete rewrite.
34743 (grub_envblk_find): Removed.
34744 (grub_envblk_insert): Likewise.
34745 (grub_envblk_open): New prototype.
34746 (grub_envblk_set): Likewise.
34747 (grub_envblk_delete): Put const to VALUE.
34748 (grub_envblk_iterate): Put const to NAME and VALUE.
34749 (grub_envblk_close): New prototype.
34750 (grub_envblk_buffer): New inline function.
34751 (grub_envblk_size): Likewise.
34753 * lib/envblk.c: Include grub/mm.h.
34754 (grub_env_find): Removed.
34755 (grub_envblk_open): New function.
34756 (grub_envblk_close): Likewise.
34757 (escaped_value_len): Likewise.
34758 (find_next_line): Likewise.
34759 (grub_envblk_insert): Removed.
34760 (grub_envblk_set): New function.
34761 (grub_envblk_delete): Complete rewrite.
34762 (grub_envblk_iterate): Likewise.
34764 2009-03-28 Robert Millan <rmh@aybabtu.com>
34766 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
34767 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
34768 variables. Use 16-bit loader.
34769 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
34771 * kern/i386/loader.S (grub_linux_boot): Rename to ...
34772 (grub_linux16_boot): ... this. Update all users.
34773 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
34774 (grub_linux_boot): ... this. Update all users.
34776 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
34777 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
34778 commands to `linux16' and `initrd16'.
34779 (GRUB_MOD_FINI(linux)): Rename to ...
34780 (GRUB_MOD_FINI(linux16)): ... this.
34782 2009-03-24 Pavel Roskin <proski@gnu.org>
34784 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
34785 not just for compilation.
34787 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
34789 Move multiboot helper out of kernel
34791 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
34792 `loader/i386/multiboot_helper.S'.
34793 * conf/i386-coreboot.rmk: Likewise
34794 * conf/i386-ieee1275.rmk: Likewise
34796 * kern/i386/loader.S: Move multiboot helpers from here...
34797 * loader/i386/multiboot_helper.S: ...moved here
34798 * include/grub/i386/loader.h: Move declarations of multiboot
34799 helpers from here...
34800 * include/grub/i386/multiboot.h: ...moved here
34801 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
34803 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34805 * kern/env.c (grub_env_context_open): Added an argument to specify
34806 whether a new context inherits exported variables from current
34807 one. This is useful when making a sandbox to interpret a config
34809 All callers updated.
34811 * include/grub/env.h (grub_env_context_open): Updated the prototype.
34813 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34815 * kern/env.c (grub_env_context_close): Fix memory leaks.
34817 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34819 * normal/main.c (grub_normal_execute): Added an argument
34820 BATCH to specify if an interactive interface should be provided
34821 after reading a config file.
34822 All callers updated.
34823 (read_command_list): Prevent being executed twice.
34824 (read_fs_list): Likewise.
34826 * include/grub/normal.h (grub_normal_execute): Updated the
34829 2009-03-22 Pavel Roskin <proski@gno.org>
34831 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
34833 * kern/i386/pc/startup.S: Likewise.
34834 * kern/i386/efi/startup.S: Likewise.
34835 * kern/i386/ieee1275/startup.S: Likewise.
34836 * kern/i386/coreboot/startup.S: Likewise.
34837 * kern/x86_64/efi/startup.S: Likewise.
34839 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
34840 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
34841 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
34843 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
34845 Bugfixes in multiboot for bugs uncovered by solaris kernel.
34847 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
34849 Use vaddr of correct segment for entry_point.
34851 2009-03-21 Bean <bean123ch@gmail.com>
34853 * commands/blocklist.c: Add include file <grub/command.h>, remove
34854 <grub/normal.h> and <grub/arg.h>.
34855 (grub_cmd_blocklist): Use the new command interface.
34856 (GRUB_MOD_INIT): Likewise.
34857 (GRUB_MOD_FINI): Likewise.
34858 * commands/boot.c: Likewise.
34859 * commands/cat.c: Likewise.
34860 * commands/cmp.c: Likewise.
34861 * commands/configfile.c: Likewise.
34862 * commands/crc.c: Likewise.
34863 * commands/echo.c: Likewise.
34864 * commands/halt.c: Likewise.
34865 * commands/handler.c: Likewise.
34866 * commands/hdparm.c: Likewise.
34867 * commands/help.c: Likewise.
34868 * commands/hexdump.c: Likewise.
34869 * commands/loadenv.c: Likewise.
34870 * commands/ls.c: Likewise.
34871 * commands/lsmmap.c: Likewise.
34872 * commands/lspci.c: Likewise.
34873 * commands/loadenv.c: Likewise.
34874 * commands/read.c: Likewise.
34875 * commands/reboot.c: Likewise.
34876 * commands/search.c: Likewise.
34877 * commands/sleep.c: Likewise.
34878 * commands/test.c: Likewise.
34879 * commands/usbtest.c: Likewise.
34880 * commands/videotest.c: Likewise.
34881 * commands/i386/cpuid.c: Likewise.
34882 * commands/i386/pc/halt.c: Likewise.
34883 * commands/i386/pc/play.c: Likewise.
34884 * commands/i386/pc/pxecmd.c: Likewise.
34885 * commands/i386/pc/vbeinfo.c: Likewise.
34886 * commands/i386/pc/vbetest.c: Likewise.
34887 * commands/ieee1275/suspend.c: Likewise.
34888 * disk/loopback.c: Likewise.
34889 * font/font_cmd.c: Likewise.
34890 * hello/hello.c: Likewise.
34891 * loader/efi/appleloader.c: Likewise.
34892 * loader/efi/chainloader.c: Likewise.
34893 * loader/i386/bsd.c: Likewise.
34894 * loader/i386/efi/linux.c: Likewise.
34895 * loader/i386/ieee1275/linux.c: Likewise.
34896 * loader/i386/linux.c: Likewise.
34897 * loader/i386/pc/chainloader.c: Likewise.
34898 * loader/i386/pc/linux.c: Likewise.
34899 * loader/powerpc/ieee1275/linux.c: Likewise.
34900 * loader/multiboot_loader.c: Likewise.
34901 * term/gfxterm.c: Likewise.
34902 * term/i386/pc/serial.c: Likewise.
34903 * term/terminfo.c: Likewise.
34905 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
34906 * term/i386/pc/vga.c: Likewise.
34907 * video/readers/jpeg.c: Likewise.
34908 * video/readers/png.c: Likewise.
34909 * video/readers/tga.c: Likewise.
34911 * util/grub-fstest (cmd_loopback): Removed.
34912 (cmd_blocklist): Likewise.
34913 (cmd_ls): Likewise.
34914 (grub_register_command): Likewise.
34915 (grub_unregister_command): Likewise.
34916 (execute_command): Use grub_command_find to locate command and execute
34919 * include/grub/efi/chainloader.h: Removed.
34920 * loader/efi/chainloader_normal.c: Likewise.
34921 * loader/i386/bsd_normal.c: Likewise.
34922 * loader/i386/pc/chainloader_normal.c: Likewise.
34923 * loader/i386/pc/multiboot_normal.c: Likewise.
34924 * loader/linux_normal.c: Likewise.
34925 * loader/multiboot_loader_normal.c: Likewise.
34926 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
34928 * gencmdlist.sh: Scan new registration command grub_register_extcmd
34929 and grub_register_command_p1.
34931 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
34932 kern/command.c, lib/arg.c and commands/extcmd.c.
34933 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
34934 (minicmd_mod_SOURCES): New variable.
34935 (minicmd_mod_CFLAGS): Likewise.
34936 (minicmd_mod_LDFLAGS): Likewise.
34937 (extcmd_mod_SOURCES): Likewise.
34938 (extcmd_mod_CFLAGS): Likewise.
34939 (extcmd_mod_LDFLAGS): Likewise.
34940 (boot_mod_SOURCES): Removed.
34941 (boot_mod_CFLAGS): Likewise.
34942 (boot_mod_LDFLAGS): Likewise.
34944 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
34946 (kernel_img_HEADERS): Add command.h.
34947 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
34948 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
34950 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
34951 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
34952 remove the corresponding normal mode command.
34953 (normal_mod_SOURCES): Remove normal/arg.c.
34954 * conf/i386-coreboot.rmk: Likewise.
34955 * conf/i386-efi.rmk: Likewise.
34956 * conf/i386-ieee1275.rmk: Likewise.
34957 * conf/powerpc-ieee1275.rmk: Likewise.
34958 * conf/x86_64-efi.rmk: Likewise.
34960 * include/grub/arg.h: Move from here ...
34961 * include/grub/lib/arg.h: ... to here.
34963 * normal/arg.c: Move from here ...
34964 * lib/arg.c: ... to here.
34966 * commands/extcmd.c: New file.
34967 * commands/minicmd.c: Likewise.
34968 * include/grub/command.h: Likewise.
34969 * include/grub/extcmd.h: Likewise.
34970 * kern/command.c: Likewise.
34971 * kern/corecmd.c: Likewise.
34973 * kern/list.c (grub_list_iterate): Return int instead of void.
34974 (grub_list_insert): New function.
34975 (grub_prio_list_insert): Likewise.
34977 * kern/rescue.c (grub_rescue_command): Removed.
34978 (grub_rescue_command_list): Likewise.
34979 (grub_rescue_register_command): Likewise.
34980 (grub_rescue_unregister_command): Likewise.
34981 (grub_rescue_cmd_boot): Move to minicmd.c
34982 (grub_rescue_cmd_help): Likewise.
34983 (grub_rescue_cmd_info): Likewise.
34984 (grub_rescue_cmd_boot): Likewise.
34985 (grub_rescue_cmd_testload): Likewise.
34986 (grub_rescue_cmd_dump): Likewise.
34987 (grub_rescue_cmd_rmmod): Likewise.
34988 (grub_rescue_cmd_lsmod): Likewise.
34989 (grub_rescue_cmd_exit): Likewise.
34990 (grub_rescue_print_devices): Moved to corecmd.c.
34991 (grub_rescue_print_files): Likewise.
34992 (grub_rescue_cmd_ls): Likewise.
34993 (grub_rescue_cmd_insmod): Likewise.
34994 (grub_rescue_cmd_set): Likewise.
34995 (grub_rescue_cmd_unset): Likewise.
34996 (attempt_normal_mode): Use grub_command_find to get normal module.
34997 (grub_enter_rescue_mode): Use grub_register_core_commands to register
34998 commands, remove grub_rescue_register_command calls.
35000 * normal/command.c (grub_register_command): Removed.
35001 (grub_unregister_command): Likewise.
35002 (grub_command_find): Likewise.
35003 (grub_iterate_commands): Likewise.
35004 (rescue_command): Likewise.
35005 (export_command): Moved to corecmd.c.
35006 (set_command): Removed.
35007 (unset_command): Likewise.
35008 (insmod_command): Likewise.
35009 (rmmod_command): Likewise.
35010 (lsmod_command): Likewise.
35011 (grub_command_init): Likewise.
35013 * normal/completion.c (iterate_command): Use cmd->prio to check for
35015 (complete_arguments): Use grub_extcmd_t structure to find options.
35016 (grub_normal_do_completion): Change function grub_iterate_commands to
35017 grub_command_iterate.
35019 * normal/execute.c (grub_script_execute_cmd): No need to parse
35022 * normal/main.c (grub_dyncmd_dispatcher): New function.
35023 (read_command_list): Register unload commands as dyncmd.
35024 (grub_cmd_normal): Use new command interface, register rescue,
35025 unregister normal at entry, register normal, unregister rescue at exit.
35027 * include/grub/list.h (grub_list_test_t): New type.
35028 (grub_list_iterate): Return int instead of void.
35029 (grub_list_insert): New function.
35030 (GRUB_AS_NAMED_LIST_P): New macro.
35031 (GRUB_AS_PRIO_LIST): Likewise.
35032 (GRUB_AS_PRIO_LIST_P): Likewise.
35033 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
35034 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
35035 (grub_prio_list): New structure.
35036 (grub_prio_list_insert): New function.
35037 (grub_prio_list_remove): New inline function.
35039 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
35040 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
35041 (GRUB_COMMAND_FLAG_MENU): Likewise.
35042 (GRUB_COMMAND_FLAG_BOTH): Likewise.
35043 (GRUB_COMMAND_FLAG_TITLE): Likewise.
35044 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
35045 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
35046 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
35047 (grub_command): Likewise.
35048 (grub_register_command): Likewise.
35049 (grub_command_find): Likewise.
35050 (grub_iterate_commands): Likewise.
35051 (grub_command_init): Likewise.
35052 (grub_arg_parse): Likewise.
35053 (grub_arg_show_help): Likewise.
35055 * include/grub/rescue.h (grub_rescue_register_command): Removed.
35056 (grub_rescue_unregister_command): Likewise.
35058 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
35059 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
35060 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
35062 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
35063 grub_rescue_cmd_initrd.
35064 * include/grub/i386/loader.h: Likewise.
35065 * include/grub/x86_64/loader.h: Likewise.
35067 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
35069 2009-03-21 Bean <bean123ch@gmail.com>
35071 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
35072 instead of stat in mingw environment.
35074 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
35076 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
35078 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
35081 2009-03-21 Bean <bean123ch@gmail.com>
35083 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
35084 out of range error.
35086 2009-03-18 Michel Dänzer <michel@daenzer.net>
35088 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
35089 checking inode flags for EXT4_EXTENTS_FLAG.
35091 2009-03-18 Robert Millan <rmh@aybabtu.com>
35093 * loader/i386/linux.c: Include `<grub/video.h>' and
35094 `<grub/i386/pc/vbe.h>'..
35095 (grub_linux_setup_video): New function. Loosely based on the EFI one.
35096 (grub_linux32_boot): Attempt to configure video settings with
35097 grub_linux_setup_video().
35098 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
35099 to avoid grub_console_fini() which would step out of graphical mode
35102 2009-03-14 Robert Millan <rmh@aybabtu.com>
35104 Fix build on powerpc.
35105 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
35107 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
35109 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
35110 background image command.
35112 2009-03-12 Colin D Bennett <colin@gibibit.com>
35114 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
35115 (grub_gfxterm_putchar): Extract pairs of identical calls to
35116 draw_cursor out of conditional blocks.
35118 2009-03-11 Pavel Roskin <proski@gnu.org>
35120 * fs/hfs.c (grub_hfs_strncasecmp): New function.
35121 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
35123 2009-03-11 Robert Millan <rmh@aybabtu.com>
35125 * loader/i386/multiboot_elfxx.c
35126 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
35128 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
35130 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
35133 2009-03-11 Robert Millan <rmh@aybabtu.com>
35135 * loader/i386/multiboot.c (code_size): New variable.
35136 (grub_multiboot): Define offsets by adding to `code_size' rather
35137 than subtracting from `grub_multiboot_payload_size'. Provide
35138 4-byte alignment to MBI and others by increasing
35139 `boot_loader_name_length' appropriately.
35141 * loader/i386/multiboot_elfxx.c
35142 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
35144 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
35146 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
35149 2009-03-08 Robert Millan <rmh@aybabtu.com>
35151 Make loader/i386/linux.c usable on i386-pc again.
35153 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
35155 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
35158 2009-03-07 Bean <bean123ch@gmail.com>
35160 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
35163 2009-03-06 Robert Millan <rmh@aybabtu.com>
35165 Fix display issue on terminals with screen size other than 80x25
35166 (e.g. gfxterm with resolution higher than 640x480).
35168 * normal/main.c (grub_normal_init_page): Display title text in a
35169 position relative to the center of the terminal instead of relying
35170 on a hardcoded offset.
35172 2009-03-04 Robert Millan <rmh@aybabtu.com>
35174 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
35177 * Makefile.in (host_kernel): New variable.
35178 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
35179 scripts instead of just the windows one.
35180 * configure.ac: Initialize and AC_SUBST `host_kernel'.
35182 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35184 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
35186 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35187 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35188 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35189 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35190 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35191 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35193 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35195 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
35196 or if there's no space for the disk label and print the partition number on a
35199 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35201 * util/misc.c: Include <time.h>.
35202 (grub_millisleep): New function.
35204 2009-03-04 Bean <bean123ch@gmail.com>
35206 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
35207 another option -mno-red-zone.
35209 * commands/handler.c: Change module description.
35211 * kern/handler.c: Add missing space at the end of description line.
35213 * kern/list.c: Likewise.
35215 2009-03-03 Robert Millan <rmh@aybabtu.com>
35217 Move more components to the relocation area, and fix mbi pointer
35218 handling to use the destination rather than the origin (thanks to
35219 Vladimir Serbinenko for spotting).
35221 * loader/i386/multiboot.c (mbi_dest): New variable.
35222 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
35223 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
35226 2009-03-01 Bean <bean123ch@gmail.com>
35228 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
35229 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
35230 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
35231 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
35233 * loader/i386/efi/linux.c (acpi_guid): New variable.
35234 (acpi_guid): Likewise.
35235 (EBDA_SEG_ADDR): New constant.
35236 (LOW_MEM_ADDR): Likewise.
35237 (FAKE_EBDA_SEG): Likewise.
35238 (fake_bios_data): New function.
35239 (grub_linux_boot): Call fake_bios_data.
35241 2009-03-01 Bean <bean123ch@gmail.com>
35243 * commands/terminal.c: Removed.
35245 * commands/handler.c: New file.
35247 * include/grub/list.h: Likewise.
35249 * include/grub/handler.h: Likewise.
35251 * kern/list.c: Likewise.
35253 * kern/handler.c: Likewise.
35255 * kern/term.h: Include header file <grub/handler.h>.
35256 (grub_term_input): Move next field to the beginning.
35257 (grub_term_output): Likewise.
35258 (grub_term_input_class): New variable.
35259 (grub_term_output_class): Likewise.
35260 (grub_term_register_input): Changed to inline function.
35261 (grub_term_register_output): Likewise.
35262 (grub_term_unregister_input): Likewise.
35263 (grub_term_unregister_output): Likewise.
35264 (grub_term_set_current_input): Likewise.
35265 (grub_term_set_current_output): Likewise.
35266 (grub_term_get_current_input): Likewise.
35267 (grub_term_get_current_output): Likewise.
35268 (grub_term_iterate_input): Removed.
35269 (grub_term_iterate_output): Likewise.
35271 * kern/term.c (grub_term_list_input): Removed.
35272 (grub_term_list_output): Likewise.
35273 (grub_term_input_class): New variable.
35274 (grub_term_output_class): Likewise.
35275 (grub_cur_term_input): Change variable as macro.
35276 (grub_cur_term_output): Likewise.
35277 (grub_term_register_input): Removed.
35278 (grub_term_register_output): Likewise.
35279 (grub_term_unregister_input): Likewise.
35280 (grub_term_unregister_output): Likewise.
35281 (grub_term_set_current_input): Likewise.
35282 (grub_term_set_current_output): Likewise.
35283 (grub_term_iterate_input): Likewise.
35284 (grub_term_iterate_output): Likewise.
35285 (grub_term_get_current_input): Likewise.
35286 (grub_term_get_current_output): Likewise.
35288 * util/grub-editenv.c: Include header file <grub/handler.h>.
35289 (grub_term_get_current_input): Removed.
35290 (grub_term_get_current_output): Likewise.
35291 (grub_term_input_class): New variable.
35292 (grub_term_output_class): Likewise.
35294 * util/grub-fstest.c (grub_term_get_current_input): Removed.
35295 (grub_term_get_current_output): Likewise.
35296 (grub_term_input_class): New variable.
35297 (grub_term_output_class): Likewise.
35299 * util/grub-probe.c (grub_term_get_current_input): Removed.
35300 (grub_term_get_current_output): Likewise.
35301 (grub_term_input_class): New variable.
35302 (grub_term_output_class): Likewise.
35304 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
35305 (grub_term_get_current_output): Likewise.
35306 (grub_term_input_class): New variable.
35307 (grub_term_output_class): Likewise.
35309 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
35310 (terminal_mod_SOURCES): Likewise.
35311 (terminal_mod_CFLAGS): Likewise.
35312 (terminal_mod_LDFLAGS): Likewise.
35314 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
35316 (kernel_img_SOURCES): Add list.c and handler.c.
35317 (kernel_img_HEADERS): Add list.h and handler.h.
35319 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
35321 (kernel_mod_SOURCES): Add list.c and handler.c.
35322 (kernel_mod_HEADERS): Add list.h and handler.h.
35324 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
35326 (kernel_elf_SOURCES): Add list.c and handler.c.
35327 (kernel_elf_HEADERS): Add list.h and handler.h.
35329 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
35331 (kernel_elf_SOURCES): Add list.c and handler.c.
35332 (kernel_elf_HEADERS): Add list.h and handler.h.
35334 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
35336 (kernel_mod_SOURCES): Add list.c and handler.c.
35337 (kernel_mod_HEADERS): Add list.h and handler.h.
35339 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
35341 (kernel_elf_SOURCES): Add list.c and handler.c.
35342 (kernel_elf_HEADERS): Add list.h and handler.h.
35344 2009-02-27 Robert Millan <rmh@aybabtu.com>
35346 Factorize elf32 / elf64 code in Multiboot loader. This will
35347 prevent it from getting out of sync again.
35349 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
35350 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
35351 grub_multiboot_load_elf64): Move from here ...
35352 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
35353 grub_multiboot_load_elf): ... to here (new file).
35355 2009-02-27 Robert Millan <rmh@aybabtu.com>
35357 * util/grub.d/10_linux.in: Rename "single-user mode" to
35360 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
35362 Don't leak in SCSI code.
35363 * disk/scsi.c (grub_scsi_close): free `scsi'.
35365 2009-02-27 Robert Millan <rmh@aybabtu.com>
35367 * loader/i386/pc/multiboot.c: Move from here ...
35368 * loader/i386/multiboot.c: ... to here. Update all users.
35370 2009-02-27 Robert Millan <rmh@aybabtu.com>
35372 Patch from Alexandre Bique <bique.alexandre@gmail.com>
35373 * util/i386/pc/grub-setup.c (setup): Fix directory path.
35375 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
35377 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
35380 2009-02-27 Robert Millan <rmh@aybabtu.com>
35382 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
35383 `0x' qualifier as 0 when base is specified as parameter).
35385 2009-02-24 Bean <bean123ch@gmail.com>
35387 * configure.ac: Check for -mcmodel=large in x86_64 target.
35389 * include/grub/efi/api.h (efi_call_10): New macro.
35390 (efi_wrap_10): New function.
35392 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
35393 (GRUB_PE32_REL_BASED_HIGH): Likewise.
35394 (GRUB_PE32_REL_BASED_LOW): Likewise.
35395 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
35396 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
35397 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
35398 (GRUB_PE32_REL_BASED_SECTION): Likewise.
35399 (GRUB_PE32_REL_BASED_REL): Likewise.
35400 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
35401 (GRUB_PE32_REL_BASED_DIR64): Likewise.
35402 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
35404 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
35407 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
35408 (efi_wrap_10): New function.
35410 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
35412 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
35413 MB/MBP model (NV chipset).
35414 (devdata_devs): Add devpath_5 to the list.
35416 * load/i386/efi/linux.c (video_base): Remove variable.
35417 (RGB_MASK): New macro.
35418 (RGB_MAGIC): Likewise.
35419 (LINE_MIN): Likewise.
35420 (LINE_MAX): Likewise.
35421 (FBTEST_STEP): Likewise.
35422 (FBTEST_COUNT): Likewise.
35423 (fb_list): New variable.
35424 (grub_find_video_card): Remove function.
35425 (find_framebuf): New function.
35426 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
35429 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
35430 problem for x86_64.
35432 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
35434 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
35436 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
35439 2009-02-22 Robert Millan <rmh@aybabtu.com>
35441 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
35442 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
35443 in our relocation, instead of using it directly from heap. Also
35444 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
35446 2009-02-21 Robert Millan <rmh@aybabtu.com>
35448 Implement USB keyboard support (based on patch by Marco Gerards)
35450 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
35451 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
35452 (usb_keyboard_mod_LDFLAGS): New variables.
35454 * term/usb_keyboard.c: New file.
35456 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
35458 Corrected wrong declaration
35460 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
35462 2009-02-14 Christian Franke <franke@computer.org>
35464 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
35465 (grub_lspci_iter): Print class code and programming interface byte.
35467 2009-02-14 Christian Franke <franke@computer.org>
35469 * gendistlist.sh: Ignore `.svn' directories.
35471 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
35473 * fs/fat.c: Add 2009 to Copyright line.
35475 2009-02-14 Christian Franke <franke@computer.org>
35477 * commands/hdparm.c: New file. Provides `hdparm' command
35478 which sends ATA commands via grub_disk_ata_pass_through ().
35480 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
35482 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
35483 and <grub/cpu/io.h> to include/grub/ata.h.
35484 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
35485 (GRUB_CDROM_SECTOR_SIZE): Remove.
35486 (GRUB_ATA_*): Move to include/grub/ata.h.
35487 (GRUB_ATAPI_*): Likewise.
35488 (enum grub_ata_commands): Likewise.
35489 (enum grub_ata_timeout_milliseconds): Likewise.
35490 (struct grub_ata_device): Likewise.
35491 (grub_ata_regset): Likewise.
35492 (grub_ata_regget): Likewise.
35493 (grub_ata_regset2): Likewise.
35494 (grub_ata_regget2): Likewise.
35495 (grub_ata_check_ready): Likewise.
35496 (grub_ata_wait_not_busy): Remove static, exported in
35497 include/grub/ata.h.
35498 (grub_ata_wait_drq): Likewise.
35499 (grub_ata_pio_read): Likewise.
35501 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
35502 function for hdparm.mod.
35504 * include/grub/ata.h: New file, contains declarations from
35506 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
35508 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
35509 (grub_disk_ata_pass_through): New exported variable.
35511 * kern/disk.c (grub_disk_ata_pass_through): New variable.
35513 2009-02-13 Colin D Bennett <colin@gibibit.com>
35515 Support multiple fallback entries, and provide an API to support
35516 executing default+fallback menu entries. Renamed the `terminal' menu
35519 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
35520 variable declaration.
35521 (grub_menu_execute_callback): New structure declaration.
35522 (grub_menu_execute_callback_t): New typedef.
35523 (grub_menu_execute_with_fallback): New function declaration.
35524 (grub_menu_get_entry): Likewise.
35525 (grub_menu_get_timeout): Likewise.
35526 (grub_menu_set_timeout): Likewise.
35528 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
35530 * normal/menu.c (grub_wait_after_message): Moved to
35531 `normal/menu_text.c'.
35532 (draw_border): Likewise.
35533 (print_message): Likewise.
35534 (print_entry): Likewise.
35535 (print_entries): Likewise.
35536 (grub_menu_init_page): Likewise.
35537 (get_entry_number): Likewise.
35538 (print_timeout): Likewise.
35539 (run_menu): Likewise.
35540 (grub_menu_execute_entry): Likewise.
35541 (show_text_menu): Likewise.
35542 (get_and_remove_first_entry_number): New function.
35543 (grub_menu_execute_with_fallback): Likewise.
35544 (get_entry): Renamed to ...
35545 (grub_menu_get_entry): .. this and made it global.
35546 (get_timeout): Renamed to ...
35547 (grub_menu_get_timeout): ... this and made it global.
35548 (set_timeout): Renamed to ...
35549 (grub_menu_set_timeout): ... this and made it global.
35550 (grub_normal_terminal_menu_viewer): Renamed to ...
35551 (grub_normal_text_menu_viewer): ... this.
35553 * normal/menu_text.c: New file. Extracted text-menu-specific code
35554 from normal/menu.c.
35556 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
35557 (normal_mod_SOURCES): Likewise.
35559 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35560 (normal_mod_SOURCES): Likewise.
35562 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35563 (normal_mod_SOURCES): Likewise.
35565 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
35566 (normal_mod_SOURCES): Likewise.
35568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35569 (normal_mod_SOURCES): Likewise.
35571 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35572 (normal_mod_SOURCES): Likewise.
35574 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35575 (normal_mod_SOURCES): Likewise.
35577 2009-02-11 Robert Millan <rmh@aybabtu.com>
35579 * util/grub.d/00_header.in: Update old reference to `font' command.
35581 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
35583 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
35585 Based on patch from Javier Martín.
35587 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
35589 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
35590 to avoid false positives with FAT.
35591 (grub_fstest_SOURCES): Likewise.
35592 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35593 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35594 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35595 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35596 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35597 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35599 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
35601 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
35602 bpb.version_specific.fat12_or_fat16.fstype and
35603 bpb.version_specific.fat32.fstype.
35605 2009-02-08 Robert Millan <rmh@aybabtu.com>
35607 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
35609 2009-02-08 Robert Millan <rmh@aybabtu.com>
35611 * Makefile.in (host_os, host_cpu): New variables.
35612 (target_os): Remove. Update all users.
35614 2009-02-08 Marco Gerards <marco@gnu.org>
35616 * Makefile.in (enable_grub_emu_usb): New variable.
35617 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
35618 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
35619 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
35620 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
35621 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
35622 `usbtest.mod' and `usbms.mod'.
35623 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
35624 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
35625 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
35626 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
35627 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
35630 * disk/usbms.c: New file.
35632 * include/grub/usb.h: Likewise.
35634 * include/grub/usbtrans.h: Likewise.
35636 * include/grub/usbdesc.h: Likewise.
35638 * bus/usb/usbtrans.c: Likewise.
35640 * bus/usb/ohci.c: Likewise.
35642 * bus/usb/uhci.c: Likewise.
35644 * bus/usb/usbhub.c: Likewise.
35646 * bus/usb/usb.c: Likewise.
35648 * commands/usbtest.c: Likewise.
35650 * util/usb.c: Likewise.
35652 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
35654 * configure.ac: Test for libusb presence.
35656 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
35658 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
35660 * kern/mm.c: Add more comments.
35662 2009-02-08 Robert Millan <rmh@aybabtu.com>
35664 Patch from Javier Martín.
35665 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
35666 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
35668 2009-02-08 Robert Millan <rmh@aybabtu.com>
35670 * fs/cpio.c: Split tar functionality to ...
35671 * fs/tar.c: ... here (new file). Update all users.
35673 2009-02-07 Robert Millan <rmh@aybabtu.com>
35675 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
35676 backward-incompatible features.
35678 Based on patch from Javier Martín, with some adjustments.
35680 2009-02-07 Michael Scherer <misc@mandriva.org>
35682 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
35684 2009-02-07 Robert Millan <rmh@aybabtu.com>
35686 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
35687 position of `disk/lvm.c' to ensure grub_init_all() always picks it
35688 after the RAID stuff.
35690 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
35692 Fixes problem when running vbetest command as reported by
35693 Vladimir Serbinenko <phcoder@gmail.com>.
35695 * (grub_vbe_set_video_mode): Fixed problem with text modes.
35697 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
35699 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
35700 /dev/md/NpN style mdraid devices.
35702 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
35704 * util/unifont2pff.rb: Remove.
35706 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
35708 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
35711 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
35713 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
35714 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35715 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35716 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35717 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35718 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35719 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35721 2009-02-02 Christian Franke <franke@computer.org>
35723 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
35725 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
35727 * INSTALL: Note that we now require at least autoconf 2.59 and
35728 that LZO is optional.
35730 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35732 Base on patch on bug #24154 created by Tomas Tintera
35733 <trosos@seznam.cz>.
35735 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
35737 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35739 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
35740 <bero@arklinux.org>.
35742 * normal/parser.y (script_init): Add missing semicolon.
35744 2009-01-31 Colin D Bennett <colin@gibibit.com>
35746 * normal/main.c: Add include to grub/menu_viewer.h.
35747 (free_menu_entry_classes): Added.
35748 (grub_normal_menu_addentry): Added class property handling.
35749 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
35750 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
35752 * normal/menu_viewer.c: New file.
35754 * normal/menu.c (run_menu_entry): Renamed to ...
35755 (grub_menu_execute_entry): ... this and made it as global.
35756 (grub_menu_run): Renamed to ...
35757 (show_text_menu): ... this and made it local.
35758 (show_text_menu): Adapt to new function names.
35759 (grub_normal_terminal_menu_viewer): New global variable.
35761 * include/grub/menu.h: New file.
35763 * include/grub/menu_viewer.h: New file.
35765 * include/grub/normal.h: Added include to grub/menu.h.
35766 (grub_menu_entry): Moved to include/grub/menu.h.
35767 (grub_menu_entry_t): Likewise.
35768 (grub_menu): Likewise.
35769 (grub_menu_t): Likewise.
35770 (grub_normal_terminal_menu_viewer): Added.
35771 (grub_menu_execute_entry): Likewise.
35772 (grub_menu_run): Removed.
35774 * DISTLIST: Added include/grub/menu.h.
35775 Added include/grub/menu_viewer.h.
35776 Added normal/menu_viewer.c.
35778 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
35780 * normal/execute.c (grub_script_execute_menuentry): Changed to use
35781 arglist for menutitle arguments.
35783 * normal/main.c (grub_normal_menu_addentry): Likewise.
35785 * normal/parser.y (menuentry): Likewise.
35787 * normal/script.c (grub_script_create_cmdmenu): Likewise.
35789 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
35790 (grub_script_create_cmdmenu): Likewise.
35792 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
35794 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
35797 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
35799 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
35801 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
35803 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35805 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35807 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35809 2009-01-30 Christian Franke <franke@computer.org>
35811 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
35812 in option help text.
35814 2009-01-27 Pavel Roskin <proski@gnu.org>
35816 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
35818 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35820 * commands/lsmmap.c: Add include to grub/machine/memory.h.
35822 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
35824 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
35825 unregister function.
35827 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35829 * disk/scsi.c (grub_scsi_read): Fix sign problem.
35831 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
35833 * util/grub-mkfont.c (usage): Fix typo.
35835 * util/elf/grub-mkimage.c (load_modules): Fix warning.
35837 2009-01-26 Daniel Mierswa <impulze@impulze.org>
35839 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
35841 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
35843 * kern/misc.c (grub_strcasecmp): New function.
35844 (grub_strcasecmp): Use grub_size_t instead of int for length.
35846 * include/grub/misc.h: Update function prototypes.
35848 2009-01-26 Robert Millan <rmh@aybabtu.com>
35850 * configure.ac: Fix cross-compilation check.
35852 2009-01-22 Christian Franke <franke@computer.org>
35854 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
35855 (precision) digit string. Allow `.format2' without `format1' (width).
35856 Limit input chars for `%s' output to `format2' if specified. This is
35857 compatible with standard printf ().
35859 2009-01-22 Christian Franke <franke@computer.org>
35861 * disk/ata.c (grub_ata_wait_status): Replace by ...
35862 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
35863 other status bits may be invalid while BSY is asserted.
35864 (grub_ata_check_ready): New function.
35865 (grub_ata_cmd): Removed.
35866 (grub_ata_wait_drq): New function.
35867 (grub_ata_strncpy): Remove inline.
35868 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
35869 and error check now done by grub_ata_wait_drq ().
35870 (grub_ata_pio_write): Likewise.
35871 (grub_atapi_identify): Set DEV before check for !BSY. Use
35872 grub_ata_wait_drq () to wait for data.
35873 (grub_ata_device_initialize): Add status register check to
35874 detect missing SATA slave devices. Add debug messages.
35875 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
35876 (grub_atapi_packet): Set DEV before check for !BSY. Replace
35877 transfer loop by grub_ata_pio_write ().
35878 (grub_ata_identify): Set DEV before check for !BSY. Use
35879 grub_ata_wait_drq () to wait for data.
35880 (grub_ata_setaddress): Set DEV before check for !BSY.
35881 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
35882 read/write in one loop. Fix invalid command on write. Fix incomplete
35883 command on (size % batch) == 0. Add missing error check after write of
35884 last block. Add debug messages.
35885 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
35887 2009-01-19 Christian Franke <franke@computer.org>
35889 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
35890 (GRUB_ATAPI_IREASON_*): Likewise.
35891 (grub_ata_pio_write): Fix timeout error return.
35892 (grub_atapi_identify): Add grub_ata_wait () after cmd.
35893 (grub_atapi_wait_drq): New function.
35894 (grub_atapi_packet): New parameter `size'.
35895 Use grub_atapi_wait_drq () and direct write instead of
35896 grub_ata_pio_write ().
35897 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
35898 reads the number of bytes requested by the device for each DRQ
35900 (grub_atapi_write): Remove old implementation, return not
35901 implemented instead.
35903 2009-01-19 Christian Franke <franke@computer.org>
35905 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
35906 of 512 to calculate data size.
35907 (grub_scsi_read12): Likewise.
35908 (grub_scsi_write10): Likewise.
35909 (grub_scsi_write12): Likewise.
35910 (grub_scsi_read): Adjust size according to blocksize.
35911 Add checks for invalid blocksize and unaligned transfer.
35913 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
35915 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
35917 * term/gfxterm.c (write_char): Fix background rendering for wide
35920 2009-01-19 Robert Millan <rmh@aybabtu.com>
35922 * config.guess: Update to latest version from config git.
35923 * config.sub: Likewise.
35925 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
35927 * Makefile.in: Change font compilation to use new grub-mkfont instead
35930 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
35931 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
35932 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
35933 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
35934 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
35935 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
35936 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
35937 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
35938 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
35940 2009-01-16 Christian Franke <franke@computer.org>
35942 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
35943 (enum grub_ata_timeout_milliseconds): New enum.
35944 (grub_ata_wait_status): Add parameter milliseconds.
35945 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
35946 recovery from timed-out commands.
35947 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
35948 return grub_errno instead of REG_ERROR.
35949 (grub_ata_pio_write): Add parameter milliseconds.
35950 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
35951 Pass milliseconds to grub_ata_wait_status () and
35952 grub_ata_pio_read ().
35953 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
35954 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
35955 grub_ata_wait_status (). Fix IDENTIFY timeout check.
35956 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
35957 It is not suitable for device detection, because DEV bit is ignored,
35958 the command may run too long, and not all devices set the signature
35960 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
35961 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
35962 Fix device selection, DEV bit must be set first to address the registers
35963 of the correct device.
35964 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
35965 grub_ata_pio_read/write ().
35966 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
35967 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
35969 2009-01-13 Carles Pina i Estany <carles@pina.cat>
35971 * util/grub-editenv.c (main): Use fseeko(), not fseek().
35973 2009-01-13 Bean <bean123ch@gmail.com>
35975 * util/grub-mkfont.c (write_font): forget to remove some debug code.
35977 2009-01-13 Bean <bean123ch@gmail.com>
35979 * Makefile.in: (enable_grub_mkfont): New variable.
35980 (freetype_cflags): Likewise.
35981 (freetype_libs): Likewise.
35983 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
35984 (grub_mkfont_SOURCES): New variable.
35985 (grub_mkfont_CFLAGS): Likewise.
35986 (grub_mkfont_LDFLAGS): Likewise.
35988 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
35989 library if `--enable-grub-mkfont' is requested.
35990 (enable_grub_mkfont): New variable.
35991 (freetype_cflags): Likewise.
35992 (freetype_libs): Likewise.
35994 * util/grub-mkfont.c: New file.
35996 2009-01-12 Christian Franke <franke@computer.org>
35998 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
35999 mode check. Fix setting of compat_use[].
36001 2009-01-10 Robert Millan <rmh@aybabtu.com>
36003 Update a few copyright years which we forgot to do in 2008 (only for
36004 files whose changes made in 2008 were copyright-significant)
36006 * Makefile.in: Add 2008 to Copyright line.
36007 * disk/ieee1275/ofdisk.c: Likewise.
36008 * disk/efi/efidisk.c: Likewise.
36009 * kern/dl.c: Likewise.
36010 * kern/sparc64/ieee1275/init.c: Likewise.
36011 * kern/mm.c: Likewise.
36012 * kern/efi/mm.c: Likewise.
36013 * boot/i386/pc/boot.S: Likewise.
36014 * genfslist.sh: Likewise.
36015 * fs/iso9660.c: Likewise.
36016 * fs/hfs.c: Likewise.
36017 * fs/jfs.c: Likewise.
36018 * fs/minix.c: Likewise.
36019 * fs/ufs.c: Likewise.
36020 * gensymlist.sh.in: Likewise.
36021 * genkernsyms.sh.in: Likewise.
36022 * include/grub/misc.h: Likewise.
36023 * include/grub/types.h: Likewise.
36024 * include/grub/symbol.h: Likewise.
36025 * include/grub/elf.h: Likewise.
36026 * include/grub/kernel.h: Likewise.
36027 * include/grub/disk.h: Likewise.
36028 * include/grub/dl.h: Likewise.
36029 * include/grub/i386/linux.h: Likewise.
36030 * include/grub/i386/pc/biosdisk.h: Likewise.
36031 * include/grub/efi/api.h: Likewise.
36032 * include/grub/efi/pe32.h: Likewise.
36033 * include/grub/util/misc.h: Likewise.
36034 * normal/execute.c: Likewise.
36035 * normal/arg.c: Likewise.
36036 * normal/completion.c: Likewise.
36037 * normal/lexer.c: Likewise.
36038 * normal/parser.y: Likewise.
36039 * normal/misc.c: Likewise.
36040 * commands/i386/pc/vbeinfo.c: Likewise.
36041 * commands/hexdump.c: Likewise.
36042 * commands/terminal.c: Likewise.
36043 * commands/ls.c: Likewise.
36044 * commands/help.c: Likewise.
36045 * partmap/pc.c: Likewise.
36046 * loader/efi/chainloader.c: Likewise.
36047 * loader/multiboot_loader.c: Likewise.
36048 * loader/i386/pc/multiboot2.c: Likewise.
36049 * term/efi/console.c: Likewise.
36050 * term/i386/pc/serial.c: Likewise.
36051 * util/lvm.c: Likewise.
36052 * util/console.c: Likewise.
36053 * util/i386/efi/grub-mkimage.c: Likewise.
36054 * util/raid.c: Likewise.
36056 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
36058 * commands/videotest.c: Removed include to grub/machine/memory.h.
36060 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
36061 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
36062 (video_mod_SOURCES): Removed.
36063 (video_mod_CFLAGS): Likewise.
36064 (video_mod_LDFLAGS): Likewise.
36065 (gfxterm_mod_SOURCES): Likewise.
36066 (gfxterm_mod_CFLAGS): Likewise.
36067 (gfxterm_mod_LDFLAGS): Likewise.
36068 (videotest_mod_SOURCES): Likewise.
36069 (videotest_mod_CFLAGS): Likewise.
36070 (videotest_mod_LDFLAGS): Likewise.
36071 (bitmap_mod_SOURCES): Likewise.
36072 (bitmap_mod_CFLAGS): Likewise.
36073 (bitmap_mod_LDFLAGS): Likewise.
36074 (tga_mod_SOURCES): Likewise.
36075 (tga_mod_CFLAGS): Likewise.
36076 (tga_mod_LDFLAGS): Likewise.
36077 (jpeg_mod_SOURCES): Likewise.
36078 (jpeg_mod_CFLAGS): Likewise.
36079 (jpeg_mod_LDFLAGS): Likewise.
36080 (png_mod_SOURCES): Likewise.
36081 (png_mod_CFLAGS): Likewise.
36082 (png_mod_LDFLAGS): Likewise.
36084 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
36085 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
36086 (video_mod_SOURCES): Added.
36087 (video_mod_CFLAGS): Likewise.
36088 (video_mod_LDFLAGS): Likewise.
36089 (videotest_mod_SOURCES): Likewise.
36090 (videotest_mod_CFLAGS): Likewise.
36091 (videotest_mod_LDFLAGS): Likewise.
36092 (bitmap_mod_SOURCES): Likewise.
36093 (bitmap_mod_CFLAGS): Likewise.
36094 (bitmap_mod_LDFLAGS): Likewise.
36095 (tga_mod_SOURCES): Likewise.
36096 (tga_mod_CFLAGS): Likewise.
36097 (tga_mod_LDFLAGS): Likewise.
36098 (jpeg_mod_SOURCES): Likewise.
36099 (jpeg_mod_CFLAGS): Likewise.
36100 (jpeg_mod_LDFLAGS): Likewise.
36101 (png_mod_SOURCES): Likewise.
36102 (png_mod_CFLAGS): Likewise.
36103 (png_mod_LDFLAGS): Likewise.
36104 (gfxterm_mod_SOURCES): Likewise.
36105 (gfxterm_mod_CFLAGS): Likewise.
36106 (gfxterm_mod_LDFLAGS): Likewise.
36108 * term/gfxterm.c: Removed include to grub/machine/memory.h,
36109 grub/machine/console.h.
36111 2009-01-04 Jerone Young <jerone@gmail.com>
36113 Make on screen instructions clearer
36115 Based on patch created by Jidanni <jidanni@jidanni.org>
36117 * normal/menu.c: print clearer instructions on the screen
36119 2009-01-02 Colin D Bennett <colin@gibibit.com>
36123 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
36124 build system and fixed gfxterm.c to work with different sized fonts.
36126 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
36128 * configure: Re-generated.
36130 * DISTLIST: Removed font/manager.c.
36132 Added font/font_cmd.c.
36134 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
36137 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
36139 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
36141 * kern/term.c: Changed users of grub_utf8_to_ucs4.
36143 * normal/menu.c: Likewise.
36145 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
36146 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
36148 * include/grub/font.h: Replaced with new file.
36150 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
36151 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
36152 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
36153 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
36154 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
36155 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
36156 fg_red, fg_green, fg_blue, fg_alpha.
36157 (grub_video_adapter): Removed blit_glyph.
36158 (grub_video_blit_glyph): Removed.
36160 * font/manager.c: Removed file.
36162 * font/font.c: New file.
36164 * font/font_cmd.c: Likewise.
36166 * video/video.c (grub_video_blit_glyph): Removed.
36168 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
36169 (grub_video_vbe_map_rgba): Likewise.
36170 (grub_video_vbe_unmap_color_int): Likewise.
36171 (grub_video_vbe_blit_glyph): Removed.
36172 (grub_video_vbe_adapter): Removed blit_glyph.
36174 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
36175 (get_pixel): Likewise.
36176 (set_pixel): Likewise.
36178 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
36180 * term/gfxterm.c: Adapted to new font engine.
36182 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
36184 * term/i386/pc/vga.c: Likewise.
36186 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
36188 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
36190 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36192 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36194 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
36196 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
36198 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
36200 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
36202 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
36204 * util/grub.d/00_header.in: Changed to use new loadfont command.
36206 * util/grub-mkconfig_lib.in: Changed font extension.
36208 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
36210 * util/getroot.c (grub_util_get_grub_dev): Add support for
36211 /dev/md/dNNpNN style partitionable mdraid devices.
36213 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
36215 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
36216 at a time limit of the PXE TFTP API correctly.
36217 (grub_pxefs_close): Likewise.
36219 2008-11-29 Robert Millan <rmh@aybabtu.com>
36221 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
36222 grub_ata_device_initialize() calls.
36224 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
36226 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
36228 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
36230 2008-11-28 Robert Millan <rmh@aybabtu.com>
36232 Fix build on powerpc-ieee1275. Based on patch created by
36233 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
36234 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36235 `kern/ieee1275/mmap.c'.
36236 * include/grub/powerpc/ieee1275/memory.h: New file.
36238 Provide grub-install on coreboot.
36239 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
36240 (grub_install_SOURCES): New variable.
36241 * util/i386/pc/grub-install.in: Add a few condition checks to make it
36242 usable on coreboot.
36244 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
36246 * util/grub-fstest.c (grub_term_get_current_input): Change return type
36247 to `grub_term_input_t'.
36248 (grub_term_get_current_output): Change return type to
36249 `grub_term_output_t'.
36251 2008-11-22 Robert Millan <rmh@aybabtu.com>
36253 Fix breakage on coreboot due to declaration mismatch.
36254 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
36255 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
36256 grub_vga_text_cls().
36258 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
36259 comments. Avoid copying one more byte than necessary (just in case).
36261 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
36262 to 0x200000 (avoids trouble with some OFW implementations, and matches
36263 with the one in Yaboot).
36264 Reported by Manoel Abranches
36266 2008-11-20 Robert Millan <rmh@aybabtu.com>
36268 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
36269 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
36271 * util/grub-mkconfig_lib.in (grub_warn): New function.
36272 (convert_system_path_to_grub_path): Use grub_warn() when issuing
36273 warnings, to obtain consistent formatting.
36274 * util/grub.d/00_header.in: Likewise.
36275 * util/update-grub_lib.in: Likewise.
36277 * loader/i386/linux.c (allocate_pages): Fix a warning.
36278 Move comment text to `#error' stanza.
36280 Harmonize ieee1275's grub_available_iterate() with the generic
36281 grub_machine_mmap_iterate() interface (fixes a recently-introduced
36282 build problem on i386-ieee1275):
36283 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
36284 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
36285 parameter `type'. Update all users of this function.
36286 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
36287 `kern/ieee1275/mmap.c'.
36288 * kern/ieee1275/init.c
36289 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
36291 (grub_machine_mmap_iterate): ... this.
36292 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
36293 return type to `grub_err_t'. Update all implementations of this
36294 function prototype.
36295 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
36298 Add `lsmmap' command (lists firmware-provided memory map):
36299 * commands/lsmmap.c: New file.
36300 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
36301 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
36303 * conf/powerpc-ieee1275.rmk: Likewise.
36304 * conf/i386-coreboot.rmk: Likewise.
36305 * conf/i386-ieee1275.rmk: Likewise.
36307 2008-11-19 Robert Millan <rmh@aybabtu.com>
36309 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
36310 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
36311 constraints to initrd allocation (based on code from
36312 loader/i386/pc/linux.c). Without them, initrd was allocated too high
36313 for Linux to find it.
36315 2008-11-14 Robert Millan <rmh@aybabtu.com>
36317 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
36318 order to cope with duplicate slashes.
36320 2008-11-14 Robert Millan <rmh@aybabtu.com>
36322 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
36323 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
36324 don't want to mess with lower memory, because it is used in the Linux
36327 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
36328 an appropriate place in lower memory, between 0x10000 and 0x90000,
36329 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
36330 is in our heap (probably as a result of it being corrupted during
36331 decompression). Add #error instance with comment to explain why this
36332 loader isn't currently usable on PC/BIOS.
36334 2008-11-14 Robert Millan <rmh@aybabtu.com>
36336 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
36337 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
36339 2008-11-12 Robert Millan <rmh@aybabtu.com>
36341 Make loader/i386/linux.c buildable on i386-pc (although disabled).
36343 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
36344 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
36346 * include/grub/i386/pc/memory.h: ... to here.
36348 2008-11-12 Robert Millan <rmh@aybabtu.com>
36350 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
36353 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
36354 (grub_console_cur_color, grub_console_real_putchar)
36355 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
36356 (grub_console_setcolorstate, grub_console_setcolor)
36357 (grub_console_getcolor): Move from here ...
36358 * include/grub/i386/vga_common.h: ... to here (new file).
36360 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
36361 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
36362 `<grub/i386/io.h>'.
36363 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
36364 `<grub/i386/vga_common.h>'.
36366 2008-11-12 Robert Millan <rmh@aybabtu.com>
36368 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
36369 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
36370 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
36372 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
36373 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
36375 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
36376 grub_console_init() with call to grub_vga_text_init().
36377 (grub_machine_fini): Replace call to
36378 grub_console_fini() with call to grub_vga_text_fini() and
36379 grub_at_keyboard_fini().
36381 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
36382 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
36383 (grub_console_setcolorstate, grub_console_setcolor)
36384 (grub_console_getcolor): New function prototypes.
36386 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
36387 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
36388 (grub_vga_text_setcursor): Static-ize.
36389 (grub_vga_text_term): New structure.
36390 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
36392 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
36393 (grub_console_cur_color, grub_console_standard_color)
36394 (grub_console_normal_color, grub_console_highlight_color)
36395 (map_char, grub_console_putchar, grub_console_getcharwidth)
36396 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
36397 (grub_console_getcolor): Move from here ...
36398 * term/i386/vga_common.c: ... to here (same function names).
36400 2008-11-12 Robert Millan <rmh@aybabtu.com>
36402 Use newly-added Multiboot support in coreboot.
36404 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
36405 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
36407 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
36408 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
36409 (codestart): Store the MBI in `startup_multiboot_info' when we're
36410 being loaded using Multiboot.
36412 * kern/i386/coreboot/init.c (grub_machine_init): Move
36413 grub_at_keyboard_init() call to beginning of function (useful for
36414 debugging). Call grub_machine_mmap_init() before attempting to use
36415 grub_machine_mmap_iterate().
36416 (grub_lower_mem, grub_upper_mem): Move from here ...
36417 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
36420 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
36421 function prototype.
36423 2008-11-12 Robert Millan <rmh@aybabtu.com>
36425 Fix a regression introduced by the at_keyboard.mod split. Because
36426 some terminals are default on some platforms and non-default on
36427 others, the first terminal being registered determines which is
36428 going to be default.
36430 * kern/term.c (grub_term_register_input): If this is the first
36431 terminal being registered, set it as the current one.
36432 (grub_term_register_output): Likewise.
36434 * term/efi/console.c (grub_console_init): Do not call
36435 grub_term_set_current_output() or grub_term_set_current_input().
36436 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
36437 * term/i386/pc/console.c (grub_console_init): Likewise.
36438 (grub_console_fini): Do not call grub_term_set_current_input()
36439 (but leave grub_term_set_current_output() to restore text mode).
36441 2008-11-10 Robert Millan <rmh@aybabtu.com>
36443 * util/grub.d/00_header.in: Add backward compatibility check for
36444 versions of terminal.mod that don't understand `terminal_input' or
36447 2008-11-09 Robert Millan <rmh@aybabtu.com>
36449 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
36450 `terminal_input' / `terminal_output', not `terminal'.
36452 2008-11-08 Robert Millan <rmh@aybabtu.com>
36454 * Makefile.in (include_DATA): Fix srcdir=. assumption.
36455 (DISTCLEANFILES): Add `build_env.mk'.
36457 2008-11-08 Robert Millan <rmh@aybabtu.com>
36459 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
36460 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36461 members. Update all users.
36462 * util/console.c (grub_ncurses_term): Split in ...
36463 (grub_ncurses_term_input): ... this, and ...
36464 (grub_ncurses_term_output): ... this. Update all users.
36465 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
36467 2008-11-08 Robert Millan <rmh@aybabtu.com>
36469 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
36470 (PKGDATA): Add $(pkgdata_SRCDIR).
36471 (pkglib_BUILDDIR): New variable.
36472 (pkgdata_SRCDIR): New variable.
36473 (build_env.mk): New target.
36474 (include_DATA): New variable.
36475 (install-local): Install $(include_DATA) files in $(includedir).
36477 2008-11-07 Pavel Roskin <proski@gnu.org>
36479 * gendistlist.sh: Use C locale for sorting to ensure consistent
36480 output on all systems.
36482 * util/grub.d/00_header.in: Remove incorrect space before
36485 2008-11-07 Robert Millan <rmh@aybabtu.com>
36487 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
36489 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
36490 * loader/multiboot_loader.c (find_multi_boot2_header): New function
36491 (based on find_multi_boot1_header).
36492 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
36493 using find_multi_boot2_header(), and abort if neither Multiboot or
36494 Multiboot headers were found.
36496 2008-11-07 Robert Millan <rmh@aybabtu.com>
36498 Modularize at_keyboard.mod:
36500 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
36501 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
36502 (at_keyboard_mod_LDFLAGS): New variables.
36504 Actual terminal split:
36506 * include/grub/term.h (struct grub_term): Split in ...
36507 (struct grub_term_input): ... this, and ...
36508 (struct grub_term_output): ... this. Update all users.
36509 (grub_term_set_current): Split in ...
36510 (grub_term_set_current_input): ... this, and ...
36511 (grub_term_set_current_output): ... this.
36512 (grub_term_get_current): Split in ...
36513 (grub_term_get_current_input): ... this, and ...
36514 (grub_term_get_current_output): ... this.
36515 (grub_term_register): Split in ...
36516 (grub_term_register_input): ... this, and ...
36517 (grub_term_register_output): ... this.
36518 (grub_term_unregister): Split in ...
36519 (grub_term_unregister_input): ... this, and ...
36520 (grub_term_unregister_output): ... this.
36521 (grub_term_iterate): Split in ...
36522 (grub_term_iterate_input): ... this, and ...
36523 (grub_term_iterate_output): ... this.
36525 * kern/term.c (grub_term_list): Split in ...
36526 (grub_term_list_input): ... this, and ...
36527 (grub_term_list_output): ... this. Update all users.
36528 (grub_cur_term): Split in ...
36529 (grub_cur_term_input): ... this, and ...
36530 (grub_cur_term_output): ... this. Update all users.
36531 (grub_term_set_current): Split in ...
36532 (grub_term_set_current_input): ... this, and ...
36533 (grub_term_set_current_output): ... this.
36534 (grub_term_get_current): Split in ...
36535 (grub_term_get_current_input): ... this, and ...
36536 (grub_term_get_current_output): ... this.
36537 (grub_term_register): Split in ...
36538 (grub_term_register_input): ... this, and ...
36539 (grub_term_register_output): ... this.
36540 (grub_term_unregister): Split in ...
36541 (grub_term_unregister_input): ... this, and ...
36542 (grub_term_unregister_output): ... this.
36543 (grub_term_iterate): Split in ...
36544 (grub_term_iterate_input): ... this, and ...
36545 (grub_term_iterate_output): ... this.
36547 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
36548 a check for input and one for output (and only attempt to get keys
36549 from user when input works).
36551 * util/grub-probe.c (grub_term_get_current): Split in ...
36552 (grub_term_get_current_input): ... this, and ...
36553 (grub_term_get_current_output): ... this.
36554 * util/grub-fstest.c: Likewise.
36555 * util/i386/pc/grub-setup.c: Likewise.
36556 * util/grub-editenv.c: Likewise.
36558 Portability adjustments:
36560 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
36561 `term/i386/pc/at_keyboard.c'.
36562 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
36563 grub_keyboard_controller_init() (now handled by terminal .init).
36564 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
36565 grub_at_keyboard_init().
36566 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
36567 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
36568 at_keyboard.mod via input terminal interface).
36569 * include/grub/i386/coreboot/console.h: Convert into a stub for
36570 `<grub/i386/pc/console.h>'.
36572 Migrate full terminals to new API:
36574 * term/efi/console.c (grub_console_term): Split into ...
36575 (grub_console_term_input): ... this, and ...
36576 (grub_console_term_output): ... this. Update all users.
36577 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
36578 (grub_ofconsole_init): Split into ...
36579 (grub_ofconsole_init_input): ... this, and ...
36580 (grub_ofconsole_init_output): ... this.
36581 (grub_ofconsole_term): Split into ...
36582 (grub_ofconsole_term_input): ... this, and ...
36583 (grub_ofconsole_term_output): ... this. Update all users.
36584 * term/i386/pc/serial.c (grub_serial_term): Split into ...
36585 (grub_serial_term_input): ... this, and ...
36586 (grub_serial_term_output): ... this. Update all users.
36587 * term/i386/pc/console.c (grub_console_term): Split into ...
36588 (grub_console_term_input): ... this, and ...
36589 (grub_console_term_output): ... this. Update all users.
36590 (grub_console_term_input): Only enable it on PC/BIOS platform.
36591 (grub_console_init): Remove grub_keyboard_controller_init() call.
36593 Migrate input terminals to new API:
36595 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
36596 `i386' and `i386/pc' to enable build on x86_64 (this driver is
36597 i386-specific anyway).
36598 (grub_console_checkkey): Rename to ...
36599 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
36601 (grub_keyboard_controller_orig): New variable.
36602 (grub_console_getkey): Rename to ...
36603 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
36605 (grub_keyboard_controller_init): Static-ize. Save original
36606 controller value so that it can be restored ...
36607 (grub_keyboard_controller_fini): ... here (new function).
36608 (grub_at_keyboard_term): New structure.
36609 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
36612 Migrate output terminals to new API:
36614 * term/i386/pc/vga.c (grub_vga_term): Change type to
36615 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36616 members. Update all users.
36617 * term/gfxterm.c (grub_video_term): Change type to
36618 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36619 members. Update all users.
36620 * include/grub/i386/pc/console.h (grub_console_checkkey)
36621 (grub_console_getkey): Do not export (no longer needed by gfxterm,
36624 Migrate `terminal' command and userland tools to new API:
36626 * commands/terminal.c (grub_cmd_terminal): Split into ...
36627 (grub_cmd_terminal_input): ... this, and ...
36628 (grub_cmd_terminal_output): ... this.
36629 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
36630 `terminal_input' and `terminal_output'.
36631 * util/grub.d/00_header.in: Adjust `terminal' calls to new
36632 `terminal_input' / `terminal_output' API.
36633 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
36634 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
36635 provided ${GRUB_TERMINAL}, convert it).
36637 2008-11-04 Robert Millan <rmh@aybabtu.com>
36639 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
36641 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
36643 2008-11-03 Bean <bean123ch@gmail.com>
36645 * kern/elf.c (grub_elf32_load): Revert to previous code.
36646 (grub_elf64_load): Likewise.
36648 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
36650 2008-11-01 Robert Millan <rmh@aybabtu.com>
36652 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
36653 (TARGET_CPPFLAGS): Likewise.
36654 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
36656 2008-11-01 Carles Pina i Estany <carles@pina.cat>
36658 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
36660 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
36662 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
36663 addition of objects until the code is not going to be able to fail.
36665 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
36667 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
36668 (add a missing NULL check, and correct them by moving the pointer
36669 operations after the actual check).
36671 2008-10-29 Robert Millan <rmh@aybabtu.com>
36673 * util/i386/pc/grub-install.in: Handle empty string as output from
36674 make_system_path_relative_to_its_root().
36676 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
36678 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
36679 circular metadata worst case scenario. If the metadata is circular
36680 then copy the wrap in place.
36681 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
36682 project lib/format_text/layout.h
36683 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
36685 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
36687 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
36689 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
36691 * util/update-grub_lib.in: Mention filename in warning message.
36693 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
36695 * NEWS: Update for rename of update-grub to grub-mkconfig.
36697 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
36699 * util/update-grub_lib.in: Copy to ...
36700 * util/grub-mkconfig_lib.in: ... this. Update all users.
36701 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
36702 * util/update-grub.in: Rename to ...
36703 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
36704 option. Add `--output' option to allow users to specify the generated
36705 configuration file. Default to stdout.
36706 (update_grub_dir): Rename to ...
36707 (grub_mkconfig_dir): ... this.
36708 (grub_cfg): Default to an empty string.
36709 * conf/common.rmk (update-grub): Rename to ...
36710 (grub-mkconfig): ... this.
36711 (update-grub_lib): Copy to ...
36712 (grub-mkconfig_lib): ... this.
36713 (update-grub_SCRIPTS): Copy to ...
36714 (grub-mkconfig_SCRIPTS): ... this. Update all users.
36715 (update-grub_DATA): Rename to ...
36716 (grub-mkconfig_DATA): ... this.
36718 2008-09-28 Robert Millan <rmh@aybabtu.com>
36720 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
36721 to `modified'. Add the real `created' field.
36722 (grub_iso9660_uuid): Use `modified' rather than `created' for
36723 constructing the UUID.
36725 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
36727 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
36728 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
36730 2008-09-28 Bean <bean123ch@gmail.com>
36732 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
36733 Thanks to Christian Franke for finding this bug.
36735 2008-09-25 Robert Millan <rmh@aybabtu.com>
36737 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
36738 instances of grub_util_get_disk_name() (see previous commit).
36740 2008-09-25 Robert Millan <rmh@aybabtu.com>
36742 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
36743 `util/i386/get_disk_name.c'.
36744 * conf/i386-efi.rmk: Likewise.
36745 * conf/x86_64-efi.rmk: Likewise.
36746 * conf/i386-coreboot.rmk: Likewise.
36747 * conf/i386-ieee1275.rmk: Likewise.
36748 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
36749 `util/ieee1275/get_disk_name.c'.
36750 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
36751 * util/ieee1275/get_disk_name.c: Remove file.
36752 * util/i386/get_disk_name.c: Remove file.
36753 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
36754 "hd%d" for device.map entries, rather than using
36755 grub_util_get_disk_name().
36757 2008-09-24 Carles Pina i Estany <carles@pina.cat>
36759 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
36761 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
36763 2008-09-24 Carles Pina i Estany <carles@pina.cat>
36765 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
36767 (GRUB_TERM_PPAGE): Changed to 0x4900.
36769 2008-09-24 Robert Millan <rmh@aybabtu.com>
36771 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
36772 macros (they were i386-pc specific).
36773 * include/grub/sparc64/ieee1275/console.h: Likewise.
36774 * include/grub/efi/console.h: Likewise.
36776 2008-09-22 Bean <bean123ch@gmail.com>
36778 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
36779 resident and in attribute list.
36781 * include/grub/ntfs.h (BMP_LEN): Removed.
36783 2008-09-22 Bean <bean123ch@gmail.com>
36785 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
36786 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
36788 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
36789 error occurs, as grub_disk_open will call grub_disk_close, which will
36790 call p->close (scsi).
36792 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
36794 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
36795 (AC_PREREQ): Bumped to 2.59.
36796 (AC_TRY_COMPILE): Replace obsolete macro with ...
36797 (AC_COMPILE_IFELSE): ... this.
36798 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
36799 (AC_LINK_IFELSE): ... this.
36801 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
36803 * autogen.sh: Add a call to `gendistlist.sh'.
36805 2008-09-19 Christian Franke <franke@computer.org>
36807 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
36808 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
36809 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
36810 Export __enable_execute_stack() to modules.
36811 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
36814 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
36816 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
36819 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
36821 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
36822 #include <grub/util/hostdisk.h>.
36824 2008-09-08 Robert Millan <rmh@aybabtu.com>
36826 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
36827 segments when their filesz is zero (grub_file_read() interprets
36828 zero-size as "read until EOF", which results in memory corruption).
36829 Use `lowest_segment' rather than 0 for calculating the current
36830 segment load address.
36832 2008-09-08 Robert Millan <rmh@aybabtu.com>
36834 * util/hostdisk.c (open_device): Replace a grub_util_info() call
36835 with grub_dprintf("hostdisk", ...), as it was so verbose that it
36836 clobbered useful information.
36838 2008-09-08 Robert Millan <rmh@aybabtu.com>
36840 * include/grub/util/biosdisk.h: Move to ...
36841 * include/grub/util/hostdisk.h: ... here. Update all users.
36842 * util/biosdisk.c: Move to ...
36843 * util/hostdisk.c: ... here. Update all users.
36845 2008-09-07 Robert Millan <rmh@aybabtu.com>
36847 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
36849 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
36850 and length can be stored directly in the `mbi->mmap_addr' and
36851 `mbi->mmap_length' struct fields.
36853 2008-09-07 Robert Millan <rmh@aybabtu.com>
36855 * conf/i386.rmk: New file. Provides declaration for building
36857 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
36858 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
36860 Include `conf/i386.mk'.
36861 * conf/i386-efi.rmk: Likewise.
36862 * conf/x86_64-efi.rmk: Likewise.
36863 * conf/i386-coreboot.rmk: Likewise.
36864 * conf/i386-ieee1275.rmk: Likewise.
36866 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
36868 Based on patch created by Colin D Bennett <colin@gibibit.com>.
36869 Adds optimization support for BGR based modes.
36871 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
36872 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
36873 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36874 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36875 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36876 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36877 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36878 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36879 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36880 (grub_video_i386_vbeblit_index_index): Likewise.
36881 (grub_video_i386_vbeblit_replace_directN): Added.
36882 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
36883 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
36884 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
36885 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
36886 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
36887 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
36888 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
36889 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
36890 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
36891 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
36892 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
36893 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
36894 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
36896 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
36897 (grub_video_i386_vbefill_R8G8B8): Likewise.
36898 (grub_video_i386_vbefill_index): Likewise.
36899 (grub_video_i386_vbefill_direct32): Added.
36900 (grub_video_i386_vbefill_direct24): Likewise.
36901 (grub_video_i386_vbefill_direct16): Likewise.
36902 (grub_video_i386_vbefill_direct8): Likewise.
36904 * include/grub/video.h (grub_video_blit_format): Removed
36905 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
36906 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
36907 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
36908 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
36909 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
36911 * video/video.c (grub_video_get_blit_format): Updated to use new
36912 blit formats. Added handling for 16 bit color modes.
36914 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
36916 (common_blitter): Updated to use new blitters.
36918 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
36920 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
36921 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36922 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36923 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36924 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36925 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36926 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36927 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36928 (grub_video_i386_vbeblit_index_index): Likewise.
36929 (grub_video_i386_vbeblit_replace_directN): Added.
36930 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
36931 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
36932 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
36933 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
36934 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
36935 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
36936 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
36937 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
36938 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
36939 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
36940 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
36941 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
36942 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
36944 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
36945 (grub_video_i386_vbefill_R8G8B8): Likewise.
36946 (grub_video_i386_vbefill_index): Likewise.
36947 (grub_video_i386_vbefill_direct32): Added.
36948 (grub_video_i386_vbefill_direct24): Likewise.
36949 (grub_video_i386_vbefill_direct16): Likewise.
36950 (grub_video_i386_vbefill_direct8): Likewise.
36952 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
36955 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
36958 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
36961 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
36964 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
36966 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
36969 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
36971 * fs/iso9660.c (grub_iso9660_date): New structure.
36972 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
36973 (grub_iso9660_uuid): New function.
36975 2008-09-05 Bean <bean123ch@gmail.com>
36977 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
36979 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
36980 insensitive bit for names in Win32 and Win32 & DOS namespace.
36982 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
36984 * include/grub/types.h (LONG_MAX): Likewise.
36986 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
36988 * util/getroot.c: Include <config.h>.
36989 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
36990 add support for /dev/md/N devices and handle LVM double dash escaping.
36992 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
36994 * config.guess: Update to latest version from config git.
36995 * config.sub: Likewise.
36997 2008-09-03 Robert Millan <rmh@aybabtu.com>
36999 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
37000 `disk->total_sectors'.
37002 2008-09-01 Colin D Bennett <colin@gibibit.com>
37004 * include/grub/normal.h: Fixed incorrect comment for
37005 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
37007 2008-09-01 Colin D Bennett <colin@gibibit.com>
37009 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
37010 values with defines.
37012 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
37013 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
37014 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
37015 (GRUB_VBE_MODEATTR_COLOR): Likewise.
37016 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
37017 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
37018 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
37019 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
37020 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
37021 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
37022 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
37023 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
37024 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
37025 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
37026 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
37027 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
37028 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
37029 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
37030 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
37032 2008-08-31 Robert Millan <rmh@aybabtu.com>
37034 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
37036 (grub_multiboot): Fix a few warnings.
37038 2008-08-31 Robert Millan <rmh@aybabtu.com>
37040 * loader/i386/pc/multiboot.c: Update comment not to say that
37041 boot_device support is unimplemented.
37043 2008-08-31 Robert Millan <rmh@aybabtu.com>
37045 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
37046 or memory map support are unimplemented.
37048 2008-08-31 Colin D Bennett <colin@gibibit.com>
37050 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
37052 2008-08-31 Colin D Bennett <colin@gibibit.com>
37054 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
37055 total video memory in 'vbeinfo' output; show color format details for
37058 2008-08-30 Pavel Roskin <proski@gnu.org>
37060 * util/genmoddep.c: Remove for real this time.
37061 * DISTLIST: Remove util/genmoddep.c.
37063 2008-08-30 Robert Millan <rmh@aybabtu.com>
37065 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
37066 as required by Multiboot spec (it was already 4-byte aligned, but
37069 2008-08-29 Pavel Roskin <proski@gnu.org>
37071 * kern/powerpc/ieee1275/crt0.S: Rename to ...
37072 * kern/powerpc/ieee1275/startup.S: ... this.
37073 * conf/powerpc-ieee1275.rmk: Adjust for the above.
37074 * DISTLIST: Likewise.
37076 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
37077 grub/cpu/kernel.h. Add start label for consistency with other
37078 platforms. Add grub_prefix immediately after start. Add jump
37079 to the code after grub_prefix.
37080 * include/grub/powerpc/kernel.h: Provide valid values for
37081 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
37083 2008-08-29 Bean <bean123ch@gmail.com>
37085 * configure.ac: Change host_os to cygwin for mingw.
37086 (asprintf): New check for function.
37088 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
37089 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
37091 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
37092 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
37093 sync, sleep and grub_util_get_disk_size for mingw.
37095 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
37096 to get size in mingw.
37097 (open_device): Use flag O_BINARY if it's defined.
37098 (find_root_device): Add dummy code for mingw.
37100 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
37101 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
37102 (get_scsi_disk_name): Return 0 for mingw.
37104 * util/hostfs.c: #include <grub/util/misc.h>.
37105 (grub_hostfs_open): Use "rb" flag to open file, use
37106 grub_util_get_disk_size to get disk size for mingw.
37108 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
37109 (asprintf): New function if HAVE_ASPRINTF is not set.
37110 (sync): New function for mingw.
37112 (grub_util_get_disk_size): Likewise.
37114 2008-08-28 Pavel Roskin <proski@gnu.org>
37116 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37119 2008-08-28 Robert Millan <rmh@aybabtu.com>
37121 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
37123 2008-08-28 Robert Millan <rmh@aybabtu.com>
37125 Change find_grub_drive() syntax so it doesn't prevent it from
37126 detecting NULL names as errors.
37128 * util/biosdisk.c (find_grub_drive): Move free slot search code
37130 (find_free_slot): ... to here.
37131 (read_device_map): Use find_free_slot() to search for free slots.
37133 2008-08-27 Marco Gerards <marco@gnu.org>
37135 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
37136 (scsi_mod_SOURCES): New variable.
37137 (scsi_mod_CFLAGS): Likewise
37138 (scsi_mod_LDFLAGS): Likewise.
37140 * disk/scsi.c: New file.
37142 * include/grub/scsi.h: Likewise.
37144 * include/grub/scsicmd.h: Likewise.
37146 * disk/ata.c: Include <grub/scsi.h>.
37147 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
37149 (grub_ata_iterate): Skip ATAPI devices.
37150 (grub_ata_open): Only handle ATAPI devices.
37151 (struct grub_atapi_read): Removed.
37152 (grub_atapi_readsector): Likewise.
37153 (grub_ata_read): No longer handle ATAPI devices.
37154 (grub_ata_write): Likewise.
37155 (grub_atapi_iterate): New function.
37156 (grub_atapi_read): Likewise.
37157 (grub_atapi_write): Likewise.
37158 (grub_atapi_open): Likewise.
37159 (grub_atapi_close): Likewise.
37160 (grub_atapi_dev): New variable.
37161 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
37162 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
37164 * include/grub/disk.h (enum grub_disk_dev_id): Add
37165 `GRUB_DISK_DEVICE_SCSI_ID'.
37167 2008-08-26 Robert Millan <rmh@aybabtu.com>
37169 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
37170 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
37173 2008-08-23 Bean <bean123ch@gmail.com>
37175 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
37176 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
37177 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
37178 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
37180 (raid5rec_mod_SOURCES): New macro.
37181 (raid5rec_mod_CFLAGS): Likewise.
37182 (raid5rec_mod_LDFLAGS): Likewise.
37183 (raid6rec_mod_SOURCES): Likewise.
37184 (raid6rec_mod_CFLAGS): Likewise.
37185 (raid6rec_mod_LDFLAGS): Likewise.
37186 (mdraid_mod_SOURCES): Likewise.
37187 (mdraid_mod_CFLAGS): Likewise.
37188 (mdraid_mod_LDFLAGS): Likewise.
37189 (dm_nv_mod_SOURCES): Likewise.
37190 (dm_nv_mod_CFLAGS): Likewise.
37191 (dm_nv_mod_LDFLAGS): Likewise.
37193 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
37194 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
37195 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
37197 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
37198 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
37200 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37202 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37204 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37208 * disk/raid5_recover.c: New file.
37210 * disk/raid6_recover.c: Likewise.
37212 * disk/mdraid_linux.c: Likewise.
37214 * disk/dmraid_nvidia.c: Likewise.
37216 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
37219 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
37220 calculate the size of raid device.
37221 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
37222 different layout of raid5.
37223 (grub_raid_scan_device): Remove code specific to mdraid.
37224 (grub_raid_list): New variable.
37225 (free_array): New function.
37226 (grub_raid_register): Likewise.
37227 (grub_raid_unregister): Likewise.
37228 (grub_raid_rescan): Likewise.
37229 (GRUB_MOD_INIT): Don't iterate device here.
37230 (GRUB_MOD_FINI): Use free_array to release resource.
37232 * include/grub/raid.h: Remove macro and structure specific to mdraid.
37233 (grub_raid5_recover_func_t): New function variable type.
37234 (grub_raid6_recover_func_t): Likewise.
37235 (grub_raid5_recover_func): New variable.
37236 (grub_raid6_recover_func): Likewise.
37237 (grub_raid_register): New function.
37238 (grub_raid_unregister): Likewise.
37239 (grub_raid_rescan): Likewise.
37240 (grub_raid_block_xor): Likewise.
37242 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
37243 (CMD_CRC): New macro.
37245 (read_file): Handle device as well as file.
37246 (cmd_crc): New function.
37247 (fstest): Handle multiple disks.
37248 (options): Remove part, raw and long, add root and diskcount.
37249 (usage): Add crc, remove -p, -r, -l, add -r and -c.
37250 (main): Find the first non option entry and ignore subsequent options,
37251 add handling for the new options, support multiple disks.
37253 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
37255 2008-08-23 Bean <bean123ch@gmail.com>
37257 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
37259 * genfslist.sh: Ignore kernel.mod.
37261 * genpartmaplist.sh: Likewise.
37263 2008-08-23 Robert Millan <rmh@aybabtu.com>
37265 * util/getroot.c (find_root_device): Skip anything that starts with
37266 a dot, not just directories. This avoids things like /dev/.tmp.md0.
37268 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
37270 * util/update-grub.in (GRUB_GFXMODE): Export variable.
37271 * util/grub.d/00_header.in: Allow the administrator to change default
37272 gfxmode via ${GRUB_GFXMODE}.
37274 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
37276 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
37278 2008-08-21 Robert Millan <rmh@aybabtu.com>
37280 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
37282 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
37283 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
37285 2008-08-20 Carles Pina i Estany <carles@pina.cat>
37287 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
37288 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
37290 2008-08-19 Robert Millan <rmh@aybabtu.com>
37292 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
37293 (struct grub_virtual_screen): Remove `cursor_color'.
37294 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
37296 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
37298 2008-08-18 Robert Millan <rmh@aybabtu.com>
37300 Unify (identical) linux_normal.c files.
37301 * loader/i386/efi/linux_normal.c: Move from here ...
37302 * loader/linux_normal.c: ... to here. Update all users.
37303 * loader/i386/pc/linux_normal.c: Delete. Update all users.
37304 * loader/i386/ieee1275/linux_normal.c: Likewise.
37306 2008-08-18 Robert Millan <rmh@aybabtu.com>
37308 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
37309 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
37310 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
37311 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
37312 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
37314 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
37315 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
37316 (GRUB_LINUX_CL_END_OFFSET): ... to here.
37317 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
37318 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
37319 (GRUB_EFI_CL_END_OFFSET): Rename to ...
37320 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
37321 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
37322 Initialize `params->video_cursor_x' and `params->video_cursor_y'
37323 portably using grub_getxy().
37324 Replace `-EFI' with `-bzImage' in boot message.
37326 2008-08-17 Robert Millan <rmh@aybabtu.com>
37328 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
37330 2008-08-17 Robert Millan <rmh@aybabtu.com>
37332 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
37334 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
37335 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
37336 (grub_machine_mmap_iterate): New function declaration.
37337 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
37339 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
37342 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
37343 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
37344 Move e820 parsing from here ...
37345 * kern/i386/pc/mmap.c: New file.
37346 (grub_machine_mmap_iterate): ... to here.
37348 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
37349 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
37350 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
37351 (grub_available_iterate): Redeclare to return `void', and redeclare
37352 its hook to use grub_uint64_t as addr and size parameters, and rename
37354 (grub_machine_mmap_iterate): ... this. Update all users.
37356 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
37357 to make it more readable. Rename to ...
37358 (grub_machine_mmap_iterate): ... this.
37360 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
37361 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
37362 (grub_multiboot): Allocate an extra region after the payload, and fill
37363 it with a Multiboot memory map. Adjust a.out loader to calculate size
37364 with the extra space.
37365 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
37366 with the extra space.
37368 2008-08-17 Carles Pina i Estany <carles@pina.cat>
37370 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
37372 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
37374 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
37375 mdate-sh to the list `find' searches for.
37376 * DISTLIST: Regenerated.
37378 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
37380 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
37381 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
37382 genmoddep.awk, gensymlist.sh.in.
37383 (DISTDIRS): Add bus, docs, hook, lib.
37384 * DISTLIST: Regenerated.
37385 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
37387 2008-08-16 Robert Millan <rmh@aybabtu.com>
37389 * disk/raid.c (grub_raid_init): Handle/report errors set by
37390 grub_device_iterate().
37391 * disk/lvm.c (grub_lvm_init): Likewise.
37393 2008-08-15 Bean <bean123ch@gmail.com>
37395 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37397 (datetime_mod_SOURCES): New macro.
37398 (datetime_mod_CFLAGS): Likewise.
37399 (datetime_mod_LDFLAGS): Likewise.
37400 (date_mod_SOURCES): Likewise.
37401 (date_mod_CFLAGS): Likewise.
37402 (date_mod_LDFLAGS): Likewise.
37403 (datehook_mod_SOURCES): Likewise.
37404 (datehook_mod_CFLAGS): Likewise.
37405 (datehook_mod_LDFLAGS): Likewise.
37407 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37409 (datetime_mod_SOURCES): New macro.
37410 (datetime_mod_CFLAGS): Likewise.
37411 (datetime_mod_LDFLAGS): Likewise.
37412 (date_mod_SOURCES): Likewise.
37413 (date_mod_CFLAGS): Likewise.
37414 (date_mod_LDFLAGS): Likewise.
37415 (datehook_mod_SOURCES): Likewise.
37416 (datehook_mod_CFLAGS): Likewise.
37417 (datehook_mod_LDFLAGS): Likewise.
37419 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37421 (datetime_mod_SOURCES): New macro.
37422 (datetime_mod_CFLAGS): Likewise.
37423 (datetime_mod_LDFLAGS): Likewise.
37424 (date_mod_SOURCES): Likewise.
37425 (date_mod_CFLAGS): Likewise.
37426 (date_mod_LDFLAGS): Likewise.
37427 (datehook_mod_SOURCES): Likewise.
37428 (datehook_mod_CFLAGS): Likewise.
37429 (datehook_mod_LDFLAGS): Likewise.
37431 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37433 (datetime_mod_SOURCES): New macro.
37434 (datetime_mod_CFLAGS): Likewise.
37435 (datetime_mod_LDFLAGS): Likewise.
37436 (date_mod_SOURCES): Likewise.
37437 (date_mod_CFLAGS): Likewise.
37438 (date_mod_LDFLAGS): Likewise.
37439 (datehook_mod_SOURCES): Likewise.
37440 (datehook_mod_CFLAGS): Likewise.
37441 (datehook_mod_LDFLAGS): Likewise.
37443 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37445 (datetime_mod_SOURCES): New macro.
37446 (datetime_mod_CFLAGS): Likewise.
37447 (datetime_mod_LDFLAGS): Likewise.
37448 (date_mod_SOURCES): Likewise.
37449 (date_mod_CFLAGS): Likewise.
37450 (date_mod_LDFLAGS): Likewise.
37451 (datehook_mod_SOURCES): Likewise.
37452 (datehook_mod_CFLAGS): Likewise.
37453 (datehook_mod_LDFLAGS): Likewise.
37455 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
37457 * commands/date.c: New file.
37459 * hook/datehook.c: Likewise.
37461 * include/grub/lib/datetime.h: Likewise.
37463 * include/grub/i386/cmos.h: Likewise.
37465 * lib/datetime.c: Likewise.
37467 * lib/i386/datetime.c: Likewise.
37469 * lib/efi/datetime.c: Likewise.
37471 2008-08-14 Robert Millan <rmh@aybabtu.com>
37473 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
37474 (grub_mkelfimage_SOURCES): New variable.
37475 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
37477 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
37478 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
37479 * conf/powerpc-ieee1275.rmk: Likewise.
37480 * conf/i386-ieee1275.rmk: Likewise.
37482 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
37483 * kern/i386/coreboot/init.c: Likewise.
37485 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
37486 with `<grub/cpu/kernel.h>'.
37487 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
37489 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
37490 * kern/i386/coreboot/startup.S: Likewise.
37492 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
37493 (GRUB_MOD_GAP): Remove.
37494 * include/grub/powerpc/kernel.h: New file.
37495 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
37496 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
37497 * include/grub/i386/kernel.h: New file.
37498 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
37499 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
37500 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
37502 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
37504 Use --directory when invoking grub_mkimage.
37506 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
37507 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
37508 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
37509 and GRUB_KERNEL_CPU_PREFIX.
37511 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
37513 * include/grub/err.h (grub_err_printf): New function prototype.
37514 * util/misc.c (grub_err_printf): New function.
37515 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
37517 * kern/err.c (grub_print_error): Use grub_err_printf.
37519 2008-08-13 Robert Millan <rmh@aybabtu.com>
37521 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
37523 2008-08-13 Robert Millan <rmh@aybabtu.com>
37525 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
37528 2008-08-12 Robert Millan <rmh@aybabtu.com>
37530 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
37531 of the relocation code from here ...
37532 (grub_multiboot): ... to here.
37533 (forward_relocator, backward_relocator): Move from here ...
37534 * kern/i386/loader.S (grub_multiboot_forward_relocator)
37535 (grub_multiboot_backward_relocator): ... to here.
37536 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
37537 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
37538 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
37539 (grub_multiboot_forward_relocator_end)
37540 (grub_multiboot_backward_relocator)
37541 (grub_multiboot_backward_relocator_end): New variables.
37543 2008-08-12 Bean <bean123ch@gmail.com>
37545 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
37547 2008-08-11 Robert Millan <rmh@aybabtu.com>
37549 * kern/i386/linuxbios/startup.S: Move from here ...
37550 * kern/i386/coreboot/startup.S: ... to here.
37552 * kern/i386/linuxbios/init.c: Move from here ...
37553 * kern/i386/coreboot/init.c: ... to here.
37555 * kern/i386/linuxbios/table.c: Move from here ...
37556 * kern/i386/coreboot/mmap.c: ... to here.
37558 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
37560 2008-08-11 Robert Millan <rmh@aybabtu.com>
37562 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
37563 errors. Leave it to the upper layer to handle them.
37565 2008-08-09 Christian Franke <franke@computer.org>
37567 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
37568 * conf/common.rmk: Install `grub-pe2elf' only if requested.
37569 Install `grub.d/10_windows' only on Cygwin.
37570 * configure.ac: Add subst of `target_os'.
37571 Check `target_os' also before setting TARGET_OBJ2ELF.
37572 Add `--enable-grub-pe2elf'.
37574 2008-08-08 Robert Millan <rmh@aybabtu.com>
37576 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37577 (grub_last_time): Change type to grub_uint64_t.
37578 (grub_disk_open): Migrate code from to using grub_get_time_ms().
37579 (grub_disk_close): Likewise.
37581 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37582 (run_menu): Migrate code from to using grub_get_time_ms().
37584 * util/misc.c (grub_get_time_ms): New function.
37586 2008-08-08 Marco Gerards <marco@gnu.org>
37588 * disk/ata.c (grub_ata_regget): Change return type to
37590 (grub_ata_regget2): Likewise.
37591 (grub_ata_wait_status): New function.
37592 (grub_ata_wait_busy): Removed function, updated all users to use
37593 `grub_ata_wait_status'.
37594 (grub_ata_wait_drq): Likewise.
37595 (grub_ata_cmd): New function.
37596 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
37598 (grub_ata_pio_write): Add error handling.
37599 (grub_atapi_identify): Likewise.
37600 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
37602 (grub_ata_identify): Use `grub_ata_cmd' and improve error
37603 handling. Actually use the detected registers. Reorder the
37604 detection logic such that it is easier to read.
37605 (grub_ata_pciinit): Do not assign the same ID to each controller.
37606 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
37608 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
37610 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
37612 2008-08-08 Marco Gerards <marco@gnu.org>
37616 2008-08-07 Bean <bean123ch@gmail.com>
37618 * include/grub/x86_64/pci.h: New file.
37620 2008-08-07 Christian Franke <franke@computer.org>
37622 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
37623 (TIMER2_GATE): Likewise.
37624 (grub_pit_wait): Add enable/disable of the timer2 gate
37625 bit of port 0x61. This fixes a possible infinite loop.
37627 2008-08-07 Bean <bean123ch@gmail.com>
37629 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
37630 kern/i386/tsc.c and kern/i386/pit.c.
37632 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
37635 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
37638 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
37640 2008-08-07 Bean <bean123ch@gmail.com>
37642 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
37644 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
37646 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
37647 multiple inclusion. Add #include <grub/types.h>.
37649 2008-08-06 Christian Franke <franke@computer.org>
37651 * conf/common.rmk: Build and install `10_windows'.
37652 * util/grub.d/10_windows.in: New script.
37654 2008-08-06 Pavel Roskin <proski@gnu.org>
37656 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
37658 2008-08-06 Robert Millan <rmh@aybabtu.com>
37660 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
37661 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
37663 2008-08-06 Bean <bean123ch@gmail.com>
37665 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
37666 (grub_pxefs_fs_int): Remove dummy definition.
37667 (grub_pxefs_open): Use data->block_size to store the current block
37669 (grub_pxefs_read): Use block size stored in data->block_size. As the
37670 value of grub_pxe_blksize can be changed after the file is opened.
37672 2008-08-06 Bean <bean123ch@gmail.com>
37674 * fs/i386/pc/pxe.c (curr_file): new variable.
37675 (grub_pxefs_open): Simply the handling of pxe file system. Don't
37676 require the dummy internal file system anymore.
37677 (grub_pxefs_read): Removed.
37678 (grub_pxefs_close): Likewise.
37679 (grub_pxefs_fs_int): Likewise.
37680 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
37681 connection when we switch file.
37682 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
37684 2008-08-06 Robert Millan <rmh@aybabtu.com>
37686 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
37688 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
37689 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
37691 * kern/i386/halt.c: New file.
37692 * kern/i386/reboot.c: Likewise.
37693 * include/grub/i386/reboot.h: Likewise.
37694 * include/grub/i386/halt.h: Likewise.
37696 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
37697 Include `<grub/cpu/halt.h>'.
37698 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
37699 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
37701 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
37702 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
37703 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
37704 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
37705 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
37706 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
37708 * include/grub/i386/at_keyboard.h: ... to here.
37710 2008-08-05 Robert Millan <rmh@aybabtu.com>
37712 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
37713 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
37714 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
37715 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37716 `kern/generic/millisleep.c'.
37718 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
37719 instead of grub_get_rtc().
37720 (grub_tsc_init): Initialize `tsc_boot_time'.
37722 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
37723 (grub_machine_init): Use grub_tsc_init() rather than
37724 installing an RTC-based handler via grub_install_get_time_ms().
37726 * kern/i386/pit.c: New file.
37727 * include/grub/i386/pit.h: Likewise.
37729 2008-08-05 Bean <bean123ch@gmail.com>
37731 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
37733 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
37734 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
37735 (pxe_mod_SOURCES): New macro.
37736 (pxe_mod_CFLAGS): Likewise.
37737 (pxe_mod_LDFLAGS): Likewise.
37738 (pxecmd_mod_SOURCES): Likewise.
37739 (pxecmd_mod_CFLAGS): Likewise.
37740 (pxecmd_mod_LDFLAGS): Likewise.
37742 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
37743 (grub_pxe_call): Likewise.
37745 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
37747 * commands/i386/pc/pxecmd.c: New file.
37749 * fs/i386/pc/pxe.c: Likewise.
37751 * include/grub/i386/pc/pxe.h: Likewise.
37753 2008-08-05 Bean <bean123ch@gmail.com>
37755 * util/console.c (grub_console_cur_color): New variable.
37756 (grub_console_standard_color): Likewise.
37757 (grub_console_normal_color): Likewise.
37758 (grub_console_highlight_color): Likewise.
37759 (color_map): Likewise.
37760 (use_color): Likewise.
37761 (NUM_COLORS): New macro.
37762 (grub_ncurses_setcolorstate): Handle color properly.
37763 (grub_ncurses_setcolor): Don't change color here, just remember the
37764 settings, color will be set in grub_ncurses_setcolorstate.
37765 (grub_ncurses_getcolor): New function.
37766 (grub_ncurses_init): Initialize color pairs.
37767 (grub_ncurses_term): New member grub_ncurses_getcolor.
37769 2008-08-05 Colin D Bennett <colin@gibibit.com>
37771 High resolution timer support. Implemented for x86 CPUs using TSC.
37772 Extracted generic grub_millisleep() so it's linked in only as needed.
37773 This requires a Pentium compatible CPU; if the RDTSC instruction is
37774 not supported, then it falls back on the generic grub_get_time_ms()
37775 implementation that uses the machine's RTC.
37777 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
37778 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37779 `kern/generic/millisleep.c'.
37781 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
37782 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
37784 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
37785 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
37787 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37789 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37790 `kern/generic/millisleep.c'.
37792 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37794 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
37796 * kern/generic/rtc_get_time_ms.c: New file.
37798 * kern/generic/millisleep.c: New file.
37800 * kern/misc.c: Don't include
37801 <kern/time.h> anymore.
37802 (grub_millisleep_generic): Removed.
37804 * commands/sleep.c (grub_interruptible_millisleep): Uses
37805 grub_get_time_ms() instead of grub_get_rtc().
37807 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
37809 (grub_cpu_is_cpuid_supported): New inline function.
37810 (grub_cpu_is_tsc_supported): New inline function.
37811 (grub_tsc_init): New function prototype.
37812 (grub_tsc_get_time_ms): New function prototype.
37814 * kern/i386/tsc.c (grub_get_time_ms): New file.
37816 * include/grub/time.h: Include <grub/types.h.
37817 (grub_millisleep_generic): Removed.
37818 (grub_get_time_ms): New prototype.
37819 (grub_install_get_time_ms): New prototype.
37820 (grub_rtc_get_time_ms): New prototype.
37822 * kern/time.c (grub_get_time_ms): New function.
37823 (grub_install_get_time_ms): New function.
37825 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
37826 <grub/time.h> anymore.
37827 (grub_millisleep): Removed.
37828 (grub_machine_init): Call grub_tsc_init.
37830 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
37831 get_time_ms() implementation.
37833 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
37834 (ieee1275_get_time_ms): New function.
37835 (grub_machine_init): Install get_time_ms() implementation.
37837 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
37838 (grub_machine_init): Call grub_tsc_init().
37839 (grub_millisleep): Removed.
37841 * kern/ieee1275/init.c (grub_millisleep): Removed.
37842 (grub_machine_init): Install ieee1275_get_time_ms()
37844 (ieee1275_get_time_ms): New function.
37845 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
37848 2008-08-05 Marco Gerards <marco@gnu.org>
37850 * disk/ata.c: Include <grub/pci.h>.
37851 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
37852 (grub_ata_initialize): Rewritten.
37853 (grub_ata_device_initialize): New function.
37855 2008-08-04 Pavel Roskin <proski@gnu.org>
37857 * kern/main.c: Include grub/mm.h.
37859 2008-08-04 Robert Millan <rmh@aybabtu.com>
37861 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
37862 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
37863 corruption problem).
37865 2008-08-04 Robert Millan <rmh@aybabtu.com>
37867 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
37868 warnings introduced in my last commit.
37870 2008-08-03 Robert Millan <rmh@aybabtu.com>
37872 Make PCI available on all i386 architectures.
37874 * include/grub/i386/pc/pci.h: Move from here ...
37875 * include/grub/i386/pci.h: ... to here.
37877 * include/grub/i386/pc/pci.h: Remove.
37878 * include/grub/i386/efi/pci.h: Remove.
37879 * include/grub/x86_64/efi/pci.h: Remove.
37881 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
37882 `<grub/cpu/pci.h>'.
37884 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
37885 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
37886 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
37888 * conf/i386-ieee1275.rmk: Likewise.
37890 2008-08-03 Robert Millan <rmh@aybabtu.com>
37892 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
37893 (grub_console_setcursor): Make it possible to set cursor off.
37895 2008-08-03 Robert Millan <rmh@aybabtu.com>
37897 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
37898 of modules instead of assuming which platform provides what.
37899 * util/update-grub.in: Likewise.
37901 2008-08-03 Robert Millan <rmh@aybabtu.com>
37903 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
37904 instead of `grub_install_dos_part' to determine whether a drive needs
37905 to be prepended to prefix (`grub_install_dos_part' is not reliable,
37906 because it can be overridden when loading GRUB via Multiboot).
37908 2008-08-02 Robert Millan <rmh@aybabtu.com>
37910 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
37912 2008-08-02 Robert Millan <rmh@aybabtu.com>
37914 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
37915 of informational grub_dprintf() calls.
37917 2008-08-02 Robert Millan <rmh@aybabtu.com>
37919 * disk/memdisk.c (memdisk_size): Don't initialize.
37920 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
37922 * include/grub/i386/pc/kernel.h
37923 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
37924 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
37925 (grub_memdisk_image_size, grub_arch_memdisk_addr)
37926 (grub_arch_memdisk_size): Remove.
37928 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
37929 field (was only used to transfer a constant). Add `type' field to
37930 support multiple module types.
37931 (grub_module_iterate): New function.
37933 * kern/device.c (grub_device_open): Do not hide error messages
37934 when grub_disk_open() fails. Use grub_print_error() instead.
37936 * kern/i386/pc/init.c (grub_arch_modules_addr)
37937 (grub_arch_memdisk_size): Remove functions.
37938 (grub_arch_modules_addr): Return the module address in high memory
37939 (now that it isn't copied anymore).
37941 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
37942 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
37943 decompression routine (grub_total_module_size already includes that
37944 now). Don't copy modules back to low memory.
37946 * kern/main.c: Include `<grub/mm.h>'.
37947 (grub_load_modules): Split out (and use) ...
37948 (grub_module_iterate): ... this function, which iterates through
37949 module objects and runs a hook.
37950 Comment out grub_mm_init_region() call, as it would cause non-ELF
37951 modules to be overwritten.
37953 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
37954 the memdisk image in its own region, make it part of the module list.
37955 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
37956 (main): Parse --memdisk|-m option, and pass user-provided path as
37957 parameter to generate_image().
37958 (add_segments): Pass `memdisk_path' down to load_modules().
37959 (load_modules): Embed memdisk image in module section when requested.
37960 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
37961 `header.type' instead of `header.offset'.
37963 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
37964 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
37965 (memdisk_mod_LDFLAGS): New variables.
37966 * conf/i386-coreboot.rmk: Likewise.
37967 * conf/i386-ieee1275.rmk: Likewise.
37969 2008-08-02 Robert Millan <rmh@aybabtu.com>
37971 * loader/i386/pc/multiboot.c (playground, forward_relocator)
37972 (backward_relocator): New variables. Used to allocate and relocate
37973 the payload, respectively.
37974 (grub_multiboot_load_elf32): Load into heap instead of requested
37975 address, install the appropriate relocator code in each bound of
37976 the payload, and set the entry point such that
37977 grub_multiboot_real_boot() will jump to one of them.
37979 * kern/i386/loader.S (grub_multiboot_payload_size)
37980 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
37981 (grub_multiboot_payload_entry_offset): New variables.
37982 (grub_multiboot_real_boot): Set cpu context to what the relocator
37983 expects, and jump to the relocator instead of the payload.
37985 * include/grub/i386/loader.h (grub_multiboot_payload_size)
37986 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
37987 (grub_multiboot_payload_entry_offset): Export.
37989 2008-08-01 Bean <bean123ch@gmail.com>
37991 * normal/menu_entry.c (editor_getline): Don't return the original
37992 string as result, as it will be released by lexer once it has done
37995 2008-08-01 Robert Millan <rmh@aybabtu.com>
37997 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
37998 within menuentries, not before them.
37999 util/grub.d/10_hurd.in: Likewise.
38001 2008-08-01 Bean <bean123ch@gmail.com>
38003 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
38004 (bufio_mod_SOURCES): New macro.
38005 (bufio_mod_CFLAGS): Likewise.
38006 (bufio_mod_LDFLAGS): Likewise.
38008 * include/grub/bufio.h: New file.
38010 * io/bufio.c: Likewise.
38012 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
38013 (grub_video_reader_png): Use grub_buffile_open to open file.
38015 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
38016 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
38018 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
38019 (grub_video_reader_tga): Use grub_buffile_open to open file.
38021 * font/manager.c: Include <grub/bufio.h>.
38022 (add_font): Use grub_buffile_open to open file.
38024 2008-07-31 Robert Millan <rmh@aybabtu.com>
38026 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
38027 ELF segments, use a macro for arbitrarily accessing any of them instead
38028 of preparing a pointer that allows access to one at a time.
38029 (grub_multiboot_load_elf64): Likewise.
38031 2008-07-31 Bean <bean123ch@gmail.com>
38033 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
38034 GRUB_KERNEL_MACHINE_DATA_END.
38036 2008-07-30 Robert Millan <rmh@aybabtu.com>
38038 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
38039 Increase from 0x50 to 0x60.
38040 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
38041 use UUIDs to identify the root drive for them. If that's not
38043 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
38044 check, for cross-disk installs.
38046 2008-07-30 Robert Millan <rmh@aybabtu.com>
38048 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
38049 is non-empty, use it to set the `prefix' environment variable instead
38050 of the usual approach.
38051 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
38052 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
38053 environment variable instead of dummy make_install_device().
38055 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
38056 (start): Insert a data section, with `grub_prefix' variable.
38057 * kern/i386/linuxbios/startup.S: Likewise.
38059 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
38060 New variable reference.
38061 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
38062 New macro. Defines offset of `grub_prefix' within startup.S (relative
38064 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
38065 section within startup.S (relative to `start').
38066 * include/grub/i386/coreboot/kernel.h: Likewise.
38068 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
38069 Overwrite grub_prefix with its contents, at the beginning of the
38071 (main): Understand -p|--prefix.
38073 2008-07-30 Robert Millan <rmh@aybabtu.com>
38075 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
38077 2008-07-30 Robert Millan <rmh@aybabtu.com>
38079 * term/i386/pc/vga_text.c (grub_console_cls): Use
38080 grub_console_gotoxy() to go back to beginning of the screen.
38081 Found by Patrick Georgi <patrick.georgi@coresystems.de>
38083 2008-07-29 Christian Franke <franke@computer.org>
38085 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38086 Add conversion of emulated mount points on Cygwin.
38088 2008-07-29 Christian Franke <franke@computer.org>
38090 * util/update-grub.in: Add a check for admin
38092 Remove old `grub.cfg.new' before creation.
38093 Add `-f' to `mv' to handle the different filesystem
38094 semantics of Windows.
38096 2008-07-29 Bean <bean123ch@gmail.com>
38098 * normal/main.c (get_line): Fix buffer overflow bug.
38100 2008-07-28 Robert Millan <rmh@aybabtu.com>
38102 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
38103 (struct grub_apple_header): New struct. Describes the layout of
38104 the partmap header.
38105 (apple_partition_map_iterate): Check the header magic as well as the
38106 partition magic (which was already being checked).
38108 2008-07-28 Pavel Roskin <proski@gnu.org>
38110 * genmk.rb: Add a warning to the beginning of the output that
38111 it's a generated file and should not be edited.
38113 2008-07-28 Robert Millan <rmh@aybabtu.com>
38115 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
38116 with the same number are found, just use issue a warning with
38117 grub_dprintf(), as this error has been reported to be non-fatal.
38119 2008-07-27 Robert Millan <rmh@aybabtu.com>
38121 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
38124 2008-07-27 Bean <bean123ch@gmail.com>
38126 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
38127 (grub_fat_find_dir): Ignore case when comparing filename.
38129 2008-07-27 Bean <bean123ch@gmail.com>
38131 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
38132 smallino, as it's more descriptive, and i8count can be confused with
38133 the other field count.
38134 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
38137 2008-07-27 Bean <bean123ch@gmail.com>
38139 * commands/crc.c: New file.
38141 * lib/crc.c: Likewise.
38143 * include/grub/lib/crc.h: Likewise.
38145 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
38147 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
38148 (hexdump): Move this function to ...
38150 * lib/hexdump.c: ... here.
38152 * include/grub/hexdump.h: Renamed to ...
38154 * include/grub/lib/hexdump.h: ... this.
38156 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
38158 * util/grub-editenv.c: Likewise.
38160 * include/envblk.h: Renamed to ...
38162 * include/lib/envblk.h: ... this.
38164 * util/envblk.c: Renamed to ...
38166 * lib/envblk.c: ... this.
38168 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
38170 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
38171 (pkglib_MODULES): Add crc.mod.
38172 (hexdump_mod_SOURCES): Add lib/hexdump.c.
38173 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
38174 (crc_mod_SOURCES): New macro.
38175 (crc_mod_CFLAGS): Likewise.
38176 (crc_mod_LDFLAGS): Likewise.
38178 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
38180 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38182 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38186 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38188 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
38190 * commands/help.c: Include <grub/term.h>.
38191 (TERM_WIDTH): Removed. Updated all users.
38193 2008-07-27 Pavel Roskin <proski@gnu.org>
38195 * util/getroot.c (find_root_device): Rephrase a comment to avoid
38196 spurious warnings about a comment within a comment.
38198 2008-07-25 Robert Millan <rmh@aybabtu.com>
38200 * util/getroot.c (find_root_device): Skip devices that match
38201 /dev/dm-[0-9]. This lets the real device be found for any type of
38202 abstraction (LVM, EVMS, RAID..).
38203 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
38204 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
38205 device is found first, find_root_device() will now skip it.
38207 2008-07-24 Pavel Roskin <proski@gnu.org>
38209 * include/grub/types.h: Use __builtin_bswap32() and
38210 __builtin_bswap64() with gcc 4.3 and newer.
38212 2008-07-24 Christian Franke <franke@computer.org>
38214 * util/i386/pc/grub-install.in: If `--debug' is specified,
38215 pass `--verbose' to grub-setup.
38216 Abort script if make_system_path_relative_to_its_root() fails.
38218 2008-07-24 Bean <bean123ch@gmail.com>
38220 * configure.ac: Fixed a bug caused by the previous cygwin patch,
38221 variable `target_platform' should be `platform'.
38223 2008-07-24 Bean <bean123ch@gmail.com>
38225 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
38226 (grub_png_init_fixed_block): New function.
38227 (grub_png_decode_image_data): Handle fixed huffman code compression.
38229 2008-07-24 Bean <bean123ch@gmail.com>
38231 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
38232 (grub_pe2elf_SOURCES): New macro.
38233 (CLEANFILES): Add grub-pe2elf.
38235 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
38236 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
38237 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
38238 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
38239 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
38240 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
38241 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
38242 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
38243 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
38244 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
38245 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
38246 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
38247 (GRUB_PE32_DT_FUNCTION): Likewise.
38248 (GRUB_PE32_REL_I386_DIR32): Likewise.
38249 (GRUB_PE32_REL_I386_REL32): Likewise.
38250 (grub_pe32_symbol): New structure.
38251 (grub_pe32_reloc): Likewise.
38253 * util/grub-pe2elf.c: New file.
38255 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
38256 start symbol in non pc platform.
38258 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
38260 The following patches are from Christian Franke.
38262 * include/grub/dl.h: Remove .previous, gas supports this only
38265 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
38266 Remove .type, gas supports this only for ELF format.
38268 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
38269 nullbytes in symbol table. This fixes an infinite loop if table is
38272 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
38273 TARGET_IMG_LDFLAGS and EXEEXT.
38275 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
38276 TARGET_IMG_LDFLAGS_AC.
38277 (grub_CHECK_STACK_ARG_PROBE): New function.
38279 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
38281 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
38283 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
38284 to set TARGET_IMG_LD* accordingly.
38285 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
38286 Add call to grub_CHECK_STACK_ARG_PROBE.
38287 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
38289 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
38291 * genmk.rb: Add EXEEXT to CLEANFILES.
38293 2008-07-23 Robert Millan <rmh@aybabtu.com>
38295 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
38296 define the codes for arrows and lines used for the menu).
38297 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
38300 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
38301 fonts, because the latter are too slow.
38303 2008-07-21 Bean <bean123ch@gmail.com>
38305 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
38306 a20. Run keyboard test last, as it will cause macbook to halt.
38308 2008-07-18 Pavel Roskin <proski@gnu.org>
38310 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
38311 load foreign architecture modules correctly anyway. Keep
38312 support for loading host architecture modules, whether we
38313 compile them or not.
38315 2008-07-17 Pavel Roskin <proski@gnu.org>
38317 * configure.ac: Use -m32 or -m64 regardless of whether we had to
38318 change target_cpu. The compiler default can mismatch target_cpu
38321 * disk/efi/efidisk.c: Fix format warnings on x86_64.
38322 * kern/efi/efi.c: Likewise.
38324 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
38325 target compiler is functional.
38326 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
38329 * configure.ac: Default to efi platform for x86_64-apple. Allow
38330 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
38331 adjustments from the rest, only do them if target is not
38332 explicitly given. Merge other adjustments with the final sanity
38333 check. Remove an extraneous check for supported CPU. Be
38334 specific which CPU and which platform is not supported.
38336 * configure.ac: Default to pc platform for x86_64.
38338 2008-07-17 Robert Millan <rmh@aybabtu.com>
38340 Partial LinuxBIOS -> Coreboot rename.
38342 * conf/i386-linuxbios.rmk: Renamed to ...
38343 * conf/i386-coreboot.rmk: ... this.
38344 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
38345 * configure.ac: Accept "coreboot" as input platform (but maintain
38346 compatibility with "linuxbios").
38347 * include/grub/i386/linuxbios: Renamed to ...
38348 * include/grub/i386/coreboot: ... this.
38350 2008-07-17 Bean <bean123ch@gmail.com>
38352 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
38353 (appleldr_mod_SOURCE): New variable.
38354 (appleldr_mod_CFLAGS): Likewise.
38355 (appleldr_mod_LDFLAGS): Likewise.
38356 (pci_mod_SOURCES): Likewise.
38357 (pci_mod_CFLAGS): Likewise.
38358 (pci_mod_LDFLAGS): Likewise.
38359 (lspci_mod_SOURCES): Likewise.
38360 (lspci_mod_CFLAGS): Likewise.
38361 (lspci_mod_LDFLAGS): Likewise.
38363 * conf/x86_64-efi.rmk: New file.
38365 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
38367 (grub_efidisk_write): Likewise.
38369 * include/efi/api.h (efi_call_0): New macro.
38370 (efi_call_1): Likewise.
38371 (efi_call_2): Likewise.
38372 (efi_call_3): Likewise.
38373 (efi_call_4): Likewise.
38374 (efi_call_5): Likewise.
38375 (efi_call_6): Likewise.
38377 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
38378 grub_rescue_cmd_chainloader.
38380 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
38381 (grub_pe32_optional_header): Change some fields based on i386 or
38383 (GRUB_PE32_PE32_MAGIC): Likewise.
38385 * include/grub/efi/uga_draw.h: New file.
38387 * include/grub/elf.h (STN_ABS): New constant.
38388 (R_X86_64_NONE): Relocation constant for x86_64.
38389 (R_X86_64_64): Likewise.
38390 (R_X86_64_PC32): Likewise.
38391 (R_X86_64_GOT32): Likewise.
38392 (R_X86_64_PLT32): Likewise.
38393 (R_X86_64_COPY): Likewise.
38394 (R_X86_64_GLOB_DAT): Likewise.
38395 (R_X86_64_JUMP_SLOT): Likewise.
38396 (R_X86_64_RELATIVE): Likewise.
38397 (R_X86_64_GOTPCREL): Likewise.
38398 (R_X86_64_32): Likewise.
38399 (R_X86_64_32S): Likewise.
38400 (R_X86_64_16): Likewise.
38401 (R_X86_64_PC16): Likewise.
38402 (R_X86_64_8): Likewise.
38403 (R_X86_64_PC8): Likewise.
38405 * include/grub/i386/efi/pci.h: New file.
38407 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
38408 Change it value based on platform.
38409 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
38410 (GRUB_E820_RAM): Likewise.
38411 (GRUB_E820_RESERVED): Likewise.
38412 (GRUB_E820_ACPI): Likewise.
38413 (GRUB_E820_NVS): Likewise.
38414 (GRUB_E820_EXEC_CODE): Likewise.
38415 (GRUB_E820_MAX_ENTRY): Likewise.
38416 (grub_e820_mmap): New structure.
38417 (linux_kernel_header): Change the efi field according to different
38418 kernel version, also field from linux_kernel_header.
38420 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
38422 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
38423 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
38424 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
38425 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
38426 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
38427 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
38428 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
38429 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
38430 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
38431 (GRUB_PCI_ADDR_IO_MASK): Likewise.
38433 * include/grub/x86_64/efi/kernel.h: New file.
38435 * include/grub/x86_64/efi/loader.h: Likewise.
38437 * include/grub/x86_64/efi/machine.h: Likewise.
38439 * include/grub/x86_64/efi/pci.h: Likewise.
38441 * include/grub/x86_64/efi/time.h: Likewise.
38443 * include/grub/x86_64/linux.h: Likewise.
38445 * include/grub/x86_64/setjmp.h: Likewise.
38447 * include/grub/x86_64/time.h: Likewise.
38449 * include/grub/x86_64/types.h: Likewise.
38451 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
38452 GRUB_TARGET_SIZEOF_VOID_P.
38454 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
38455 (grub_efi_locate_handle): Likewise.
38456 (grub_efi_open_protocol): Likewise.
38457 (grub_efi_set_text_mode): Likewise.
38458 (grub_efi_stall): Likewise.
38459 (grub_exit): Likewise.
38460 (grub_reboot): Likewise.
38461 (grub_halt): Likewise.
38462 (grub_efi_exit_boot_services): Likewise.
38463 (grub_get_rtc): Likewise.
38465 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
38466 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
38467 (grub_efi_allocate_pages): Wrap efi calls.
38468 (grub_efi_free_pages): Wrap efi calls.
38469 (grub_efi_get_memory_map): Wrap efi calls.
38471 * kern/x86_64/dl.c: New file.
38473 * kern/x86_64/efi/callwrap.S: Likewise.
38475 * kern/x86_64/efi/startup.S: Likewise.
38477 * loader/efi/appleloader.c: Likewise.
38479 * loader/efi/chainloader.c (cmdline): New variable.
38480 (grub_chainloader_unload): Wrap efi calls.
38481 (grub_chainloader_boot): Likewise.
38482 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
38485 * loader/efi/chainloader_normal.c (chainloader_command):
38486 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
38489 * loader/i386/efi/linux.c (allocate_pages): Change allocation
38491 (grub_e820_add_region): New function.
38492 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
38494 (grub_find_video_card): New function.
38495 (grub_linux_setup_video): New function.
38496 (grub_rescue_cmd_linux): Probe for video information.
38498 * normal/x86_64/setjmp.S: New file.
38500 * term/efi/console.c (map_char): New function.
38501 (grub_console_putchar): Map unicode char.
38502 (grub_console_checkkey): Wrap efi calls.
38503 (grub_console_getkey): Likewise.
38504 (grub_console_getwh): Likewise.
38505 (grub_console_gotoxy): Likewise.
38506 (grub_console_cls): Likewise.
38507 (grub_console_setcolorstate): Likewise.
38508 (grub_console_setcursor): Likewise.
38510 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
38512 2008-07-16 Pavel Roskin <proski@gnu.org>
38514 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
38517 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
38518 pointer, not an integer. This fixes a warning and prevents
38519 precision loss on 64-bit systems.
38520 (relocate_addresses): Remove unneeded cast.
38522 2008-07-15 Pavel Roskin <proski@gnu.org>
38524 * kern/i386/ieee1275/init.c: Include grub/cache.h.
38526 * term/ieee1275/ofconsole.c: Disable code unused on i386.
38528 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
38529 Fix comparison between signed and unsigned.
38531 * include/grub/i386/ieee1275/console.h: Declare
38532 grub_console_init() and grub_console_fini().
38534 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
38535 It's empty and unused.
38537 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
38538 beginning to avoid warnings with some compilers.
38540 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
38541 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
38543 2008-07-14 Pavel Roskin <proski@gnu.org>
38545 * kern/env.c (grub_register_variable_hook): Don't copy empty
38546 string, it leaks memory. Pass "" to grub_env_set(), it should
38547 handle constant strings.
38549 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
38550 * commands/cmp.c (grub_cmd_cmp): Likewise.
38551 * kern/dl.c (grub_dl_flush_cache): Likewise.
38552 (grub_dl_load_core): Likewise.
38553 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
38554 (grub_elf64_load_phdrs): Likewise.
38556 2008-07-13 Pavel Roskin <proski@gnu.org>
38558 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
38559 between signed and unsigned.
38560 (LzmaEnc_Finish): Fix warning about an unused parameter.
38562 2008-07-13 Bean <bean123ch@gmail.com>
38564 * Makefile.in (enable_lzo): New rule.
38566 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
38568 * configure.ac (ENABLE_LZO): New option --enable-lzo.
38570 * boot/i386/pc/lnxboot.S: #include <config.h>.
38572 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
38573 its value according to the compression algorithm used, lzo or lzma.
38575 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
38576 compression algorithm according to configure macro.
38578 * kern/i386/pc/startup.S (codestart): Likewise.
38580 * kern/i386/pc/lzma_decode.S: New file.
38582 * include/grub/lib/LzFind.h: Likewise.
38584 * include/grub/lib/LzHash.h: Likewise.
38586 * include/grub/lib/LzmaDec.h: Likewise.
38588 * include/grub/lib/LzmaEnc.h: Likewise.
38590 * include/grub/lib/LzmaTypes.h: Likewise.
38592 * lib/LzFind.c: Likewise.
38594 * lib/LzmaDec.c: Likewise.
38596 * lib/LzmaEnc.c: Likewise.
38598 2008-07-13 Bean <bean123ch@gmail.com>
38600 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
38601 (grub_ext4_extent_header): New structure.
38602 (grub_ext4_extent): Likewise.
38603 (grub_ext4_extent_idx): Likewise.
38604 (grub_ext4_find_leaf): New function.
38605 (grub_ext2_read_block): Handle extents.
38607 2008-07-12 Robert Millan <rmh@aybabtu.com>
38609 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
38611 2008-07-11 Robert Millan <rmh@aybabtu.com>
38613 * util/grub.d/40_custom.in: New file. Example on how to add custom
38614 entries to /etc/grub.d.
38615 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
38616 40_custom (implicitly, by merging all the grub.d rules).
38618 2008-07-11 Pavel Roskin <proski@gnu.org>
38620 * commands/read.c (grub_getline): Fix invalid memory access.
38621 Don't add newline to the variable value.
38623 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
38624 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
38625 (serial_hw_get_port): Check validity of the port number.
38626 (grub_cmd_serial): Check return value of serial_hw_get_port().
38628 2008-07-07 Pavel Roskin <proski@gnu.org>
38630 * boot/i386/pc/diskboot.S (notification_string): Replace
38631 "Loading kernel" with just "loading". This is shorter, less
38632 confusing and saves a few bytes for possible future changes.
38634 2008-07-05 Pavel Roskin <proski@gnu.org>
38636 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
38637 size for ATAPI devices, they are undefined. Output sector
38638 number in decimal form.
38640 * disk/ata.c: Use named constants for status bits.
38642 2008-07-04 Pavel Roskin <proski@gnu.org>
38644 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
38645 grub_addr_t before casting it to the void pointer to fix a
38646 warning. Non-addressable regions are discarded earlier.
38647 (grub_arch_modules_addr): Cast _end to grub_addr_t.
38648 * kern/i386/linuxbios/table.c: Include grub/misc.h.
38649 (check_signature): Don't shadow table_header.
38650 (grub_linuxbios_table_iterate): Cast numeric constants to
38651 grub_linuxbios_table_header_t.
38652 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
38655 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
38658 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
38659 pointer, which can cause warnings. Support 64-bit addresses.
38661 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
38662 of sizeof(long). This fixes PowerPC image generation on x86_64.
38664 2008-07-04 Robert Millan <rmh@aybabtu.com>
38666 This fixes a performance issue when pc & gpt partmap iterators
38667 didn't abort iteration even after our hook found what it was
38668 looking for (often causing expensive probes of non-existent drives).
38670 Some callers relied on previous buggy behaviour, since they would
38671 raise an error when their own hooks caused early abortion of its
38674 * kern/device.c (grub_device_open): Improve error message.
38675 * disk/lvm.c (grub_lvm_open): Likewise.
38676 * disk/raid.c (grub_raid_open): Likewise.
38678 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
38679 when hook requests it, independently of grub_errno.
38680 (pc_partition_map_probe): Do not fail when find_func() caused
38681 early abortion of pc_partition_map_iterate().
38683 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
38684 when hook requests it, independently of grub_errno.
38685 (gpt_partition_map_probe): Do not fail when find_func() caused
38686 early abortion of gpt_partition_map_iterate().
38688 * kern/partition.c (grub_partition_iterate): Abort parent iteration
38689 when hook requests it, independently of grub_errno. Do not fail when
38690 part_map_iterate_hook() caused early abortion of p->iterate().
38692 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
38693 when grub_partition_iterate() returned with non-zero.
38695 2008-07-03 Pavel Roskin <proski@gnu.org>
38697 * disk/ata.c (grub_ata_pio_write): Check status before writing,
38698 like we do in grub_ata_pio_read().
38699 (grub_ata_readwrite): Always write individual sectors. Fix the
38700 sector count for the remainder.
38701 (grub_ata_write): Enable writing to ATA devices. Correctly
38702 report error for ATAPI devices.
38704 2008-07-02 Pavel Roskin <proski@gnu.org>
38706 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
38709 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
38710 for every read sector, we already increment it for the whole
38711 batch. This fixes reading more than 256 sectors at once.
38713 * util/grub-editenv.c (cmd_info): Cast argument to long
38714 explicitly. ptrdiff_t reduces to int on i386.
38716 * util/grub-editenv.c (main): Be specific which parameter is
38719 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
38720 (memdisk): Make memdisk_orig_addr a pointer.
38722 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
38723 for file offsets, use grub_off_t instead. Fix printf format
38726 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
38727 there. Real unexpected warnings should not drown in the noise
38728 about known problems.
38730 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
38731 grub_disk_addr_t for memory addresses.
38733 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
38734 explicitly to fix a warning.
38736 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
38738 * Makefile.in (MODULE_LDFLAGS): New variable.
38739 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
38740 the linker accepts --build-id=none.
38741 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
38743 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
38745 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
38746 those in Linux XFS code. Provide a way to access 64-bit parent
38748 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
38749 the end of struct grub_xfs_dir_header.
38751 2008-07-02 Bean <bean123ch@gmail.com>
38753 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
38754 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38755 and GRUB_IEEE1275_FLAG_NO_ANSI.
38757 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
38758 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38759 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
38761 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
38762 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
38764 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
38765 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
38767 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
38768 esc sequence on non ANSI terminal.
38769 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
38771 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
38774 2008-07-02 Bean <bean123ch@gmail.com>
38776 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
38777 (grub_editenv_SOURCES): New variable.
38778 (pkglib_MODULES): Add loadenv.mod.
38779 (loadenv_mod_SOURCES): New variable.
38780 (loadenv_mod_CFLAGS): Likewise.
38781 (loadenv_mod_LDFLAGS): Likewise.
38783 * include/grub/envblk.h: New file.
38785 * util/envblk.c: New file.
38787 * util/grub-editenv.c: New file.
38789 * commands/loadenv.c: New file.
38791 2008-07-01 Pavel Roskin <proski@gnu.org>
38793 * include/multiboot2.h (struct multiboot_tag_module): Use char,
38794 not unsigned char. This fixes warnings and is consistent with
38797 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
38799 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
38801 * term/tparm.c (analyze): Always set *popcount.
38803 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
38804 cast to fix a warning.
38806 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
38807 cast to suppress a warning.
38809 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
38810 grub_fshelp_read_file() expects.
38812 * fs/fat.c: Fix UUID calculation on big-endian systems. We
38813 write uuid as a 32-bit value in CPU byte order, so declare and
38816 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
38817 long if the format specifier expects it.
38818 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
38819 * partmap/pc.c (pc_partition_map_iterate): Likewise.
38820 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
38821 long to fix a warning.
38822 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
38823 grub_dprintf() arguments to fix warnings.
38825 2008-06-30 Pavel Roskin <proski@gnu.org>
38827 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
38828 install_bsd_part immediately before core.img is embedded or
38829 modified on disk. This fixes core.img verification if core.img
38830 cannot be embedded.
38832 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
38833 core_path to calculate the blocklist.
38834 Patch from Javier Martín <lordhabbit@gmail.com>
38836 2008-06-29 Robert Millan <rmh@aybabtu.com>
38838 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
38839 block to disk block.
38840 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
38841 Patch from Niels Böhm <bitbucket@arcor.de>
38843 2008-06-29 Robert Millan <rmh@aybabtu.com>
38845 * util/update-grub_lib.in (font_path): Search for fonts in
38846 /boot/grub first, which is more likely to be readable (we aren't
38847 deciding where fonts live, just looking for them).
38849 2008-06-26 Pavel Roskin <proski@gnu.org>
38851 * util/biosdisk.c (read_device_map): Don't leave dead map
38852 entries for devices failing stat() check.
38854 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
38855 core_path_dev for the core.img path on the target device.
38857 2008-06-26 Robert Millan <rmh@aybabtu.com>
38859 * disk/fs_uuid.c: New file.
38860 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
38861 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
38862 (fs_uuid_mod_LDFLAGS): New variables.
38863 * include/grub/disk.h (grub_disk_dev_id): Add
38864 `GRUB_DISK_DEVICE_UUID_ID'.
38865 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
38866 implement iterate().
38868 2008-06-26 Robert Millan <rmh@aybabtu.com>
38870 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
38871 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
38872 Linux image includes no initrd.
38874 2008-06-21 Javier Martín <lordhabbit@gmail.com>
38876 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
38877 call to resolve the core image location that effectively appended the
38880 2008-06-21 Robert Millan <rmh@aybabtu.com>
38882 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
38885 * util/grub.d/10_hurd.in: ... to here ...
38886 * util/grub.d/10_linux.in: ... and here.
38888 2008-06-19 Robert Millan <rmh@aybabtu.com>
38890 * kern/main.c (grub_main): Export `prefix' variable immediately
38891 after it has been set by grub_machine_set_prefix().
38893 2008-06-19 Robert Millan <rmh@aybabtu.com>
38895 * commands/search.c (search_label, search_fs_uuid, search_file): Print
38896 search result when not saving to variable, not the other way around.
38897 When saving to variable, abort iteration as soon as a match is found.
38899 2008-06-19 Robert Millan <rmh@aybabtu.com>
38901 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
38902 check for partition that provides /boot/grub. Its logic is flawed,
38903 as it prevents prepare_grub_to_access_device() from being called
38906 2008-06-19 Robert Millan <rmh@aybabtu.com>
38908 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
38909 "insmod" command directly when abstraction modules are needed,
38910 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
38911 since it had already been processed).
38913 2008-06-19 Pavel Roskin <proski@gnu.org>
38915 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
38916 changed. This is needed in case GRUB_LIBDIR changes.
38917 * conf/i386-ieee1275.rmk: Likewise.
38918 * conf/i386-linuxbios.rmk: Likewise.
38919 * conf/i386-pc.rmk: Likewise.
38920 * conf/powerpc-ieee1275.rmk: Likewise.
38922 2008-06-18 Pavel Roskin <proski@gnu.org>
38924 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
38925 kernel_elf_symlist.c to symlist.c for consistency with other
38926 architectures. Update all users.
38927 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
38929 2008-06-18 Robert Millan <rmh@aybabtu.com>
38931 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
38934 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
38935 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
38936 a RAID device, run setup() for all members independently on whether
38937 LVM abstraction is being used.
38938 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
38939 If grub-mkimage has set `*install_dos_part == -2', don't override this
38941 Perform *install_dos_part adjustments independently on whether
38942 we're embedding or not.
38943 Clarify error message when image is too big for embedding.
38944 Remove duplicate *install_dos_part stanza.
38946 2008-06-17 Robert Millan <rmh@aybabtu.com>
38948 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
38949 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
38951 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
38952 values in grub_ofconsole_normal_color and
38953 grub_ofconsole_highlight_color (they're not directly related to
38954 background and foreground).
38955 (grub_ofconsole_setcolorstate): Extract background and foreground
38956 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
38958 2008-06-17 Robert Millan <rmh@aybabtu.com>
38960 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
38961 /boot/grub for the check in last commit, not /boot (they could be
38962 different partitions).
38964 2008-06-16 Robert Millan <rmh@aybabtu.com>
38966 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
38967 asked to setup access for the same partition that provides /boot,
38968 don't bother using UUIDs since our root already has the value we
38971 2008-06-16 Robert Millan <rmh@aybabtu.com>
38973 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
38975 Patch from Sven Mueller <sven@debian.org>.
38977 2008-06-16 Robert Millan <rmh@aybabtu.com>
38979 * util/update-grub.in: Check for $EUID instead of $UID.
38980 Reported by Vincent Zweije.
38982 2008-06-16 Bean <bean123ch@gmail.com>
38984 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
38985 (grub_ext2_read_block): Likewise.
38986 (grub_ext2_read_inode): Likewise.
38987 (grub_ext2_mount): Likewise.
38988 (grub_ext2_close): Likewise.
38989 (grub_ext3_get_journal): Removed.
38991 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
38992 (grub_reiserfs_read_symlink): Likewise.
38993 (grub_reiserfs_mount): Likewise.
38994 (grub_reiserfs_open): Likewise.
38995 (grub_reiserfs_read): Likewise.
38996 (grub_reiserfs_close): Likewise.
38997 (grub_reiserfs_get_journal): Removed.
38999 * fs/fshelp.c (grub_fshelp_read): Removed.
39000 (grub_fshelp_map_block): Likewise.
39002 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
39003 (grub_fshelp_journal): Likewise.
39004 (grub_fshelp_read): Likewise.
39005 (grub_fshelp_map_block): Likewise.
39007 2008-06-16 Pavel Roskin <proski@gnu.org>
39009 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
39010 floating point anymore.
39011 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
39013 2008-06-15 Pavel Roskin <proski@gnu.org>
39015 * commands/ls.c (grub_ls_list_files): Use integer calculations
39016 for human readable format, avoid floating point use.
39017 * kern/misc.c (grub_ftoa): Remove.
39018 (grub_vsprintf): Remove floating point support.
39020 2008-06-15 Robert Millan <rmh@aybabtu.com>
39022 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
39024 Reported by Max Vozeler.
39026 2008-06-15 Robert Millan <rmh@aybabtu.com>
39028 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
39029 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
39031 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
39032 the beginning of the prefix.
39034 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
39035 It is assumed that if we have a memdisk, grub-mkimage has set
39036 grub_prefix to include the "(memdisk)" drive in it.
39038 2008-06-15 Robert Millan <rmh@aybabtu.com>
39040 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
39041 Initialize keyboard controller after registering the terminal, so that
39042 grub_printf() can be called from grub_keyboard_controller_init().
39044 2008-06-15 Robert Millan <rmh@aybabtu.com>
39046 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
39047 extent-btree which is written as big endian on disk.
39048 Reported by Alain Greppin <al@chilibi.org>.
39050 2008-06-14 Robert Millan <rmh@aybabtu.com>
39052 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
39053 * util/i386/pc/grub-install.in (modules): Likewise.
39055 2008-06-13 Pavel Roskin <proski@gnu.org>
39057 * commands/ls.c (grub_ls_list_files): Fix format warnings.
39059 2008-06-13 Bean <bean123ch@gmail.com>
39061 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
39063 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
39065 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
39066 to indicate sparse block.
39068 2008-06-12 Pavel Roskin <proski@gnu.org>
39070 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
39071 number, grub_fshelp_read() does it for us.
39073 * fs/fshelp.c (grub_fshelp_read): New function. Implement
39074 linear disk read with journal translation.
39075 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
39076 * include/grub/fshelp.h: Declare grub_fshelp_read().
39078 2008-06-09 Pavel Roskin <proski@gnu.org>
39080 * fs/minix.c (grub_minix_mount): Handle error reading
39083 2008-06-08 Robert Millan <rmh@aybabtu.com>
39085 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
39086 don't append the RAID prefix afterwards.
39087 Reported by Clint Adams.
39089 2008-06-08 Robert Millan <rmh@aybabtu.com>
39091 Based on description from Pavel:
39092 * kern/disk.c (grub_disk_check_range): Rename to ...
39093 (grub_disk_adjust_range): ... this. Add a comment explaining the
39094 tasks performed by this function.
39096 2008-06-08 Robert Millan <rmh@aybabtu.com>
39098 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
39099 `num_serial' (for consistency with other variables).
39100 (struct grub_ntfs_data): Add `uuid' member.
39101 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
39102 (grub_ntfs_uuid): New function.
39103 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
39105 2008-06-07 Pavel Roskin <proski@gnu.org>
39107 * util/biosdisk.c (open_device): Revert last change to the
39108 function, it broke installation. The sector needs to be
39109 different dependent on which device is opened.
39111 2008-06-06 Robert Millan <rmh@aybabtu.com>
39113 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
39114 rest of GRUB, and breakage doesn't happen if its value were modified.
39116 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39117 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
39118 a constant (same value).
39119 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
39120 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
39122 2008-06-06 Robert Millan <rmh@aybabtu.com>
39124 * util/biosdisk.c (open_device): Do not modify sector offset when
39125 accessing a partition. kern/disk.c already handles this for us.
39127 2008-06-06 Robert Millan <rmh@aybabtu.com>
39129 * util/grub-emu.c (grub_machine_init): Move code in this function from
39131 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
39132 segfault in case grub_printf() is called).
39134 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
39135 grub_probe. Update all users not to explicitly add it again.
39136 (grub_device): New variable; contains corresponding device for grubdir.
39137 (fs_module, partmap_module, devabstraction_module): Pass
39138 `--device ${grub_device}' to grub_probe to avoid traversing /dev
39141 2008-06-05 Robert Millan <rmh@aybabtu.com>
39143 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
39144 is found, print it (same layout as with labels).
39146 2008-06-04 Robert Millan <rmh@aybabtu.com>
39148 * util/biosdisk.c (get_drive): Rename to ...
39149 (find_grub_drive): ... this. Update all users.
39151 (get_os_disk): Rename to ...
39152 (convert_system_partition_to_system_disk): ... this. Update all users.
39154 (find_drive): Rename to ...
39155 (find_system_device): ... this. Update all users.
39157 2008-06-04 Robert Millan <rmh@aybabtu.com>
39159 * util/biosdisk.c (get_os_disk): Handle IDA devices.
39160 * util/grub-mkdevicemap.c (get_mmc_disk_name)
39161 (make_device_map): Likewise.
39163 2008-06-01 Robert Millan <rmh@aybabtu.com>
39165 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
39166 before dereferencing it.
39168 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
39169 union with fat12/fat16-specific ones. Add some new fields, including
39170 `num_serial' for both versions.
39171 (struct grub_fat_data): Add `uuid' member.
39172 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
39173 names. Initialize `data->uuid' using `num_serial'.
39174 (grub_fat_uuid): New function.
39175 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
39177 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
39178 (grub_reiserfs_uuid): New function.
39179 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
39182 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
39183 (grub_xfs_uuid): New function.
39184 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
39186 2008-06-01 Robert Millan <rmh@aybabtu.com>
39188 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
39189 code that is backward compatible with pre-uuid search command.
39191 2008-05-31 Robert Millan <rmh@aybabtu.com>
39193 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
39194 floppies after everything else, to ensure floppy drive isn't accessed
39195 unnecessarily (patch from Bean).
39197 2008-05-31 Robert Millan <rmh@aybabtu.com>
39199 * commands/search.c (search_label, search_fs_uuid, search_file): Do
39200 not print device names when we were asked to set a variable.
39202 2008-05-31 Robert Millan <rmh@aybabtu.com>
39204 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
39205 using "cursor-on" and "cursor-off" commands (understood at least by
39206 the Open Firmware flavour on OLPC).
39208 2008-05-31 Michael Gorven <michael@gorven.za.net>
39210 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
39211 on and off sequences.
39213 2008-05-31 Robert Millan <rmh@aybabtu.com>
39215 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
39216 * util/update-grub.in: Likewise.
39218 2008-05-30 Pavel Roskin <proski@gnu.org>
39220 * util/biosdisk.c (linux_find_partition): Simplify logic and
39221 make the code more universal. Keep special processing for
39222 devfs, but use a simple rule for all other devices. If the
39223 device ends with a number, append 'p' and the partition number.
39224 Otherwise, append only the partition number.
39226 2008-05-30 Robert Millan <rmh@aybabtu.com>
39228 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
39229 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
39230 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
39231 the `root' parameter to Linux.
39233 2008-05-30 Robert Millan <rmh@aybabtu.com>
39235 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
39236 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
39237 --fs_uuid with --fs-uuid.
39238 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
39239 all filesystems support them).
39241 2008-05-30 Robert Millan <rmh@aybabtu.com>
39243 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
39244 grub_printf() flags, since we're printing in units of 2 bytes.
39246 2008-05-30 Robert Millan <rmh@aybabtu.com>
39248 * util/grub.d/00_header.in: Remove obsolete comment referencing
39249 convert_system_path_to_grub_path().
39250 * util/update-grub.in: Likewise.
39251 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
39252 (convert_system_path_to_grub_path): Add a warning message explaining
39253 that this function is deprecated. Rely on is_path_readable_by_grub()
39254 for the readability checks.
39255 (font_path): Use is_path_readable_by_grub() for the readability
39256 check rather than convert_system_path_to_grub_path().
39258 2008-05-30 Robert Millan <rmh@aybabtu.com>
39260 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
39261 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
39262 converting it first.
39263 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
39264 grub.cfg for access to font file, and afterwards call it again to set
39267 2008-05-30 Robert Millan <rmh@aybabtu.com>
39269 * commands/search.c (options): Add --fs_uuid option.
39270 (search_fs_uuid): New function.
39271 (grub_cmd_search): Fix --set argument passing.
39272 Use search_fs_uuid() when requested via --fs_uuid.
39273 (grub_search_init): Update help message.
39274 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
39275 and redeclare it as an array of 16-bit words.
39276 (grub_ext2_uuid): New function.
39277 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
39278 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
39279 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
39280 (GRUB_DEVICE_BOOT_UUID): New variables.
39281 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
39282 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
39284 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
39285 just assume `root' variable has the right value.
39286 * util/grub.d/10_linux.in: Likewise.
39287 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
39289 (main): Recognise `-t fs_uuid' argument.
39291 2008-05-30 Robert Millan <rmh@aybabtu.com>
39293 * util/biosdisk.c (map): Redefine structure to hold information
39294 about GRUB drive name.
39295 (get_drive): Reimplement without assuming (and verifying) BIOS-like
39297 (call_hook): Remove.
39298 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
39299 member. Assume drive has partitions.
39300 (grub_util_biosdisk_open): Access device names via `.device' struct
39302 (open_device): Likewise.
39303 (find_drive): Likewise.
39304 (read_device_map): Adjust map[] usage to match the new struct
39305 definition. Don't check for duplicates (still possible, but not cheap
39307 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
39308 (make_device_name): Remove assumption of BIOS-like drive names.
39310 2008-05-30 Pavel Roskin <proski@gnu.org>
39312 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
39313 compiling execute.c doesn't need grub_script.tab.h anymore.
39314 (normal/command.c_DEPENDENCIES): Likewise.
39315 (normal/function.c_DEPENDENCIES): Likewise.
39316 * conf/i386-ieee1275.rmk: Likewise.
39317 * conf/i386-linuxbios.rmk: Likewise.
39318 * conf/i386-pc.rmk: Likewise.
39319 * conf/powerpc-ieee1275.rmk: Likewise.
39320 * conf/sparc64-ieee1275.rmk: Likewise.
39322 2008-05-29 Pavel Roskin <proski@gnu.org>
39324 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
39325 when scanning metadata for volume group name.
39327 * include/grub/script.h: Don't include grub_script.tab.h. It's
39328 a generated file, which may only be included from the files with
39329 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
39330 use union YYSTYPE, as the later allows forward declaration.
39331 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
39333 2008-05-29 Robert Millan <rmh@aybabtu.com>
39335 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
39336 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
39337 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
39338 (grub_console_checkkey): Add grub_dprintf() call to report unknown
39341 2008-05-29 Robert Millan <rmh@aybabtu.com>
39343 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
39344 control key combinations.
39346 2008-05-29 Robert Millan <rmh@aybabtu.com>
39348 * util/powerpc/ieee1275/grub-install.in: Move from here ...
39349 * util/ieee1275/grub-install.in: ... to here.
39350 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
39351 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
39352 (grub_install_SOURCES): Likewise.
39354 2008-05-29 Robert Millan <rmh@aybabtu.com>
39356 * fs/affs.c: Update copyright year.
39357 * fs/ext2.c: Likewise.
39358 * fs/fshelp.c: Likewise.
39359 * fs/hfsplus.c: Likewise.
39360 * fs/ntfs.c: Likewise.
39361 * fs/xfs.c: Likewise.
39362 * include/grub/fshelp.h: Likewise.
39363 * util/grub-mkdevicemap.c: Likewise.
39365 2008-05-28 Robert Millan <rmh@aybabtu.com>
39367 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
39368 might need to be fatfs to support some firmware implementations
39371 2008-05-28 Robert Millan <rmh@aybabtu.com>
39373 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
39375 * util/grub-mkdevicemap.c (get_mmc_disk_name)
39376 (make_device_map): Likewise.
39378 2008-05-20 Bean <bean123ch@gmail.com>
39380 * fs/fshelp.c (grub_fshelp_map_block): New function.
39381 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
39382 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
39384 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
39385 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
39386 (grub_fshelp_journal): New structure.
39387 (grub_fshelp_map_block): New function prototype.
39388 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
39389 (grub_fshelp_map_block): Likewise.
39391 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
39392 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
39393 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
39394 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
39395 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
39396 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
39397 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
39398 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
39399 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
39400 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
39401 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
39402 (grub_ext2_sblock): New members for journal support.
39403 (grub_ext3_journal_header): New structure.
39404 (grub_ext3_journal_revoke_header): Likewise.
39405 (grub_ext3_journal_block_tag): Likewise.
39406 (grub_ext3_journal_sblock): Likewise.
39407 (grub_fshelp_node): New members logfile and journal.
39408 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
39409 grub_fshelp_map_block to get real block number.
39410 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
39412 (grub_ext2_read_inode): Likewise.
39413 (grub_ext3_get_journal): New function.
39414 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
39415 (grub_ext2_close): Release memory used by journal.
39417 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
39418 (REISERFS_MAGIC_DESC_BLOCK): New macro.
39419 (grub_reiserfs_transaction_header): Renamed to
39420 grub_reiserfs_description_block, replace field data with real_blocks.
39421 (grub_reiserfs_commit_block): New structure.
39422 (grub_reiserfs_data): New member journal.
39423 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
39425 (grub_reiserfs_read_symlink): Likewise.
39426 (grub_reiserfs_iterate_dir): Likewise.
39427 (grub_reiserfs_open): Likewise.
39428 (grub_reiserfs_read): Likewise.
39429 (grub_reiserfs_get_journal): New function.
39430 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
39431 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
39432 using grub_reiserfs_get_journal.
39433 (grub_reiserfs_close): Release memory used by journal.
39435 * fs/affs.c (grub_affs_read_block): Change block type to
39436 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
39438 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
39440 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
39442 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
39444 * fs/udf.c (grub_udf_read_block): Change block type to
39445 grub_disk_addr_t. Use type cast to avoid warning.
39447 * fs/xfs.c (grub_xfs_read_block): Likewise.
39449 2008-05-16 Christian Franke <franke@computer.org>
39451 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
39452 to ensure that break with ESC will always work.
39453 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
39454 Remove ESC from keyboard queue.
39456 2008-05-16 Christian Franke <franke@computer.org>
39458 * util/biosdisk.c: [__CYGWIN__] Add includes.
39459 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
39460 (get_os_disk): Move variable declarations to OS specific
39461 parts to avoid warning.
39462 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
39463 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
39464 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
39466 * util/getroot.c: [__CYGWIN__] Add includes.
39467 (strip_extra_slashes): Fix "/" case.
39468 [__CYGWIN__] (get_win32_path): New function.
39469 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
39470 [__CYGWIN__] (find_root_device): Disable.
39471 [__CYGWIN__] (get_bootsec_serial): New function.
39472 [__CYGWIN__] (find_cygwin_root_device): Likewise.
39473 [__linux__] (grub_guess_root_device): Add early returns to simplify
39475 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
39476 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
39477 check for Linux only.
39479 2008-05-15 Bean <bean123ch@gmail.com>
39481 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
39482 keyboard hang problem in apple's intel mac.
39484 2008-05-09 Robert Millan <rmh@aybabtu.com>
39486 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
39488 * util/grub-mkdevicemap.c (get_virtio_disk_name)
39489 (make_device_map): Likewise.
39490 Reported by Aurelien Jarno <aurel32@debian.org>
39492 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
39494 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
39495 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
39496 (make_device_map): Output entries for xvd type disks.
39498 2008-05-07 Robert Millan <rmh@aybabtu.com>
39500 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
39502 * util/grub-mkdevicemap.c (get_cciss_disk_name)
39503 (make_device_map): Likewise.
39504 Reported by Roland Dreier <rdreier@cisco.com>
39506 2008-05-07 Robert Millan <rmh@aybabtu.com>
39508 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
39509 grub_strstr() call. Correct a few mistakes in failure path handling.
39511 2008-05-06 Robert Millan <rmh@aybabtu.com>
39513 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
39514 Do not print a trailing slash (therefore, the root directory is an
39516 (convert_system_path_to_grub_path): Do not remove trailing slash
39517 from make_system_path_relative_to_its_root() output.
39519 * util/i386/pc/grub-install.in: Add trailing slash to output from
39520 make_system_path_relative_to_its_root().
39522 2008-05-06 Robert Millan <rmh@aybabtu.com>
39524 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
39525 ensures that output lines aren't intermangled with those sent to
39526 stderr (via grub_util_info()).
39527 * util/grub-probe.c (grub_refresh): Likewise.
39528 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
39530 2008-05-05 Christian Franke <franke@computer.org>
39532 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
39533 Add Cygwin device names.
39534 (get_ide_disk_name) [__CYGWIN__]: Likewise.
39535 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
39536 (check_device): Return error instead of success on empty name.
39537 (make_device_map): Move label inside linux specific code to
39538 prevent compiler warning.
39540 2008-04-30 Robert Millan <rmh@aybabtu.com>
39542 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
39543 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
39545 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
39547 2008-04-29 Robert Millan <rmh@aybabtu.com>
39549 * docs/grub.cfg: New file (example GRUB configuration).
39551 2008-04-26 Robert Millan <rmh@aybabtu.com>
39553 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
39554 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
39555 and `disk/ieee1275/nand.c'.
39557 2008-04-25 Bean <bean123ch@gmail.com>
39559 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
39562 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
39563 change the buffer size to 4096 for cdrom device.
39565 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
39567 (_linux_mod_SOURCES): New variable.
39568 (_linux_mod_CFLAGS): Likewise.
39569 (_linux_mod_LDFLAGS): Likewise.
39570 (linux_mod_SOURCES): Likewise.
39571 (linux_mod_CFLAGS): Likewise.
39572 (linux_mod_LDFLAGS): Likewise.
39573 (nand_mod_SOURCES): Likewise.
39574 (nand_mod_CFLAGS): Likewise.
39575 (nand_mod_LDFLAGS): Likewise.
39577 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
39578 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
39579 type property. (nand device in olpc don't have this property)
39581 * include/grub/disk.h (grub_disk_dev_id): New macro
39582 GRUB_DISK_DEVICE_NAND_ID.
39584 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
39585 function prototype.
39586 (grub_rescue_cmd_initrd): Likewise.
39588 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
39589 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
39590 ofw_cif_handler and ofw_idt, adjust padding number.
39592 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
39593 GRUB_MACHINE_IEEE1275 is defined.
39595 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
39596 Use NESTED_FUNC_ATTR attribute on the hook parameter.
39598 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
39599 on nested function heap_init.
39600 (grub_upper_mem): New variable for i386-ieee1275.
39601 (grub_get_extended_memory): New function for i386-ieee1275.
39602 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
39604 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
39605 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
39608 * loader/i386/ieee1275/linux.c: New file.
39610 * loader/i386/ieee1275/linux_normal.c: New file.
39612 * disk/ieee1275/nand.c: New file.
39614 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
39616 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
39618 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
39620 2008-04-18 Robert Millan <rmh@aybabtu.com>
39622 Restructures early code path on ieee1275 to unify grub_main() as
39623 the first C function that is executed in every platform.
39625 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
39626 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
39628 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
39629 * kern/ieee1275/cmain.c (cmain): Rename to ...
39630 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
39631 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
39634 2008-04-18 Robert Millan <rmh@aybabtu.com>
39636 * util/update-grub.in: Fix syntax error when setting
39637 `GRUB_PRELOAD_MODULES'.
39638 Reported by Stephane Chazelas <stephane@artesyncp.com>
39640 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
39642 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
39643 section into account, newer toolchains generate unique build ids
39644 * configure.ac: remove the test for --build-id=none acceptance,
39645 we want build ids to be preserved
39646 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
39647 far from other sections don't cause the raw binary images grow
39650 2008-04-15 Robert Millan <rmh@aybabtu.com>
39652 * disk/lvm.c: Update copyright year.
39653 * kern/misc.c: Likewise.
39655 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39657 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
39658 there is no memory left for physical volume name.
39660 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39662 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
39663 volume name mapping to support bigger than 9 character names properly.
39665 2008-04-13 Robert Millan <rmh@aybabtu.com>
39667 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
39668 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
39670 2008-04-13 Christian Franke <franke@computer.org>
39672 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
39673 to create a floppy emulation boot CD when non emulation mode
39675 Enable Joliet CD filesystem extension.
39677 2008-04-13 Robert Millan <rmh@aybabtu.com>
39679 * kern/misc.c (grub_strncat): Fix off-by-one error.
39680 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
39682 * kern/env.c (grub_env_context_close): Clear current context, not
39684 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
39686 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
39688 2008-04-13 Robert Millan <rmh@aybabtu.com>
39690 Improve robustness when handling LVM.
39692 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
39693 (and leave `*p' unmodified).
39694 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
39696 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
39697 iterating through it.
39698 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
39700 (grub_lvm_scan_device): Check the return value (and fail gracefully
39701 when due) on each grub_lvm_getvalue() or grub_strstr() call.
39702 Don't assume `vg->pvs != NULL' when iterating through it.
39704 2008-04-13 Robert Millan <rmh@aybabtu.com>
39706 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
39707 * genmk.rb (partmap): New variable.
39708 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
39709 (#{partmap}): New target rule.
39710 * genpartmaplist.sh: New file.
39711 * Makefile.in (pkglib_DATA): Add partmap.lst.
39712 (partmap.lst): New target rule.
39713 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
39714 modules (including all partition maps), instead of preloading them.
39716 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
39718 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
39719 `linux-boot-prober' (if installed) to detect other operating
39720 systems which are installed on the computer and add them to
39722 * conf/common.rmk: Build and install 30_os-prober.
39724 2008-04-12 Robert Millan <rmh@aybabtu.com>
39726 * kern/powerpc/ieee1275/init.c: Move from here ...
39727 * kern/ieee1275/init.c: ... to here. Update all users.
39729 * kern/powerpc/ieee1275/cmain.c: Move from here ...
39730 * kern/ieee1275/cmain.c: ... to here. Update all users.
39732 * kern/powerpc/ieee1275/openfw.c: Move from here ...
39733 * kern/ieee1275/openfw.c: ... to here. Update all users.
39735 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
39736 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
39738 2008-04-10 Pavel Roskin <proski@gnu.org>
39740 * configure.ac: Always use "_cv_" in cache variables for
39741 compatibility with Autoconf 2.62.
39743 2008-04-07 Robert Millan <rmh@aybabtu.com>
39745 Revert grub/machine/init.h addition by Pavel (since it breaks on
39746 i386-ieee1275 and others):
39747 * util/i386/pc/misc.c: Remove grub/machine/init.h.
39748 * util/powerpc/ieee1275/misc.c: Likewise.
39750 2008-04-07 Robert Millan <rmh@aybabtu.com>
39752 * util/grub-probe.c (probe): Improve error message.
39754 2008-04-07 Robert Millan <rmh@aybabtu.com>
39756 * util/biosdisk.c (read_device_map): Skip devices that don't exist
39757 (this prevents the presence of a bogus entry from ruining the whole
39760 2008-04-06 Pavel Roskin <proski@gnu.org>
39762 * util/biosdisk.c: Include grub/util/biosdisk.h.
39763 * util/grub-fstest.c (execute_command): Make static.
39764 * util/grub-mkdevicemap.c (check_device): Likewise.
39765 * util/i386/pc/misc.c: Include grub/machine/init.h.
39766 * util/powerpc/ieee1275/misc.c: Likewise.
39767 * util/lvm.c: Include grub/util/lvm.h.
39768 * util/misc.c: Include grub/kernel.h, grub/misc.h and
39770 * util/raid.c: Include grub/util/raid.h.
39771 (grub_util_getdiskname): Make static.
39773 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
39774 grub_hostfs_fini(), as they are called from grub_init_all() and
39775 grub_fini_all() respectively. This fixes an infinite loop in
39776 grub-fstest due to double registration of hostfs.
39777 Reported by Christian Franke <Christian.Franke@t-online.de>
39779 2008-04-05 Pavel Roskin <proski@gnu.org>
39781 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
39782 all 8 functions. Otherwise, probe function 0 only.
39784 2008-04-04 Pavel Roskin <proski@gnu.org>
39786 * commands/lspci.c (grub_lspci_iter): Print the bus number
39789 * commands/lspci.c (grub_pci_classes): Fix typos.
39790 (grub_lspci_iter): Don't print func twice. Print vendor ID
39791 before device ID, as it's normally done.
39793 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
39794 Fix signedness warnings.
39795 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
39797 * util/ieee1275/get_disk_name.c: Include config.h so that
39798 _GNU_SOURCE is defined and getline() is declared. Mark an
39799 unused argument as such. Fix a signedness warning.
39801 2008-04-02 Pavel Roskin <proski@gnu.org>
39803 * genkernsyms.sh.in: Use more robust assignments for CC and
39804 srcdir. Quote srcdir.
39805 * gensymlist.sh.in: Likewise. Assert at the compile time that
39806 the symbol table is not empty.
39808 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
39809 * fs/cpio.c (grub_cpio_read): Likewise.
39811 2008-04-01 Pavel Roskin <proski@gnu.org>
39813 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
39814 * disk/host.c (grub_host_open): Likewise.
39815 * disk/loopback.c (grub_loopback_open): Likewise.
39816 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
39817 disk->id as in disk/host.c, not a multi-character constant.
39819 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
39820 later is obsolete, potentially dangerous and sets a bad example.
39821 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
39822 * util/misc.c (grub_util_get_image_size): Likewise.
39824 * disk/loopback.c (options): Improve help for "--partitions".
39826 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
39827 options to align them with the short options, e.g. "echo -e".
39829 2008-03-31 Bean <bean123ch@gmail.com>
39831 * video/reader/png.c (grub_png_data): New member is_16bit and
39833 (grub_png_decode_image_header): Detect 16 bit png image.
39834 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
39835 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
39836 (grub_video_reader_png): Release memory occupied by image_data.
39838 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
39840 (grub_nfs_mount): Skip the test for sector per cluster.
39842 * include/grub/ntfs.h (MAX_SPC): Removed.
39844 2008-03-31 Bean <bean123ch@gmail.com>
39846 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
39847 (grub_probe_SOURCES): Add fs/afs.c.
39848 (grub_fstest_SOURCES): Likewise.
39849 (afs_mod_SOURCES): New variable.
39850 (afs_mod_CFLAGS): Likewise.
39851 (afs_mod_LDFLAGS): Likewise.
39853 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
39854 (grub_emu_SOURCES): Likewise.
39856 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39858 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39860 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39862 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39864 * fs/afs.c: New file.
39866 2008-03-30 Pavel Roskin <proski@gnu.org>
39868 * disk/host.c: Include grub/misc.h to fix a warning.
39869 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
39870 warnings about implicit declarations.
39872 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
39874 * include/grub/i386/loader.h: Change declaration of
39875 grub_linux_boot() to match what grub_loader_set() expects.
39876 * util/getroot.c (grub_guess_root_device): Return const char* to
39878 * util/grub-probe.c (probe): Fix a warning about uninitialized
39879 abstraction_name variable.
39880 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
39881 second argument as unused to fix a warning.
39883 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
39884 missing grub_error() call.
39886 * util/update-grub_lib.in: Define datarootdir, since Autoconf
39887 2.60 and newer uses it to define datadir.
39889 * commands/sleep.c: Fix warning about implicit declaration.
39890 * disk/memdisk.c: Likewise.
39891 * loader/aout.c: Likewise.
39892 * loader/i386/bsd_normal.c: Likewise.
39893 * util/grub-probe.c: Likewise.
39895 * commands/i386/cpuid.c (has_longmode): Make static.
39896 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
39897 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
39899 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
39900 GDT. This is more robust, as %ds can change.
39901 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
39902 calling real_to_prot().
39903 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
39905 2008-03-28 Pavel Roskin <proski@gnu.org>
39907 * kern/i386/pc/startup.S: Assert that uncompressed functions
39908 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
39909 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
39910 code, as they push parts of the code (error handlers) beyond
39911 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
39912 code as correctness and size.
39914 2008-03-28 Pavel Roskin <proski@gnu.org>
39916 * kern/i386/pc/startup.S
39917 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
39918 data block address to the real mode, keep offset minimal. This
39919 works around a bug in AWARD BIOS on old Athlon systems, which
39920 makes CD detection hang.
39922 2008-03-26 Pavel Roskin <proski@gnu.org>
39924 * normal/color.c (grub_parse_color_name_pair): Make `name' a
39926 * include/grub/normal.h: Add grub_parse_color_name_pair()
39929 2008-03-24 Bean <bean123ch@gmail.com>
39931 * disk/i386/pc/biosdisk.c (cd_start): Removed.
39932 (cd_count): Removed.
39933 (cd_drive): New variable.
39934 (grub_biosdisk_get_drive): Don't check for (cdN) device.
39935 (grub_biosdisk_call_hook): Likewise.
39936 (grub_biosdisk_iterate): Change cdrom detection method.
39937 (grub_biosdisk_open): Replace cd_start with cd_drive.
39938 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
39939 detect cdrom device.
39941 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
39943 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
39944 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
39945 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
39946 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
39947 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
39948 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
39949 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
39950 (grub_biosdisk_cdrp): New structure.
39951 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
39953 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
39955 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
39958 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
39961 2008-03-20 Robert Millan <rmh@aybabtu.com>
39963 Remove 2 TiB limit in ata.mod.
39964 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
39965 (grub_ata_dumpinfo): Print sector count with 0x%llx.
39966 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
39967 grub_uint64_t instead of grub_uint32_t.
39969 2008-03-05 Bean <bean123ch@gmail.com>
39971 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
39972 (grub_multiboot): Set boot device.
39974 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
39976 2008-03-02 Bean <bean123ch@gmail.com>
39978 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
39981 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
39983 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
39986 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
39989 * docs/fdl.texi: New file.
39991 * docs/mdate-sh: New file. Copied from gnulib.
39992 * docs/texinfo.tex: Likewise.
39994 * config.guess: Updated from gnulib.
39995 * install-sh: Likewise.
39997 2008-02-28 Robert Millan <rmh@aybabtu.com>
39999 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
40000 (aout_mod_SOURCES): New variable.
40001 (aout_mod_CFLAGS): Likewise.
40002 (aout_mod_LDFLAGS): Likewise.
40004 * conf/i386-ieee1275.rmk: Likewise.
40006 2008-02-28 Robert Millan <rmh@aybabtu.com>
40008 * util/update-grub.in: Reorganise terminal validity check. Accept
40009 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
40010 Based on suggestion by Franklin PIAT.
40012 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
40014 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
40016 * util/getroot.c (grub_util_check_block_device): New function that
40017 returns the given argument if it is a block device and returns NULL else.
40018 * util/grub-probe.c (argument_is_device): New variable.
40019 (probe): Promote device_name from a variable to an argument. Receive
40020 device_name from grub_util_check_block_device() if path is NULL and from
40021 grub_guess_root_device() else. Do not free() device_name anymore.
40022 (options): Introduce new parameter '-d, --device'.
40023 (main): Add description of the new parameter to the help screen.
40024 Rename path variable to argument. Set argument_is_device if the '-d'
40025 option is given. Pass argument to probe() depending on
40026 argument_is_device.
40028 2008-02-24 Bean <bean123ch@gmail.com>
40030 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
40031 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
40032 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
40033 (GRUB_ISO9660_VOLDESC_PART): Likewise.
40034 (GRUB_ISO9660_VOLDESC_END): Likewise.
40035 (grub_iso9660_primary_voldesc): New member escape.
40036 (grub_iso9660_data): New member joliet.
40037 (grub_iso9660_convert_string): New function.
40038 (grub_iso9660_mount): Detect joliet extension.
40039 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
40040 (grub_iso9660_iso9660_label): Likewise.
40042 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
40043 (grub_setup_SOURCES): Add fs/udf.c.
40044 (grub_fstest_SOURCES): Likewise.
40045 (udf_mod_SOURCES): New variable.
40046 (udf_mod_CFLAGS): Likewise.
40047 (udf_mod_LDFLAGS): Likewise.
40049 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
40050 (grub_emu_SOURCES): Likewise.
40052 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40054 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40056 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40058 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40060 * fs/udf.c: New file.
40062 2008-02-24 Robert Millan <rmh@aybabtu.com>
40064 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
40065 (normal/lexer.c_DEPENDENCIES): New variables.
40066 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40067 (normal/lexer.c_DEPENDENCIES): Likewise.
40068 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
40069 (normal/lexer.c_DEPENDENCIES): Likewise.
40070 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
40071 (normal/lexer.c_DEPENDENCIES): Likewise.
40072 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40073 (normal/lexer.c_DEPENDENCIES): Likewise.
40074 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40075 (normal/lexer.c_DEPENDENCIES): Likewise.
40077 2008-02-23 Robert Millan <rmh@aybabtu.com>
40079 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
40080 since they were intended to be in hex. This didn't break previously
40081 because of a bug in gpt_partition_map_iterate() (see below).
40083 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
40084 when checking the validity of GPT header.
40085 Remove `partno', since it always provides the same information as `i'.
40087 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
40089 * include/grub/efi/time.h: Fix a wrong comment.
40091 2008-02-19 Pavel Roskin <proski@gnu.org>
40093 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
40096 2008-02-19 Bean <bean123ch@gmail.com>
40098 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
40099 (aout_mod_SOURCES): New variable.
40100 (aout_mod_CFLAGS): Likewise.
40101 (aout_mod_LDFLAGS): Likewise.
40102 (_bsd_mod_SOURCES): New variable.
40103 (_bsd_mod_CFLAGS): Likewise.
40104 (_bsd_mod_LDFLAGS): Likewise.
40105 (bsd_mod_SOURCES): New variable.
40106 (bsd_mod_CFLAGS): Likewise.
40107 (bsd_mod_LDFLAGS): Likewise.
40109 * include/grub/aout.h: New file.
40111 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
40113 * include/grub/i386/bsd.h: New file.
40115 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
40118 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
40119 function is called, so that it's possible to change it inside the hook.
40120 (grub_elf64_load): Likewise.
40121 (grub_elf_file): Don't close the file if elf header is not found.
40122 (grub_elf_close): Close the file if grub_elf_file fails (The new
40123 grub_elf_file won't close it).
40124 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
40125 (grub_elf64_size): Likewise.
40127 * kern/i386/loader.S (grub_unix_real_boot): New function.
40129 * loader/aout.c: New file.
40131 * loader/i386/bsd.c: New file.
40133 * loader/i386/bsd_normal.c: New file.
40135 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
40137 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
40138 can test other formats.
40140 2008-02-19 Robert Millan <rmh@aybabtu.com>
40142 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
40143 (grub_gpt_partition_type_empty): Redefine with macro from
40144 `<grub/gpt_partition.h>'.
40145 (gpt_partition_map_iterate): Adjust partition type comparison.
40147 Export `entry' as partmap-specific `part.data' struct.
40148 (grub_gpt_header, grub_gpt_partentry): Move from here ...
40150 * include/grub/gpt_partition.h (grub_gpt_header)
40151 (grub_gpt_partentry): ... to here (new file).
40153 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
40155 (grub_gpt_partition_type_bios_boot): New const variable, defined
40156 with macro from `<grub/gpt_partition.h>'.
40158 (setup): Replace `first_start' with `embed_region', which keeps
40159 track of the embed region (and is partmap-agnostic).
40161 Replace find_first_partition_start() with find_usable_region(),
40162 which finds a usable region for embedding using partmap-specific
40163 knowledge (supports PC/MSDOS and GPT).
40165 Fix all assumptions that the embed region start at sector 1, using
40166 `embed_region.start' from now on. Similarly, use `embed_region.end'
40167 rather than `first_start' to calculate available size.
40169 In grub_util_info() message, replace "into after the MBR" with an
40170 indication of the specific sector our embed region starts at.
40172 2008-02-19 Robert Millan <rmh@aybabtu.com>
40174 * DISTLIST: Replace `commands/ieee1275/halt.c' and
40175 `commands/ieee1275/reboot.c' with `commands/halt.c' and
40176 `commands/reboot.c'.
40177 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
40178 (halt_mod_SOURCES): Likewise.
40179 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
40180 (halt_mod_SOURCES): Likewise.
40182 2008-02-17 Christian Franke <franke@computer.org>
40184 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
40186 2008-02-17 Robert Millan <rmh@aybabtu.com>
40188 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
40189 set `first_start' to 0 for non-PC/MSDOS partition maps.
40191 2008-02-16 Robert Millan <rmh@aybabtu.com>
40193 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
40194 do not assume partition map is PC/MSDOS before performing checks that
40195 are specific to that layout.
40197 2008-02-13 Robert Millan <rmh@aybabtu.com>
40199 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
40200 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
40201 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
40203 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
40205 * configure.ac: Only a cosmetic change on the handling of
40206 -fno-stack-protector.
40208 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
40210 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
40211 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
40213 (grub_install_SOURCES): Add halt.mod and reboot.mod.
40214 (halt_mod_SOURCES): New variable.
40215 (halt_mod_CFLAGS): Likewise.
40216 (halt_mod_LDFLAGS): Likewise.
40217 (reboot_mod_SOURCES): Likewise.
40218 (reboot_mod_CFLAGS): Likewise.
40219 (reboot_mod_LDFLAGS): Likewise.
40221 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
40222 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
40224 (halt_mod_SOURCES): Likewise.
40225 (reboot_mod_SOURCES): Likewise.
40227 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
40228 commands/i386/pc/reboot.c by commands/reboot.c.
40229 (reboot_mod_SOURCES): Likewise.
40231 * commands/i386/pc/reboot.c: merge this file ...
40233 * commands/ieee1275/reboot.c: ... and this file ...
40235 * commands/reboot.c: ... to this file.
40236 Add some precompiler directive to include the correct header for
40239 * commands/ieee1275/halt.c: move this file ...
40241 * commands/halt.c: ... to here.
40242 Add some precompiler directive to include the correct header for
40245 * include/grub/efi/efi.h (grub_reboot): New function declaration.
40246 (grub_halt): Likewise.
40248 * kern/efi/efi.c (grub_reboot): New function.
40249 (grub_halt): Likewise.
40251 2008-02-12 Robert Millan <rmh@aybabtu.com>
40253 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
40254 /dev (like it is done for /dev/mapper). This doesn't provide support
40255 for EVMS, but at least it is now easy to identify the problem when it
40258 2008-02-11 Robert Millan <rmh@aybabtu.com>
40260 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
40261 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
40262 comparing it with -1, not 0.
40264 2008-02-10 Robert Millan <rmh@aybabtu.com>
40266 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
40268 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40269 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
40271 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
40272 `disk/lvm.c' to the end of the list.
40273 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40274 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40276 2008-02-10 Robert Millan <rmh@aybabtu.com>
40278 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
40279 grub_print_error() instead. This will let user know why we're entering
40281 Based on suggestions from Sam Morris.
40283 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
40285 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
40286 on remaining N args, instead of "--" arg N times.
40288 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
40290 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
40291 (fill_with_default_glyph): Changed to use unknown_glyph for fill
40292 pattern for unknown glyphs.
40294 2008-02-09 Robert Millan <rmh@aybabtu.com>
40296 * configure.ac: Probe for `help2man'.
40297 * Makefile.in (builddir): New variable.
40298 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
40299 or otherwise add a few flags/options to it.
40300 (install-local): For every executable utility or script that is
40301 installed, invoke $(HELP2MAN) to install a manpage based on --help
40304 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
40305 that it doesn't prevent --help from working in build tree.
40307 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
40308 with `bug-grub@gnu.org'.
40309 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
40310 * util/update-grub.in (usage): New function.
40311 Implement proper argument check, with support for --help and --version
40312 (as well as existing -y).
40314 2008-02-09 Christian Franke <franke@computer.org>
40316 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
40317 avoid overwriting previous output.
40318 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
40320 2008-02-09 Robert Millan <rmh@aybabtu.com>
40322 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
40325 2008-02-09 Robert Millan <rmh@aybabtu.com>
40327 * commands/sleep.c: New file.
40328 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
40329 (sleep_mod_SOURCES): New variable.
40330 (sleep_mod_CFLAGS): Likewise.
40331 (sleep_mod_LDFLAGS): Likewise.
40333 2008-02-09 Robert Millan <rmh@aybabtu.com>
40335 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
40336 situations in which we can deduce the RAID size and the superblock
40339 2008-02-09 Robert Millan <rmh@aybabtu.com>
40341 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
40342 and return a grub_diskmemberlist_t composed of LVM physical volumes.
40343 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
40345 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
40346 and return a grub_diskmemberlist_t composed of physical array members.
40347 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
40349 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
40351 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
40352 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
40353 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
40355 * util/grub-probe.c (probe): Move partmap probing code from here ...
40356 (probe_partmap): ... to here.
40357 (probe): Use probe_partmap() once for the disk we're probing, and
40358 additionally, when such disk contains a memberlist() struct member,
40359 once for each disk that is contained in the structure returned by
40362 2008-02-09 Robert Millan <rmh@aybabtu.com>
40364 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
40365 environment variable to 'all' in order to obtain debug output from
40367 * util/i386/pc/grub-setup.c (main): Likewise.
40369 2008-02-08 Robert Millan <rmh@aybabtu.com>
40371 * disk/raid.c (grub_raid_scan_device): Check for
40372 `array->device[sb.this_disk.number]' rather than for
40373 `array->device[sb.this_disk.number]->name', since the latter is not
40374 guaranteed to be accessible.
40376 2008-02-08 Robert Millan <rmh@aybabtu.com>
40378 * disk/raid.c: Update copyright.
40379 * fs/cpio.c: Likewise.
40380 * include/grub/raid.h: Likewise.
40381 * loader/i386/pc/multiboot.c: Likewise.
40382 * util/hostfs.c: Likewise.
40384 2008-02-08 Robert Millan <rmh@aybabtu.com>
40386 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
40387 to a grub_disk_t array.
40388 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
40390 (grub_raid_scan_device): Replace `device[x].name' accesses with
40391 `device[x]->name'. Simplify initialization of `array->device[x]'.
40393 2008-02-08 Robert Millan <rmh@aybabtu.com>
40395 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
40396 grub_dprintf() calls.
40397 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
40400 2008-02-07 Christian Franke <franke@computer.org>
40402 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
40403 instead of fseek and ftell to support large files.
40404 (grub_hostfs_read): Likewise.
40406 2008-02-07 Robert Millan <rmh@aybabtu.com>
40408 Patch from Jeroen Dekkers.
40409 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
40410 failure, since successfully reading all array members might not be
40413 2008-02-06 Robert Millan <rmh@aybabtu.com>
40415 * util/grub-probe.c (probe): Simplify partmap probing (with the
40416 assumption that the first word up to the underscore equals to
40419 2008-02-06 Christian Franke <franke@computer.org>
40421 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
40422 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
40423 last block of a cpio or tar stream.
40424 Check for "TRAILER!!!" instead of any empty data
40425 block to detect last block of a cpio stream.
40426 (grub_cpio_dir): Fix constness of variable np.
40427 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
40428 cpio or tar trailer is detected. This fixes a crash
40429 on open of a non existing file.
40431 2008-02-05 Bean <bean123ch@gmail.com>
40433 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
40435 (grub_multiboot_load_elf64): Likewise.
40436 (grub_multiboot): Initialize mbi structure.
40438 * util/grub-fstest.c: Don't include unused header file script.h.
40440 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
40442 (grub_fstest_SOURCES): Likewise.
40444 2008-02-05 Robert Millan <rmh@aybabtu.com>
40446 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
40447 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
40448 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
40449 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
40451 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
40452 (translation_table): Replace hardcoded values with macros
40453 provided by `<grub/term.h>'.
40455 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
40456 (keyboard_map): Correct/add a few values, with macros provided
40457 by `<grub/term.h>'.
40458 (keyboard_map_shift): Zero values that don't differ from their
40459 `keyboard_map' equivalents.
40460 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
40461 Discard the second scan code that is always sent by Caps lock.
40462 Only use `keyboard_map_shift' when it provides a non-zero value,
40463 otherwise fallback to `keyboard_map'.
40465 2008-02-04 Bean <bean123ch@gmail.com>
40467 * Makefile.in (enable_grub_fstest): New variable.
40469 * conf/common.rmk (grub_fstest_init.lst): New rule.
40470 (grub_fstest_init.h): Likewise.
40471 (grub_fstest_init.c): Likewise.
40472 (util/grub-fstest.c_DEPENDENCIES): New variable.
40473 (grub_fstest_SOURCES): Likewise.
40475 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
40477 * util/grub-fstest.c: New file.
40479 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40481 Make grub-setup handle a separate root device.
40483 * util/i386/pc/grub-setup.c (setup): Always open the root device,
40484 so that the root device can be compared with the destination
40486 When embedding the core image, if the root and destination devices
40487 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
40489 When not embedding, set ROOT_DRIVE to 0xFF.
40491 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40493 Add support for having a grub directory in a different drive. This
40494 is still only the data handling part.
40496 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
40497 (codestart): Save %dh in GRUB_ROOT_DRIVE.
40498 (grub_root_drive): New variable.
40500 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
40501 instead of GRUB_BOOT_DRIVE to construct a device name. Set
40502 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
40505 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
40507 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
40509 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
40511 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
40512 is bogus, because PXE booting does not specify any drive
40515 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
40516 am not sure if this is really correct.
40518 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
40519 is always identical to the boot drive when booting from a CD.
40521 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
40523 (root_drive): New variable.
40524 (real_start): Unconditionally set %dh to ROOT_DRIVE.
40525 (setup_sectors): Push %dx right after popping it, because %dh will
40527 (copy_buffer): Restore %dx.
40529 2008-02-03 Robert Millan <rmh@aybabtu.com>
40531 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
40532 use `cdboot.img' for cdrom images.
40534 2008-02-03 Robert Millan <rmh@aybabtu.com>
40536 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
40537 only setup gfxterm when `font' command has succeeded.
40539 2008-02-03 Robert Millan <rmh@aybabtu.com>
40541 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
40542 (grub_rescue_cmd_multiboot_loader)
40543 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
40545 2008-02-03 Pavel Roskin <proski@gnu.org>
40547 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
40548 %edx and %esi from stack only after grub_gate_a20() is called.
40549 grub_gate_a20() clobbers %edx.
40551 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40553 * configure.ac (AC_INIT): Bumped to 1.96.
40555 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
40556 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
40557 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
40558 video/readers/png.c.
40560 2008-02-03 Bean <bean123ch@gmail.com>
40562 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
40563 (cdboot_img_SOURCES): New variable.
40564 (cdboot_img_ASFLAGS): New variable.
40565 (cdboot_img_LDFLAGS): New variable.
40567 * boot/i386/pc/cdboot.S: New file.
40569 * disk/i386/pc/biosdisk.c (cd_start): New variable.
40570 (cd_count): Likewise.
40571 (grub_biosdisk_get_drive): Add support for cd device.
40572 (grub_biosdisk_call_hook): Likewise.
40573 (grub_biosdisk_iterate): Likewise.
40574 (grub_biosdisk_open): Likewise.
40575 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
40576 (grub_biosdisk_rw): Support reading from cd device.
40577 (GRUB_MOD_INIT): Iterate cd devices.
40579 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
40580 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
40581 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
40583 * kern/i386/pc/init.c (make_install_device): Check for cd device.
40585 2008-02-02 Robert Millan <rmh@aybabtu.com>
40587 * commands/read.c: New file.
40588 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
40589 (read_mod_SOURCES): New variable.
40590 (read_mod_CFLAGS): Likewise.
40591 (read_mod_LDFLAGS): Likewise.
40593 2008-02-02 Robert Millan <rmh@aybabtu.com>
40595 * normal/main.c (grub_normal_execute): Check for `menu->size' when
40596 determining whether menu has to be displayed.
40598 2008-02-02 Marco Gerards <marco@gnu.org>
40600 * bus/pci.c: New file.
40602 * include/grub/pci.h: Likewise.
40604 * include/grub/i386/pc/pci.h: Likewise.
40606 * commands/lspci.c: Likewise.
40608 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
40610 (pci_mod_SOURCES): New variable.
40611 (pci_mod_CFLAGS): Likewise.
40612 (pci_mod_LDFLAGS): Likewise.
40613 (lspci_mod_SOURCES): Likewise.
40614 (lspci_mod_CFLAGS): Likewise.
40615 (lspci_mod_LDFLAGS): Likewise.
40617 2008-02-02 Bean <bean123ch@gmail.com>
40619 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
40620 (grub_ufs_get_file_block): Fix indirect block calculation problem.
40622 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
40623 (grub_xfs_btree_node): New structure.
40624 (grub_xfs_btree_root): New structure.
40625 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
40626 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
40627 (GRUB_XFS_EXTENT_BLOCK): Likewise.
40628 (GRUB_XFS_EXTENT_SIZE): Likewise.
40629 (grub_xfs_read_block): Support btree format type.
40630 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
40631 Use directory block as basic unit.
40633 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
40635 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
40636 __attribute__ ((__regparm__ (1))).
40638 2008-02-01 Robert Millan <rmh@aybabtu.com>
40640 Correct a mistake in previous commit.
40642 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
40644 (normal/command.c_DEPENDENCIES): New variable.
40646 2008-02-01 Robert Millan <rmh@aybabtu.com>
40648 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
40650 (normal/command.c_DEPENDENCIES): New variable.
40651 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
40652 * conf/i386-ieee1275.rmk: Likewise.
40653 * conf/i386-linuxbios.rmk: Likewise.
40654 * conf/i386-pc.rmk: Likewise.
40655 * conf/sparc64-ieee1275.rmk: Likewise.
40656 * conf/powerpc-ieee1275.rmk: Likewise.
40657 (grub_emu_SOURCES): Add `fs/fshelp.c'.
40659 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
40661 2008-02-01 Robert Millan <rmh@aybabtu.com>
40663 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
40664 call at beginning of function.
40666 2008-01-31 Pavel Roskin <proski@gnu.org>
40668 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
40669 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
40670 (grub_mkrescue_SOURCES): Likewise.
40671 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
40673 2008-01-30 Robert Millan <rmh@aybabtu.com>
40675 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
40676 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
40677 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
40678 (grub_probe_SOURCES): ... to here.
40680 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
40681 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
40682 * conf/i386-ieee1275.rmk: Likewise.
40683 * conf/i386-linuxbios.rmk: Likewise.
40684 * conf/powerpc-ieee1275.rmk: Likewise.
40686 2008-01-30 Tristan Gingold <gingold@free.fr>
40688 * kern/rescue.c: Silently accept empty lines.
40690 2008-01-29 Bean <bean123ch@gmail.com>
40692 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
40693 (real_code_2): Code cleanup and change comment style.
40694 (move_memory): Avoid using 32-bit address mode.
40696 2008-01-29 Bean <bean123ch@gmail.com>
40698 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
40699 (png_mod_SOURCES): New variable.
40700 (png_mod_CFLAGS): Likewise.
40701 (png_mod_LDFLAGS): Likewise.
40703 * video/readers/png.c: New file.
40705 2008-01-28 Robert Millan <rmh@aybabtu.com>
40707 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
40708 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
40709 `ifndef GRUB_MOD_GAP' hack.
40710 * util/elf/grub-mkimage.c (add_segments): Likewise.
40712 2008-01-27 Robert Millan <rmh@aybabtu.com>
40714 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
40715 `GRUB_MOD_GAP' for platforms in which it's not defined.
40716 * util/elf/grub-mkimage.c (add_segments): Likewise.
40718 2008-01-27 Robert Millan <rmh@aybabtu.com>
40720 Get grub-emu to build again (including parallel builds).
40722 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
40724 (util/grub-emu.c_DEPENDENCIES): ... this, ...
40725 (normal/execute.c_DEPENDENCIES): ... this, ...
40726 (grub-emu_DEPENDENCIES): ... and this.
40728 * conf/i386-efi.rmk: Likewise.
40729 * conf/i386-linuxbios.rmk: Likewise.
40730 * conf/i386-ieee1275.rmk: Likewise.
40731 * conf/powerpc-ieee1275.rmk: Likewise.
40732 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
40734 2008-01-27 Robert Millan <rmh@aybabtu.com>
40736 * NEWS: Add a few items.
40738 2008-01-27 Robert Millan <rmh@aybabtu.com>
40740 Fix parallel builds with grub-emu. Based on earlier commit for
40741 grub-probe and grub-setup.
40743 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40744 (util/grub-emu.c_DEPENDENCIES): ... this.
40745 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40746 (util/grub-emu.c_DEPENDENCIES): ... this.
40747 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40748 (util/grub-emu.c_DEPENDENCIES): ... this.
40749 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40750 (util/grub-emu.c_DEPENDENCIES): ... this.
40751 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40752 (util/grub-emu.c_DEPENDENCIES): ... this.
40754 2008-01-27 Pavel Roskin <proski@gnu.org>
40756 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
40757 to create a gap between _end and the modules added to the image
40758 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
40759 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
40760 * util/elf/grub-mkimage.c (add_segments): Likewise.
40762 2008-01-26 Pavel Roskin <proski@gnu.org>
40764 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
40765 just return an error.
40767 2008-01-26 Bean <bean123ch@gmail.com>
40769 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
40770 (grub_reiserfs_get_item): Save offset of the next item.
40771 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
40773 2008-01-25 Robert Millan <rmh@aybabtu.com>
40775 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
40776 make all filesystem sources appear together (possibly fixing omissions
40778 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40779 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40780 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40781 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40783 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
40785 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
40786 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40787 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
40788 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40790 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
40791 (probe): Add a sanity check to make sure of our ability to read
40792 requested files when probing for filesystem type.
40794 * genmk.rb: Update copyright year (2007).
40796 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
40797 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
40798 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
40799 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
40800 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
40801 : Remove function prototypes.
40803 2008-01-25 Robert Millan <rmh@aybabtu.com>
40805 Revert my previous commits (based on wrong assumption of how grub_errno
40808 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
40809 * kern/file.c (grub_file_open): Likewise.
40811 2008-01-24 Pavel Roskin <proski@gnu.org>
40813 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
40814 that hang if GRUB tries to setup colors.
40815 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
40816 colors for firmwares that don't support it.
40817 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
40818 Recognize Open Hack'Ware, set flags to work around its
40821 2008-01-24 Robert Millan <rmh@aybabtu.com>
40823 * kern/file.c (grub_file_open): Do not account previous failures of
40824 unrelated functions when grub_errno is checked for.
40825 Reported by Oleg Strikov.
40827 2008-01-24 Bean <bean123ch@gmail.com>
40829 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
40830 (grub_ufs_sblock): New member volume name.
40831 (grub_ufs_find_file): Fix string copy bug.
40832 (grub_ufs_label): Implement this function properly.
40834 * fs/hfs.c (grub_hfs_cnid_type): New enum.
40835 (grub_hfs_iterate_records): Use the correct file number for extents
40836 and catalog file. Fix problem in next index calculation.
40837 (grub_hfs_find_node): Replace recursive function call with loop.
40838 (grub_hfs_iterate_dir): Replace recursive function call with loop.
40840 2008-01-23 Robert Millan <rmh@aybabtu.com>
40842 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
40843 `<grub/symbol.h>' and `<grub/multiboot.h>'.
40844 (grub_multiboot2_real_boot): New function prototype.
40846 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
40847 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
40849 * kern/i386/ieee1275/init.c (grub_os_area_addr)
40850 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
40852 2008-01-23 Robert Millan <rmh@aybabtu.com>
40854 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
40855 #ifdef'ed out grub_printf().
40857 2008-01-23 Robert Millan <rmh@aybabtu.com>
40859 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
40860 grub_dprintf calls, since they make "debug=all" mode unusable.
40861 (grub_console_checkkey): Likewise.
40863 2008-01-23 Robert Millan <rmh@aybabtu.com>
40865 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40866 `term/i386/pc/at_keyboard.c'.
40867 (pkglib_MODULES): Add `serial.mod'.
40868 (serial_mod_SOURCES): New variable.
40869 (serial_mod_CFLAGS): Likewise.
40870 (serial_mod_LDFLAGS): Likewise.
40872 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
40873 `<grub/powerpc/ieee1275/console.h>'.
40874 (grub_keyboard_controller_init): New function prototype.
40875 (grub_console_checkkey): Likewise.
40876 (grub_console_getkey): Likewise.
40878 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
40881 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
40882 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
40884 2008-01-23 Robert Millan <rmh@aybabtu.com>
40886 * kern/i386/pc/init.c (make_install_device): When memdisk image is
40887 present, "(memdisk)/boot/grub" becomes the default prefix.
40889 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
40890 a memdisk tarball with all the modules. Add --overlay=DIR option that
40891 allows users to overlay additional files into the image.
40893 2008-01-23 Robert Millan <rmh@aybabtu.com>
40895 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
40896 and `machine/memory.h'.
40897 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
40898 (_multiboot_mod_SOURCES): New variable.
40899 (_multiboot_mod_CFLAGS): Likewise.
40900 (_multiboot_mod_LDFLAGS): Likewise.
40901 (multiboot_mod_SOURCES): Likewise.
40902 (multiboot_mod_CFLAGS): Likewise.
40903 (multiboot_mod_LDFLAGS): Likewise.
40905 * include/grub/i386/ieee1275/loader.h: New file.
40907 * include/grub/i386/ieee1275/machine.h: Likewise.
40909 * include/grub/i386/ieee1275/memory.h: Likewise.
40911 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
40912 variable declaration.
40913 (grub_os_area_size): Likewise.
40915 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
40916 (grub_lower_mem, grub_upper_mem): New variables.
40917 (grub_stop_floppy): New function (just to make
40918 grub_multiboot2_real_boot() happy).
40920 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
40921 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
40922 (grub_stop): New function.
40923 Include `"../realmode.S"' and `"../loader.S"'.
40925 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
40926 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
40928 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
40929 rely on grub_multiboot2_real_boot() for final boot.
40931 2008-01-22 Robert Millan <rmh@aybabtu.com>
40933 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
40934 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
40935 device that doesn't look like an SD card.
40936 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40937 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
40938 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
40939 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
40942 2008-01-22 Robert Millan <rmh@aybabtu.com>
40944 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
40945 avoid claiming over our own code.
40947 2008-01-22 Bean <bean123ch@gmail.com>
40949 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
40950 (jpeg_mod_SOURCES): New variable.
40951 (jpeg_mod_CFLAGS): Likewise.
40952 (jpeg_mod_LDFLAGS): Likewise.
40954 * video/readers/jpeg.c : New file.
40956 2008-01-22 Bean <bean123ch@gmail.com>
40958 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
40959 there are no more items.
40961 2008-01-21 Robert Millan <rmh@aybabtu.com>
40963 * kern/mm.c (grub_mm_init_region): Improve debug message.
40965 2008-01-21 Robert Millan <rmh@aybabtu.com>
40967 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
40968 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
40970 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
40972 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
40973 Indicates start of upper memory.
40974 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
40975 (generate_image): Abort when image size is big enough to corrupt
40978 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
40979 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
40980 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
40981 instead of hardcoding 0xA0000.
40982 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
40983 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
40984 instead of hardcoding 0xA0000.
40986 2008-01-21 Robert Millan <rmh@aybabtu.com>
40988 * disk/memdisk.c (memdisk_size): New variable.
40989 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
40991 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
40992 image to dynamic memory.
40993 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
40994 `memdisk_size'. Free memdisk block.
40996 2008-01-21 Robert Millan <rmh@aybabtu.com>
40998 Fix detection of very small filesystems (like tar).
41000 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
41001 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
41002 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
41003 a problem with this disk).
41005 2008-01-21 Robert Millan <rmh@aybabtu.com>
41007 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
41008 on grub_biosdisk_rw_standard() error.
41010 2008-01-21 Robert Millan <rmh@aybabtu.com>
41012 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
41014 * kern/elf.c: Likewise.
41015 * kern/ieee1275/ieee1275.c: Likewise.
41016 * kern/powerpc/ieee1275/openfw.c: Likewise.
41017 * term/ieee1275/ofconsole.c: Likewise.
41019 2008-01-21 Robert Millan <rmh@aybabtu.com>
41021 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
41023 * include/grub/kernel.h (grub_arch_memdisk_addr)
41024 (grub_arch_memdisk_size): Moved from here ...
41026 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
41027 (grub_arch_memdisk_size): ... to here.
41029 2008-01-21 Robert Millan <rmh@aybabtu.com>
41031 Mostly based on bugfix from Bean.
41033 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
41034 attribute with hook() parameter.
41035 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
41037 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
41038 attribute with hook() parameter.
41039 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
41042 2008-01-21 Robert Millan <rmh@aybabtu.com>
41044 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
41045 (pkglib_MODULES): Add `memdisk.mod'.
41046 (memdisk_mod_SOURCES): New variable.
41047 (memdisk_mod_CFLAGS): Likewise.
41048 (memdisk_mod_LDFLAGS): Likewise.
41050 * disk/memdisk.c: New file.
41052 * include/grub/disk.h (grub_disk_dev_id): Add
41053 `GRUB_DISK_DEVICE_MEMDISK_ID'.
41055 * include/grub/i386/pc/kernel.h
41056 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
41057 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
41058 (grub_kernel_image_size): New variable declaration.
41059 (grub_total_module_size): Likewise.
41060 (grub_memdisk_image_size): Likewise.
41062 * include/grub/i386/pc/memory.h
41063 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
41065 * include/grub/kernel.h: Include `<grub/symbol.h>'.
41066 (grub_arch_memdisk_addr): New variable declaration.
41067 (grub_arch_memdisk_size): Likewise.
41069 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
41070 (grub_arch_memdisk_size): Likewise.
41072 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
41073 (codestart): Replace hardcoded `0x100000' with
41074 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
41076 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
41077 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
41078 not NULL, append the contents of the file it refers to, at the end of
41079 the compressed kernel image. Initialize `grub_memdisk_image_size'
41080 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
41081 (options): Add "memdisk"|'m' option.
41082 (main): Parse --memdisk|-m option, and pass user-provided path as
41083 parameter to generate_image().
41085 2008-01-20 Robert Millan <rmh@aybabtu.com>
41087 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
41088 grub_dprintf() calls from here ...
41089 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
41091 2008-01-20 Robert Millan <rmh@aybabtu.com>
41093 Fix detection of "real mode" when /options/real-mode? doesn't exist.
41095 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
41097 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
41098 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
41099 `GRUB_IEEE1275_FLAG_REAL_MODE'.
41100 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
41102 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
41103 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
41105 2008-01-19 Robert Millan <rmh@aybabtu.com>
41107 Get rid of confusing function (superseded by
41108 `grub_ieee1275_get_integer_property')
41109 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
41111 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
41113 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
41114 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
41115 in native endianness from grub_ieee1275_get_integer_property().
41117 2008-01-19 Robert Millan <rmh@aybabtu.com>
41119 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
41120 command after "shut-down", since implementations differ on which
41121 the command for halt is.
41123 2008-01-19 Robert Millan <rmh@aybabtu.com>
41125 * include/grub/i386/linuxbios/console.h: Add header protection.
41126 (grub_keyboard_controller_init): New function prototype.
41127 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
41128 (KEYBOARD_COMMAND_READ): Likewise.
41129 (KEYBOARD_COMMAND_WRITE): Likewise.
41130 (KEYBOARD_SCANCODE_SET1): Likewise.
41131 (grub_keyboard_controller_write): New function.
41132 (grub_keyboard_controller_read): Likewise.
41133 (grub_keyboard_controller_init): Likewise.
41135 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
41136 (grub_console_init): On coreboot/LinuxBIOS, call
41137 grub_keyboard_controller_init().
41139 2008-01-19 Robert Millan <rmh@aybabtu.com>
41141 PowerPC changes provided by Pavel Roskin.
41143 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
41144 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
41145 don't rely on cmain() doing it.
41146 * kern/i386/ieee1275/startup.S (_start): Store %eax in
41147 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
41149 2008-01-16 Robert Millan <rmh@aybabtu.com>
41151 * include/grub/i386/linuxbios/memory.h
41152 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
41153 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
41154 receive `table_header' as argument. Instead, probe for it in the
41155 known memory ranges where it can be present.
41156 (grub_available_iterate): Do not pass a fixed `table_header' address
41157 to grub_linuxbios_table_iterate().
41159 2008-01-15 Robert Millan <rmh@aybabtu.com>
41161 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
41162 * conf/i386-ieee1275.rmk: New file.
41163 * include/grub/i386/ieee1275/console.h: Likewise.
41164 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
41165 * include/grub/i386/ieee1275/kernel.h: Likewise.
41166 * include/grub/i386/ieee1275/time.h: Likewise.
41167 * kern/i386/ieee1275/init.c: Likewise.
41168 * kern/i386/ieee1275/startup.S: Likewise.
41170 2008-01-15 Robert Millan <rmh@aybabtu.com>
41172 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
41173 when pointers are 32-bit (but still do set it to one when they are
41176 2008-01-15 Robert Millan <rmh@aybabtu.com>
41178 * include/grub/ieee1275/ieee1275.h
41179 (grub_ieee1275_get_integer_property): New function prototype.
41181 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
41182 (grub_ieee1275_get_integer_property): New function. Wraps around
41183 grub_ieee1275_get_property() to handle endianness.
41185 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
41186 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
41188 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
41189 (grub_map): Likewise.
41190 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
41192 2008-01-15 Bean <bean123ch@gmail.com>
41194 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
41195 (grub_script_execute_cmdline): Reset grub_errno.
41197 * normal/main.c (read_config_file): Reset grub_errno.
41199 * normal/parse.y (script_init): New.
41200 (script): Move function and menuentry here.
41202 (command): Add delimiter at the end of command.
41203 (commands): Adjust to match the new command.
41204 (commandblock): Remove grub_script_lexer_record_start.
41205 (menuentry): Add grub_script_lexer_record_start, use the new commands.
41206 (if): Use the new commands.
41208 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
41210 2008-01-15 Robert Millan <rmh@aybabtu.com>
41212 * normal/menu.c (run_menu): Move timeout message from here ...
41213 (print_timeout): ... to here.
41214 (run_menu): Use print_timeout() once during initial draw to print
41215 the whole message, and again in every clock tick to update only
41216 the number of seconds.
41218 2008-01-15 Robert Millan <rmh@aybabtu.com>
41220 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
41221 actual size of `available' from grub_ieee1275_get_property(), and
41222 restrict parsing to that bound.
41224 2008-01-15 Christian Franke <franke@computer.org>
41226 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
41227 (argp_program_version): Remove variable.
41228 (argp_program_bug_address): Likewise.
41229 (options): Convert from struct argp_option to struct option.
41230 (struct arguments): Remove.
41231 (parse_opt): Remove.
41232 (usage): New function.
41233 (main): Replace struct args members by simple variables.
41234 Replace argp_parse() by getopt_long().
41235 Add switch to evaluate options.
41236 Add missing "(...)" around root_dev in prefix string.
41238 2008-01-14 Robert Millan <rmh@aybabtu.com>
41240 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
41241 for grub_ieee1275_exit(), in order to improve portability.
41243 2008-01-14 Robert Millan <rmh@aybabtu.com>
41245 * util/grub.d/10_linux.in (prefix): Define.
41246 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
41248 2008-01-13 Pavel Roskin <proski@gnu.org>
41250 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
41251 grub_errno if no errors have been detected.
41253 2008-01-12 Robert Millan <rmh@aybabtu.com>
41255 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
41256 (grub_util_get_dev_abstraction): New function prototype.
41258 * util/getroot.c: Include `<grub/util/getroot.h>'
41259 (grub_util_get_grub_dev): Move detection of abstraction type to ...
41260 (grub_util_get_dev_abstraction): ... here (new function).
41262 * util/grub-probe.c: Convert PRINT_* to an enum. Add
41263 `PRINT_ABSTRACTION'.
41264 (probe): Probe for abstraction type when requested.
41265 (main): Understand `--target=abstraction'.
41267 * util/i386/efi/grub-install.in: Add abstraction module to core
41268 image when it is found to be necessary.
41269 * util/i386/pc/grub-install.in: Likewise.
41270 * util/powerpc/ieee1275/grub-install.in: Likewise.
41272 * util/update-grub_lib.in (font_path): Return system path without
41273 converting to GRUB path.
41274 * util/update-grub.in: Convert system path returned by font_path()
41275 to a GRUB path. Use `grub-probe -t abstraction' to determine what
41276 abstraction module is needed for loading fonts (if any). Export
41277 that as `GRUB_PRELOAD_MODULES'.
41278 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
41281 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
41283 Remove some unused code from reiserfs.
41285 * fs/reiserfs.c (struct grub_reiserfs_key)
41286 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
41287 (struct grub_reiserfs_node_body): Removed.
41288 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
41290 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
41292 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
41294 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
41296 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
41298 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
41300 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
41301 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
41302 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
41304 2008-01-10 Robert Millan <rmh@aybabtu.com>
41306 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
41307 Determines if a file is garbage left by packaging systems, etc.
41308 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
41309 for processing /etc/grub.d scripts.
41310 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
41311 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
41312 as a condition for processing Linux images.
41314 2008-01-10 Pavel Roskin <proski@gnu.org>
41316 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
41317 to compile reiserfs.c on PowerPC.
41319 2008-01-10 Robert Millan <rmh@aybabtu.com>
41321 * kern/device.c (grub_device_iterate): Do not abort device iteration
41322 when one of the devices cannot be opened.
41323 * kern/disk.c (grub_disk_open): Do not account previous failures of
41324 unrelated functions when grub_errno is checked for.
41326 2008-01-08 Robert Millan <rmh@aybabtu.com>
41328 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
41329 `! grub_linux_is_bzimage', change order of address comparison to make
41330 it more intuitive, and improve "too big zImage" error message.
41332 2008-01-08 Robert Millan <rmh@aybabtu.com>
41334 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
41335 `$(update-grub_DATA)'.
41336 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
41339 2008-01-07 Robert Millan <rmh@aybabtu.com>
41341 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
41342 which instruction is modified by grub-setup during installation
41343 (since it wasn't obvious by only looking at this file).
41345 2008-01-07 Robert Millan <rmh@aybabtu.com>
41347 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
41348 listing actual TODO items.
41350 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
41352 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
41354 (grub_reiserfs_get_key_offset): Likewise.
41355 (grub_reiserfs_set_key_offset): Likewise.
41356 (grub_reiserfs_set_key_type): Likewise.
41357 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
41359 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
41360 better to remove the bitfield version completely.
41362 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
41364 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
41365 allocated from the heap, due to the fshelp implementation.
41366 (grub_reiserfs_dir): Free NODE, due to the same reason.
41368 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
41370 Mostly from Vincent Pelletier:
41372 * fs/reiserfs.c: New file.
41374 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
41375 (reiserfs_mod_SOURCES): New variable.
41376 (reiserfs_mod_CFLAGS): Likewise.
41377 (reiserfs_mod_LDFLAGS): Likewise.
41379 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
41380 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
41381 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
41384 2008-01-06 Robert Millan <rmh@aybabtu.com>
41386 * normal/color.c: Remove `<grub/env.h>'.
41388 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
41390 * include/grub/normal.h: Include <grub/env.h>.
41392 2008-01-05 Robert Millan <rmh@aybabtu.com>
41394 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
41395 usage example with `(hd0,1)'.
41396 Reported by Samuel Thibault.
41398 2008-01-05 Robert Millan <rmh@aybabtu.com>
41400 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
41401 (grub_linux_boot_zimage): Rename to ...
41402 (grub_linux_boot): ... this.
41403 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
41404 (grub_linux_boot_zimage): Conditionalize zImage copy.
41406 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
41407 (grub_linux_boot_bzimage): Remove prototype.
41408 (grub_linux_boot_zimage): Rename to ...
41409 (grub_linux_boot): ... this.
41411 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
41412 (grub_linux_boot): Remove function.
41414 2008-01-05 Robert Millan <rmh@aybabtu.com>
41416 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
41417 (grub_env_write_color_highlight): Likewise.
41418 (grub_wait_after_message): Likewise.
41420 * normal/color.c: New file.
41422 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41423 (normal_mod_DEPENDENCIES): Likewise.
41425 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41426 (normal_mod_DEPENDENCIES): Likewise.
41428 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41429 (normal_mod_DEPENDENCIES): Likewise.
41431 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41432 (normal_mod_DEPENDENCIES): Likewise.
41434 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
41435 for waiting after a message is printed.
41436 * normal/main.c (read_config_file): Likewise.
41437 (grub_normal_init): Register grub_env_write_color_normal() and
41438 grub_env_write_color_highlight() hooks. Mark `color_normal' and
41439 `color_highlight' variables as global.
41441 * normal/menu.c (grub_wait_after_message): New function.
41442 (grub_color_menu_normal): New variable. Replaces ...
41443 (GRUB_COLOR_MENU_NORMAL): ... this macro.
41444 (grub_color_menu_highlight): New variable. Replaces ...
41445 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
41446 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
41447 `GRUB_TERM_COLOR_STANDARD'.
41448 (print_message): Use `grub_setcolorstate' to reload colors. Rename
41449 `normal_code' and `highlight_code' to `old_color_normal' and
41450 `old_color_highlight', respectively.
41451 (grub_menu_init_page): Update colors when drawing the menu, based on
41452 `menu_color_normal' and `menu_color_highlight' variables.
41453 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
41454 a message is printed.
41456 2008-01-05 Robert Millan <rmh@aybabtu.com>
41458 * kern/env.c (grub_env_context_open): Propagate hooks for global
41459 variables to new context.
41461 * kern/main.c (grub_set_root_dev): Export `root' variable.
41463 2008-01-05 Robert Millan <rmh@aybabtu.com>
41465 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
41466 discs unconditionally, since udev and others have options to provide
41469 2008-01-05 Robert Millan <rmh@aybabtu.com>
41471 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
41473 2008-01-04 Christian Franke <franke@computer.org>
41475 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
41478 2008-01-03 Pavel Roskin <proski@gnu.org>
41480 * kern/i386/linuxbios/init.c: Put "void" to all function
41481 declarations with no arguments.
41482 * kern/powerpc/ieee1275/init.c: Likewise.
41483 * term/i386/pc/at_keyboard.c: Likewise.
41484 * term/i386/pc/vga_text.c: Likewise.
41485 * util/grub-mkdevicemap.c: Likewise.
41487 2008-01-02 Robert Millan <rmh@aybabtu.com>
41489 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
41490 message when loaded image is out of bounds.
41491 (grub_multiboot_load_elf64): Likewise.
41493 2008-01-02 Pavel Roskin <proski@gnu.org>
41495 * util/grub.d/10_linux.in: Try version without ".old" when
41496 looking for initrd. It's better to use initrd from the newer
41497 kernel of the same version than no initrd at all.
41499 2008-01-01 Robert Millan <rmh@aybabtu.com>
41501 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
41503 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
41505 * include/grub/video.h: Added grub_video_unmap_color and
41506 grub_video_get_active_render_target.
41507 (grub_video_adapter): Added unmap_color and get_active_render_target.
41509 * video/video.c: Added grub_video_unmap_color and
41510 grub_video_get_active_render_target.
41511 (grub_video_get_info): Changed method to accept NULL pointer as an
41512 argument to allow detection of active video adapter.
41514 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
41515 grub_video_vbe_unmap_color_int.
41516 Added grub_video_vbe_unmap_color and
41517 grub_video_vbe_get_active_render_target.
41518 (grub_video_vbe_adapter): Added unmap_color and
41519 get_active_render_target.
41521 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
41522 with grub_video_vbe_unmap_color_int.
41524 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
41525 (DEFAULT_NORMAL_COLOR): Likewise.
41526 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
41527 (DEFAULT_FG_COLOR): Removed.
41528 (DEFAULT_BG_COLOR): Likewise.
41529 (DEFAULT_CURSOR_COLOR): Changed value.
41530 (grub_virtual_screen): Added standard_color_setting,
41531 normal_color_setting, highlight_color_setting and term_color.
41532 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
41533 (bitmap_width): Added.
41534 (bitmap_height): Likewise.
41535 (bitmap): Likewise.
41536 (set_term_color): Likewise.
41537 (grub_virtual_screen_setup): Changed to use new terminal coloring
41539 (grub_gfxterm_init): Added init for bitmap.
41540 (grub_gfxterm_fini): Added destroy for bitmap.
41541 (redraw_screen_rect): Updated to use background bitmap and new
41543 (scroll_up): Added optimization for case when there is no bitmap.
41544 (grub_gfxterm_cls): Fixed to use correct background color.
41545 (grub_virtual_screen_setcolorstate): Changed to use new terminal
41547 (grub_virtual_screen_setcolor): Likewise.
41548 (grub_virtual_screen_getcolor): Added.
41549 (grub_gfxterm_background_image_cmd): Likewise.
41550 (grub_video_term): Added setcolor and getcolor.
41551 (MOD_INIT): Added registration of background_image command.
41552 (MOD_TERM): Added unregistration for background_image command.
41554 2007-12-30 Pavel Roskin <proski@gnu.org>
41556 * loader/multiboot_loader.c: Fix multiboot command
41557 unregistration. Fix all typos in the word "multiboot".
41559 2007-12-29 Pavel Roskin <proski@gnu.org>
41561 * util/grub.d/10_linux.in: Refactor search for initrd. Add
41562 support for initrd names used in Fedora.
41564 2007-12-26 Bean <bean123ch@gmail.com>
41566 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
41567 (cpio_mod_SOURCES): New variable.
41568 (cpio_mod_CFLAGS): Likewise.
41569 (cpio_mod_LDFLAGS): Likewise.
41571 * fs/cpio.c: New file.
41573 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
41575 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41577 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41581 2007-12-25 Robert Millan <rmh@aybabtu.com>
41583 * include/grub/term.h (struct grub_term): Add `getcolor' function.
41584 (grub_getcolor): New function.
41586 * kern/term.c (grub_getcolor): New function.
41587 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
41588 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
41589 (print_entry): Set normal and highlight colors to
41590 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
41591 respectively, before printing and restore them to old
41593 (grub_menu_init_page): Likewise. Fill an additional colored space
41594 that would otherwise be left blank.
41596 * term/efi/console.c (grub_console_getcolor): New function.
41597 (struct grub_console_term.getcolor): New variable.
41598 * term/i386/pc/console.c (grub_console_getcolor): New function.
41599 (struct grub_console_term.getcolor): New variable.
41600 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
41601 (struct grub_console_term.getcolor): New variable.
41603 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
41604 (struct grub_console_term.setcolor): Remove variable.
41605 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
41606 (struct grub_console_term.setcolor): Remove variable.
41607 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
41608 (struct grub_console_term.setcolor): Remove variable.
41609 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
41610 (struct grub_console_term.setcolor): Remove variable.
41612 2007-12-25 Robert Millan <rmh@aybabtu.com>
41614 * configure.ac: Search for possible unifont.hex locations, and
41615 define UNIFONT_HEX if found.
41617 * Makefile.in (UNIFONT_HEX): Define variable.
41618 (DATA): Rename to ...
41619 (PKGLIB): ... this. Update all users.
41620 (PKGDATA): New variable.
41621 (pkgdata_IMAGES): Rename to ...
41622 (pkglib_IMAGES): ... this. Update all users.
41623 (pkgdata_MODULES): Rename to ...
41624 (pkglib_MODULES): ... this. Update all users.
41625 (pkgdata_PROGRAMS): Rename to ...
41626 (pkglib_PROGRAMS): ... this. Update all users.
41627 (pkgdata_DATA): Rename to ...
41628 (pkglib_DATA): ... this. Update all users.
41629 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
41630 (unicode.pff, ascii.pff): New rules.
41631 (all-local): Add `$(PKGDATA)' dependency.
41632 (install-local): Process `$(PKGDATA)'.
41634 * util/update-grub_lib.in (font_path): Search for *.pff files in
41635 a few more locations, including `${pkgdata}'.
41637 2007-12-23 Robert Millan <rmh@aybabtu.com>
41639 Patch from Bean <bean123ch@gmail.com>:
41640 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
41643 2007-12-21 Bean <bean123ch@gmail.com>
41645 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
41646 (ntfscomp_mod_SOURCES): New variable.
41647 (ntfscomp_mod_CFLAGS): Likewise.
41648 (ntfscomp_mod_LDFLAGS): Likewise.
41650 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
41651 (grub_probe_SOURCES): Likewise.
41652 (grub_emu_SOURCES): Likewise.
41654 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41655 (grub_emu_SOURCES): Likewise.
41657 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41658 (grub_emu_SOURCES): Likewise.
41660 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41661 (grub_emu_SOURCES): Likewise.
41663 * fs/ntfs.c (grub_ntfscomp_func): New variable.
41664 (read_run_list): Renamed to grub_ntfs_read_run_list.
41665 (decomp_nextvcn): Moved to ntfscomp.c.
41666 (decomp_getch): Likewise.
41667 (decomp_get16): Likewise.
41668 (decomp_block): Likewise.
41669 (read_block): Likewise.
41670 (read_data): Partially moved to ntfscomp.c.
41671 (fixup): Change unsigned to grub_uint16_t.
41672 (read_mft): Change unsigned long to grub_uint32_t.
41673 (read_attr): Likewise.
41674 (read_data): Likewise.
41675 (read_run_data): Likewise.
41676 (read_run_list): Likewise.
41677 (read_mft): Likewise.
41679 * fs/ntfscomp.c: New file.
41681 * include/grub/ntfs.h: New file.
41683 2007-12-16 Robert Millan <rmh@aybabtu.com>
41685 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
41686 IDE disk check, since Linux is known to support 20 IDE disks.
41687 Reported by Colin Watson.
41689 2007-12-15 Bean <bean123ch@gmail.com>
41691 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
41692 (lnxboot_img_SOURCES): New variable.
41693 (lnxboot_img_ASFLAGS): Likewise.
41694 (lnxboot_img_LDFLAGS): Likewise.
41696 * boot/i386/pc/lnxboot.S: New file.
41698 2007-11-24 Pavel Roskin <proski@gnu.org>
41700 * configure.ac: Test if '--build-id=none' is supported by the
41701 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
41702 objcopy to generate incorrect binary files (binutils
41703 2.17.50.0.18-1 as shipped by Fedora 8).
41704 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
41705 linking, so that build ID doesn't break the test.
41707 2007-11-24 Pavel Roskin <proski@gnu.org>
41709 * include/grub/i386/time.h: use "void" in the argument list
41710 of grub_cpu_idle().
41711 * include/grub/powerpc/time.h: Likewise.
41712 * include/grub/sparc64/time.h: Likewise.
41714 2007-11-18 Christian Franke <franke@computer.org>
41716 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
41717 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
41718 This fixes the problem that function keys did not work in grub-emu.
41720 2007-11-18 Christian Franke <franke@computer.org>
41722 * disk/host.c (grub_host_open): Remove attribute unused from
41723 name parameter. Add check for "host". This fixes the problem
41724 that grub-emu does not find partitions.
41726 2007-11-18 Christian Franke <franke@computer.org>
41728 * util/hostfs.c (is_dir): New function.
41729 (grub_hostfs_dir): Handle missing dirent.d_type case.
41730 (grub_hostfs_read): Add missing fseek().
41731 (grub_hostfs_label): Clear label pointer. This fixes a crash
41732 of grub-emu on "ls (host)".
41734 2007-11-18 Christian Franke <franke@computer.org>
41736 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
41737 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
41738 to 64 bit boundary by default.
41740 2007-11-18 Bean <bean123ch@gmail.com>
41742 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
41743 (hexdump_mod_SOURCES): New variable.
41744 (hexdump_mod_CFLAGS): Likewise.
41745 (hexdump_mod_LDFLAGS): Likewise.
41747 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41749 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41751 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41753 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41755 * include/grub/hexdump.h: New file.
41757 * commands/hexdump.c: New file.
41759 2007-11-10 Robert Millan <rmh@aybabtu.com>
41761 * commands/i386/pc/play.c (beep_off): Switch order of arguments
41762 in grub_outb() calls.
41763 (beep_on): Likewise.
41765 2007-11-10 Christian Franke <franke@computer.org>
41767 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
41768 (grub_menu_run): Likewise.
41770 2007-11-10 Robert Millan <rmh@aybabtu.com>
41772 * include/grub/i386/efi/machine.h: New file.
41773 * include/grub/i386/linuxbios/machine.h: Likewise.
41774 * include/grub/i386/pc/machine.h: Likewise.
41775 * include/grub/powerpc/ieee1275/machine.h: Likewise.
41776 * include/grub/sparc64/ieee1275/machine.h: Likewise.
41778 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
41779 (serial_hw_io_addr): New variable.
41780 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
41781 instead of `(unsigned short *) 0x400'.
41783 2007-11-10 Bean <bean123ch@gmail.com>
41785 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
41787 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41789 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
41790 (vga_mod_SOURCES): Added.
41791 (vga_mod_CFLAGS): Likewise.
41792 (vga_mod_LDFLAGS): Likewise.
41794 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
41796 (set_map_mask): Likewise.
41797 (set_read_map): Likewise.
41798 (set_read_address): Likewise.
41799 (vga_font): Removed variable.
41800 (get_vga_glyph): Removed function.
41801 (invalidate_char): Likewise.
41802 (write_char): Changed to use grub_font_get_glyph() for font
41804 (grub_vga_putchar): Likewise.
41805 (grub_vga_getcharwidth): Likewise.
41807 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41809 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
41811 (pxeboot_img_LDFLAGS): Likewise.
41812 (diskboot_img_LDFLAGS): Likewise.
41813 (kernel_img_LDFLAGS): Likewise.
41815 2007-11-06 Robert Millan <rmh@aybabtu.com>
41817 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
41818 in grub_outb() calls.
41819 (serial_hw_init): Likewise.
41821 2007-11-05 Robert Millan <rmh@aybabtu.com>
41823 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
41824 spaces. Skip non-regular files.
41826 2007-11-05 Robert Millan <rmh@aybabtu.com>
41828 * kern/disk.c (grub_disk_firmware_fini)
41829 (grub_disk_firmware_is_tainted): New variables.
41831 * include/grub/disk.h (grub_disk_firmware_fini)
41832 (grub_disk_firmware_is_tainted): Likewise.
41834 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
41835 (grub_disk_biosdisk_fini): ... to here.
41836 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
41837 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
41838 is set. Register grub_disk_biosdisk_fini() in
41839 `grub_disk_firmware_fini'.
41841 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
41842 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
41843 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
41844 to finish existing firmware disk interface.
41846 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
41847 (ata_mod_SOURCES): New variable.
41848 (ata_mod_CFLAGS): Likewise.
41849 (ata_mod_LDFLAGS): Likewise.
41851 2007-11-05 Robert Millan <rmh@aybabtu.com>
41853 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
41854 (grub_ata_wait): Reimplement using grub_millisleep().
41856 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
41857 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
41859 2007-11-03 Marco Gerards <marco@gnu.org>
41861 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
41862 (CRTC_ADDR_PORT): New macro.
41863 (CRTC_DATA_PORT): Likewise.
41864 (CRTC_CURSOR): Likewise.
41865 (CRTC_CURSOR_ADDR_HIGH): Likewise.
41866 (CRTC_CURSOR_ADDR_LOW): Likewise.
41867 (update_cursor): New function.
41868 (grub_console_real_putchar): Call `update_cursor'.
41869 (grub_console_gotoxy): Likewise.
41870 (grub_console_cls): Set the default color when clearing the
41872 (grub_console_setcursor): Implemented.
41874 2007-11-03 Marco Gerards <marco@gnu.org>
41876 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
41878 (grub_ata_pio_write): Likewise.
41880 (grub_atapi_identify): Wait after issuing an ATA command.
41881 (grub_atapi_packet): Likewise.
41882 (grub_ata_identify): Likewise.
41883 (grub_ata_readwrite): Likewise.
41885 2007-11-03 Marco Gerards <marco@gnu.org>
41887 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
41888 (grub_ata_pio_write): Likewise.
41889 (grub_ata_readwrite): Use `grub_error', instead of
41890 returning `grub_errno'.
41892 2007-11-03 Marco Gerards <marco@gnu.org>
41894 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
41895 grub_ata_pio_write once for every single sector, instead of for
41898 2007-10-31 Robert Millan <rmh@aybabtu.com>
41900 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
41902 * conf/i386-linuxbios.rmk: New file.
41904 * kern/i386/pc/hardware.c: Likewise.
41905 * term/i386/pc/at_keyboard.c: Likewise.
41906 * term/i386/pc/vga_text.c: Likewise.
41908 * include/grub/i386/linuxbios/boot.h: Likewise.
41909 * include/grub/i386/linuxbios/console.h: Likewise.
41910 * include/grub/i386/linuxbios/init.h: Likewise.
41911 * include/grub/i386/linuxbios/kernel.h: Likewise.
41912 * include/grub/i386/linuxbios/loader.h: Likewise.
41913 * include/grub/i386/linuxbios/memory.h: Likewise.
41914 * include/grub/i386/linuxbios/serial.h: Likewise.
41915 * include/grub/i386/linuxbios/time.h: Likewise.
41917 * kern/i386/linuxbios/init.c: Likewise.
41918 * kern/i386/linuxbios/startup.S: Likewise.
41919 * kern/i386/linuxbios/table.c: Likewise.
41921 2007-10-31 Marco Gerards <marco@gnu.org>
41923 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
41924 (ata_mod_SOURCES): New variable.
41925 (ata_mod_CFLAGS): Likewise.
41926 (ata_mod_LDFLAGS): Likewise.
41928 * disk/ata.c: New file.
41930 * include/grub/disk.h (grub_disk_dev_id): Add
41931 `GRUB_DISK_DEV_ATA_ID'.
41933 2007-10-31 Robert Millan <rmh@aybabtu.com>
41935 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
41936 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
41938 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
41939 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
41941 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
41944 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
41946 2007-10-27 Robert Millan <rmh@aybabtu.com>
41948 * include/grub/types.h (ULONG_MAX): Define macro.
41950 2007-10-22 Robert Millan <rmh@aybabtu.com>
41952 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
41954 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
41956 2007-10-22 Robert Millan <rmh@aybabtu.com>
41958 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
41959 (pkgdata_MODULES): Add `biosdisk.mod'.
41960 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
41963 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
41964 (grub_biosdisk_init): Replace with ...
41965 (GRUB_MOD_INIT(biosdisk)): ... this.
41966 (grub_biosdisk_fini): Replace with ...
41967 (GRUB_MOD_FINI(biosdisk)): ... this.
41969 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
41970 (grub_machine_init): Remove call to grub_biosdisk_init().
41971 (grub_machine_fini): Remove call to grub_machine_fini().
41973 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
41975 2007-10-22 Robert Millan <rmh@aybabtu.com>
41977 * include/grub/time.h: New file.
41978 * include/grub/i386/time.h: Likewise.
41979 * include/grub/powerpc/time.h: Likewise.
41980 * include/grub/sparc64/time.h: Likewise.
41982 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
41984 (KERNEL_MACHINE_TIME_HEADER): ... this.
41985 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
41987 (KERNEL_MACHINE_TIME_HEADER): ... this.
41988 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
41990 (KERNEL_MACHINE_TIME_HEADER): ... this.
41992 * kern/i386/efi/init.c: Include `<grub/time.h>'.
41993 (grub_millisleep): New function.
41994 * kern/i386/pc/init.c: Include `<grub/time.h>'.
41995 (grub_millisleep): New function.
41996 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
41997 Remove `grub/machine/time.h' include.
41998 (grub_millisleep): New function.
41999 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
42000 Remove `grub/machine/time.h' include.
42001 (grub_millisleep): New function.
42003 * include/grub/misc.h (grub_div_roundup): New function.
42005 * kern/misc.c: Include `<grub/time.h>'.
42006 (grub_millisleep_generic): New function.
42008 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
42010 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
42012 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
42013 `machine/time.h'. Add `time.h'.
42014 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42016 2007-10-21 Robert Millan <rmh@aybabtu.com>
42018 * include/grub/misc.h (grub_max): New function.
42020 2007-10-21 Robert Millan <rmh@aybabtu.com>
42022 * util/misc.c (grub_util_info): Call fflush() before returning.
42024 2007-10-20 Robert Millan <rmh@aybabtu.com>
42026 * genmk.rb (Image): Copy `extra_flags' from here ...
42027 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
42029 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
42030 to `argc' and `args' arguments.
42032 2007-10-17 Robert Millan <rmh@aybabtu.com>
42034 * kern/i386/loader.S: New file.
42036 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
42037 * kern/i386/loader.S (grub_linux_prot_size)... to here.
42038 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
42039 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
42040 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
42041 * kern/i386/loader.S (grub_linux_real_addr)... to here.
42042 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
42043 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
42044 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
42045 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
42046 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
42047 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
42048 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
42049 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
42051 * kern/i386/realmode.S: New file.
42053 * kern/i386/pc/startup.S (protstack): Moved from here ...
42054 * kern/i386/realmode.S (protstack)... to here.
42055 * kern/i386/pc/startup.S (gdt): Moved from here ...
42056 * kern/i386/realmode.S (gdt)... to here.
42057 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
42058 * kern/i386/realmode.S (prot_to_real)... to here.
42060 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
42061 `kern/i386/realmode.S'.
42063 2007-10-17 Robert Millan <rmh@aybabtu.com>
42065 * include/grub/i386/loader.h: New file.
42067 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
42068 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
42069 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
42070 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
42071 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
42072 * include/grub/i386/loader.h (grub_linux_prot_size)
42073 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
42074 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
42075 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
42076 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
42078 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
42080 2007-10-15 Robert Millan <rmh@aybabtu.com>
42082 * normal/misc.c (grub_normal_print_device_info): Do not probe for
42083 filesystem when dev->disk is unset.
42084 Do probe for filesystem even when dev->disk->has_partitions is set.
42085 In case a filesystem is found, always report it.
42086 In case it isn't, if dev->disk->has_partitions is set, report that
42087 a partition table was found instead of reporting that no filesystem
42088 could be identified.
42090 2007-10-12 Robert Millan <rmh@aybabtu.com>
42092 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
42093 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
42095 * include/grub/types.h (grub_host_to_target16): New macro.
42096 (grub_host_to_target32): Likewise.
42097 (grub_host_to_target64): Likewise.
42098 (grub_target_to_host16): Likewise.
42099 (grub_target_to_host32): Likewise.
42100 (grub_target_to_host64): Likewise.
42102 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
42103 Renamed from to ...
42104 (GRUB_MOD_ALIGN): ...this. Update all users.
42106 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
42107 grub_host_to_target32.
42108 Replace grub_be_to_cpu32 with grub_target_to_host32.
42109 (load_modules): Likewise.
42110 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
42111 Replace grub_be_to_cpu32 with grub_target_to_host32.
42112 Replace grub_cpu_to_be16 with grub_host_to_target16.
42113 Replace grub_cpu_to_be32 grub_host_to_target32.
42115 2007-10-12 Robert Millan <rmh@aybabtu.com>
42117 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
42118 * util/elf/grub-mkimage.c: ... here.
42120 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
42121 `util/powerpc/ieee1275/grub-mkimage.c'.
42123 2007-10-07 Robert Millan <rmh@aybabtu.com>
42125 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
42126 and make it easier to figure out.
42127 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
42128 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
42129 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
42130 leave us with less than HEAP_MIN_SIZE total heap.
42131 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
42133 2007-10-03 Robert Millan <rmh@aybabtu.com>
42135 * include/grub/i386/io.h: New file.
42136 * commands/i386/pc/play.c (inb): Removed.
42138 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42140 * term/i386/pc/serial.c (inb): Removed.
42142 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42144 * term/i386/pc/vga.c (inb): Removed.
42146 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42149 2007-10-02 Robert Millan <rmh@aybabtu.com>
42151 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
42152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42153 Reported by Marcin Kurek.
42155 2007-09-07 Robert Millan <rmh@aybabtu.com>
42157 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
42158 SmartFirmware version updates (as released by Sven Luther), and avoid
42159 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
42160 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
42163 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42165 From Hitoshi Ozeki:
42166 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
42167 when merging two regions.
42169 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42171 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
42172 * normal/completion.c (grub_normal_do_completion): Likewise.
42173 Reported by Hitoshi Ozeki.
42175 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42177 Do not use devices at boot in chainloading.
42179 * loader/i386/pc/chainloader.c (boot_drive): New variable.
42180 (boot_part_addr): Likewise.
42181 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
42182 with BOOT_DRIVE and BOOT_PART_ADDR.
42183 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
42184 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
42186 2007-08-29 Robert Millan <rmh@aybabtu.com>
42188 Patch from Simon Peter <dn.tlp@gmx.net>:
42189 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
42190 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
42191 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
42192 util/i386/pc/grub-setup.c_DEPENDENCIES.
42193 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
42194 util/grub-probe.c_DEPENDENCIES.
42195 * conf/powerpc-ieee1275.rmk: Likewise.
42197 2007-08-28 Robert Millan <rmh@aybabtu.com>
42199 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
42200 to tell grub-mkdevicemap how to name devices.
42201 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
42204 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
42205 util/i386/get_disk_name.c.
42206 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
42207 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
42208 util/ieee1275/get_disk_name.c.
42210 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
42212 * DISTLIST: Add util/i386/get_disk_name.c and
42213 util/ieee1275/get_disk_name.c.
42215 * util/grub-mkdevicemap.c: Replace device naming logic with
42216 grub_util_get_disk_name() calls.
42218 2007-08-20 Robert Millan <rmh@aybabtu.com>
42220 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
42221 (so that it works for both plural and singular quantities).
42223 2007-08-05 Robert Millan <rmh@aybabtu.com>
42225 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
42226 so that [xz] isn't taken into account when determining order.
42228 2007-08-02 Marco Gerards <marco@gnu.org>
42230 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
42231 `include/multiboot2.h', `include/grub/elfload.h',
42232 `include/multiboot.h', `include/grub/multiboot.h',
42233 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
42234 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
42235 `kern/elf.c', `loader/multiboot_loader.c',
42236 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
42237 `loader/i386/pc/multiboot2.c',
42238 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
42239 `util/i386/pc/grub-mkrescue.in'. Remove
42240 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
42241 `include/grub/i386/pc/util/biosdisk.h' and
42242 `include/grub/powerpc/ieee1275/multiboot.h'.
42244 2007-08-02 Bean <bean123ch@gmail.com>
42246 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
42247 (ntfs_mod_SOURCES): New variable.
42248 (ntfs_mod_CFLAGS): Likewise.
42249 (ntfs_mod_LDFLAGS): Likewise.
42251 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
42252 (grub_probe_SOURCES): Likewise.
42253 (grub_emu_SOURCES): Likewise.
42255 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
42256 (grub_emu_SOURCES): Likewise.
42258 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
42259 (grub_emu_SOURCES): Likewise.
42261 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
42263 * fs/ntfs.c: New file.
42265 2007-08-02 Bean <bean123ch@gmail.com>
42267 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
42269 * file.h (grub_file): Likewise.
42271 * fshelp.h (grub_fshelp_read_file): Likewise.
42273 * util/i386/pc/grub-setup.c (setup): Likewise.
42274 (save_first_sector): Likewise.
42275 (save_blocklists): Likewise.
42277 * fs/affs.c (grub_affs_read_file): Likewise.
42279 * fs/ext2.c (grub_ext2_read_file): Likewise.
42281 * fs/fat.c (grub_fat_read_data): Likewise.
42283 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
42285 * fs/hfs.c (grub_hfs_read_file): Likewise.
42287 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42289 * fs/jfs.c (grub_jfs_read_file): Likewise.
42291 * fs/minix.c (grub_minix_read_file): Likewise.
42293 * fs/sfs.c (grub_sfs_read_file): Likewise.
42295 * fs/ufs.c (grub_ufs_read_file): Likewise.
42297 * fs/xfs.c (grub_xfs_read_file): Likewise.
42299 * command/blocklist.c (read_blocklist): Likewise.
42300 (print_blocklist): Likewise.
42302 2007-08-02 Marco Gerards <marco@gnu.org>
42304 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
42307 * disk/host.c: New file.
42309 * util/hostfs.c: Likewise.
42311 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
42312 return `GRUB_ERR_BAD_FS'.
42313 * fs/sfs.c (grub_sfs_mount): Likewise.
42314 * fs/xfs.c (grub_xfs_mount): Likewise.
42316 * include/grub/disk.h (enum grub_disk_dev_id): Add
42317 `GRUB_DISK_DEVICE_HOST_ID'.
42319 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
42321 2007-07-24 Jerone Young <jerone@gmail.com>
42323 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
42324 modules for compilation.
42325 * conf/powerpc-ieee1275.rmk: Likewise.
42327 * include/multiboot.h: Move multiboot definitions to one file. Rename
42328 many definitions to not get grub specific.
42329 * include/multiboot2.h: Create header with multiboot 2 definitions.
42330 * include/grub/multiboot.h: Header for grub specific function
42331 prototypes and definitions.
42332 * include/grub/multiboot2.h: Likewise.
42333 * include/grub/multiboot_loader.h: Likewise.
42334 * include/grub/i386/pc/multiboot.h: Removed.
42335 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
42337 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
42338 and 2 to allow for one multiboot and module commands.
42339 * loader/multiboot2.c: Add multiboot2 functionality.
42340 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
42341 and definition names.
42342 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
42344 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
42345 ieee1275 specific multiboot2 code.
42347 * kern/i386/pc/startup.S: Change headers and definition names for
42348 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
42350 2007-07-22 Robert Millan <rmh@aybabtu.com>
42352 * geninitheader.sh: Process file specified in first parameter rather
42353 than hardcoding grub_modules_init.lst.
42354 * geninit.sh: Likewise. Also, construct header name dynamically rather
42355 than hardcoding grub_modules_init.h.
42357 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
42358 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
42359 grub_probe_init.[ch] and grub_setup_init.[ch].
42361 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
42362 grub_modules_init.h with grub_emu_init.h.
42363 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
42364 grub_probe_init.[ch] files.
42365 * conf/i386-efi.rmk: Likewise.
42366 * conf/i386-pc.rmk: Likewise.
42367 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
42368 grub_setup_init.[ch] files.
42370 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
42371 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
42372 to initialize modules rather than a list of hardcoded functions.
42373 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
42374 grub_init_all() to initialize modules rather than a list of hardcoded
42377 2007-07-22 Robert Millan <rmh@aybabtu.com>
42379 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
42380 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
42382 2007-07-22 Robert Millan <rmh@aybabtu.com>
42384 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
42385 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
42386 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
42387 flag when running on SmartFirmware.
42388 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
42389 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
42392 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
42393 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
42394 rather than decreasing it.
42396 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
42397 there's not enough space to do it, fail in the same way as when it
42398 can't be done because there are no partitions.
42400 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
42401 when nvsetenv failed.
42403 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
42405 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
42406 because this rule is automatically generated.
42407 (grub-mkrescue): Removed for the same reason as above.
42409 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
42411 Migrate to GNU General Public License Version 3.
42413 * COPYING: Replaced with the plain text version of GPLv3.
42415 * config.guess: Updated from gnulib.
42416 * config.sub: Likewise.
42418 * geninit.sh: Output a GPLv3 copyright notice.
42419 * geninitheader.sh: Likewise.
42420 * genmodsrc.sh: Likewise.
42421 * gensymlist.sh.in: Likewise.
42423 * boot/i386/pc/boot.S: Upgraded to GPLv3.
42424 * boot/i386/pc/diskboot.S: Likewise.
42425 * boot/i386/pc/pxeboot.S: Likewise.
42426 * commands/blocklist.c: Likewise.
42427 * commands/boot.c: Likewise.
42428 * commands/cat.c: Likewise.
42429 * commands/cmp.c: Likewise.
42430 * commands/configfile.c: Likewise.
42431 * commands/echo.c: Likewise.
42432 * commands/help.c: Likewise.
42433 * commands/ls.c: Likewise.
42434 * commands/search.c: Likewise.
42435 * commands/terminal.c: Likewise.
42436 * commands/test.c: Likewise.
42437 * commands/videotest.c: Likewise.
42438 * commands/i386/cpuid.c: Likewise.
42439 * commands/i386/pc/halt.c: Likewise.
42440 * commands/i386/pc/play.c: Likewise.
42441 * commands/i386/pc/reboot.c: Likewise.
42442 * commands/i386/pc/vbeinfo.c: Likewise.
42443 * commands/i386/pc/vbetest.c: Likewise.
42444 * commands/ieee1275/halt.c: Likewise.
42445 * commands/ieee1275/reboot.c: Likewise.
42446 * commands/ieee1275/suspend.c: Likewise.
42447 * disk/loopback.c: Likewise.
42448 * disk/lvm.c: Likewise.
42449 * disk/raid.c: Likewise.
42450 * disk/efi/efidisk.c: Likewise.
42451 * disk/i386/pc/biosdisk.c: Likewise.
42452 * disk/ieee1275/ofdisk.c: Likewise.
42453 * font/manager.c: Likewise.
42454 * fs/affs.c: Likewise.
42455 * fs/ext2.c: Likewise.
42456 * fs/fat.c: Likewise.
42457 * fs/fshelp.c: Likewise.
42458 * fs/hfs.c: Likewise.
42459 * fs/hfsplus.c: Likewise.
42460 * fs/iso9660.c: Likewise.
42461 * fs/jfs.c: Likewise.
42462 * fs/minix.c: Likewise.
42463 * fs/sfs.c: Likewise.
42464 * fs/ufs.c: Likewise.
42465 * fs/xfs.c: Likewise.
42466 * hello/hello.c: Likewise.
42467 * include/grub/acorn_filecore.h: Likewise.
42468 * include/grub/arg.h: Likewise.
42469 * include/grub/bitmap.h: Likewise.
42470 * include/grub/boot.h: Likewise.
42471 * include/grub/cache.h: Likewise.
42472 * include/grub/device.h: Likewise.
42473 * include/grub/disk.h: Likewise.
42474 * include/grub/dl.h: Likewise.
42475 * include/grub/elfload.h: Likewise.
42476 * include/grub/env.h: Likewise.
42477 * include/grub/err.h: Likewise.
42478 * include/grub/file.h: Likewise.
42479 * include/grub/font.h: Likewise.
42480 * include/grub/fs.h: Likewise.
42481 * include/grub/fshelp.h: Likewise.
42482 * include/grub/gzio.h: Likewise.
42483 * include/grub/hfs.h: Likewise.
42484 * include/grub/kernel.h: Likewise.
42485 * include/grub/loader.h: Likewise.
42486 * include/grub/lvm.h: Likewise.
42487 * include/grub/misc.h: Likewise.
42488 * include/grub/mm.h: Likewise.
42489 * include/grub/net.h: Likewise.
42490 * include/grub/normal.h: Likewise.
42491 * include/grub/parser.h: Likewise.
42492 * include/grub/partition.h: Likewise.
42493 * include/grub/pc_partition.h: Likewise.
42494 * include/grub/raid.h: Likewise.
42495 * include/grub/rescue.h: Likewise.
42496 * include/grub/script.h: Likewise.
42497 * include/grub/setjmp.h: Likewise.
42498 * include/grub/symbol.h: Likewise.
42499 * include/grub/term.h: Likewise.
42500 * include/grub/terminfo.h: Likewise.
42501 * include/grub/tparm.h: Likewise.
42502 * include/grub/types.h: Likewise.
42503 * include/grub/video.h: Likewise.
42504 * include/grub/efi/api.h: Likewise.
42505 * include/grub/efi/chainloader.h: Likewise.
42506 * include/grub/efi/console.h: Likewise.
42507 * include/grub/efi/console_control.h: Likewise.
42508 * include/grub/efi/disk.h: Likewise.
42509 * include/grub/efi/efi.h: Likewise.
42510 * include/grub/efi/pe32.h: Likewise.
42511 * include/grub/efi/time.h: Likewise.
42512 * include/grub/i386/linux.h: Likewise.
42513 * include/grub/i386/setjmp.h: Likewise.
42514 * include/grub/i386/types.h: Likewise.
42515 * include/grub/i386/efi/kernel.h: Likewise.
42516 * include/grub/i386/efi/loader.h: Likewise.
42517 * include/grub/i386/efi/time.h: Likewise.
42518 * include/grub/i386/pc/biosdisk.h: Likewise.
42519 * include/grub/i386/pc/boot.h: Likewise.
42520 * include/grub/i386/pc/chainloader.h: Likewise.
42521 * include/grub/i386/pc/console.h: Likewise.
42522 * include/grub/i386/pc/init.h: Likewise.
42523 * include/grub/i386/pc/kernel.h: Likewise.
42524 * include/grub/i386/pc/loader.h: Likewise.
42525 * include/grub/i386/pc/memory.h: Likewise.
42526 * include/grub/i386/pc/multiboot.h: Likewise.
42527 * include/grub/i386/pc/serial.h: Likewise.
42528 * include/grub/i386/pc/time.h: Likewise.
42529 * include/grub/i386/pc/vbe.h: Likewise.
42530 * include/grub/i386/pc/vbeblit.h: Likewise.
42531 * include/grub/i386/pc/vbefill.h: Likewise.
42532 * include/grub/i386/pc/vbeutil.h: Likewise.
42533 * include/grub/i386/pc/vga.h: Likewise.
42534 * include/grub/ieee1275/ieee1275.h: Likewise.
42535 * include/grub/ieee1275/ofdisk.h: Likewise.
42536 * include/grub/powerpc/libgcc.h: Likewise.
42537 * include/grub/powerpc/setjmp.h: Likewise.
42538 * include/grub/powerpc/types.h: Likewise.
42539 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
42540 * include/grub/powerpc/ieee1275/console.h: Likewise.
42541 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
42542 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
42543 * include/grub/powerpc/ieee1275/loader.h: Likewise.
42544 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
42545 * include/grub/powerpc/ieee1275/time.h: Likewise.
42546 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
42547 * include/grub/sparc64/libgcc.h: Likewise.
42548 * include/grub/sparc64/setjmp.h: Likewise.
42549 * include/grub/sparc64/types.h: Likewise.
42550 * include/grub/sparc64/ieee1275/console.h: Likewise.
42551 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
42552 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
42553 * include/grub/sparc64/ieee1275/time.h: Likewise.
42554 * include/grub/util/biosdisk.h: Likewise.
42555 * include/grub/util/getroot.h: Likewise.
42556 * include/grub/util/lvm.h: Likewise.
42557 * include/grub/util/misc.h: Likewise.
42558 * include/grub/util/raid.h: Likewise.
42559 * include/grub/util/resolve.h: Likewise.
42560 * io/gzio.c: Likewise.
42561 * kern/device.c: Likewise.
42562 * kern/disk.c: Likewise.
42563 * kern/dl.c: Likewise.
42564 * kern/elf.c: Likewise.
42565 * kern/env.c: Likewise.
42566 * kern/err.c: Likewise.
42567 * kern/file.c: Likewise.
42568 * kern/fs.c: Likewise.
42569 * kern/loader.c: Likewise.
42570 * kern/main.c: Likewise.
42571 * kern/misc.c: Likewise.
42572 * kern/mm.c: Likewise.
42573 * kern/parser.c: Likewise.
42574 * kern/partition.c: Likewise.
42575 * kern/rescue.c: Likewise.
42576 * kern/term.c: Likewise.
42577 * kern/efi/efi.c: Likewise.
42578 * kern/efi/init.c: Likewise.
42579 * kern/efi/mm.c: Likewise.
42580 * kern/i386/dl.c: Likewise.
42581 * kern/i386/efi/init.c: Likewise.
42582 * kern/i386/efi/startup.S: Likewise.
42583 * kern/i386/pc/init.c: Likewise.
42584 * kern/i386/pc/lzo1x.S: Likewise.
42585 * kern/i386/pc/startup.S: Likewise.
42586 * kern/ieee1275/ieee1275.c: Likewise.
42587 * kern/powerpc/cache.S: Likewise.
42588 * kern/powerpc/dl.c: Likewise.
42589 * kern/powerpc/ieee1275/cmain.c: Likewise.
42590 * kern/powerpc/ieee1275/crt0.S: Likewise.
42591 * kern/powerpc/ieee1275/init.c: Likewise.
42592 * kern/powerpc/ieee1275/openfw.c: Likewise.
42593 * kern/sparc64/cache.S: Likewise.
42594 * kern/sparc64/dl.c: Likewise.
42595 * kern/sparc64/ieee1275/init.c: Likewise.
42596 * kern/sparc64/ieee1275/openfw.c: Likewise.
42597 * loader/efi/chainloader.c: Likewise.
42598 * loader/efi/chainloader_normal.c: Likewise.
42599 * loader/i386/efi/linux.c: Likewise.
42600 * loader/i386/efi/linux_normal.c: Likewise.
42601 * loader/i386/pc/chainloader.c: Likewise.
42602 * loader/i386/pc/chainloader_normal.c: Likewise.
42603 * loader/i386/pc/linux.c: Likewise.
42604 * loader/i386/pc/linux_normal.c: Likewise.
42605 * loader/i386/pc/multiboot.c: Likewise.
42606 * loader/i386/pc/multiboot_normal.c: Likewise.
42607 * loader/powerpc/ieee1275/linux.c: Likewise.
42608 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
42609 * normal/arg.c: Likewise.
42610 * normal/cmdline.c: Likewise.
42611 * normal/command.c: Likewise.
42612 * normal/completion.c: Likewise.
42613 * normal/execute.c: Likewise.
42614 * normal/function.c: Likewise.
42615 * normal/lexer.c: Likewise.
42616 * normal/main.c: Likewise.
42617 * normal/menu.c: Likewise.
42618 * normal/menu_entry.c: Likewise.
42619 * normal/misc.c: Likewise.
42620 * normal/parser.y: Likewise.
42621 * normal/script.c: Likewise.
42622 * normal/i386/setjmp.S: Likewise.
42623 * normal/powerpc/setjmp.S: Likewise.
42624 * normal/sparc64/setjmp.S: Likewise.
42625 * partmap/acorn.c: Likewise.
42626 * partmap/amiga.c: Likewise.
42627 * partmap/apple.c: Likewise.
42628 * partmap/gpt.c: Likewise.
42629 * partmap/pc.c: Likewise.
42630 * partmap/sun.c: Likewise.
42631 * term/gfxterm.c: Likewise.
42632 * term/terminfo.c: Likewise.
42633 * term/efi/console.c: Likewise.
42634 * term/i386/pc/console.c: Likewise.
42635 * term/i386/pc/serial.c: Likewise.
42636 * term/i386/pc/vesafb.c: Likewise.
42637 * term/i386/pc/vga.c: Likewise.
42638 * term/ieee1275/ofconsole.c: Likewise.
42639 * util/biosdisk.c: Likewise.
42640 * util/console.c: Likewise.
42641 * util/genmoddep.c: Likewise.
42642 * util/getroot.c: Likewise.
42643 * util/grub-emu.c: Likewise.
42644 * util/grub-mkdevicemap.c: Likewise.
42645 * util/grub-probe.c: Likewise.
42646 * util/lvm.c: Likewise.
42647 * util/misc.c: Likewise.
42648 * util/raid.c: Likewise.
42649 * util/resolve.c: Likewise.
42650 * util/update-grub.in: Likewise.
42651 * util/update-grub_lib.in: Likewise.
42652 * util/grub.d/00_header.in: Likewise.
42653 * util/grub.d/10_hurd.in: Likewise.
42654 * util/grub.d/10_linux.in: Likewise.
42655 * util/i386/efi/grub-install.in: Likewise.
42656 * util/i386/efi/grub-mkimage.c: Likewise.
42657 * util/i386/pc/grub-install.in: Likewise.
42658 * util/i386/pc/grub-mkimage.c: Likewise.
42659 * util/i386/pc/grub-mkrescue.in: Likewise.
42660 * util/i386/pc/grub-setup.c: Likewise.
42661 * util/i386/pc/misc.c: Likewise.
42662 * util/powerpc/ieee1275/grub-install.in: Likewise.
42663 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
42664 * util/powerpc/ieee1275/misc.c: Likewise.
42665 * video/bitmap.c: Likewise.
42666 * video/video.c: Likewise.
42667 * video/i386/pc/vbe.c: Likewise.
42668 * video/i386/pc/vbeblit.c: Likewise.
42669 * video/i386/pc/vbefill.c: Likewise.
42670 * video/i386/pc/vbeutil.c: Likewise.
42671 * video/readers/tga.c: Likewise.
42673 2007-07-02 Robert Millan <rmh@aybabtu.com>
42675 * conf/i386-efi.rmk: Replace obsolete reference to
42676 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
42677 with util/getroot.c.
42678 * conf/powerpc-ieee1275.rmk: Likewise.
42679 * conf/sparc64-ieee1275.rmk: Likewise.
42681 * util/grub-emu.c (main): Fix unchecked pointer handling.
42683 2007-07-02 Robert Millan <rmh@aybabtu.com>
42685 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
42686 invocation to fail, in order to support partition-less media.
42688 * util/i386/pc/grub-install.in: Likewise.
42690 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
42691 which fs or partmap modules are needed (akin to its sister scripts).
42693 Also use grub-probe to get rid of unportable /proc/mounts check.
42695 Print the same informational message that the other scripts do, before
42698 2007-06-23 Robert Millan <rmh@aybabtu.com>
42700 * util/update-grub_lib.in (font_path): New function. Determine whether
42701 a font file can be found and, if so, echo the GRUB path to it.
42703 * util/update-grub.in: Handle multiple terminals depending on user
42704 input, platform availability and font file presence. Propagate
42705 variables of our findings to /etc/grub.d/ children.
42707 * util/grub.d/00_header.in: Handle multiple terminals, based on
42708 environment setup by update-grub.
42710 2007-06-23 Robert Millan <rmh@aybabtu.com>
42712 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
42714 2007-06-21 Robert Millan <rmh@aybabtu.com>
42716 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
42717 indicate end of data section in kernel image.
42718 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
42719 GRUB_KERNEL_MACHINE_DATA_END.
42721 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
42723 * kern/i386/efi/startup.S: Likewise.
42725 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
42726 during image generation. Implement --prefix option to override this
42728 * util/i386/efi/grub-mkimage.c: Likewise.
42730 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
42731 code to make path relative to its root into a separate function.
42733 * util/i386/pc/grub-install.in: Use newly provided
42734 make_system_path_relative_to_its_root() to convert ${grubdir}, then
42735 pass the result to grub-install --prefix.
42737 2007-06-13 Robert Millan <rmh@aybabtu.com>
42739 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
42740 DEFAULT_DEVICE_MAP.
42741 * util/grub-emu.c: Use above definitions from misc.h instead of
42743 * util/grub-mkdevicemap.c: Likewise.
42744 * util/i386/pc/grub-setup.c: Likewise.
42745 * util/grub-probe.c: Likewise.
42746 (probe): Abort with grub_util_error() when either
42747 grub_guess_root_device or grub_util_get_grub_dev fails.
42749 2007-06-12 Robert Millan <rmh@aybabtu.com>
42751 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
42752 "pager" assignment.
42753 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
42755 * util/grub-probe.c (probe): Likewise for "drive_name".
42757 2007-06-11 Robert Millan <rmh@aybabtu.com>
42759 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
42760 not just the cdrom one.
42762 2007-06-11 Robert Millan <rmh@aybabtu.com>
42764 * util/i386/pc/grub-mkrescue.in: Add "set -e".
42765 Add --pkglibdir=DIR option to override pkglibdir.
42766 Mention --image-type=TYPE in help output.
42767 Fix --grub-mkimage (it was a no-op).
42768 Abort gracefully when no parameter is given.
42770 2007-06-11 Robert Millan <rmh@aybabtu.com>
42772 * util/i386/pc/grub-mkrescue.in: New file.
42773 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
42774 * Makefile.in: Handle bin_SCRIPTS.
42776 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
42778 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
42779 list of video modes.
42781 2007-06-06 Robert Millan <rmh@aybabtu.com>
42783 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
42784 file doesn't exist, or if it is in a filesystem grub can't read.
42786 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
42787 not abort if GRUB_DRIVE could not be defined. Rearrange generated
42788 header comment to fit in 80 columns when the variables are resolved.
42790 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
42791 could be identified by update-grub. Remove redundant check for
42792 unifont.pff existence (since convert_system_path_to_grub_path now
42795 2007-06-04 Robert Millan <rmh@aybabtu.com>
42797 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
42799 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
42801 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
42803 2007-06-04 Robert Millan <rmh@aybabtu.com>
42805 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
42807 * include/grub/partition.h: Declare grub_apple_partition_map_init and
42808 grub_apple_partition_map_fini.
42811 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
42812 to access >2 TiB disks).
42814 Print disk->total_sectors with %llu instead of %lu, since this
42815 variable is always 64-bit (prevents wrong disk size from being displayed
42816 on either >2 TiB disk or big-endian CPU).
42818 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
42819 into a generic case that supports all (sane) partition maps.
42821 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
42824 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
42825 and grub_apple_partition_map_fini() after that.
42827 2007-06-01 Robert Millan <rmh@aybabtu.com>
42829 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
42831 * util/grub.d/00_header.in: Only enable gfxterm when
42832 convert_system_path_to_grub_path() succeeds.
42834 2007-05-20 Robert Millan <rmh@aybabtu.com>
42836 * util/update-grub_lib.in: New file.
42837 * DISTLIST: Add update-grub_lib.in.
42838 * conf/common.rmk: Generate update-grub_lib and install it in
42840 * Makefile.in: Add install routine for $(lib_DATA).
42842 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
42843 function provided by update-grub_lib to support arbitrary paths of
42845 * util/update-grub.in: Use convert_system_path_to_grub_path() to
42846 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
42848 2007-05-19 Robert Millan <rmh@aybabtu.com>
42850 * commands/i386/cpuid.c: New module.
42851 * DISTLIST: Add it.
42852 * conf/i386-efi.rmk: Enable cpuid.mod.
42853 * conf/i386-pc.rmk: Likewise.
42855 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
42857 * kern/disk.c (grub_disk_read): Check return value of
42860 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
42862 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
42864 * disk/raid.c (grub_raid_open): Likewise.
42866 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
42868 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
42869 stack instead of on the heap.
42871 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
42872 before doing a read on it.
42874 * configure.ac: Only use -fno-stack-protector for the target
42877 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
42879 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
42880 __attribute_ ((unused)) to mode_type argument.
42882 * util/getroot.c (grub_guess_root_device): Fix #endif.
42884 * kern/misc.c (memcmp): Fix prototype.
42886 * include/grub/partition.h [GRUB_UTIL]
42887 (grub_gpt_partition_map_init): Add prototype.
42888 (grub_gpt_partition_map_fini): Likewise.
42890 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
42891 at the right place.
42893 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
42894 (grub_fat_read_data): Likewise.
42895 (grub_fat_find_dir): Likewise.
42897 * font/manager.c (find_glyph): Make table a const.
42898 (grub_font_get_glyph): Remove bitmap from if statement.
42900 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
42902 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
42903 code, first search for device in /dev/mapper, then in /dev.
42904 (grub_util_get_grub_dev): New function.
42905 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
42907 * util/grub-probe.c (probe): Remove check for RAID, call
42908 grub_util_get_grub_dev() instead of
42909 grub_util_biosdisk_get_grub_dev().
42910 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
42911 grub_util_biosdisk_get_grub_dev().
42912 * util/i386/pc/grub-setup.c (main): Likewise.
42914 2007-05-16 Robert Millan <rmh@aybabtu.com>
42916 * DISTLIST: Update for the latest changes.
42917 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
42918 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
42919 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
42920 grub/util/biosdisk.h.
42921 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
42922 grub/util/biosdisk.h.
42924 2007-05-16 Robert Millan <rmh@aybabtu.com>
42926 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
42928 2007-05-16 Robert Millan <rmh@aybabtu.com>
42930 * util/i386/efi/grub-install.in: New.
42931 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
42932 newly added grub-install.
42933 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
42935 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
42936 grub/util/biosdisk.h.
42937 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
42938 grub/util/biosdisk.h.
42940 2007-05-16 Robert Millan <rmh@aybabtu.com>
42942 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
42943 * include/grub/util/biosdisk.h: ... here.
42944 * util/i386/pc/biosdisk.c: Moved to ...
42945 * util/biosdisk.c: ... here.
42946 * util/i386/pc/getroot.c: Moved to ...
42947 * util/getroot.c: ... here.
42948 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
42949 * util/grub-mkdevicemap.c: ... here.
42950 * util/i386/pc/grub-probe.c: Moved to ...
42951 * util/grub-probe.c: ... here.
42953 2007-05-15 Robert Millan <rmh@aybabtu.com>
42955 * util/update-grub.in: Remove duplicated line in grub.cfg header
42958 2007-05-13 Robert Millan <rmh@aybabtu.com>
42960 * util/update-grub.in: Fix a few assumptions about the devices holding
42961 /, /boot and /boot/grub being the same.
42962 * util/grub.d/00_header.in: Likewise.
42963 * util/grub.d/10_hurd.in: Likewise.
42964 * util/grub.d/10_linux.in: Likewise.
42966 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
42967 patterns. Use that to define the `.old' suffix as older than `'.
42969 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
42971 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
42972 the grub.cfg header message.
42974 2007-05-11 Robert Millan <rmh@aybabtu.com>
42976 * util/update-grub.in: Create device.map if it doesn't already exist,
42977 before attempting to run grub-probe.
42978 Check for grub-probe and grub-mkdevicemap with the same code
42979 grub-install is using.
42982 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
42984 * Makefile.in: Add the datarootdir autoconf variable.
42986 2007-05-09 Robert Millan <rmh@aybabtu.com>
42988 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
42989 fail gracefully if dev->disk->partition == NULL.
42991 2007-05-07 Robert Millan <rmh@aybabtu.com>
42993 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
42994 determine partition map module.
42995 * util/i386/pc/grub-install.in: Use this feature to decide which
42996 partition module to load, instead of hardcoding pc and gpt.
42998 2007-05-07 Robert Millan <rmh@aybabtu.com>
43000 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
43001 source directory differs from build directory.
43003 2007-05-05 Robert Millan <rmh@aybabtu.com>
43005 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
43008 2007-05-05 Robert Millan <rmh@aybabtu.com>
43010 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
43012 2007-05-05 Robert Millan <rmh@aybabtu.com>
43014 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
43015 command-line arguments via ${GRUB_CMDLINE_LINUX}.
43017 2007-05-05 Robert Millan <rmh@aybabtu.com>
43019 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
43020 (grub_probe_SOURCES): Likewise.
43021 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
43022 GPT and initialize dos_part and bsd_part accordingly.
43023 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
43025 (main): Activate gpt module for use during partition identification,
43026 and deactivate it afterwards.
43027 * util/i386/pc/grub-install.in: Add gpt module to core.img.
43028 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
43029 partition identification, and deactivate it afterwards.
43031 2007-05-05 Robert Millan <rmh@aybabtu.com>
43033 * term/i386/pc/console.c (grub_console_fini): Call
43034 grub_term_set_current() before grub_term_unregister().
43036 2007-05-04 Robert Millan <rmh@aybabtu.com>
43038 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
43039 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
43040 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
43041 and update-grub_DATA.
43042 * conf/common.rmk: Build and install update-grub components.
43043 * conf/common.mk: Regenerate.
43044 * util/update-grub.in: New. Core of update-grub.
43045 * util/grub.d/00_header.in: New. Generates grub.cfg header.
43046 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
43047 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
43048 * util/grub.d/README: New. Document grub.d directory layout.
43050 2007-05-01 Robert Millan <rmh@aybabtu.com>
43052 * util/grub-emu.c: Move initialization functions
43053 grub_util_biosdisk_init() and grub_init_all() before
43054 grub_util_biosdisk_get_grub_dev(), which relies on them.
43056 2007-04-19 Robert Millan <rmh@aybabtu.com>
43058 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
43061 2007-04-18 Jerone Young <jerone@gmail.com>
43063 * kernel/elf.c: Add missing parenthesis for conditional statement
43066 2007-04-10 Jerone Young <jerone@gmail.com>
43068 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
43069 continue on and look for device node with real device name.
43071 2007-04-10 Jerone Young <jerone@gmail.com>
43073 * configure.ac: Add argument for autoconf to use transformation
43075 * Makefile.in: Add autoconf package transformation code.
43076 * util/i386/pc/grub-install.in: Likewise.
43077 * util/powerpc/ieee1275/grub-install.in: Likewise.
43079 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
43081 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
43082 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
43083 (EXT2_REVISION): Likewise.
43084 (EXT2_INODE_SIZE): Likewise.
43085 (struct grub_ext2_block_group): Added a missing member
43087 (grub_ext2_read_inode): Divide by the inode size in a superblock
43088 instead of 128 to obtain INODES_PER_BLOCK.
43089 Use the macro EXT2_INODE_SIZE instead of directly using
43090 SBLOCK->INODE_SIZE.
43092 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
43094 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
43095 superblock instead of the structure size to compute an
43096 offset. This fixes the problem that GRUB could not read a
43097 filesystem when inode size is different from 128-byte.
43099 2007-03-05 Marco Gerards <marco@gnu.org>
43101 * normal/main.c (read_config_file): When "menu" is not set, create
43102 an initial context.
43104 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
43106 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
43107 (HEAP_LIMIT): New macro.
43108 (grub_claim_heap): Claim memory up to `heaplimit'.
43110 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
43112 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
43113 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
43114 (_start): Likewise.
43115 (grub_arch_modules_addr): Return address after `_end'.
43116 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
43117 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
43118 (add_segments): Calculate `_end' from phdr size and location.
43119 (ALIGN_UP): Moved to ...
43120 * include/grub/misc.h: here.
43121 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
43123 (GRUB_IEEE1275_MODULE_BASE): Removed.
43125 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43127 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
43130 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43132 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
43134 (grub_elf64_load_hook_t): Likewise.
43135 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
43138 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43140 * kern/mm.c: Update copyright.
43141 (grub_mm_debug): Correct syntax error.
43142 (grub_mm_dump_free): New function.
43143 (grub_debug_free): Call `grub_free'.
43144 * include/grub/mm.h: Update copyright.
43145 (grub_mm_dump_free): Add declaration.
43147 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
43149 * include/grub/ieee1275/ieee1275.h: Update copyright.
43150 * kern/powerpc/ieee1275/init.c: Likewise.
43151 * kern/powerpc/ieee1275/openfw.c: Likewise.
43153 * loader/powerpc/ieee1275/linux.c: Likewise.
43154 * include/grub/elfload.h: Likewise.
43155 * kern/elf.c: Likewise.
43156 (grub_elf32_load): Pass `base' and `size' parameters. Update all
43158 (grub_elf64_load): Likewise.
43159 (grub_elf32_load_segment): Move to a nested function.
43160 (grub_elf64_load_segment): Likewise.
43162 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
43164 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
43166 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
43167 (grub_heap_len): Likewise.
43168 (HEAP_SIZE): New macro.
43169 (grub_claim_heap): New function.
43170 (grub_machine_init): Don't claim heap directly. Call
43172 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
43173 (grub_available_iterate): New function.
43175 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
43177 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
43178 * configure.ac: Use it for testing the HOST and TARGET compilers.
43180 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
43182 * Makefile.in (enable_grub_emu): New variable.
43183 * configure.ac (--enable-grub-emu): New option.
43184 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
43185 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
43186 * conf/i386-pc.rmk: Likewise.
43187 * conf/powerpc-ieee1275.rmk: Likewise.
43188 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
43190 2006-12-12 Marco Gerards <marco@gnu.org>
43192 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
43194 * kern/env.c (grub_env_unset): Don't free the member `value' when
43195 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
43198 * normal/main.c (current_menu): Removed.
43199 (free_menu): Unset the `menu' environment variable.
43200 (grub_normal_menu_addentry): Make use of the environment variable
43201 `menu', instead of using the global `current_menu'. Allocate
43202 memory for the sourcecode of this entry.
43203 (read_config_file): New argument `nested', changed all callers.
43204 Only in the case of a new context, initialize a new menu. Set the
43205 `menu' environment variable.
43206 (grub_normal_execute): Don't set and unset the environment
43207 variable `menu' here anymore. Only free the menu when leaving the
43210 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
43213 2006-12-11 Marco Gerards <marco@gnu.org>
43215 * normal/menu_entry.c (run): Fix off by one bug so the last line
43216 is executed. Move the loader check to outside the loop.
43218 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
43220 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
43222 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
43224 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
43225 the number of sectors. Reported by Andrey Shuvikov
43226 <mr_hyro@yahoo.com>.
43228 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
43230 * kern/disk.c (grub_disk_read): When there is a read error, always
43231 try to read only the necessary data.
43233 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
43235 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
43237 [GRUB_UTIL] (grub_raid_fini): Likewise.
43238 [GRUB_UTIL] (grub_lvm_init): Likewise.
43239 [GRUB_UTIL] (grub_lvm_fini): Likewise.
43240 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
43241 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
43242 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
43243 and grub_raid_fini().
43245 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
43247 * include/grub/types.h (__unused): Rename to UNUSED.
43248 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
43249 (grub_elf64_size): Likewise.
43251 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
43253 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
43254 grub_error_push and grub_error_pop in the error-handling path.
43255 (grub_elf32_load_segment): Only call grub_file_read with non-zero
43258 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
43260 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
43261 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43263 (kernel_elf_SOURCES): Likewise.
43264 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
43265 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
43266 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43267 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43268 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
43269 (elf_mod_SOURCES): New variable.
43270 (elf_mod_CFLAGS): Likewise.
43271 (elf_mod_LDFLAGS): Likewise.
43272 * include/grub/types.h (__unused): New macro.
43273 * include/grub/elfload.h: New file.
43274 * kern/elf.c: Likewise.
43275 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
43276 (ELF32_LOADMASK): New macro.
43277 (ELF64_LOADMASK): Likewise.
43278 (vmlinux): Removed.
43279 (grub_linux_load32): New function.
43280 (grub_linux_load64): Likewise.
43281 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
43282 Use grub_elf_t instead of grub_file_t.
43284 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
43286 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
43287 `catch_result' to struct set_color_args.
43289 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
43291 * normal/menu.c: Include grub/script.h.
43292 * normal/menu_entry.c: Likewise.
43293 * include/grub/normal.h: Do not include grub/script.h.
43295 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
43297 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
43299 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
43301 * kern/disk.c (grub_disk_open): Print debug messages when opening a
43303 (grub_disk_close): Print debug messages when closing a disk.
43304 (grub_disk_read): Print debug messages when disk read fails.
43305 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
43307 * kern/partition.c: Include misc.h.
43308 (grub_partition_iterate): Print debug messages when detecting
43311 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
43313 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
43315 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
43317 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
43319 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
43320 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
43322 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
43324 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
43325 instead of sizeof(lv). Patch by Michael Guntsche.
43327 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
43329 * disk/lvm.c: Rename VGS to VG_LIST.
43330 (grub_lvm_iterate): Change VGS->LV to VG-LV.
43331 (grub_lvm_open): Likewise.
43332 Thanks to Michael Guntsche for finding this bug.
43334 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43336 * configure.ac (AC_INIT): Bumped to 1.95.
43338 2006-10-14 Robert Millan <rmh@aybabtu.com>
43340 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
43341 with "/dev/.static/dev/md".
43343 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
43345 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
43346 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
43347 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
43348 DRIVE_NAME are always freed.
43350 * util/i386/pc/biosdisk.c (make_device_name): Add one into
43351 DOS_PART, as a DOS partition is counted from one instead of zero
43352 now. Reported by Robert Millan.
43354 2006-10-14 Robert Millan <rmh@aybabtu.com>
43356 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
43357 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
43358 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
43359 string returned by grub_guess_root_device.
43360 * util/i386/pc/grub-setup.c: Likewise.
43361 * util/i386/pc/grub-probefs.c: Likewise.
43363 * util/i386/pc/grub-probefs.c: Rename to ...
43364 * util/i386/pc/grub-probe.c: ... this.
43365 * DISTLIST: Remove grub-probefs, add grub-probe.
43366 * conf/i386-efi.rmk: Likewise.
43367 * conf/i386-pc.rmk: Likewise.
43368 * util/i386/pc/grub-install.in: Likewise.
43370 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
43371 choose which information we want to print.
43373 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
43375 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
43376 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
43377 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
43378 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
43379 video/readers/tga.c and video/i386/pc/vbeutil.c.
43381 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
43383 Added support for RAID and LVM.
43385 * disk/lvm.c: New file.
43386 * disk/raid.c: Likewise.
43387 * include/grub/lvm.h: Likewise.
43388 * include/grub/raid.h: Likewise.
43389 * include/grub/util/lvm.h: Likewise.
43390 * include/grub/util/raid.h: Likewise.
43391 * util/lvm.c: Likewise.
43392 * util/raid.c: Likewise.
43394 * include/grub/disk.h (grub_disk_dev_id): Add
43395 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
43396 (grub_disk_get_size): New prototype.
43397 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
43398 returns a partition.
43399 (grub_disk_get_size): New function.
43401 * kern/i386/pc/init.c (make_install_device): Copy the prefix
43402 verbatim if grub_install_dos_part is -2.
43404 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
43407 * util/i386/pc/grub-setup.c (setup): New argument
43408 MUST_EMBED. Force embedding of GRUB when the argument is
43409 true. Close FILE before returning.
43410 (main): Add support for RAID and LVM.
43412 * conf/common.rmk: Add RAID and LVM modules.
43413 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
43415 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
43417 * kern/misc.c (grub_strstr): New function.
43418 * include/grub/misc.h (grub_strstr): New prototype.
43420 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
43422 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
43424 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
43426 * kern/misc.c (grub_strtoull): Guess the base only if not
43429 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
43431 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
43434 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
43436 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
43438 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
43439 Remove `flags' argument. All callers changed.
43440 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
43441 (IEEE1275_IHANDLE_INVALID): New variable.
43442 (IEEE1275_CELL_INVALID): New variable.
43443 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
43444 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
43445 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
43446 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
43447 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
43448 codes from Open Firmware. All callers updated.
43449 (grub_ieee1275_next_property): Directly return Open Firmware return
43451 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
43452 Standardize error checking from `grub_ieee1275_get_property'.
43453 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
43454 `devalias' to `aliases'. Correct comments. Consolidate error paths.
43456 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
43458 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
43459 `instance_to_package_args' to `instance_to_path_args'.
43461 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
43462 `grub_ieee1275_chosen'.
43464 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
43465 `grub_ieee1275_interpret'.
43467 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
43469 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
43471 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
43473 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
43474 (__cmpdi): Likewise.
43476 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
43477 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
43480 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
43482 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
43483 to type `grub_ssize_t'.
43484 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
43486 2006-09-22 Marco Gerards <marco@gnu.org>
43488 * normal/script.c (grub_script_create_cmdmenu): Skip leading
43491 2006-09-22 Marco Gerards <marco@gnu.org>
43493 * commands/echo.c: New file.
43495 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
43497 * conf/common.rmk (echo_mod_SOURCES): New variable.
43498 (echo_mod_CFLAGS): Likewise.
43499 (echo_mod_LDFLAGS): Likewise.
43501 2006-09-22 Marco Gerards <marco@gnu.org>
43503 * normal/main.c (get_line): Malloc memory instead of using
43504 preallocated memory. Removed the arguments `cmdline' and
43505 `max_len'. Updated all callers.
43507 2006-09-22 Marco Gerards <marco@gnu.org>
43509 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
43510 (normal_mod_DEPENDENCIES): Likewise.
43512 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
43513 (normal_mod_DEPENDENCIES): Likewise.
43515 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
43517 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
43519 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
43521 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
43522 (normal_mod_DEPENDENCIES): Likewise.
43523 * conf/i386-pc.mk: Regenerate.
43524 * conf/i386-efi.mk: Likewise
43525 * conf/common.mk: Likewise.
43526 * conf/powerpc-ieee1275.mk: Likewise.
43527 * conf/sparc64-ieee1275.mk: Likewise.
43529 2006-09-22 Robert Millan <rmh@aybabtu.com>
43531 Sync with i386 version.
43532 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
43533 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
43535 2006-09-21 Robert Millan <rmh@aybabtu.com>
43537 Import from GRUB Legacy (lib/device.c):
43538 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
43539 (init_device_map) [__linux__]: Add support for I2O devices.
43541 2006-09-14 Marco Gerards <marco@gnu.org>
43543 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
43546 2006-09-14 Robert Millan <rmh@aybabtu.com>
43548 * util/i386/pc/grub-install.in: Skip menu.lst when removing
43551 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
43553 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
43554 before adding it to device.map.
43556 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
43558 * genmk.rb: Let GCC generate dependencies the first time it
43559 compiles a file; using the -MD option.
43560 * conf/common.mk: Regenerate.
43561 * conf/i386-pc.mk: Likewise.
43562 * conf/i386-efi.mk: Likewise.
43563 * conf/powerpc-ieee1275.mk: Likewise.
43564 * conf/sparc64-ieee1275.mk: Likewise.
43566 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
43568 Move the prototypes of grub_setjmp and grub_longjmp to
43569 cpu/setjmp.h, so that each architecture may specify different
43572 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
43573 (grub_longjmp): Likewise.
43574 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
43575 (grub_longjmp): Likewise.
43576 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
43577 (grub_longjmp): Likewise.
43579 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
43580 [!GRUB_UTIL] (grub_longjmp): Removed.
43582 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
43584 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
43585 "color!" method does not return any value.
43587 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43589 * include/grub/bitmap.h: New file.
43591 * include/grub/i386/pc/vbeutil.h: Likewise.
43593 * video/bitmap.c: Likewise.
43595 * video/readers/tga.c: Likewise.
43597 * video/i386/pc/vbeutil.c: Likewise.
43599 * commands/videotest.c: Code cleanup and updated to reflect to new
43602 * term/gfxterm.c: Likewise.
43604 * video/video.c: Likewise.
43606 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
43607 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
43608 (bitmap_mod_SOURCES): New entry.
43609 (bitmap_mod_CFLAGS): Likewise.
43610 (bitmap_mod_LDFLAGS): Likewise.
43611 (tga_mod_SOURCES): Likewise.
43612 (tga_mod_CFLAGS): Likewise.
43613 (tga_mod_LDFLAGS): Likewise.
43615 * include/grub/video.h (grub_video_blit_operators): New enum type.
43616 (grub_video_render_target): Changed as forward declaration and moved
43617 actual definition to be video driver specific.
43618 (grub_video_adapter.blit_bitmap): Added blitting operator.
43619 (grub_video_adapter.blit_render_target): Likewise.
43620 (grub_video_blit_bitmap): Likewise.
43621 (grub_video_blit_render_target): Likewise.
43623 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
43624 driver specific render target definition.
43625 (grub_video_vbe_map_rgba): Added driver internal helper.
43626 (grub_video_vbe_unmap_color): Updated to use
43627 grub_video_i386_vbeblit_info.
43628 (grub_video_vbe_get_video_ptr): Likewise.
43630 * include/grub/i386/pc/vbeblit.h
43631 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
43632 grub_video_i386_vbeblit_info.
43633 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
43634 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
43635 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
43636 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
43637 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
43638 (grub_video_i386_vbeblit_index_index): Likewise.
43639 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
43640 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
43641 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
43642 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
43644 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
43647 * video/i386/pc/vbeblit.c: Updated to reflect changes on
43648 include/grub/i386/pc/vbeblit.h.
43650 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
43651 Updated to use grub_video_i386_vbeblit_info.
43652 (grub_video_i386_vbefill_R8G8B8): Likewise.
43653 (grub_video_i386_vbefill_index): Likewise.
43654 (grub_video_i386_vbefill): Added generic filler.
43656 * video/i386/pc/vbefill.c: Updated to reflect changes on
43657 include/grub/i386/pc/vbefill.h.
43659 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
43660 grub_video_i386_vbeblit_info.
43661 (grub_video_vbe_unmap_color): Likewise.
43662 (grub_video_vbe_blit_glyph): Likewise.
43663 (grub_video_vbe_scroll): Likewise.
43664 (grub_video_vbe_draw_pixel): Removed function.
43665 (grub_video_vbe_get_pixel): Likewise.
43666 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
43667 updated code to use it.
43668 (common_blitter): Added common blitter for render target and bitmap.
43669 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
43670 (grub_video_vbe_blit_render_target): Likewise.
43672 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
43674 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
43675 is in text mode if there is no console control protocol instance
43678 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43680 * include/grub/video.h: Code cleanup.
43682 * include/grub/i386/pc/vbe.h: Likewise.
43684 * video/i386/pc/vbe.c: Likewise.
43686 * video/i386/pc/vbeblit.c: Likewise.
43688 * video/i386/pc/vbefill.c: Likewise.
43690 * video/video.c: Likewise. Also added more comments.
43692 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43694 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
43695 (struct grub_biosdisk_dap): Likewise.
43697 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
43698 linkage settings for all functions.
43700 2006-07-12 Marco Gerards <marco@gnu.org>
43702 * configure.ac (--enable-mm-debug): Fix typo.
43704 * genkernsyms.sh.in: Use proper quoting for `CC'.
43706 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
43708 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
43709 (normal_mod_ASFLAGS): Remove "-m32".
43711 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
43713 * util/misc.c: Include config.h.
43714 [!HAVE_MEMALIGN]: Do not include malloc.h.
43715 (grub_memalign): Use posix_memalign, if present. Then, use
43716 memalign, if present. Otherwise, emit an error.
43718 * util/grub-emu.c: Do not include malloc.h.
43720 * include/grub/util/misc.h: Include unistd.h. This is required for
43721 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
43722 D. Eades III <hde@foobar-qux.org>.
43724 * configure.ac (AC_GNU_SOURCE): Added.
43725 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
43728 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
43730 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
43731 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
43733 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
43735 * include/grub/types.h (grub_host_addr_t): Rename to
43736 grub_target_addr_t.
43737 (grub_host_off_t): Rename to grub_target_off_t.
43738 (grub_host_size_t): Rename to grub_target_size_t.
43739 (grub_host_ssize_t): Rename to grub_target_ssize_t.
43740 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
43742 * include/grub/kernel.h (struct grub_module_header): Change type
43743 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
43744 (grub_module_info): Likewise.
43746 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43748 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
43749 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
43750 Velazquez <jesus.velazquez@gmail.com>.
43752 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43754 Count partitions from 1 instead of 0 in the string representation
43755 of partitions. Still use 0-based internally.
43757 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
43758 (sun_partition_map_iterate): Use grub_partition_t instead of
43759 struct grub_partition *. Cast DESC->START_CYLINDER to
43760 grub_uint64_t after converting the endian.
43761 (sun_partition_map_probe): Subtract 1 for PARTNUM.
43762 (sun_partition_map_get_name): Add 1 to P->INDEX.
43764 * partmap/pc.c (grub_partition_parse): Subtract 1 for
43766 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
43768 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
43769 zero instead of one.
43770 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
43771 (gpt_partition_map_get_name): Add 1 into P->INDEX.
43773 * partmap/apple.c (apple_partition_map_iterate): Change the type
43774 of POS to unsigned.
43775 (apple_partition_map_probe): Subtract 1 for PARTNUM.
43776 (apple_partition_map_get_name): Add 1 into P->INDEX.
43778 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
43779 of POS to unsigned.
43780 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
43781 calculate the offset of a partition.
43782 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
43783 (amiga_partition_map_get_name): Add 1 into P->INDEX.
43785 * partmap/acorn.c (acorn_partition_map_find): Change the type of
43786 SECTOR to grub_disk_addr_t.
43787 (acorn_partition_map_iterate): Likewise.
43788 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
43789 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
43791 (acorn_partition_map_get_name): Add 1 into P->INDEX.
43793 * kern/i386/pc/init.c (make_install_device): Add 1 into
43794 GRUB_INSTALL_DOS_PART.
43796 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
43799 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43801 Clean up the code to support 64-bit addressing in disks and
43802 files. This change is not enough for filesystems yet.
43804 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
43805 type of "start" to grub_uint64_t.
43806 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
43807 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
43808 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
43811 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
43812 to grub_disk_addr_t.
43814 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
43817 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43819 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
43822 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
43824 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
43826 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
43828 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
43829 to grub_off_t, to detect an error from grub_file_seek.
43830 (grub_multiboot_load_elf32): Likewise.
43832 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
43833 maximum unsigned long value when an overflow is detected.
43834 (grub_strtoull): New function.
43835 (grub_divmod64): Likewise.
43836 (grub_lltoa): use grub_divmod64.
43838 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
43840 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
43841 the pointer to next character. Use grub_strtoull instead of
43843 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
43844 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
43847 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
43848 return value is signed.
43849 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
43850 test if OFFSET is less than zero, as OFFSET is unsigned now.
43852 * kern/disk.c (struct grub_disk_cache): Change the type of
43853 "sector" to grub_disk_addr_t.
43854 (grub_disk_cache_get_index): Change the type of SECTOR to
43855 grub_disk_addr_t. Calculate the hash with SECTOR casted to
43856 unsigned after shifting.
43857 (grub_disk_cache_invalidate): Change the type of SECTOR to
43859 (grub_disk_cache_unlock): Likewise.
43860 (grub_disk_cache_store): Likewise.
43861 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
43862 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
43863 grub_disk_addr_t and grub_uint64_t, respectively.
43864 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
43865 body, as the value of OFFSET is tweaked by
43866 grub_disk_check_range. Change the types of START_SECTOR, LEN and
43867 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
43869 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
43870 body, as the value of OFFSET is tweaked by
43871 grub_disk_check_range. Change the types of LEN and N to
43874 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
43875 and "saved_offset" to grub_off_t.
43876 (test_header): Cast BUF to char *.
43877 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
43879 (grub_gzio_read): Change the types of OFFSET and SIZE to
43880 grub_off_t and grub_size_t, respectively.
43882 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
43884 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
43885 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
43886 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
43887 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
43888 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
43890 * include/grub/types.h (grub_off_t): Unconditionally set to
43892 (grub_disk_addr_t): Changed to grub_uint64_t.
43894 * include/grub/partition.h (struct grub_partition): Change the
43895 types of "start", "len" and "offset" to grub_disk_addr_t,
43896 grub_uint64_t and grub_disk_addr_t, respectively.
43897 (grub_partition_get_start): Return grub_disk_addr_t.
43898 (grub_partition_get_len): Return grub_uint64_t.
43900 * include/grub/misc.h (grub_strtoull): New prototype.
43901 (grub_divmod64): Likewise.
43903 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
43904 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
43905 grub_off_t, respectively.
43906 All callers and references changed.
43908 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
43909 grub_size_t in "read".
43910 All callers and references changed.
43912 * include/grub/file.h (struct grub_file): Change the types of
43913 "offset" and "size" to grub_off_t and grub_off_t,
43914 respectively. Change the type of SECTOR to grub_disk_addr_t in
43916 (grub_file_read): Change the type of LEN to grub_size_t.
43917 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
43919 (grub_file_size): Return grub_off_t.
43920 (grub_file_tell): Likewise.
43921 All callers and references changed.
43923 * include/grub/disk.h (struct grub_disk_dev): Change the types of
43924 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
43926 (struct grub_disk): Change the type of "total_sectors" to
43927 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
43929 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
43930 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
43931 (grub_disk_write): Likewise.
43932 All callers and references changed.
43934 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
43935 char * for grub_strncmp to silence gcc.
43936 (grub_iso9660_mount): Likewise.
43937 (grub_iso9660_mount): Likewise.
43938 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
43940 (grub_iso9660_iterate_dir): Likewise.
43941 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
43943 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
43944 LEN to grub_disk_addr_t and grub_size_t, respectively.
43946 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
43948 * fs/jfs.c (grub_jfs_read_file): Likewise.
43950 * fs/minix.c (grub_jfs_read_file): Likewise.
43952 * fs/sfs.c (grub_jfs_read_file): Likewise.
43954 * fs/ufs.c (grub_jfs_read_file): Likewise.
43956 * fs/xfs.c (grub_jfs_read_file): Likewise.
43958 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
43959 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
43962 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
43963 BLKNR to -1 instead of returning GRUB_ERRNO.
43964 (grub_ext2_read_file): Change the types of SECTOR and
43965 LEN to grub_disk_addr_t and grub_size_t, respectively.
43967 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
43968 LEN to grub_disk_addr_t and grub_size_t, respectively.
43970 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
43973 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
43974 string. Do not cast SECTOR explicitly.
43976 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
43977 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
43978 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
43979 grub_disk_addr_t and grub_size_t, respectively. If the sector is
43980 over 2TB and LBA mode is not supported, raise an error.
43981 (get_safe_sectors): New function.
43982 (grub_biosdisk_read): Use get_safe_sectors.
43983 (grub_biosdisk_write): Likewise.
43985 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
43986 (grub_efidisk_write): Likewise.
43988 * disk/loopback.c (delete_loopback): Cosmetic changes.
43989 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
43991 (grub_loopback_open): Likewise.
43992 (grub_loopback_read): Likewise. Also, change the type of POS to
43993 grub_off_t, and fix the usage of grub_memset.
43995 * commands/i386/pc/play.c: Include grub/machine/time.h.
43997 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
44000 * commands/configfile.c: Include grub/env.h.
44002 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
44003 GRUB_ERRNO directly instead. Change the type of POS to
44004 grub_off_t. Follow the coding standard.
44006 * commands/blocklist.c: Include grub/partition.h.
44007 (grub_cmd_blocklist): Return an error if the underlying device is
44008 not a disk. Take the starting sector of a partition into account,
44009 if a partition is used.
44011 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
44013 (lba_mode): Support 64-bit addresses.
44014 (chs_mode): Likewise.
44015 (copy_buffer): Adapted to the new offsets of a length field and a
44017 (blocklist_default_start): Allocate 64-bit space.
44019 * boot/i386/pc/boot.S (force_lba): Removed.
44020 (boot_drive): Moved to under KERNEL_SECTOR.
44021 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
44023 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
44025 (lba_mode): Refactored to support a 64-bit address. More size
44027 (setup_sectors): Likewise.
44029 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
44031 * DISTLIST: Added include/grub/i386/linux.h. Removed
44032 include/grub/i386/pc/linux.h
44034 * configure.ac (AC_INIT): Bumped to 1.94.
44036 * config.guess: Updated from gnulib.
44037 * config.sub: Likewise.
44038 * install-sh: Likewise.
44039 * mkinstalldirs: Likewise.
44041 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
44043 * conf/common.rmk (grub_modules_init.lst): Depended on
44044 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
44047 * genmk.rb (PModule::rule): Reverted the previous change.
44049 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
44051 * conf/common.rmk (grub_modules_init.lst): Depends on
44052 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
44053 that the target does not exist before producing.
44054 (grub_modules_init.h): Remove the target before generating.
44055 (grub_emu_init.c): Likewise.
44057 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
44059 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
44061 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
44062 for the target-specific tests. Make sure that we also have the
44063 up-to-date target variables for those tests.
44065 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
44067 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
44068 (PModule::rule): Likewise.
44070 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
44072 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
44073 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
44074 target-specific flags should be prefixed.
44075 (PModule::rule): Likewise.
44077 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
44079 * configure.ac (CMP): Check if cmp is available explicitly.
44081 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
44083 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
44084 (target_cpu): New variable.
44085 (pkglibdir): Use target_cpu instead of host_cpu.
44087 * util/i386/pc/grub-install.in (host_cpu): Removed.
44088 (target_cpu): New variable.
44089 (pkglibdir): Use target_cpu instead of host_cpu.
44091 * util/genmoddep.c: Removed.
44093 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
44094 instead of GRUB_HOST_SIZEOF_VOID_P.
44095 * kern/dl.c: Likewise.
44097 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
44099 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44100 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44101 (GRUB_TARGET_SIZEOF_LONG): ... this.
44102 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44103 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44104 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
44106 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44107 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44108 (GRUB_TARGET_SIZEOF_LONG): ... this.
44109 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44110 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44111 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
44113 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44114 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44115 (GRUB_TARGET_SIZEOF_LONG): ... this.
44116 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44117 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44119 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
44120 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
44121 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
44122 instead of GRUB_HOST_SIZEOF_LONG.
44123 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
44124 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
44125 GRUB_CPU_WORDS_BIGENDIAN.
44126 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
44127 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
44130 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
44131 (genmoddep_SOURCES): Likewise.
44132 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
44133 (genmoddep_SOURCES): Likewise.
44134 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
44135 (genmoddep_SOURCES): Likewise.
44136 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
44138 (genmoddep_SOURCES): Likewise.
44140 * genmoddep.awk: New file.
44142 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
44143 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
44144 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
44145 (PModule::rule): Likewise.
44146 (Program::rule): Likewise.
44147 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
44148 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
44151 * configure.ac: Rewritten intensively to use host and target
44152 instead of build and host, respectively.
44154 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
44155 (host_cpu): Removed.
44156 (target_cpu): New variable.
44157 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
44158 (BUILD_CC): Removed.
44159 (BUILD_CFLAGS): Likewise.
44160 (BUILD_CPPFLAGS): Likewise.
44161 (TARGET_CC): New variable.
44162 (TARGET_CFLAGS): Likewise.
44163 (TARGET_CPPFLAGS): Likewise.
44164 (TARGET_LDFLAGS): Likewise.
44166 (include): Use target_cpu instead of host_cpu.
44167 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
44169 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
44171 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
44173 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
44174 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
44175 field 'false' to 'exec_on_false'.
44176 (grub_script_create_cmdif): Renamed argument names to reflect above
44179 * normal/execute.c (grub_script_execute_cmdif): Likewise.
44181 * normal/script.c (grub_script_create_cmdif): Likewise.
44183 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
44185 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
44187 (grub_hfsplus_btree_recptr): Likewise.
44188 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
44189 FILEBLOCK both to pass a block number and store next block
44191 (grub_hfsplus_read_block): Rewritten heavily to support an extent
44192 overflow file correctly. Specify errors appropriately, because
44193 fshelp expects that GRUB_ERRNO is set when fails. Reuse
44194 grub_hfsplus_btree_recptr to get the pointer to a found key.
44195 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
44198 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
44200 (_linux_mod_SOURCES): New variable.
44201 (_linux_mod_CFLAGS): Likewise.
44202 (_linux_mod_LDFLAGS): Likewise.
44203 (linux_mod_SOURCES): Likewise.
44204 (linux_mod_CFLAGS): Likewise.
44205 (linux_mod_LDFLAGS): Likewise.
44207 * DISTLIST: Added loader/i386/efi/linux.c,
44208 loader/i386/efi/linux_normal.c and
44209 include/grub/i386/efi/loader.h.
44211 * loader/i386/efi/linux.c: New file.
44212 * loader/i386/efi/linux_normal.c: Likewise.
44213 * include/grub/i386/efi/loader.h: Likewise.
44215 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
44217 * commands/blocklist.c: New file.
44219 * DISTLIST: Added commands/blocklist.c.
44221 * term/efi/console.c (grub_console_highlight_color): Use a lighter
44222 color for the background, and a darker color for the foreground.
44223 (grub_console_checkkey): Return READ_KEY.
44224 (grub_console_cls): Set the background to
44225 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
44227 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
44229 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
44230 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
44232 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
44235 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
44236 BG. The spec is wrong again.
44238 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
44240 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
44242 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44243 commands/blocklist.c.
44244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44246 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
44247 (blocklist_mod_SOURCES): New variable.
44248 (blocklist_mod_CFLAGS): Likewise.
44249 (blocklist_mod_LDFLAGS): Likewise.
44251 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
44253 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
44255 (lba_mode): Use %eax more intensively to reduce the code size.
44257 2006-05-20 Marco Gerards <marco@gnu.org>
44259 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
44261 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
44263 (script): Accept leading newlines.
44264 (newlines): New rule to describe 0 or more newlines.
44265 (commands): Accept `command' with trailing newline. Fixed the
44266 order in which arguments were passed to `grub_script_add_cmd'.
44267 Accept commands separated by newlines.
44268 (function): Changed to accept newlines.
44269 (menuentry) Rewritten.
44271 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
44272 front of the list, instead of to the end.
44274 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
44276 * util/i386/pc/grub-install.in (bindir): New variable.
44277 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
44278 Shaver <lbgwjl@gmail.com>.
44280 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
44282 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
44283 grub/machine/linux.h
44284 * loader/i386/pc/linux.c: Likewise.
44286 * include/grub/i386/pc/linux.h: Moved to ...
44287 * include/grub/i386/linux.h: ... here.
44289 * include/grub/i386/linux.h (struct linux_kernel_params): New
44292 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
44294 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
44296 (grub_video_vbe_blit_glyph): Likewise.
44297 (grub_video_vbe_blit_bitmap): Likewise.
44298 (grub_video_vbe_blit_render_target): Likewise.
44300 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
44302 * configure.ac (--with-platform): Properly quote the square
44305 2006-05-08 Marco Gerards <marco@gnu.org>
44307 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
44309 (kernel_elf_HEADERS): ...to this. Updated all users.
44310 (grubof_symlist.c): Renamed from this...
44311 (kernel_elf_symlist.c): ...to this. Updated all users.
44312 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
44313 (grubof_SOURCES): Renamed from this...
44314 (kernel_elf_SOURCES): ...to this.
44315 (grubof_HEADERS): Renamed from this...
44316 (kernel_elf_HEADERS): ...to this.
44317 (grubof_CFLAGS): Renamed from this...
44318 (kernel_elf_CFLAGS): ...to this.
44319 (grubof_ASFLAGS): Renamed from this...
44320 (kernel_elf_ASFLAGS): ...to this.
44321 (grubof_LDFLAGS): Renamed from this...
44322 (kernel_elf_LDFLAGS): ...to this.
44324 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
44326 (kernel_elf_HEADERS): ...to this. Updated all users.
44327 (grubof_symlist.c): Renamed from this...
44328 (kernel_elf_symlist.c): ...to this. Updated all users.
44329 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
44330 (grubof_SOURCES): Renamed from this...
44331 (kernel_elf_SOURCES): ...to this.
44332 (grubof_HEADERS): Renamed from this...
44333 (kernel_elf_HEADERS): ...to this.
44334 (grubof_CFLAGS): Renamed from this...
44335 (kernel_elf_CFLAGS): ...to this.
44336 (grubof_ASFLAGS): Renamed from this...
44337 (kernel_elf_ASFLAGS): ...to this.
44338 (grubof_LDFLAGS): Renamed from this...
44339 (kernel_elf_LDFLAGS): ...to this.
44341 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
44342 `kernel.elf' instead of `grubof'.
44344 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
44346 Add --with-platform to configure. Use pkglibdir instead of
44347 pkgdatadir. This is reported by Roger Leigh.
44349 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
44350 (host_vendor): Likewise.
44351 (host_os): Likewise.
44352 (pkgdatadir): Likewise.
44353 (platform): New variable.
44354 (pkglibdir): Likewise.
44355 Use PKGLIBDIR instead of PKGDATADIR.
44357 * util/i386/pc/grub-install.in (datadir): Removed.
44358 (host_vendor): Likewise.
44359 (host_os): Likewise.
44360 (pkgdatadir): Likewise.
44361 (platform): New variable.
44362 (pkglibdir): Likewise.
44363 Use PKGLIBDIR instead of PKGDATADIR.
44365 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
44366 instead of GRUB_DATADIR.
44368 * util/i386/pc/grub-mkimage.c (usage): Likewise.
44370 * util/i386/efi/grub-mkimage.c (usage): Likewise.
44373 * configure.ac (--with-platform): New option.
44374 Use PLATFORM instead of HOST_VENDOR to specify a platform.
44376 * Makefile.in: Include a makefile based on PLATFORM instead of
44378 (pkgdatadir): Not appended by the machine type.
44379 (pkglibdir): Appended by the machine type.
44380 (host_vendor): Removed.
44381 (platform): New variable.
44382 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
44383 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
44384 (uninstall): Likewise.
44386 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
44388 Use the environment context in the menu. Remove the commands
44389 "default" and "timeout", and use variables instead.
44391 * normal/menu.c: Include grub/env.h.
44392 (print_entry): Cast TITLE to silence gcc.
44393 (get_timeout): New function.
44394 (set_timeout): Likewise.
44395 (get_entry_number): Likewise.
44396 (run_menu): Use a default entry, a fallback entry and a timeout
44397 in the environment variables "default", "fallback" and
44398 "timeout". Also, tweak the default entry if it is not within the
44399 current menu entries.
44400 (grub_menu_run): Use a fallback entry in the environment variable
44403 * normal/main.c (read_config_file): Do not initialize
44404 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
44406 (grub_normal_execute): Use a data slot to store the menu.
44408 * include/grub/normal.h (struct grub_menu): Removed default_entry,
44409 fallback_entry and timeout.
44410 (struct grub_menu_list): Removed.
44411 (grub_menu_list_t): Likewise.
44412 (struct grub_context): Likewise.
44413 (grub_context_t): Likewise.
44414 (grub_context_get): Likewise.
44415 (grub_context_get_current_menu): Likewise.
44416 (grub_context_push_menu): Likewise.
44417 (grub_context_pop_menu): Likewise.
44418 (grub_default_init): Likewise.
44419 (grub_default_fini): Likewise.
44420 (grub_timeout_init): Likewise.
44421 (grub_timeout_fini): Likewise.
44423 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
44425 (normal_mod_SOURCES): Removed normal/context.c.
44427 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
44428 commands/default.c, commands/timeout.c and normal/context.c.
44429 (normal_mod_SOURCES): Removed normal/context.c.
44431 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
44432 commands/timeout.c and normal/context.c.
44433 (normal_mod_SOURCES): Removed normal/context.c.
44435 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
44436 commands/default.c, commands/timeout.c and normal/context.c.
44437 (normal_mod_SOURCES): Removed normal/context.c.
44439 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
44441 (default_mod_SOURCES): Removed.
44442 (default_mod_CFLAGS): Likewise.
44443 (default_mod_LDFLAGS): Likewise.
44444 (timeout_mod_SOURCES): Removed.
44445 (timeout_mod_CFLAGS): Likewise.
44446 (timeout_mod_LDFLAGS): Likewise.
44448 * DISTLIST: Removed commands/default.c, commands/timeout.c and
44451 * commands/default.c: Removed.
44452 * commands/timeout.c: Likewise.
44453 * normal/context.c: Likewise.
44455 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
44457 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
44459 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
44461 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
44462 "next" to "prev" for readability.
44463 (struct grub_env_sorted_var): New struct.
44464 (grub_env_context): Renamed to ...
44465 (initial_context): ... this.
44466 (grub_env_var_context): Renamed to ...
44467 (current_context): ... this.
44468 (grub_env_find): Look only at CURRENT_CONTEXT.
44469 (grub_env_context_open): Rewritten to copy exported variables from
44471 (grub_env_context_close): Rewritten according to the new
44472 scheme. Also, add an assertion to prevent the initial context from
44474 (grub_env_insert): Removed the code for the sorted list.
44475 (grub_env_remove): Likewise.
44476 (grub_env_export): Simply mark the variable with
44477 GRUB_ENV_VAR_GLOBAL.
44478 (grub_env_set): A cosmetic change for naming consistency.
44479 (grub_env_get): Likewise.
44480 (grub_env_unset): Likewise.
44481 (grub_env_iterate): Rewritten to sort variables within this
44483 (grub_register_variable_hook): Fixed for naming consistency. Call
44484 grub_env_find again, only if NAME is not found at the first time.
44485 (mangle_data_slot_name): New function.
44486 (grub_env_set_data_slot): Likewise.
44487 (grub_env_get_data_slot): Likewise.
44488 (grub_env_unset_data_slot): Likewise.
44490 * include/grub/env.h (grub_env_var_type): New enum.
44491 (GRUB_ENV_VAR_LOCAL): New constant.
44492 (GRUB_ENV_VAR_GLOBAL): Likewise.
44493 (GRUB_ENV_VAR_DATA): Likewise.
44494 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
44496 (grub_env_set): Replace VAR with NAME for consistency.
44497 (grub_register_variable_hook): Likewise.
44498 (grub_env_export): Specify the name of the argument.
44499 (grub_env_set_data_slot): New prototype.
44500 (grub_env_get_data_slot): Likewise.
44501 (grub_env_unset_data_slot): Likewise.
44503 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
44505 Extend the loader so that GRUB can accept a loader which comes
44506 back to GRUB when a loaded image exits. Also, this change adds
44507 support for a chainloader on EFI.
44509 * term/efi/console.c: Include grub/misc.h.
44510 (grub_console_checkkey): Display a scan code on the top for
44511 debugging. This will be removed once the EFI port gets stable.
44512 Correct the scan code mapping.
44514 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
44515 allocate memory from larger regions, in order to reduce the number
44516 of allocated regions. Otherwise, the MacOSX loader panics.
44517 (filter_memory_map): Avoid less than 1MB for compatibility with
44519 (add_memory_regions): Allocate from the tail of a region, if
44520 possible, to avoid allocating a region near to 1MB, for the MacOSX
44523 * kern/efi/init.c (grub_efi_set_prefix): Specify
44524 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
44526 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
44527 argument IMAGE_HANDLE and specify it to get a loaded image.
44528 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
44529 grub_efi_get_loaded_image.
44530 (grub_efi_get_filename): Divide the length by the size of
44532 (grub_efi_get_device_path): New function.
44533 (grub_efi_print_device_path): Print End Device Path nodes. Divide
44534 the length by the size of grub_efi_char16_t for a file path device
44537 * kern/loader.c (grub_loader_noreturn): New variable.
44538 (grub_loader_set): Accept a new argument NORETURN. Set
44539 GRUB_LOADER_NORETURN to NORETURN.
44540 All callers changed.
44541 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
44544 * include/grub/efi/efi.h (grub_efi_get_device_path): New
44546 (grub_efi_get_loaded_image): Take an argument to specify an image
44549 * include/grub/loader.h (grub_loader_set): Added one more argument
44552 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
44553 instead of grub_efi_open_protocol.
44554 (grub_efidisk_get_device_name): Likewise.
44555 (grub_efidisk_close): Print a newline.
44556 (grub_efidisk_get_device_handle): Fixed to use
44557 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
44558 GRUB_EFI_DEVICE_PATH_TYPE.
44560 * disk/efi/efidisk.c (device_path_guid): Moved to ...
44561 * kern/efi/efi.c (device_path_guid): ... here.
44563 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
44565 (kernel_mod_HEADERS): Added efi/disk.h.
44566 (_chain_mod_SOURCES): New variable.
44567 (_chain_mod_CFLAGS): Likewise.
44568 (_chain_mod_LDFLAGS): Likewise.
44569 (chain_mod_SOURCES): Likewise.
44570 (chain_mod_CFLAGS): Likewise.
44571 (chain_mod_LDFLAGS): Likewise.
44573 * DISTLIST: Added include/grub/efi/chainloader.h,
44574 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
44576 * include/grub/efi/chainloader.h: New file.
44577 * loader/efi/chainloader.c: Likewise.
44578 * loader/efi/chainloader_normal.c: Likewise.
44580 2006-04-30 Marco Gerards <marco@gnu.org>
44582 * commands/configfile.c (grub_cmd_source): New function.
44583 (GRUB_MOD_INIT): Register the commands `source' and `.'.
44584 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
44586 2006-04-30 Marco Gerards <marco@gnu.org>
44588 * normal/execute.c (grub_script_execute_cmd): Change the return
44589 type to `grub_err_t'. Correctly return the error.
44590 (grub_script_execute_cmdline): In case a command line is not a
44591 command or a function, try to interpret it as an assignment.
44593 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
44595 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
44596 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
44597 skip a node whose name is obviously invalid as UTF-16,
44598 i.e. contains a NUL character. Stop the iteration when the last
44599 directory entry is found. Instead of using the return value of
44600 grub_hfsplus_btree_iterate_node, store the value in RET and use
44601 it, because the iterator can be stopped by the last directory
44604 2006-04-30 Marco Gerards <marco@gnu.org>
44606 * include/grub/env.h (grub_env_export): New prototype. Reported
44607 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
44609 2006-04-30 Marco Gerards <marco@gnu.org>
44611 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
44612 size of the extents in a catalog file record.
44614 2006-04-29 Marco Gerards <marco@gnu.org>
44616 * commands/configfile.c (grub_cmd_configfile): Execute the
44617 configfile within its own context.
44619 * include/grub/env.h (grub_env_context_open): New prototype.
44620 (grub_env_context_close): Likewise.
44622 * kern/env.c (grub_env): Removed.
44623 (grub_env_sorted): Likewise.
44624 (grub_env_context): New variable.
44625 (grub_env_var_context): Likewise.
44626 (grub_env_find): Search both the active context and the global
44628 (grub_env_context_open): New function.
44629 (grub_env_context_close): Likewise.
44630 (grub_env_insert): Likewise.
44631 (grub_env_remove): Likewise.
44632 (grub_env_export): Likewise.
44633 (grub_env_set): Changed to use helper functions to avoid code
44635 (grub_env_iterate): Rewritten so both the current context and the
44636 global context are being used.
44638 * normal/command.c (export_command): New function.
44639 (grub_command_init): Register the `export' function.
44641 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
44643 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
44644 explicitly to suppress gcc's warnings.
44645 * fs/fat.c (grub_fat_find_dir): Likewise.
44646 (grub_fat_label): Likewise.
44647 * fs/xfs.c (grub_xfs_read_inode): Likewise.
44648 (grub_xfs_mount): Likewise.
44649 (grub_xfs_label): Likewise.
44650 * fs/affs.c (grub_affs_mount): Likewise.
44651 (grub_affs_label): Likewise.
44652 (grub_affs_iterate_dir): Likewise.
44653 * fs/sfs.c (grub_sfs_mount): Likewise.
44654 (grub_sfs_iterate_dir): Likewise.
44655 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
44656 * fs/hfs.c (grub_hfs_mount): Likewise.
44657 (grub_hfs_cmp_catkeys): Likewise.
44658 (grub_hfs_find_dir): Likewise.
44659 (grub_hfs_dir): Likewise.
44660 (grub_hfs_label): Likewise.
44661 * fs/jfs.c (grub_jfs_mount): Likewise.
44662 (grub_jfs_opendir): Likewise.
44663 (grub_jfs_getent): Likewise.
44664 (grub_jfs_lookup_symlink): Likewise.
44665 (grub_jfs_label): Likewise.
44666 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
44667 (grub_hfsplus_iterate_dir): Likewise.
44668 (grub_hfsplus_btree_iterate_node): Made static.
44670 * util/grub-emu.c (prefix): New variable.
44671 (grub_machine_set_prefix): New function.
44672 (main): Do not set the environment variable "prefix" here. Only
44673 set PREFIX, which is used later by grub_machine_set_prefix.
44675 * include/grub/video.h: Do not include grub/symbol.h.
44676 (grub_video_register): Not exported. This symbol is not defined in
44678 (grub_video_unregister): Likewise.
44679 (grub_video_iterate): Likewise.
44680 (grub_video_setup): Likewise.
44681 (grub_video_restore): Likewise.
44682 (grub_video_get_info): Likewise.
44683 (grub_video_get_blit_format): Likewise.
44684 (grub_video_set_palette): Likewise.
44685 (grub_video_get_palette): Likewise.
44686 (grub_video_set_viewport): Likewise.
44687 (grub_video_get_viewport): Likewise.
44688 (grub_video_map_color): Likewise.
44689 (grub_video_map_rgb): Likewise.
44690 (grub_video_map_rgba): Likewise.
44691 (grub_video_fill_rect): Likewise.
44692 (grub_video_blit_glyph): Likewise.
44693 (grub_video_blit_bitmap): Likewise.
44694 (grub_video_blit_render_target): Likewise.
44695 (grub_video_scroll): Likewise.
44696 (grub_video_swap_buffers): Likewise.
44697 (grub_video_create_render_target): Likewise.
44698 (grub_video_delete_render_target): Likewise.
44699 (grub_video_set_active_render_target): Likewise.
44701 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
44703 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
44705 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
44706 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44707 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44708 instead of $(srcdir)/genkernsyms.sh.
44710 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
44711 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44712 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44713 instead of $(srcdir)/genkernsyms.sh.
44715 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
44716 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44717 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44718 instead of $(srcdir)/genkernsyms.sh.
44720 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
44721 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44722 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44723 instead of $(srcdir)/genkernsyms.sh.
44725 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
44728 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
44730 (gensymlist.sh): New target.
44731 (genkernsyms.sh): Likewise.
44733 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
44734 genkernsyms.sh.in and gensymlist.sh.in.
44736 * genkernsyms.sh: Removed.
44737 * gensymlist.sh: Likewise.
44739 * genkernsyms.sh.in: New file.
44740 * gensymlist.sh.in: Likewise.
44742 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44744 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
44745 clobber "prefix", since we may have already set it manually.
44747 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44749 * kern/misc.c (abort): New alias for grub_abort.
44751 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
44753 A new machine-specific function "grub_machine_set_prefix" is
44754 defined. This is called after loading modules, so that a prefix
44755 initialization can use modules. Also, this change adds an
44756 intensive debugging feature for the memory manager via the
44757 configure option "--enable-mm-debug".
44759 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
44762 * kern/sparc64/ieee1275/init.c (abort): Removed.
44763 (grub_stop): Likewise.
44764 (grub_exit): New function.
44765 (grub_set_prefix): Renamed to ...
44766 (grub_machine_set_prefix): ... this.
44767 (grub_machine_init): Do not call grub_set_prefix.
44769 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
44770 (grub_machine_set_prefix): ... this.
44771 (grub_machine_init): Do not call grub_set_prefix.
44773 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
44774 (grub_machine_init): Do not set the prefix here.
44776 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
44778 * kern/efi/init.c: Include grub/mm.h.
44779 (grub_efi_set_prefix): New function.
44781 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
44782 (grub_efi_get_filename): New function.
44783 (grub_print_device_path): Renamed to ...
44784 (grub_efi_print_device_path): ... this.
44786 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
44787 [MM_DEBUG] (grub_realloc): Likewise.
44788 [MM_DEBUG] (grub_free): Likewise.
44789 [MM_DEBUG] (grub_memalign): Likewise.
44790 [MM_DEBUG] (grub_mm_debug): New variable.
44791 [MM_DEBUG] (grub_debug_malloc): New function.
44792 [MM_DEBUG] (grub_debug_free): New function.
44793 [MM_DEBUG] (grub_debug_realloc): New function.
44794 [MM_DEBUG] (grub_debug_memalign): New function.
44796 * kern/misc.c (grub_abort): Print a newline to distinguish
44799 * kern/main.c (grub_main): Call grub_machine_set_prefix and
44800 grub_set_root_dev after loading modules. This is necessary when
44801 setting a prefix depends on modules.
44803 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
44804 (grub_efi_print_device_path): ... this.
44805 (grub_efi_get_filename): New prototype.
44806 (grub_efi_set_prefix): Likewise.
44808 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
44810 (grub_efidisk_get_device_handle): New prototype.
44811 (grub_efidisk_get_device_name): Likewise.
44813 * include/grub/mm.h: Include config.h.
44814 (MM_DEBUG): Removed.
44815 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
44816 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
44817 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
44818 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
44819 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
44820 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
44821 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
44822 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
44823 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
44825 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
44827 * disk/efi/efidisk.c: Include grub/partition.h.
44828 (iterate_child_devices): New function.
44829 (add_device): First, compare only last device path nodes, so that
44830 devices are sorted by the types.
44831 (grub_efidisk_get_device_handle): New function.
44832 (grub_efidisk_get_device_name): Likewise.
44834 * configure.ac (--enable-mm-debug): New option to enable the
44835 memory manager debugging feature. This makes the binary much
44836 bigger, so is disabled by default.
44838 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
44840 Use grub_abort instead of grub_stop, and grub_exit must be
44841 define in each architecture now. Also, this change adds support
44844 * util/i386/pc/grub-probefs.c: Include grub/term.h.
44845 (grub_getkey): New function.
44846 (grub_term_get_current): Likewise.
44848 * util/i386/pc/grub-setup.c: Include grub/term.h.
44849 (grub_getkey): New function.
44850 (grub_term_get_current): Likewise.
44852 * util/misc.c (grub_stop): Renamed to ...
44853 (grub_exit): ... this.
44855 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
44856 (grub_exit): ... this.
44857 (grub_machine_init): Use grub_abort instead of abort.
44858 (grub_stop): Removed.
44860 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
44863 * kern/i386/pc/startup.S (grub_exit): New function.
44864 (cold_reboot): New label.
44866 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
44867 (grub_efi_init): Call grub_efidisk_init.
44868 (grub_efi_fini): Call grub_efidisk_fini.
44870 * kern/efi/efi.c: Include grub/mm.h.
44871 (grub_efi_console_control_guid): Renamed to ...
44872 (console_control_guid): ... this.
44873 (grub_efi_loaded_image_guid): Renamed to ...
44874 (loaded_image_guid): ... this.
44875 (grub_efi_locate_handle): New function.
44876 (grub_efi_open_protocol): Likewise.
44877 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
44878 GRUB_EFI_CONSOLE_CONTROL_GUID.
44879 (grub_efi_exit): Removed.
44880 (grub_stop): Likewise.
44881 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
44882 (grub_exit): New function.
44883 (grub_print_device_path): Likewise.
44885 * kern/rescue.c (grub_rescue_cmd_exit): New function.
44886 (grub_enter_rescue_mode): Register "exit".
44888 * kern/misc.c (grub_real_dprintf): A cosmetic change.
44889 (grub_abort): New function.
44891 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
44893 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
44895 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
44897 * include/grub/efi/efi.h (grub_efi_exit): Removed.
44898 (grub_print_device_path): New prototype.
44899 (grub_efi_locate_handle): Likewise.
44900 (grub_efi_open_protocol): Likewise.
44902 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
44903 * disk/efi/efidisk.c: Likewise.
44905 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
44907 * include/grub/efi/console_control.h
44908 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
44910 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
44911 last 8 bytes as an array.
44912 (GRUB_EFI_DISK_IO_GUID): New macro.
44913 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
44914 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
44915 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
44917 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
44918 (struct grub_efi_device_path): Rename the member "sub_type" to
44920 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
44921 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
44922 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
44923 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
44924 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
44925 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
44926 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
44927 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
44928 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
44929 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
44930 (struct grub_efi_pci_device_path): New structure.
44931 (grub_efi_pci_device_path_t): New type.
44932 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
44933 (struct grub_efi_pccard_device_path): New structure.
44934 (grub_efi_pccard_device_path_t): New type.
44935 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
44936 (struct grub_efi_memory_mapped_device_path): New structure.
44937 (grub_efi_memory_mapped_device_path_t): New type.
44938 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
44939 (struct grub_efi_vendor_device_path): New structure.
44940 (grub_efi_vendor_device_path_t): New type.
44941 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
44942 (struct grub_efi_controller_device_path): New structure.
44943 (grub_efi_controller_device_path_t): New type.
44944 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
44945 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
44946 (struct grub_efi_acpi_device_path): New structure.
44947 (grub_efi_acpi_device_path_t): New type.
44948 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
44949 (struct grub_efi_expanded_acpi_device_path): New structure.
44950 (grub_efi_expanded_acpi_device_path_t): New type.
44951 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
44952 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
44953 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
44954 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
44955 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
44956 (struct grub_efi_atapi_device_path): New structure.
44957 (grub_efi_atapi_device_path_t): New type.
44958 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
44959 (struct grub_efi_fibre_channel_device_path): New structure.
44960 (grub_efi_fibre_channel_device_path_t): New type.
44961 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
44962 (struct grub_efi_1394_device_path): New structure.
44963 (grub_efi_1394_device_path_t): New type.
44964 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
44965 (struct grub_efi_usb_device_path): New structure.
44966 (grub_efi_usb_device_path_t): New type.
44967 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
44968 (struct grub_efi_usb_class_device_path): New structure.
44969 (grub_efi_usb_class_device_path_t): New type.
44970 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
44971 (struct grub_efi_i2o_device_path): New structure.
44972 (grub_efi_i2o_device_path_t): New type.
44973 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
44974 (struct grub_efi_mac_address_device_path): New structure.
44975 (grub_efi_mac_address_device_path_t): New type.
44976 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
44977 (struct grub_efi_ipv4_device_path): New structure.
44978 (grub_efi_ipv4_device_path_t): New type.
44979 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
44980 (struct grub_efi_ipv6_device_path): New structure.
44981 (grub_efi_ipv6_device_path_t): New type.
44982 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
44983 (struct grub_efi_infiniband_device_path): New structure.
44984 (grub_efi_infiniband_device_path_t): New type.
44985 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
44986 (struct grub_efi_uart_device_path): New structure.
44987 (grub_efi_uart_device_path_t): New type.
44988 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
44989 (struct grub_efi_vendor_messaging_device_path): New structure.
44990 (grub_efi_vendor_messaging_device_path_t): New type.
44991 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
44992 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
44993 (struct grub_efi_hard_drive_device_path): New structure.
44994 (grub_efi_hard_drive_device_path_t): New type.
44995 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
44996 (struct grub_efi_cdrom_device_path): New structure.
44997 (grub_efi_cdrom_device_path_t): New type.
44998 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
44999 (struct grub_efi_vendor_media_device_path): New structure.
45000 (grub_efi_vendor_media_device_path_t): New type.
45001 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
45002 (struct grub_efi_file_path_device_path): New structure.
45003 (grub_efi_file_path_device_path_t): New type.
45004 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
45005 (struct grub_efi_protocol_device_path): New structure.
45006 (grub_efi_protocol_device_path_t): New type.
45007 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
45008 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
45009 (struct grub_efi_bios_device_path): New structure.
45010 (grub_efi_bios_device_path_t): New type.
45011 (struct grub_efi_disk_io): New structure.
45012 (grub_efi_disk_io_t): New type.
45013 (struct grub_efi_block_io_media): New structure.
45014 (grub_efi_block_io_media_t): New type.
45015 (struct grub_efi_block_io): New structure.
45016 (grub_efi_block_io_t): New type.
45018 * include/grub/misc.h (grub_stop): Removed.
45019 (grub_exit): New prototype.
45020 (grub_abort): Likewise.
45022 * include/grub/disk.h (enum grub_disk_dev_id): Added
45023 GRUB_DISK_DEVICE_EFIDISK_ID.
45025 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
45026 disk/efi/efidisk.c.
45027 (kernel_syms.lst): Remove the target if an error occurs.
45029 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
45031 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
45032 as it was simply too buggy.
45034 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
45036 * kern/misc.c (grub_lltoa): New function.
45037 (grub_vsprintf): Added support for the long long suffix,
45040 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
45042 * Makefile.in (LDFLAGS): Add variable.
45043 (LD): Remove variable.
45044 * configure.ac: Add -m32 to LDFLAGS.
45045 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
45046 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
45047 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
45048 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
45049 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
45051 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
45052 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
45053 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
45055 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
45057 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
45058 length for unknown glyph.
45060 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
45062 Add support for pre-loaded modules into the EFI port.
45064 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
45065 completely. Accept one more argument DIR. The caller has changed.
45067 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
45069 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
45070 (grub_efi_loaded_image_guid): New variable.
45071 (grub_efi_get_loaded_image): New function.
45072 (grub_arch_modules_addr): Likewise.
45074 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
45077 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
45078 (struct grub_efi_loaded_image): New structure.
45079 (grub_efi_loaded_image_t): New type.
45081 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
45083 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
45084 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
45085 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
45087 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
45089 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
45091 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
45093 * DISTLIST: Added include/grub/efi/console.h,
45094 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
45095 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
45097 * include/grub/efi/console.h: New file.
45098 * include/grub/efi/time.h: Likewise.
45099 * include/grub/i386/efi/kernel.h: Likewise.
45100 * kern/efi/init.c: Likewise.
45101 * kern/efi/mm.c: Likewise.
45102 * term/efi/console.c: Likewise.
45104 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
45105 (grub_stop): Removed.
45106 (grub_get_rtc): Likewise.
45107 (grub_machine_init): Simply call grub_efi_init.
45108 (grub_machine_fini): Call grub_efi_fini.
45110 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
45111 (grub_efi_output_string): Removed.
45112 (grub_efi_stall): New function.
45113 (grub_stop): Likewise.
45114 (grub_get_rtc): Likewise.
45116 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
45117 (grub_efi_stall): New prototype.
45118 (grub_efi_allocate_pages): Likewise.
45119 (grub_efi_free_pages): Likewise.
45120 (grub_efi_get_memory_map): Likewise.
45121 (grub_efi_mm_init): Likewise.
45122 (grub_efi_mm_fini): Likewise.
45123 (grub_efi_init): Likewise.
45124 (grub_efi_fini): Likewise.
45126 * include/grub/i386/efi/time.h: Do not include
45127 grub/symbol.h. Include grub/efi/time.h.
45128 (GRUB_TICKS_PER_SECOND): Removed.
45129 (grub_get_rtc): Likewise.
45131 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
45132 Added padding. The EFI spec is buggy.
45133 (GRUB_EFI_BLACK): New macro.
45134 (GRUB_EFI_BLUE): Likewise.
45135 (GRUB_EFI_GREEN): Likewise.
45136 (GRUB_EFI_CYAN): Likewise.
45137 (GRUB_EFI_RED): Likewise.
45138 (GRUB_EFI_MAGENTA): Likewise.
45139 (GRUB_EFI_BROWN): Likewise.
45140 (GRUB_EFI_LIGHTGRAY): Likewise.
45141 (GRUB_EFI_BRIGHT): Likewise.
45142 (GRUB_EFI_DARKGRAY): Likewise.
45143 (GRUB_EFI_LIGHTBLUE): Likewise.
45144 (GRUB_EFI_LIGHTGREEN): Likewise.
45145 (GRUB_EFI_LIGHTCYAN): Likewise.
45146 (GRUB_EFI_LIGHTRED): Likewise.
45147 (GRUB_EFI_LIGHTMAGENTA): Likewise.
45148 (GRUB_EFI_YELLOW): Likewise.
45149 (GRUB_EFI_WHITE): Likewise.
45150 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
45151 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
45152 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
45153 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
45154 (GRUB_EFI_BACKGROUND_RED): Likewise.
45155 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
45156 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
45157 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
45158 (GRUB_EFI_TEXT_ATTR): Likewise.
45160 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
45161 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
45162 (kernel_mod_HEADERS): Added efi/time.h.
45164 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
45166 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
45167 include/grub/efi/api.h, include/grub/efi/console_control.h,
45168 include/grub/efi/efi.h, include/grub/efi/pe32.h,
45169 include/grub/i386/efi/time.h, kern/efi/efi.c,
45170 kern/i386/efi/init.c, kern/i386/efi/startup.S,
45171 and util/i386/efi/grub-mkimage.c.
45173 * Makefile.in (RMKFILES): Added i386-efi.rmk.
45175 * genmk.rb (PModule#rule): Do not export symbols if
45176 #{prefix}_EXPORTS is set to "no".
45178 * conf/i386-efi.mk: New file.
45179 * conf/i386-efi.rmk: Likewise.
45180 * include/grub/efi/api.h: Likewise.
45181 * include/grub/efi/console_control.h: Likewise.
45182 * include/grub/efi/efi.h: Likewise.
45183 * include/grub/efi/pe32.h: Likewise.
45184 * include/grub/i386/efi/time.h: Likewise.
45185 * kern/efi/efi.c: Likewise.
45186 * kern/i386/efi/init.c: Likewise.
45187 * kern/i386/efi/startup.S: Likewise.
45188 * util/i386/efi/grub-mkimage.c: Likewise.
45190 2006-04-17 Marco Gerards <marco@gnu.org>
45192 * include/grub/script.h: Include <grub/parser.h> and
45193 "grub_script.tab.h".
45194 (struct grub_lexer_param): New struct.
45195 (struct grub_parser_param): Likewise.
45196 (grub_script_create_arglist): Pass the state in an argument.
45197 (grub_script_add_arglist): Likewise.
45198 (grub_script_create_cmdline): Likewise.
45199 (grub_script_create_cmdblock): Likewise.
45200 (grub_script_create_cmdif): Likewise.
45201 (grub_script_create_cmdmenu): Likewise.
45202 (grub_script_add_cmd): Likewise.
45203 (grub_script_arg_add): Likewise.
45204 (grub_script_lexer_ref): Likewise.
45205 (grub_script_lexer_deref): Likewise.
45206 (grub_script_lexer_record_start): Likewise.
45207 (grub_script_lexer_record_stop): Likewise.
45208 (grub_script_mem_record): Likewise.
45209 (grub_script_mem_record_stop): Likewise.
45210 (grub_script_malloc): Likewise.
45211 (grub_script_yylex): Likewise.
45212 (grub_script_yyparse): Likewise.
45213 (grub_script_yyerror): Likewise.
45214 (grub_script_yylex): Likewise.
45215 (grub_script_lexer_init): Return the state.
45217 * normal/lexer.c (grub_script_lexer_state): Removed variable.
45218 (grub_script_lexer_done): Likewise.
45219 (grub_script_lexer_getline): Likewise.
45220 (grub_script_lexer_refs): Likewise.
45221 (script): Likewise.
45222 (newscript): Likewise.
45223 (record): Likewise.
45224 (recording): Likewise.
45225 (recordpos): Likewise.
45226 (recordlen): Likewise.
45227 (grub_script_lexer_init): Return the state instead of setting
45229 (grub_script_lexer_ref): Use the newly added argument for state
45230 instead of globals.
45231 (grub_script_lexer_deref): Likewise.
45232 (grub_script_lexer_record_start): Likewise.
45233 (grub_script_lexer_record_stop): Likewise.
45234 (recordchar): Likewise.
45235 (nextchar): Likewise.
45236 (grub_script_yylex2): Likewise.
45237 (grub_script_yylex): Likewise.
45238 (grub_script_yyerror): Likewise.
45240 * normal/parser.y (func_mem): Removed variable.
45241 (menu_entry): Likewise.
45243 (%lex-param): New parser option.
45244 (%parse-param): Likewise.
45245 (script): Always return the AST.
45246 (argument): Pass the state around.
45247 (arguments): Likewise.
45248 (grubcmd): Likewise.
45249 (commands): Likewise.
45250 (function): Likewise.
45251 (menuentry): Likewise.
45252 (if_statement): Likewise.
45255 * normal/script.c (grub_script_memused): Removed variable.
45256 (grub_script_parsed): Likewise.
45257 (grub_script_malloc): Added a state argument. Use that instead of
45259 (grub_script_mem_record): Likewise.
45260 (grub_script_mem_record_stop): Likewise.
45261 (grub_script_arg_add): Likewise.
45262 (grub_script_add_arglist): Likewise.
45263 (grub_script_create_cmdline): Likewise.
45264 (grub_script_create_cmdif): Likewise.
45265 (grub_script_create_cmdmenu): Likewise.
45266 (grub_script_add_cmd): Likewise.
45267 (grub_script_parse): Setup the state before calling the parser.
45269 2006-04-16 Marco Gerards <marco@gnu.org>
45271 * normal/command.c (grub_command_init): Remove the title command.
45273 * normal/lexer.c (grub_script_yylex): Renamed from this...
45274 (grub_script_yylex2): ... to this.
45275 (grub_script_yylex): New function. Temporary
45276 introduced to filter some tokens.
45277 (grub_script_yyerror): Print a newline.
45279 * normal/main.c (read_config_file): Output information about the
45280 lines that contain errors. Wait for a key after all lines have
45281 been processed. Don't return an empty menu.
45283 * normal/parser.y (func_mem): Don't initialize.
45284 (menu_entry): Likewise.
45285 (err): New variable.
45286 (script): Don't return anything when an error was encountered.
45287 (ws, returns): Removed rules.
45288 (argument): Disabled concatenated variable support.
45289 (arguments): Remove explicit separators.
45290 (grubcmd): Likewise.
45291 (function): Likewise.
45292 (menuentry): Likewise.
45294 (commands): Likewise. Add error handling.
45296 * normal/script.c (grub_script_create_cmdline): If
45297 `grub_script_parsed' is 0, assume the parser encountered an error.
45299 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
45301 * configure.ac: Add support for EFI. Fix the typo
45302 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
45304 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
45306 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
45307 foreign multibyte characters should be shown correctly.
45309 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
45311 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
45313 (read_config_file): Made it to close file before returning.
45315 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
45317 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
45318 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
45319 video/i386/pc/vbefill.c.
45321 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
45322 video/i386/pc/vbefill.c.
45324 * include/grub/video.h (grub_video_blit_format): New enum.
45325 (grub_video_mode_info): Added new member blit_format.
45326 (grub_video_get_blit_format): New function prototype.
45328 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
45329 function prototype.
45330 (grub_video_vbe_map_rgb): Likewise.
45331 (grub_video_vbe_unmap_color): Likewise.
45333 * include/grub/i386/pc/vbeblit.h: New file.
45335 * include/grub/i386/pc/vbefill.h: New file.
45337 * video/video.c (grub_video_get_blit_format): New function.
45338 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
45339 (grub_video_vbe_map_rgb): Likewise.
45340 (grub_video_vbe_unmap_color): Likewise.
45342 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
45344 (grub_video_vbe_blit_render_target): Changed to use more optimized
45346 (grub_video_vbe_setup): Added detection for optimized settings.
45347 (grub_video_vbe_create_render_target): Likewise.
45349 * video/i386/pc/vbeblit.c: New file.
45351 * video/i386/pc/vbefill.c: New file.
45353 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
45355 * font/manager.c (grub_font_get_glyph): Removed font fixup from
45358 * util/unifont2pff.rb: ... and moved it to here. Improved argument
45359 parsing to support both hex and dec ranges. If filename was missing
45360 show usage information.
45362 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
45364 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
45365 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
45367 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
45368 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
45369 (video_mod_SOURCES): Added.
45370 (video_mod_CFLAGS): Likewise.
45371 (video_mod_LDFLAGS): Likewise.
45372 (gfxterm_mod_SOURCES): Likewise.
45373 (gfxterm_mod_CFLAGS): Likewise.
45374 (gfxterm_mod_LDFLAGS): Likewise.
45375 (videotest_mod_SOURCES): Likewise.
45376 (videotest_mod_CFLAGS): Likewise.
45377 (videotest_mod_LDFLAGS): Likewise.
45378 (vesafb_mod_SOURCES): Removed.
45379 (vesafb_mod_CFLAGS): Likewise.
45380 (vesafb_mod_LDFLAGS): Likewise.
45381 (vga_mod_SOURCES): Likewise.
45382 (vga_mod_CFLAGS): Likewise.
45383 (vga_mod_LDFLAGS): Likewise.
45385 * commands/videotest.c: New file.
45387 * font/manager.c (fill_with_default_glyph): Modified to use
45389 (grub_font_get_glyph): Likewise.
45390 (fontmanager): Renamed from this...
45391 (font_manager): ... to this.
45393 * include/grub/font.h (grub_font_glyph): Added new structure.
45394 (grub_font_get_glyph): Modified to use grub_font_glyph.
45396 * include/grub/misc.h (grub_abs): Added as inline function.
45398 * include/grub/video.h: New file.
45400 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
45401 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
45402 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
45403 (grub_vbe_get_controller_info): Renamed from this...
45404 (grub_vbe_bios_get_controller_info): ... to this.
45405 (grub_vbe_get_mode_info): Renamed from this...
45406 (grub_vbe_bios_get_mode_info): ... to this.
45407 (grub_vbe_set_mode): Renamed from this...
45408 (grub_vbe_bios_set_mode): ... to this.
45409 (grub_vbe_get_mode): Renamed from this...
45410 (grub_vbe_bios_get_mode): ... to this.
45411 (grub_vbe_set_memory_window): Renamed from this...
45412 (grub_vbe_bios_set_memory_window): ... to this.
45413 (grub_vbe_get_memory_window): Renamed from this...
45414 (grub_vbe_bios_get_memory_window): ... to this.
45415 (grub_vbe_set_scanline_length): Renamed from this...
45416 (grub_vbe_set_scanline_length): ... to this.
45417 (grub_vbe_get_scanline_length): Renamed from this...
45418 (grub_vbe_bios_get_scanline_length): ... to this.
45419 (grub_vbe_set_display_start): Renamed from this...
45420 (grub_vbe_bios_set_display_start): ... to this.
45421 (grub_vbe_get_display_start): Renamed from this...
45422 (grub_vbe_bios_get_display_start): ... to this.
45423 (grub_vbe_set_palette_data): Renamed from this...
45424 (grub_vbe_bios_set_palette_data): ... to this.
45425 (grub_vbe_set_pixel_rgb): Removed.
45426 (grub_vbe_set_pixel_index): Likewise.
45428 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
45430 (grub_vbe_bios_get_controller_info): ... to this.
45431 (grub_vbe_get_mode_info): Renamed from this...
45432 (grub_vbe_bios_get_mode_info): ... to this.
45433 (grub_vbe_set_mode): Renamed from this...
45434 (grub_vbe_bios_set_mode): ... to this.
45435 (grub_vbe_get_mode): Renamed from this...
45436 (grub_vbe_bios_get_mode): ... to this.
45437 (grub_vbe_set_memory_window): Renamed from this...
45438 (grub_vbe_bios_set_memory_window): ... to this.
45439 (grub_vbe_get_memory_window): Renamed from this...
45440 (grub_vbe_bios_get_memory_window): ... to this.
45441 (grub_vbe_set_scanline_length): Renamed from this...
45442 (grub_vbe_set_scanline_length): ... to this.
45443 (grub_vbe_get_scanline_length): Renamed from this...
45444 (grub_vbe_bios_get_scanline_length): ... to this.
45445 (grub_vbe_set_display_start): Renamed from this...
45446 (grub_vbe_bios_set_display_start): ... to this.
45447 (grub_vbe_get_display_start): Renamed from this...
45448 (grub_vbe_bios_get_display_start): ... to this.
45449 (grub_vbe_set_palette_data): Renamed from this...
45450 (grub_vbe_bios_set_palette_data): ... to this.
45451 (grub_vbe_bios_get_controller_info): Fixed problem with registers
45452 getting corrupted after calling it. Added more pushes and pops.
45453 (grub_vbe_bios_set_mode): Likewise.
45454 (grub_vbe_bios_get_mode): Likewise.
45455 (grub_vbe_bios_get_memory_window): Likewise.
45456 (grub_vbe_bios_set_scanline_length): Likewise.
45457 (grub_vbe_bios_get_scanline_length): Likewise.
45458 (grub_vbe_bios_get_display_start): Likewise.
45459 (grub_vbe_bios_set_palette_data): Likewise.
45461 * normal/cmdline.c (cl_set_pos): Refresh the screen.
45462 (cl_insert): Likewise.
45463 (cl_delete): Likewise.
45465 * term/gfxterm.c: New file.
45467 * term/i386/pc/vesafb.c: Removed file.
45469 * video/video.c: New file.
45471 * video/i386/pc/vbe.c (real2pm): Added new function.
45472 (grub_video_vbe_draw_pixel): Likewise.
45473 (grub_video_vbe_get_video_ptr): Likewise.
45474 (grub_video_vbe_get_pixel): Likewise
45475 (grub_video_vbe_init): Likewise.
45476 (grub_video_vbe_fini): Likewise.
45477 (grub_video_vbe_setup): Likewise.
45478 (grub_video_vbe_get_info): Likewise.
45479 (grub_video_vbe_set_palette): Likewise.
45480 (grub_video_vbe_get_palette): Likewise.
45481 (grub_video_vbe_set_viewport): Likewise.
45482 (grub_video_vbe_get_viewport): Likewise.
45483 (grub_video_vbe_map_color): Likewise.
45484 (grub_video_vbe_map_rgb): Likewise.
45485 (grub_video_vbe_map_rgba): Likewise.
45486 (grub_video_vbe_unmap_color): Likewise.
45487 (grub_video_vbe_fill_rect): Likewise.
45488 (grub_video_vbe_blit_glyph): Likewise.
45489 (grub_video_vbe_blit_bitmap): Likewise.
45490 (grub_video_vbe_blit_render_target): Likewise.
45491 (grub_video_vbe_scroll): Likewise.
45492 (grub_video_vbe_swap_buffers): Likewise.
45493 (grub_video_vbe_create_render_target): Likewise.
45494 (grub_video_vbe_delete_render_target): Likewise.
45495 (grub_video_vbe_set_active_render_target): Likewise.
45496 (grub_vbe_set_pixel_rgb): Remove function.
45497 (grub_vbe_set_pixel_index): Likewise.
45498 (index_color_mode): Remove static variable.
45499 (active_mode): Likewise.
45500 (framebuffer): Likewise.
45501 (bytes_per_scan_line): Likewise.
45502 (grub_video_vbe_adapter): Added new static variable.
45503 (framebuffer): Likewise.
45504 (render_target): Likewise.
45505 (initial_mode): Likewise.
45506 (mode_in_use): Likewise.
45507 (mode_list): Likewise.
45509 2006-03-10 Marco Gerards <marco@gnu.org>
45511 * configure.ac (AC_INIT): Bumped to 1.93.
45513 * DISTLIST: Added `include/grub/hfs.h'.
45515 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
45517 * boot/i386/pc/boot.S (general_error): Before looping, try INT
45518 18H, which might help the BIOS falling back to next boot media.
45520 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
45522 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
45523 Poe Chen <poe.poechen@gmail.com>.
45525 2006-01-17 Marco Gerards <marco@gnu.org>
45527 * include/grub/normal.h: Include <grub/script.h>.
45528 (grub_command_list): Removed struct.
45529 (grub_command_list_t): Removed type.
45530 (grub_menu_entry): Remove members `num' and `command_list'. Add
45531 members `commands' and `sourcecode'.
45532 * include/grub/script.h: Add inclusion guards.
45533 (grub_script_cmd_menuentry): New struct.
45534 (grub_script_execute_menuentry): New prototype.
45535 (grub_script_lexer_record_start): Likewise.
45536 (grub_script_lexer_record_stop): Likewise.
45537 * normal/execute.c (grub_script_execute_menuentry): New function.
45538 * normal/lexer.c (record, recording, recordpos, recordlen): New
45540 (grub_script_lexer_record_start): New function.
45541 (grub_script_lexer_record_stop): Likewise.
45542 (recordchar): Likewise.
45543 (nextchar): Likewise.
45544 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
45545 2048 as the buffer size. Add the tokens `menuentry' and `@'.
45546 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
45547 (current_menu): New variable.
45548 (free_menu): Mainly rewritten.
45549 (grub_normal_menu_addentry): New function.
45550 (read_config_file): Rewritten.
45551 * normal/menu.c (run_menu_entry): Mainly rewritten.
45552 * normal/menu_entry.c (make_screen): Rewritten the code to insert
45554 (run): Mainly rewritten.
45555 * normal/parser.y (menu_entry): New variable.
45556 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
45557 (menuentry): New rule.
45558 (command): Add `menuentry'.
45559 (if_statement): Allow additional returns before `fi'.
45560 * normal/script.c (grub_script_create_cmdmenu): New function.
45562 2006-01-03 Marco Gerards <marco@gnu.org>
45564 * INSTALL: GNU Bison is required.
45565 * configure.ac: Rewritten the test to detect Bison.
45566 * Makefile.in (YACC): New variable. Reported by Xun Sun
45567 <xun.sun.cn@gmail.com>.
45569 2006-01-03 Marco Gerards <marco@gnu.org>
45571 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
45572 the HFS+ filesystem to filesystem blocks.
45573 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
45574 GCC warning is silenced.
45576 2006-01-03 Marco Gerards <marco@gnu.org>
45578 * partmap/apple.c (apple_partition_map_iterate): Convert the data
45579 read from disk from big endian to host byte order.
45581 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
45583 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
45585 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
45586 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
45587 embedded HFS+ filesystem.
45588 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
45589 (grub_hfs_sblock): Move from here...
45590 * include/grub/hfs.h: To here... New file.
45591 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
45593 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
45595 (grub_hfsplus_volheader): Change type of member `magic' to
45597 (grub_hfsplus_data): Add new member `embedded_offset'.
45598 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
45600 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
45601 Calculate the offset.
45603 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45605 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
45607 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
45609 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45611 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
45612 ENV->NAME is NULL after allocating ENV->VALUE.
45614 2005-12-25 Marco Gerards <marco@gnu.org>
45616 * kern/env.c (grub_env_set): Rewritten the error handling code.
45618 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45620 * geninit.sh: Made more robust, and more portable.
45622 2005-12-25 Marco Gerards <marco@gnu.org>
45624 Add support for Apple HFS+ filesystems.
45626 * fs/hfsplus.c: New file.
45628 * DISTLIST: Added `fs/hfsplus.c'.
45630 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
45631 (hfsplus_mod_SOURCES): New variable.
45632 (hfsplus_mod_CFLAGS): Likewise.
45633 (hfsplus_mod_LDFLAGS): Likewise.
45634 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
45635 (grub_setup_SOURCES): Likewise.
45636 (grub_mkdevicemap_SOURCES): Likewise.
45637 (grub_emu_SOURCES): Likewise.
45638 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45640 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
45642 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
45644 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45646 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
45647 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
45648 include/grub/parser.h, include/grub/script.h, kern/parser.c,
45649 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
45650 normal/lexer.c, normal/parser.y, normal/script.c, and
45652 Removed kern/sparc64/cache.c.
45654 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
45655 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
45658 * configure.ac (AC_INIT): Bumped to 1.92.
45660 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
45662 * kern/err.c (grub_error_push): Added new function to support error
45664 (grub_error_pop): Likewise.
45665 (grub_error_stack_items): New local variable to support error stacks.
45666 (grub_error_stack_pos): Likewise.
45667 (grub_error_stack_assert): Likewise.
45668 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
45670 (grub_print_error): Added support to print errors from error stack.
45672 * include/grub/err.h (grub_error_push): Added function prototype.
45673 (grub_error_pop): Likewise.
45675 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
45677 * configure.ac: Accept `powerpc64' as host_cpu.
45678 (amd64): Rename to `biarch32'.
45680 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
45681 non-cacheline-aligned addresses.
45683 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
45684 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
45685 if `size' is non-zero.
45687 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
45689 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
45690 and `cd' to make sure the filename is not prefixed with a
45692 (pkgdata_MODULES): Add `gpt.mod'.
45693 (gpt_mod_SOURCES): New variable.
45694 (gpt_mod_CFLAGS): Likewise.
45695 (gpt_mod_LDFLAGS): Likewise.
45697 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
45699 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
45702 * partmap/gpt.c: New file.
45704 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
45705 GPT partition map is detected.
45707 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
45709 * commands/i386/pc/play.c: New file.
45710 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
45711 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
45714 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
45716 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
45717 ((unused))' to silence gcc warning.
45719 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
45721 * configure.ac: Correct `AC_PROG_YACC' test.
45723 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45725 * util/powerpc/ieee1275/grub-install.in: Run the mount point
45726 check before installing files.
45728 2005-11-22 Mike Small <smallm@panix.com>
45730 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
45731 number regex so multidigit numbers are recognized correctly.
45733 2005-11-22 Mike Small <smallm@panix.com>
45735 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
45736 debugging message before attempting to claim memory.
45737 (grub_rescue_cmd_initrd): Add a claim debugging message and try
45738 multiple addresses in case of failure.
45740 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45742 * term/tparm.c (get_space): Remove empty `if' statement.
45744 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
45746 * kern/parser.c (check_varstate): Rename `state' to 's'.
45748 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45750 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
45751 variable definitions to the beginning of each function. Sort stack
45753 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
45754 `buf' argument to `char *'.
45756 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45758 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
45759 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
45760 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
45761 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45762 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45763 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45764 configfile.mod, search.mod, gzio.mod and test.mod.
45765 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45766 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45767 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45768 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45769 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45770 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45771 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45772 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45773 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45774 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45775 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45776 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45777 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45778 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45779 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45780 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45781 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45782 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45783 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45784 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45785 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45786 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45787 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
45789 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
45791 (pkgdata_MODULES): Add test.mod.
45793 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45795 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
45796 appending to variables with "+=".
45797 (PModule): Use full pathname to generate *.lst filenames.
45799 * Makefile.in: Fixed list rules moved from genmk.rb.
45800 (.DELETE_ON_ERROR): New special target.
45801 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
45803 * conf/i386-pc.rmk: Include conf/common.mk.
45804 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
45805 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
45806 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45807 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45808 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45809 configfile.mod, search.mod, gzio.mod and test.mod.
45810 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45811 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45812 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45813 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45814 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45815 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45816 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45817 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45818 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45819 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45820 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45821 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45822 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45823 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45824 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45825 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45826 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45827 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45828 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45829 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45830 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45831 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45832 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
45834 * conf/common.rmk: ... to here. New file.
45836 * conf/common.mk: New file.
45838 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
45840 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
45841 (grub_script.tab.c): ... here.
45843 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
45844 (grub_script.tab.c): ... here.
45846 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
45847 (grub_script.tab.c): ... here.
45849 * normal/command.c (grub_command_find): Fixed a memory leak of
45850 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
45852 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45854 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
45855 "@" which marks the start of a comment on ARM.
45856 (VARIABLE): Likewise.
45858 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45860 Add support for Linux/ADFS partition tables.
45862 * partmap/acorn.c: New file.
45864 * include/grub/acorn_filecore.h: Likewise.
45866 * DISTLIST: Added `partmap/acorn.c' and
45867 `include/grub/acorn_filecore.h'.
45869 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45871 (pkgdata_MODULES): Add `acorn.mod'.
45872 (acorn_mod_SOURCES): New variable.
45873 (acorn_mod_CFLAGS): Likewise.
45875 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
45877 (pkgdata_MODULES): Add `acorn.mod'.
45878 (acorn_mod_SOURCES): New variable.
45879 (acorn_mod_CFLAGS): Likewise.
45881 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
45882 (pkgdata_MODULES): Add `acorn.mod'.
45883 (acorn_mod_SOURCES): New variable.
45884 (acorn_mod_CFLAGS): Likewise.
45885 (acorn_mod_LDFLAGS): Likewise.
45887 * include/types.h (grub_disk_addr_t): New typedef.
45889 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
45891 * geninit.sh: New file.
45893 * geninitheader.sh: Likewise.
45895 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
45896 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
45897 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
45898 * commands/configfile.c (grub_configfile_init)
45899 (grub_configfile_fini): Likewise.
45900 * commands/default.c (grub_default_init, grub_default_fini):
45902 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
45903 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
45904 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
45905 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
45907 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
45908 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
45910 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
45911 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
45913 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
45915 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
45917 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
45918 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
45919 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
45920 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
45921 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
45922 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
45923 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
45924 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
45925 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
45926 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
45927 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
45928 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
45929 * partmap/amiga.c (grub_amiga_partition_map_init)
45930 (grub_amiga_partition_map_fini): Likewise.
45931 * partmap/apple.c (grub_apple_partition_map_init)
45932 (grub_apple_partition_map_fini): Likewise.
45933 * partmap/pc.c (grub_pc_partition_map_init)
45934 (grub_pc_partition_map_fini): Likewise.
45935 * partmap/sun.c (grub_sun_partition_map_init,
45936 grub_sun_partition_map_fini): Likewise.
45937 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
45940 * util/grub-emu.c: Include <grub_modules_init.h>.
45941 (main): Don't initialize and de-initialize any modules directly,
45942 use `grub_init_all' and `grub_fini_all' instead.
45944 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
45945 `grub_vesafb_mod_init'.
45946 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
45948 * term/i386/pc/vga.c (grub_vga_init): Renamed to
45949 `grub_vga_mod_init'. Updated all users.
45950 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
45952 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
45953 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
45956 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
45957 Generate a function to initialize the module in utilities.
45958 Updated all callers.
45959 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
45960 initialize the module in utilities. Updated all callers.
45962 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
45964 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
45965 escape sequence and a literal ^L to clear the screen.
45967 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
45968 when returning from Open Firmware.
45970 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
45972 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
45973 (grub_ofconsole_height): Likewise.
45974 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
45975 manually insert a '\n'.
45976 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
45977 `grub_ofconsole_height'. Return early if these are already set.
45979 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
45981 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
45982 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
45983 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
45984 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
45985 and `normal/script.c'.
45986 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45987 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45988 (test_mod_SOURCES): New variable.
45989 (test_mod_CFLAGS): Likewise.
45990 (test_mod_LDFLAGS): Likewise.
45991 (pkgdata_MODULES): Add `test.mod'.
45992 (grub_script.tab.c): New rule.
45993 (grub_script.tab.h): Likewise.
45995 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
45997 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45998 `commands/test.c', `normal/execute.c', `normal/lexer.c',
45999 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46000 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46001 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46002 (test_mod_SOURCES): New variable.
46003 (test_mod_CFLAGS): Likewise.
46004 (pkgdata_MODULES): Add `test.mod'.
46005 (grub_script.tab.c): New rule.
46006 (grub_script.tab.h): Likewise.
46008 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
46010 Add initial scripting support.
46012 * commands/test.c: New file.
46013 * include/grub/script.h: Likewise.
46014 * normal/execute.c: Likewise.
46015 * normal/function.c: Likewise.
46016 * normal/lexer.c: Likewise.
46017 * normal/parser.y: Likewise.
46018 * normal/script.c: Likewise.
46020 * configure.ac: Add `AC_PROG_YACC' test.
46022 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
46023 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
46024 `normal/function.c' and `normal/script.c'.
46025 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46026 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46027 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
46029 (pkgdata_MODULES): Add `test.mod'.
46030 (grub_script.tab.c): New rule.
46031 (grub_script.tab.h): Likewise.
46033 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
46035 * include/grub/normal.h (grub_test_init): New prototype.
46036 (grub_test_fini): Likewise.
46038 * normal/command.c: Include <grub/script.h>.
46039 (grub_command_execute): Rewritten.
46041 * util/grub-emu.c (main): Call `grub_test_init' and
46044 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46046 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
46048 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
46049 there are no pending characters.
46051 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46053 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
46054 `grub_strndup' to drop device arguments. Replace unnecessary
46055 `grub_strndup' with `grub_strdup'.
46057 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46059 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
46060 `debug' environment variable has been set.
46062 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
46064 * Makefile.in (install-local): Use $(DATA).
46065 (uninstall): Likewise.
46066 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
46067 (sbin_UTILITIES): ... to here.
46068 (sbin_SCRIPTS): New variable.
46069 (grub_install_SOURCES): New variable.
46070 * util/powerpc/ieee1275/grub-install.in: New file.
46071 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
46073 (add_segments): Call `grub_util_get_path'.
46075 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
46077 From Timothy Baldwin:
46078 * commands/ls.c (grub_ls_list_files): Close FILE with
46080 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
46082 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
46084 * include/grub/parser.h: New file.
46086 * kern/parser.c: Likewise.
46088 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
46089 (grub_setup_SOURCES): Likewise.
46090 (grub_probefs_SOURCES): Likewise.
46091 (grub_emu_SOURCES): Likewise.
46092 (kernel_img_HEADERS): Add `parser.h'.
46094 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
46095 (grub_emu_SOURCES): Add `kern/parser.c'.
46096 (grubof_SOURCES): Likewise.
46098 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
46099 (grubof_SOURCES): Add `kern/parser.c'.
46101 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
46103 * kern/misc.c (grub_split_cmdline): Removed function.
46105 * kern/rescue.c: Include <grub/parser.h>.
46106 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
46107 of `grub_split_cmdline'.
46109 * normal/command.c: Include <grub/parser.h>.
46110 (grub_command_execute): Use `grub_parser_split_cmdline' instead
46111 of `grub_split_cmdline'.
46113 * normal/completion.c: Include <grub/parser.h>.
46114 (cmdline_state): New variable.
46115 (iterate_dir): End the filename with a quote depending on the
46116 command line state.
46117 (get_state): new function.
46118 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
46119 split the arguments and determine the current argument. When the
46120 argument string is not quoted, escape all spaces.
46122 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46124 * normal/sparc64/setjmp.S: New file.
46126 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46128 * include/grub/sparc64/libgcc.h: New file.
46129 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
46130 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
46131 normal/sparc64/setjmp.c.
46133 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46135 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
46136 * kern/sparc64/cache.S: New file.
46137 * kern/sparc64/cache.c: Removed.
46138 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
46139 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
46141 (COMMON_LDFLAGS): Add -melf64_sparc.
46142 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
46143 (grubof_SOURCES): Use cache.S instead of cache.c.
46144 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
46145 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
46146 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
46148 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
46149 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
46150 (linux_mod_CFLAGS): Commented out.
46151 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
46152 out because module isn't built.
46153 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
46154 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
46155 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
46156 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
46157 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
46158 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
46159 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
46160 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
46161 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
46162 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
46163 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
46164 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
46165 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
46166 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
46168 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
46170 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
46171 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
46172 longer, because HFS should not be used on PC.
46174 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46176 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
46177 consistently within the loop.
46179 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
46181 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
46182 directory can not be read.
46184 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46186 * configure.ac (AC_INIT): Increase the version number to 1.91.
46188 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
46189 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
46190 term/i386/pc/serial.c.
46192 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46194 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
46195 file size must be permitted.
46197 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
46198 between %ah and %al.
46200 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46202 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
46204 Call the hook with a NUL-terminated filename.
46205 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
46208 * kern/term.c (cursor_state): New variable.
46209 (grub_term_set_current): Reset the cursor state on a new
46211 (grub_setcursor): Rewritten to use CURSOR_STATE.
46212 (grub_getcursor): New function.
46214 * include/grub/term.h (grub_getcursor): New prototype.
46216 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
46217 integers on ARM. Reported by Timothy Baldwin
46218 <T.E.Baldwin99@members.leeds.ac.uk>.
46220 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
46222 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
46224 (grub_sfs_dir): Likewise.
46226 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
46228 Add support for the SFS filesystem.
46230 * fs/sfs.c: New file.
46232 * DISTLIST: Added `fs/sfs.c'.
46234 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
46235 (grub_probefs_SOURCES): Likewise.
46236 (grub_emu_SOURCES): Likewise.
46237 (pkgdata_MODULES): Add `sfs.mod'.
46238 (sfs_mod_SOURCES): New variable.
46239 (sfs_mod_CFLAGS): Likewise.
46240 (sfs_mod_LDFLAGS): Likewise.
46242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
46243 (pkgdata_MODULES): Add `sfs.mod'.
46244 (sfs_mod_SOURCES): New variable.
46245 (sfs_mod_CFLAGS): Likewise.
46247 * util/grub-emu.c (main): Call `grub_sfs_init' and
46250 * include/grub/fs.h (grub_sfs_init): New prototype.
46251 (grub_sfs_fini): Likewise.
46253 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
46255 Add support for the AFFS filesystem.
46257 * fs/affs.c: New file.
46259 * DISTLIST: Added `fs/affs.c'.
46261 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
46262 (grub_probefs_SOURCES): Likewise.
46263 (grub_emu_SOURCES): Likewise.
46264 (pkgdata_MODULES): Add `affs.mod'.
46265 (affs_mod_SOURCES): New variable.
46266 (affs_mod_CFLAGS): Likewise.
46267 (affs_mod_LDFLAGS): Likewise.
46269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
46270 (pkgdata_MODULES): Add `affs.mod'.
46271 (affs_mod_SOURCES): New variable.
46272 (affs_mod_CFLAGS): Likewise.
46274 * util/grub-emu.c (main): Call `grub_affs_init' and
46277 * include/grub/fs.h (grub_affs_init): New prototype.
46278 (grub_affs_fini): Likewise.
46280 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
46282 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
46284 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
46286 * configure.ac: Accept `x86_64' as host_cpu. In that case add
46289 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
46292 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
46293 (COMMON_LDFLAGS): New variable.
46294 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
46295 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
46296 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
46297 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
46298 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
46299 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
46300 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
46301 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
46302 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
46303 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
46304 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
46305 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
46306 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
46307 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
46308 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
46310 (normal_mod_ASFLAGS): Add `-m32'.
46312 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
46313 (grub_host_size_t, grub_host_ssize_t): New types.
46314 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
46315 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
46316 `GRUB_HOST_SIZEOF_VOID_P'.
46318 * include/grub/kernel.h (struct grub_module_header): Type of
46319 member offset changed to `grub_host_off_t'. Type of member size
46320 changed to `grub_host_size_t'.
46321 (struct grub_module_info): Type of member offset changed to
46322 `grub_host_off_t'. Type of member size changed to
46323 `grub_host_size_t'.
46325 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
46327 Make GRUB's kernel compliant to Multiboot Specification.
46329 * kern/i386/pc/startup.S (multiboot_header): New label.
46330 (multiboot_entry): Likewise.
46331 (multiboot_trampoline): Likewise.
46333 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
46334 Increased to 0x4A0.
46336 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
46337 put parentheses after a question mark.
46338 [!GRUB_UTIL] (my_mod): New variable.
46340 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
46342 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
46344 Adds support for the XFS filesystem. Btrees are not supported
46347 * fs/xfs.c: New file.
46349 * DISTLIST: Added `fs/xfs.c'.
46351 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
46352 (grub_probefs_SOURCES): Likewise.
46353 (grub_emu_SOURCES): Likewise.
46354 (pkgdata_MODULES): Add `xfs.mod'.
46355 (xfs_mod_SOURCES): New variable.
46356 (xfs_mod_CFLAGS): Likewise.
46358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
46359 (pkgdata_MODULES): Add `xfs.mod'.
46360 (xfs_mod_SOURCES): New variable.
46361 (xfs_mod_CFLAGS): Likewise.
46363 * util/grub-emu.c (main): Call `grub_xfs_init' and
46366 * include/grub/fs.h (grub_xfs_init): New prototype.
46367 (grub_xfs_fini): Likewise.
46370 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
46372 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
46373 color modes, allow greater than 16 colors to be configured as
46376 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46378 * normal/completion.c (complete_arguments): Add the qualifier
46379 const into OPTIONS.
46381 From Omniflux <omniflux+lists@omniflux.com>:
46382 * include/grub/terminfo.h: New file.
46383 * include/grub/tparm.h: Likewise.
46384 * include/grub/i386/pc/serial.h: Likewise.
46385 * term/terminfo.c: Likewise.
46386 * term/tparm.c: Likewise.
46387 * term/i386/pc/serial.c: Likewise.
46388 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
46390 (terminfo_mod_SOURCES): New variable.
46391 (terminfo_mod_CFLAGS): Likewise.
46392 (serial_mod_SOURCES): Likewise.
46393 (serial_mod_CFLAGS): Likewise.
46395 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
46397 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
46398 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
46399 and kern/powerpc/ieee1275/cmain.c, respectively.
46401 * boot/powerpc/ieee1275/crt0.S: Moved to ...
46402 * kern/powerpc/ieee1275/crt0.S: ... here.
46404 * boot/powerpc/ieee1275/cmain.c: Moved to ...
46405 * kern/powerpc/ieee1275/cmain.c: ... here.
46407 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
46408 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
46409 instead of boot/powerpc/ieee1275/crt0.S and
46410 boot/powerpc/ieee1275/cmain.c, respectively.
46412 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
46413 sectors. It was not used anyway.
46415 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
46417 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
46418 `unused parameter' warning.
46420 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
46422 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
46424 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
46427 2005-08-28 Marco Gerards <metgerards@student.han.nl>
46429 * include/grub/normal.h (enum grub_completion_type): Added
46430 `GRUB_COMPLETION_TYPE_ARGUMENT'.
46432 * normal/cmdline.c (print_completion): Handle
46433 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
46434 * normal/menu_entry.c (store_completion): Likewise.
46436 * normal/completion.c (complete_arguments): New function.
46437 (grub_normal_do_completion): Call `complete_arguments' when the
46438 current words start with a dash.
46440 2005-08-27 Marco Gerards <metgerards@student.han.nl>
46442 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
46443 `gzio.mod' instead of `io.mod').
46445 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
46447 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
46448 (DISTDIRS): Added io and video.
46449 Rewrite the search routine to make an output consistently.
46451 * DISTLIST: Added conf/sparc64-ieee1275.mk,
46452 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
46453 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
46454 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
46455 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
46456 util/powerpc/ieee1275/misc.c.
46458 * include/grub/gzio.h: New file.
46459 * io/gzio.c: Likewise.
46461 * kern/file.c (grub_file_close): Call grub_device_close only if
46462 FILE->DEVICE is not NULL.
46464 * include/grub/mm.h [!NULL] (NULL): New macro.
46466 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
46468 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
46469 (pkgdata_MODULES): Added gzio.mod.
46470 (gzio_mod_SOURCES): New variable.
46471 (gzio_mod_CFLAGS): Likewise.
46473 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
46474 (pkgdata_MODULES): Added gzio.mod.
46475 (gzio_mod_SOURCES): New variable.
46476 (gzio_mod_CFLAGS): Likewise.
46478 * commands/cat.c: Include grub/gzio.h.
46479 (grub_cmd_cat): Use grub_gzfile_open instead of
46482 * commands/cmp.c: Include grub/gzio.h.
46483 (grub_cmd_cmp): Use grub_gzfile_open instead of
46486 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
46487 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
46489 (grub_rescue_cmd_module): Likewise.
46491 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
46493 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
46494 kern/sparc64/ieee1275/init.c because it contains _start.
46495 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
46497 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
46499 * configure.ac: Add support for sparc64 host with ieee1275
46501 * configure: Generated from configure.ac.
46502 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
46504 (grub_ofdisk_read): Likewise.
46505 (grub_ofdisk_open): Use %p to print pointer values, and cast the
46506 pointers as (void *) to remove a warning.
46507 (grub_ofdisk_close): Likewise.
46508 (grub_ofdisk_read): Likewise.
46509 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
46510 returns, so make it return void to remove a warning.
46511 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
46512 Corresponding prototype change.
46513 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
46514 values, and cast the pointers as (void *) to remove a warning.
46515 (grub_mm_dump): Likewise.
46516 * conf/sparc64-ieee1275.mk: New file.
46517 * conf/sparc64-ieee1275.rmk: Likewise.
46518 * include/grub/sparc64/setjmp.h: Likewise.
46519 * include/grub/sparc64/types.h: Likewise.
46520 * include/grub/sparc64/ieee1275/console.h: Likewise.
46521 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
46522 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
46523 * include/grub/sparc64/ieee1275/time.h: Likewise.
46524 * kern/sparc64/cache.c: Likewise.
46525 * kern/sparc64/dl.c: Likewise.
46526 * kern/sparc64/ieee1275/init.c: Likewise.
46527 * kern/sparc64/ieee1275/openfw.c: Likewise.
46529 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46531 * util/console.c (grub_ncurses_putchar): If C is greater than
46532 0x7f, set C to a question mark.
46533 (grub_ncurses_getcharwidth): New function.
46534 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
46537 * normal/menu.c (print_entry): Made aware of Unicode. First,
46538 convert TITLE to UCS-4, and predict the cursor position by
46541 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
46543 * kern/misc.c (grub_utf16_to_utf8): Likewise.
46545 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46547 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
46548 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
46551 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
46552 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
46553 grub_strcpy and grub_strlen. Take it into account that a space
46554 character is inserted as a delimiter.
46556 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46558 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
46559 invalid magic in the error.
46561 * commands/search.c: New file.
46563 * util/grub-emu.c (main): Call grub_search_init and
46566 * kern/rescue.c (grub_rescue_print_disks): Removed.
46567 (grub_rescue_print_devices): New function.
46568 (grub_rescue_cmd_ls): Use grub_device_iterate with
46569 grub_rescue_print_devices instead of grub_disk_dev_iterate with
46570 grub_rescue_print_disks.
46572 * kern/partition.c (grub_partition_iterate): Return the result of
46573 PARTMAP->ITERATE instead of GRUB_ERRNO.
46575 * kern/device.c: Include grub/partition.h.
46576 (grub_device_iterate): New function.
46578 * include/grub/partition.h (grub_partition_iterate): Return int
46579 instead of grub_err_t.
46581 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
46583 [GRUB_UTIL] (grub_search_fini): Likewise.
46585 * include/grub/device.h (grub_device_iterate): New prototype.
46587 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46589 (pkgdata_MODULES): Added search.mod.
46590 (search_mod_SOURCES): New variable.
46591 (search_mod_CFLAGS): Likewise.
46593 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
46594 (pkgdata_MODULES): Added search.mod.
46595 (search_mod_SOURCES): New variable.
46596 (search_mod_CFLAGS): Likewise.
46598 * commands/ls.c (grub_ls_list_disks): Renamed to ...
46599 (grub_ls_list_devices): ... this, and use grub_device_iterate.
46600 All callers changed.
46602 * DISTLIST: Added commands/search.c.
46604 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46606 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
46608 (grub_getcharwidth): New function.
46610 * kern/misc.c (grub_utf8_to_ucs4): New function.
46612 * include/grub/term.h (struct grub_term): Added a new member
46614 (grub_getcharwidth): New prototype.
46616 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
46618 * term/i386/pc/console.c (map_char): New function. Segregated from
46619 grub_console_putchar.
46620 (grub_console_putchar): Use map_char.
46621 (grub_console_getcharwidth): New function.
46622 (grub_console_term): Specified grub_console_getcharwidth as
46625 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
46626 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
46628 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
46630 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
46631 on grub_strtoul completely.
46632 (write_char): Declare local variables in the beginning of the
46634 (grub_vesafb_getcharwidth): New function.
46635 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
46638 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
46640 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
46641 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
46642 commands/i386/pc/vbetest.c.
46644 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
46645 call grub_vbe_get_controller_info again, because the returned
46646 information is volatile.
46647 (grub_vbe_set_video_mode): Mostly rewritten.
46648 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
46649 grub_vbe_status_t correctly.
46650 (grub_vbe_get_video_mode_info): Likewise.
46651 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
46652 several if statements.
46654 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
46655 * commands/i386/pc/vbeinfo.c: ... this.
46657 * commands/i386/pc/vbe_test.c: Renamed to ...
46658 * commands/i386/pc/vbetest.c: ... this.
46660 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
46662 (grub_cmd_vbeinfo): ... this. Save video modes before
46663 iterating. Skip a video mode, if it is not available, not enough
46664 information is given or it is monochrome. Show the memory
46665 model. Leave the interpretation of MODEVAR to grub_strtoul
46667 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
46668 (GRUB_MOD_FINI): Likewise.
46670 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
46671 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
46672 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
46673 duplicated grub_env_get. Leave the interpretation of MODEVAR to
46674 grub_strtoul completely.
46675 (real2pm): Removed.
46676 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
46677 (GRUB_MOD_FINI): Likewise.
46679 * normal/misc.c: Include grub/mm.h.
46681 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
46682 vbe_list_modes with vbetest.mod and vbeinfo.mod.
46683 (vbe_list_modes_mod_SOURCES): Removed.
46684 (vbe_list_modes_mod_CFLAGS): Likewise.
46685 (vbe_test_mod_SOURCES): Likewise.
46686 (vbe_test_mod_CFLAGS): Likewise.
46687 (vbeinfo_mod_SOURCES): New variable.
46688 (vbeinfo_mod_CFLAGS): Likewise.
46689 (vbetest_mod_SOURCES): Likewise.
46690 (vbetest_mod_CFLAGS): Likewise.
46692 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
46694 * normal/misc.c: New file.
46696 * DISTLIST: Added normal/misc.c.
46698 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
46699 DISK to HOOK. Call HOOK with DISK.
46700 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46701 * partmap/pc.c (pc_partition_map_iterate): Likewise.
46702 * partmap/sun.c (sun_partition_map_iterate): Likewise.
46704 * normal/menu_entry.c (struct screen): Added a new member
46705 "completion_shown".
46706 (completion_buffer): New global variable.
46707 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
46708 (store_completion): New function.
46709 (complete): Likewise.
46710 (clear_completions): Likewise.
46711 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
46712 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
46713 a tab, call complete.
46715 * normal/completion.c (disk_dev): Removed.
46716 (print_simple_completion): Likewise.
46717 (print_partition_completion): Likewise.
46718 (print_func): New global variable.
46719 (add_completion): Do not take the arguments WHAT or PRINT any
46720 longer. Added a new argument TYPE. Instead of printing directly,
46721 call PRINT_FUNC if not NULL.
46722 All callers changed.
46723 (complete_device): Use a local variable DEV instead of
46724 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
46725 (grub_normal_do_completion): Take a new argument HOOK. Do not
46726 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
46727 empty string, return NULL instead.
46728 All callers changed.
46730 * normal/cmdline.c (print_completion): New function.
46732 * kern/partition.c (grub_partition_iterate): Add an argument DISK
46734 All callers changed.
46736 * kern/disk.c (grub_print_partinfo): Removed.
46738 * include/grub/partition.h (struct grub_partition_map): Add a new
46739 argument DISK into HOOK of ITERATE.
46740 (grub_partition_iterate): Add a new argument DISK to HOOK.
46742 * include/grub/normal.h (enum grub_completion_type): New enum.
46743 (grub_completion_type_t): New type.
46744 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
46745 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
46746 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
46747 (GRUB_COMPLETION_TYPE_FILE): Likewise.
46748 (grub_normal_do_completion): Added a new argument HOOK.
46749 (grub_normal_print_device_info): New prototype.
46751 * include/grub/disk.h (grub_print_partinfo): Removed.
46753 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
46754 (normal_mod_SOURCES): Likewise.
46755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46756 (normal_mod_SOURCES): Likewise.
46758 * commands/ls.c (grub_ls_list_disks): Use
46759 grub_normal_print_device_info instead of grub_print_partinfo. Free
46761 (grub_ls_list_files): Use grub_normal_print_device_info instead of
46762 duplicating the code.
46764 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46766 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
46767 follow GCS more precisely.
46768 * commands/i386/pc/vbe_test.c: Likewise.
46769 * include/grub/i386/pc/vbe.h: Likewise.
46770 * term/i386/pc/vesafb.c: Likewise.
46771 * video/i386/pc/vbe.c: Likewise.
46773 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46775 * DISTLIST: Added term/i386/pc/vesafb.c
46776 DISTLIST: Added video/i386/pc/vbe.c
46777 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
46778 DISTLIST: Added commands/i386/pc/vbe_test.c.
46779 * commands/i386/pc/vbe_list_modes.c: New file.
46780 * commands/i386/pc/vbe_test.c: Likewise.
46781 * term/i386/pc/vesafb.c: Likewise.
46782 * video/i386/pc/vbe.c: Likewise.
46783 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
46784 (grub_vbe_probe) Added prototype.
46785 (grub_vbe_set_video_mode) Likewise.
46786 (grub_vbe_get_video_mode) Likewise.
46787 (grub_vbe_get_video_mode_info) Likewise.
46788 (grub_vbe_set_pixel_rgb) Likewise.
46789 (grub_vbe_set_pixel_index) Likewise.
46790 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
46791 (pkgdata_MODULES): Added vesafb.mod.
46792 (pkgdata_MODULES): Added vbe_list_modes.mod.
46793 (pkgdata_MODULES): Added vbe_test.mod.
46794 (vbe_mod_SOURCES): Added.
46795 (vbe_mod_CFLAGS): Likewise.
46796 (vesafb_mod_SOURCES): Likewise.
46797 (vesafb_mod_CFLAGS): Likewise.
46798 (vbe_list_modes_mod_SOURCES): Likewise.
46799 (vbe_list_modes_mod_CFLAGS): Likewise.
46800 (vbe_test_mod_SOURCES): Likewise.
46801 (vbe_test_mod_CFLAGS): Likewise.
46803 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
46805 * normal/command.c (grub_command_execute): If INTERACTIVE is
46806 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
46807 CMDLINE. Disable the pager if INTERACTIVE is true.
46808 All callers are changed.
46810 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
46811 before reading a config file.
46812 * normal/main.c (read_config_file): Even if a command is not
46813 found, register it if it is within an entry.
46815 * util/grub-emu.c: Include sys/types.h and unistd.h.
46816 (options): Added --hold.
46817 (struct arguments): Added a new member "hold".
46818 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
46820 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
46821 cleared by a debugger, if it is not zero.
46823 * include/grub/normal.h (grub_command_execute): Add an argument
46826 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
46828 * DISTLIST: Added include/grub/i386/pc/vbe.h.
46830 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
46832 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
46833 program with another one, because the old one didn't detect a bug
46834 in gcc-3.4. Always use regparm 2, because the new test is still
46835 not enough for gcc-4.0. Someone must investigate a simple test
46836 case which detects a bug in gcc-4.0.
46838 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
46840 * DISTLIST: Added normal/completion.c.
46842 * normal/completion.c: New file.
46844 * term/i386/pc/console.c (grub_console_getwh): New function.
46845 (grub_console_term): Assign grub_console_getwh to getwh.
46847 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
46848 function is defined in normal/completion.c as
46849 grub_normal_do_completion.
46850 (grub_cmdline_get): Use grub_normal_do_completion instead of
46853 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
46854 returns non-zero, otherwise return 0.
46855 (grub_partition_iterate): First, probe the partition map. Then,
46856 call ITERATE only for this partition map.
46858 * kern/misc.c (grub_strncmp): Rewritten.
46860 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
46861 returns non-zero. Otherwise return 0.
46863 * include/grub/partition.h (grub_partition_map_iterate): Return
46864 int instead of void.
46866 * include/grub/normal.h (grub_normal_do_completion): New prototype.
46868 * include/grub/misc.h (grub_strncmp): Change the type of N to
46871 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
46874 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
46875 unsigned explicitly before comparing it with I.
46877 * kern/main.c (grub_env_write_root): Add the attribute unused into
46880 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46881 normal/completion.c.
46882 (normal_mod_SOURCES): Likewise.
46883 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
46884 (normal_mod_SOURCES): Likewise.
46886 * normal/command.c (grub_iterate_commands): If ITERATE returns
46887 non-zero, return one immediately.
46889 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
46891 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
46892 * kern/i386/pc/startup.S: Updated Global Descriptor table's
46894 (grub_vbe_get_controller_info): New function.
46895 (grub_vbe_get_mode_info): Likewise.
46896 (grub_vbe_set_mode): Likewise.
46897 (grub_vbe_get_mode): Likewise.
46898 (grub_vbe_set_memory_window): Likewise.
46899 (grub_vbe_get_memory_window): Likewise.
46900 (grub_vbe_set_scanline_length): Likewise.
46901 (grub_vbe_get_scanline_length): Likewise.
46902 (grub_vbe_set_display_start): Likewise.
46903 (grub_vbe_get_display_start): Likewise.
46904 (grub_vbe_set_palette_data): Likewise.
46905 * include/grub/i386/pc/vbe.h: New file.
46907 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46909 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
46910 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
46911 * DISTLIST: Likewise.
46912 * kern/ieee1275/of.c: Moved to ...
46913 * kern/ieee1275/ieee1275.c: ... here.
46915 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46917 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
46918 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
46919 Pass 0 as `end' parameter to grub_strtoul().
46921 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46923 * include/grub/powerpc/ieee1275/console.h: Do not include
46924 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
46926 (grub_console_cur_color): Remove i386-specific prototype.
46927 (grub_console_real_putchar): Likewise.
46928 (grub_console_checkkey): Likewise.
46929 (grub_console_getkey): Likewise.
46930 (grub_console_getxy): Likewise.
46931 (grub_console_gotoxy): Likewise.
46932 (grub_console_cls): Likewise.
46933 (grub_console_setcursor): Likewise.
46934 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
46935 Include <grub/machine/console.h>.
46936 * term/ieee1275/ofconsole.c: Likewise.
46938 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
46940 * Makefile.in (LIBLZO): New variable.
46942 * configure.ac: Check for LZO version 2.
46944 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
46945 lzo/lzo1x.h instead of lzo1x.h.
46947 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
46950 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
46951 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
46953 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
46954 copying the data from PARTITION to P.
46956 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46958 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
46959 negative, unload the module.
46961 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
46962 map is "pc_partition_map" but not "pc".
46963 (usage): Fix the description. The options are --boot-image and
46964 --core-image but not --boot-file or --core-file.
46965 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
46966 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
46969 * util/i386/pc/grub-install.in: Do not specify --boot-file or
46970 --core-file. Specify INSTALL_DEVICE as an argument.
46972 * util/console.c: Include config.h.
46973 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
46974 [HAVE_NCURSES_H]: Include ncurses.h.
46975 [HAVE_CURSES_H]: Include curses.h.
46976 [!A_NORMAL] (A_NORMAL): Defined as zero.
46977 [!A_STANDOUT] (A_STANDOUT): Likewise.
46979 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
46981 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
46983 * configure.ac: Check for curses libraries and headers.
46985 * Makefile.in (LIBCURSES): New variable.
46987 * genmk.rb (Script::rule): Set the executable bits.
46989 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
46990 name of the PC partition map is "pc_partition_map" but not "pc".
46992 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46994 * util/i386/pc/grub-install.in (grub_probefs): New variable.
46995 (modules): Likewise.
46996 (usage): Added descriptions for --modules and --grub-probefs.
46997 Handle --modules and --grub-probefs. Save the arguments in MODULES
46998 and GRUB_PROBEFS, respectively.
46999 Auto-detect a filesystem module against GRUBDIR. If the result is
47000 empty and modules are not specified explicitly, abort the
47001 installation. Add the result to MODULES.
47003 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
47004 disk/powerpc/ieee1275/ofdisk.c,
47005 include/grub/powerpc/ieee1275/init.h and
47006 term/powerpc/ieee1275/ofconsole.c.
47007 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
47008 term/ieee1275/ofconsole.c.
47010 * include/grub/powerpc/ieee1275/console.h: Resurrected.
47012 * COPYING: Upgraded to the latest version. Only the address of the
47013 FSF office has changed.
47015 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47017 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
47018 kern/ieee1275.c with kern/ieee1275/of.c.
47020 * kern/ieee1275.c: Moved to ...
47021 * kern/ieee1275/of.c: ... here.
47023 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
47025 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
47028 * config.guess: Updated to the latest version from gnulib.
47029 * config.sub: Likewise.
47030 * install.sh: Likewise.
47031 * mkinstalldirs: Likewise.
47033 * include/grub/console.h: Removed. This file is arch-specific. Do
47034 not put this in include/grub.
47036 * include/grub/i386/pc/console.h: Resurrected.
47038 * util/console.c: Include grub/machine/console.h instead of
47040 * util/grub-emu.c: Likewise.
47042 2005-08-04 Marco Gerards <metgerards@student.han.nl>
47044 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
47047 From Vincent Pelletier <subdino2004@yahoo.fr>
47048 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
47049 Redefined to use grub_getwh.
47050 (grub_term): New member named getwh.
47051 (grub_getwh): New prototype.
47052 * kern/term.c (grub_getwh): New function.
47053 * term/i386/pc/console.c (grub_console_getwh): New function.
47054 (grub_console_term): New member `getwh'.
47055 * term/i386/pc/vga.c (grub_vga_getwh): New function.
47056 (grub_vga_term): New member `getwh'.
47057 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
47059 (grub_ofconsole_getw): New function.
47060 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
47061 (grub_ofconsole_term): New field named getwh and new initial
47064 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
47066 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
47067 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
47068 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
47069 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
47070 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
47071 of <grub/machine/ieee1275.h>.
47072 * commands/ieee1275/reboot.c: Likewise.
47073 * boot/powerpc/ieee1275/ieee1275.c: Move ...
47074 * kern/ieee1275.c: ... to here. All users updated. Change all
47075 parameter structs to use new type `grub_ieee1275_cell_t'.
47076 * term/powerpc/ieee1275/ofconsole.c: Move ...
47077 * term/ieee1275/ofconsole.c: ... to here. All users updated.
47078 * disk/powerpc/ieee1275/ofdisk.c: Move ...
47079 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
47080 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
47082 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
47083 Remove unused prototypes. All users updated.
47084 * include/grub/powerpc/ieee1275/console.h: Removed.
47085 * include/grub/powerpc/ieee1275/ieee1275.h: Define
47086 `grub_ieee1275_cell_t'.
47087 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
47088 Cast comparisons with -1 to the correct type.
47089 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
47090 type to match `grub_ieee1275_entry_fn'.
47092 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
47094 * DISTLIST: Added util/i386/pc/grub-probefs.c.
47096 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
47097 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
47099 (grub_probefs_SOURCES): New variable.
47101 * util/i386/pc/grub-probefs.c: New file.
47103 * util/i386/pc/grub-setup.c (main): Call
47104 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
47105 grub_hfs_init and grub_jfs_init to initialize the system. Call
47106 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
47107 grub_pc_partition_map_fini to finish the system.
47109 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
47111 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
47113 (grub_multiboot_load_elf32): Likewise.
47114 (grub_multiboot_is_elf64): Likewise.
47115 (grub_multiboot_load_elf64): Likewise.
47116 (grub_multiboot_load_elf): Likewise.
47117 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
47118 an ELF32 or ELF64 file.
47119 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
47121 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
47122 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
47123 NULL before calling FS->LABEL.
47124 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
47125 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
47126 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
47127 before calling FS->LABEL.
47129 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
47131 * util/i386/pc/grub-install.in (datadir): New variable.
47133 (pkgdatadir): New variable.
47134 (pkglibdir): Removed.
47136 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
47138 * DISTLIST: Added util/i386/pc/grub-install.in.
47140 * util/i386/pc/grub-install.in: New file.
47142 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
47143 (grub_install_SOURCES): Likewise.
47145 * genmk.rb: Added support for scripts.
47146 (Script): New class.
47147 (scripts): New variable.
47149 * Makefile.in (install-local): Install sbin_SCRIPTS by
47151 (uninstall): Remove sbin_SCRIPTS.
47153 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
47154 device, try to get a GRUB device by
47155 grub_util_biosdisk_get_grub_dev.
47158 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
47159 description for --device-map.
47161 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
47163 Change the semantics of variable hooks. They now return strings
47164 instead of error values.
47166 * util/i386/pc/grub-setup.c: Include grub/env.h.
47167 (setup): Use grub_device_set_root instead of grub_env_set.
47169 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
47170 grub_env_get instead of grub_device_set_root and
47171 grub_device_get_root, respectively.
47173 * kern/main.c (grub_env_write_root): New function.
47174 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
47175 grub_env_set instead of grub_device_set_root.
47177 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
47179 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
47180 rather than calling ENV->WRITE_HOOK afterwards.
47181 (grub_env_get): Return the result of ENV->READ_HOOK rather than
47182 passing a pointer of a pointer.
47183 (grub_register_variable_hook): Change the types of "read_hook" and
47184 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
47186 Allocate the default empty string on the heap, because this string
47187 may be freed later.
47189 * kern/device.c: Include grub/env.h.
47190 (grub_device_set_root): Removed.
47191 (grub_device_get_root): Likewise.
47192 (grub_device_open): Use grub_env_get instead of
47193 grub_device_get_root.
47195 * include/grub/env.h (grub_env_read_hook_t): New type.
47196 (grub_env_write_hook_t): Likewise.
47197 (grub_env_var): Change the types of "read_hook" and "write_hook"
47198 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
47199 (grub_register_variable_hook): Likewise.
47201 * include/grub/device.h (grub_device_set_root): Removed.
47202 (grub_device_set_root): Likewise.
47204 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
47205 make sure that DIRNAME terminates with '/', so that
47206 grub_fat_find_dir will fail if PATH is not a directory.
47208 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
47210 Use the qualifier auto for print_files and print_files_long.
47211 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
47213 Put a newline only if there is no error.
47214 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
47217 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
47219 * kern/partition.c (grub_partition_probe): Initialize PART to
47220 NULL. Otherwise, when no partition map is registered, this returns
47223 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
47225 * partmap/apple.c (apple_partition_map_iterate): Check if POS
47226 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
47229 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
47231 * commands/ls.c (grub_ls_list_disks): Print the filesystem
47232 information on each device, if it does not have partitions. Print
47233 "Device" instead of "Disk", because this function is not specific
47236 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
47237 static to ensure that it is put on the memory rather than a
47240 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47242 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
47243 (grub_cat_init): Likewise.
47244 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
47245 (options): Likewise.
47246 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
47247 (grub_configfile_init): Likewise.
47248 * font/manager.c (GRUB_MOD_INIT): Likewise.
47249 * commands/help.c (GRUB_MOD_INIT): Likewise.
47250 (grub_help_init): Likewise.
47251 * normal/command.c (grub_command_init): Likewise.
47252 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
47253 * disk/loopback.c (grub_loop_init): Likewise.
47254 (GRUB_MOD_INIT): Likewise.
47255 * commands/ls.c (grub_ls_init): Likewise.
47256 (GRUB_MOD_INIT): Likewise.
47257 (options): Likewise.
47258 * commands/boot.c (grub_boot_init): Likewise.
47259 (GRUB_MOD_INIT): Likewise.
47260 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
47261 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
47262 (GRUB_MOD_INIT): Likewise.
47263 * commands/cmp.c (grub_cmp_init): Likewise.
47264 (GRUB_MOD_INIT): Likewise.
47266 * normal/arg.c: Use <> instead of "" to include header files.
47267 (SHORT_ARG_HELP): New macro.
47268 (SHORT_ARG_USAGE): Likewise.
47269 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
47270 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
47272 (find_short): Check if C is 'h' or 'u' explicitly.
47273 (grub_arg_show_help): Use space characters instead of tabs. Treat
47274 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
47275 are shown with --help and --usage only if they are not used for
47276 the command itself.
47277 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
47280 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
47281 const into "longarg". Change the type of "shortarg" to int.
47283 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47285 * boot/i386/pc/boot.S (boot_drive_check): New label.
47287 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
47290 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
47291 which do not pass a boot drive correctly. Copied from GRUB Legacy.
47293 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47295 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
47296 When turning off Gate A20, skip the check and return immediately,
47297 because this is not fatal usually.
47299 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47301 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
47302 be 0x7C00 instead of 0x8000.
47304 * boot/i386/pc/pxeboot.S: Rewritten.
47306 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
47308 (gate_a20_check_state): Read a byte from 0x108000. Invert the
47311 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
47313 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
47314 robustness. This routine now supports a BIOS call and System
47315 Control Port A to modify the gate A20.
47317 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
47318 Increased to 0x440.
47320 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
47322 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
47323 device path and resulting ihandle.
47324 (grub_ofdisk_close): dprintf the ihandle being closed.
47325 (grub_ofdisk_read): dprintf function parameters.
47326 * kern/mm.c (grub_mm_init_region): Likewise.
47327 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
47328 (grub_linux_boot): dprintf the Linux entry point, initrd address and
47329 size, and boot arguments.
47330 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
47331 before loading into memory.
47332 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
47333 before loading into memory.
47335 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
47337 * kern/mm.c: Added much documentation.
47338 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
47339 8, set to 5 instead of 8.
47341 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
47343 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
47345 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
47346 (grub_mkdevicemap_SOURCES): New variable.
47348 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
47349 lib/device.c of GRUB Legacy.
47351 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
47353 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
47354 instead of PATH is NULL.
47356 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
47358 * commands/cmp.c (BUFFER_SIZE): New macro.
47359 (grub_cmd_cmp): Close the right file at the right time. Compare
47360 only data just read. Don't report files of different size as
47361 identical. Dynamically allocate buffers. Move variable
47362 declarations at the beginning of function.
47364 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
47366 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
47369 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
47371 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
47372 when backspace is pressed at beginning of line.
47374 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
47376 * DISTLIST: Added genfslist.sh.
47378 * normal/main.c (fs_module_list): New variable.
47379 (autoload_fs_module): New function.
47380 (read_fs_list): Likewise.
47381 (grub_normal_execute): Call read_fs_list.
47383 * kern/fs.c (grub_fs_autoload_hook): New variable.
47384 (grub_fs_probe): Added support for auto-loading.
47386 * include/grub/normal.h (struct grub_fs_module_list): New struct.
47387 (grub_fs_module_list_t): New type.
47389 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
47390 (grub_fs_autoload_hook): New prototype.
47392 * genfslist.sh: New file.
47394 * genmk.rb: Added a rule to generate a filesystem list.
47396 2005-06-30 Marco Gerards <metgerards@student.han.nl>
47398 * configure.ac: Fix the test for cross-compiling.
47400 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
47401 define GRUB_UTIL anymore.
47403 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
47404 so this function works on other systems than just big endian.
47405 (load_modules): Likewise.
47406 (add_segments): Likewise.
47408 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
47410 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
47411 contains `l' modifier, get a long from va_arg().
47413 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
47415 * kern/mm.c (grub_free): If the next free block which is being
47416 merged is the first free block, set the first block to the block
47418 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
47420 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
47422 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
47423 `grub_ieee1275_chosen'.
47425 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
47427 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
47428 (grub_ieee1275_chosen): New variable.
47429 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
47431 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
47432 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
47433 Rename first argument to `phandle' for consistency.
47434 (grub_ieee1275_get_property_length): Likewise.
47435 (grub_ieee1275_next_property): Likewise. Change type of first argument
47436 to grub_ieee1275_phandle_t.
47437 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
47438 Move export next to declaration.
47439 (grub_ieee1275_chosen): New variable.
47440 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
47441 Correct cosmetic typo.
47442 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
47443 `grub_ieee1275_chosen'.
47444 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
47445 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
47446 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
47447 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
47448 `grub_ieee1275_chosen'.
47450 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
47452 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
47454 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
47455 /chosen/bootargs as "variable=value" pairs.
47457 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
47459 * include/grub/misc.h (grub_dprintf): New macro.
47460 (grub_real_dprintf): New prototype.
47461 (grub_strword): Likewise.
47462 (grub_iswordseparator): Likewise.
47463 * kern/misc.c (grub_real_dprintf): New function.
47464 (grub_strword): Likewise.
47465 (grub_iswordseparator): Likewise.
47467 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
47469 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
47470 (roundup): Remove macro.
47471 (grub_ieee1275_flags): Make static.
47472 (grub_ieee1275_realmode): Remove.
47473 (grub_ieee1275_test_flag): New function.
47474 (grub_ieee1275_set_flag): Likewise.
47475 (find_options): Rename to `grub_ieee1275_find_options'; update
47476 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
47477 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
47478 (cmain): New prototype.
47479 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
47480 `grub_ieee1275_flags' directly.
47481 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
47482 machine/biosdisk.h.
47483 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
47484 Don't include grub/machine/init.h.
47485 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
47486 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
47488 (grub_ieee1275_realmode): Likewise.
47489 (grub_ieee1275_flag): New enum.
47490 (grub_ieee1275_test_flag): New prototype.
47491 (grub_ieee1275_set_flag): New prototype.
47492 * include/grub/powerpc/ieee1275/init.h: Remove file.
47493 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
47494 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
47495 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
47496 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
47498 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
47499 `grub_ieee1275_test_flag'.
47500 (grub_ieee1275_encode_devname): Likewise.
47502 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
47504 * include/grub/powerpc/ieee1275/ieee1275.h
47505 (grub_ieee1275_encode_devname): New prototype.
47506 (grub_ieee1275_get_filename): Likewise.
47507 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
47509 (grub_set_prefix): Likewise.
47510 (grub_machine_init): Call grub_set_prefix.
47511 * kern/powerpc/ieee1275/openfw.c: Fix typos.
47512 (grub_parse_type): New enum.
47513 (grub_ieee1275_get_devargs): New function.
47514 (grub_ieee1275_get_devname): Likewise.
47515 (grub_ieee1275_parse_args): Likewise.
47516 (grub_ieee1275_get_filename): Likewise.
47517 (grub_ieee1275_encode_devname): Likewise.
47519 2005-03-30 Marco Gerards <metgerards@student.han.nl>
47521 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
47522 `grub_loader_unset'.
47524 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
47526 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
47527 instead of grub_ieee1275_interpret.
47528 (grub_halt_init): New function.
47529 (grub_halt_fini): Likewise.
47530 (GRUB_MOD_INIT): Correct message grammar.
47531 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
47532 instead of grub_ieee1275_interpret.
47533 (grub_reboot_init): New function.
47534 (grub_reboot_fini): Likewise.
47535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
47536 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
47537 util/i386/pc/misc.c with commands/ieee1275/halt.c,
47538 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
47539 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
47541 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
47543 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
47545 (grub_halt): Likewise.
47546 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
47547 (cmain): Remove __attribute__((unused)).
47548 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
47549 (grub_heap_len): Likewise.
47550 (grub_machine_fini): New function.
47551 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
47552 (grub_halt): Likewise.
47553 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
47555 * util/powerpc/ieee1275/misc.c: New file.
47557 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47559 * DISTLIST: New file.
47560 * gendistlist.sh: Likewise.
47562 * Makefile.in (COMMON_DISTFILES): Removed.
47563 (BOOT_DISTFILES): Likewise.
47564 (CONF_DISTFILES): Likewise.
47565 (DISK_DISTFILES): Likewise.
47566 (FS_DISTFILES): Likewise.
47567 (INCLUDE_DISTFILES): Likewise.
47568 (KERN_DISTFILES): Likewise.
47569 (LOADER_DISTFILES): Likewise.
47570 (TERM_DISTFILES): Likewise.
47571 (UTIL_DISTFILES): Likewise.
47572 (DISTFILES): Likewise.
47573 (uninstall): Uninstall files in $(pkgdata_DATA).
47574 (DISTLIST): New target.
47575 (distdir): Use the contents of the file DISTLIST to get a list of
47578 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47580 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
47581 descriptor. This is ported from GRUB Legacy.
47583 * gencmdlist.sh: Added an extra semicolon to make it work with
47584 old sed versions. Reported by Robert Bihlmeyer
47585 <robbe@orcus.priv.at>.
47587 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
47589 Automatic loading of commands is supported.
47591 * normal/main.c (read_command_list): New function.
47592 (grub_normal_execute): Call read_command_list.
47594 * normal/command.c (grub_register_command): Return zero or CMD.
47595 Allocate CMD->NAME from the heap.
47596 Initialize CMD->MODULE_NAME to zero.
47597 Find the same name as well. If the same command is found and it is
47598 a dummy command, overwrite members. If it is not a dummy command,
47600 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
47601 (grub_command_find): If a dummy command is found, load a module
47602 and retry to find a command only once.
47604 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
47605 make sure that each command is loaded.
47607 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
47609 (struct grub_command): Remove const from the member `name'.
47610 Add a new member `module_name'.
47611 (grub_register_command): Return grub_command_t.
47613 * commands/help.c (grub_cmd_help): Call grub_command_find to make
47614 sure that each command is loaded.
47616 * genmk.rb (PModule::rule): Specify a module name without the
47617 suffix ".mod" to gencmdlist.sh.
47619 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47621 * gencmdlist.sh: New file.
47623 * genmk.rb (PModule::rule): Generate a rule for a command list.
47625 Generate command.lst from $(COMMANDFILES).
47627 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
47628 (DATA): Added $(pkgdata_DATA).
47629 (install-local): Install files in $(pkgdata_DATA).
47631 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47633 * term/i386/pc/vga.c (debug_command): Removed.
47634 (GRUB_MOD_INIT): Do not register the command "debug".
47636 From Hollis Blanchard:
47637 * commands/configfile.c: New file.
47638 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47639 commands/configfile.c.
47640 (pkgdata_MODULES): Added configfile.mod.
47641 (configfile_mod_SOURCES): New variable.
47642 (configfile_mod_CFLAGS): Likewise.
47643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47644 commands/configfile.c.
47645 (pkgdata_MODULES): Added configfile.mod.
47646 (configfile_mod_SOURCES): New variable.
47647 (configfile_mod_CFLAGS): Likewise.
47648 * util/grub-emu.c (main): Call grub_configfile_init and
47649 grub_configfile_fini.
47650 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
47652 [GRUB_UTIL] (grub_configfile_fini): Likewise.
47654 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47656 * normal/arg.c (grub_arg_show_help): Do not show the bug report
47659 * commands/help.c (grub_cmd_help): Do not print newlines after
47660 the last command in print_command_help.
47662 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47664 * commands/default.h: New file.
47665 * commands/timeout.h: Likewise.
47666 * normal/context.c: Likewise.
47668 * util/misc.c: Do not include sys/times.h.
47669 Include sys/time.h and grub/machine/time.h.
47670 (grub_get_rtc): Rewritten with gettimeofday.
47672 * util/grub-emu.c (main): Call grub_default_init and
47673 grub_timeout_init before grub_normal_init, and call
47674 grub_timeout_fini and grub_default_fini after grub_main.
47676 * util/console.c (grub_ncurses_checkkey): Return the read
47679 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
47682 * normal/main.c (read_config_file): Push MENU. If this fails,
47683 print an error and wait for a user input.
47684 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
47685 If a menu is empty or an error occurs, pop MENU.
47686 (grub_normal_execute): Pop and free MENU after grub_menu_run
47689 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
47691 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
47693 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47695 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
47697 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47700 * include/grub/normal.h (struct grub_menu_list): New struct.
47701 (grub_menu_list_t): New type.
47702 (struct grub_context): New struct.
47703 (grub_context_t): New type.
47704 (grub_register_command): Got rid of EXPORT_FUNC.
47705 (grub_unregister_command): Likewise.
47706 (grub_context_get): New prototype.
47707 (grub_context_get_current_menu): Likewise.
47708 (grub_context_push_menu): Likewise.
47709 (grub_context_pop_menu): Likewise.
47710 [GRUB_UTIL] (grub_default_init): Likewise.
47711 [GRUB_UTIL] (grub_default_fini): Likewise.
47712 [GRUB_UTIL] (grub_timeout_init): Likewise.
47713 [GRUB_UTIL] (grub_timeout_fini): Likewise.
47715 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
47716 commands/timeout.c and normal/context.c.
47717 (pkgdata_MODULES): Added default.mod and timeout.mod.
47718 (normal_mod_SOURCES): Added normal/context.c.
47719 (default_mod_SOURCES): New variable.
47720 (default_mod_CFLAGS): Likewise.
47721 (timeout_mod_SOURCES): Likewise.
47722 (timeout_mod_CFLAGS): Likewise.
47723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
47725 (pkgdata_MODULES): Added default.mod and timeout.mod.
47726 (normal_mod_SOURCES): Added normal/context.c.
47727 (default_mod_SOURCES): New variable.
47728 (default_mod_CFLAGS): Likewise.
47729 (timeout_mod_SOURCES): Likewise.
47730 (timeout_mod_CFLAGS): Likewise.
47732 * Makefile.in (all-local): Added $(MKFILES).
47734 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
47736 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
47737 (grub_emu_SOURCES): Likewise.
47738 (pkgdata_MODULES): Add `sun.mod'.
47739 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47740 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47742 (pkgdata_MODULES): Add `sun.mod'.
47743 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47744 * include/grub/partition.h (grub_sun_partition_map_init): New
47746 (grub_sun_partition_map_fini): Likewise.
47747 * partmap/sun.c: New file.
47748 * util/grub-emu.c (main): Initialize and de-initialize the sun
47749 partitionmap support.
47751 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
47753 This implements an Emacs-like menu entry editor.
47755 * normal/menu_entry.c: New file.
47757 * util/console.c (grub_ncurses_putchar): Translate some Unicode
47758 characters to ASCII.
47759 (saved_char): New variable.
47760 (grub_ncurses_checkkey): Rewritten completely.
47761 (grub_ncurses_getkey): Likewise.
47762 (grub_ncurses_init): Call raw instead of cbreak.
47764 * normal/menu.c (print_entry): Do not put a space.
47765 (init_page): Renamed to ...
47766 (grub_menu_init_page): ... this. All callers changed.
47767 (edit_menu_entry): Removed.
47768 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
47770 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
47772 * kern/misc.c (grub_vprintf): Call grub_refresh.
47774 * normal/menu.c (DISP_LEFT): Renamed to ...
47775 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
47776 * normal/menu.c (DISP_UP): Renamed to ...
47777 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
47778 * normal/menu.c (DISP_RIGHT): Renamed to ...
47779 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
47780 * normal/menu.c (DISP_DOWN): Renamed to ...
47781 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
47782 * normal/menu.c (DISP_HLINE): Renamed to ...
47783 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
47784 * normal/menu.c (DISP_VLINE): Renamed to ...
47785 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
47786 * normal/menu.c (DISP_UL): Renamed to ...
47787 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
47788 * normal/menu.c (DISP_UR): Renamed to ...
47789 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
47790 * normal/menu.c (DISP_LL): Renamed to ...
47791 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
47792 * normal/menu.c (DISP_LR): Renamed to ...
47793 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
47794 * normal/menu.c (TERM_WIDTH): Renamed to ...
47795 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
47796 * normal/menu.c (TERM_HEIGHT): Renamed to ...
47797 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
47798 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
47799 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
47800 * normal/menu.c (TERM_MARGIN): Renamed to ...
47801 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
47802 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
47803 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
47804 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
47805 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
47806 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
47807 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
47808 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
47809 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
47810 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
47811 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
47812 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
47813 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
47814 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
47815 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
47816 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
47817 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
47818 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
47819 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
47820 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
47821 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
47822 All callers changed.
47824 * include/grub/normal.h: New prototype.
47826 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47827 normal/menu_entry.c.
47828 (normal_mod_SOURCES): Likewise.
47829 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47830 (normal_mod_SOURCES): Likewise.
47832 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
47834 * include/grub/normal.h (grub_halt_init): New prototype.
47835 (grub_halt_fini): Likewise.
47836 (grub_reboot_init): Likewise.
47837 (grub_reboot_fini): Likewise.
47839 * util/grub-emu.c: Include signal.h.
47840 (main_env): New global variable.
47841 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
47843 (grub_machine_fini): New function.
47844 (main): Call grub_halt_init and grub_reboot_init before
47845 grub_main, and grub_reboot_fini and grub_halt_fini after it.
47846 Call setjmp with MAIN_ENV to go back afterwards.
47847 Call grub_machine_fini right before return.
47849 * include/grub/util/misc.h: Include setjmp.h.
47850 (main_env): New prototype.
47852 * include/grub/kernel.h (grub_machine_fini): New prototype.
47853 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
47854 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
47856 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
47857 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
47858 * term/i386/pc/console.c (grub_console_fini): Likewise.
47860 * util/i386/pc/misc.c: New file.
47862 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47863 util/i386/pc/misc.c, commands/i386/pc/halt.c and
47864 commands/i386/pc/reboot.c.
47866 2005-02-14 Guillem Jover <guillem@hadrons.org>
47868 * include/grub/dl.h (grub_dl_check_header): New prototype.
47869 (grub_arch_dl_check_header): Change return type to grub_err_t,
47870 remove size parameter and export function. Update all callers.
47871 * kern/dl.c (grub_dl_check_header): New function.
47872 (grub_dl_load_core): Use `grub_dl_check_header' instead of
47873 `grub_arch_dl_check_header'. Check ELF type. Check if sections
47874 are inside the core.
47875 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
47876 independent ELF header checks.
47877 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
47878 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
47879 `grub_dl_check_header' instead of explicit checks. Check for the
47881 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
47882 `grub_dl_check_header' instead of explicit checks. Remove arch
47883 specific ELF header checks.
47885 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
47888 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
47890 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
47891 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
47893 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
47895 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
47896 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
47897 (part_map_iterate): Clear `grub_errno' and return 0 if
47898 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
47899 * partmap/amiga.c (amiga_partition_map_iterate): Return
47900 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
47901 * partmap/apple.c (apple_partition_map_iterate): Likewise.
47903 2005-02-01 Guillem Jover <guillem@hadrons.org>
47905 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
47908 2005-01-31 Marco Gerards <metgerards@student.han.nl>
47910 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
47912 (grub_rescue_cmd_linux): New prototype.
47913 (grub_rescue_cmd_initrd): Likewise.
47914 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
47916 (grub_linux_release_mem): Release the memory for the initrd.
47917 (grub_load_linux): Renamed from this...
47918 (grub_rescue_cmd_linux): ...To this. Changed all callers.
47919 Changed `entry' not to be static. Loop over memory regions to
47920 find another one when the default fails.
47921 (grub_rescue_cmd_initrd): New function.
47922 (grub_linux_init): Remove function.
47923 (grub_linux_fini): Likewise.
47924 (GRUB_MOD_INIT): Register `initrd'.
47925 (GRUB_MOD_FINI): Unregister `initrd'.
47926 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
47928 (grub_linux_normal_fini): Likewise.
47929 (GRUB_MOD_INIT): Register `initrd'.
47930 (GRUB_MOD_FINI): Unregister `initrd'.
47932 2005-01-31 Marco Gerards <metgerards@student.han.nl>
47934 * commands/help.c: New file.
47935 * normal/arg.c (show_help): Renamed to...
47936 (grub_arg_show_help): ... this.
47937 * commands/i386/pc/halt.c: New file.
47938 * commands/i386/pc/reboot.c: Likewise.
47939 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
47940 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
47941 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
47942 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
47944 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47946 (pkgdata_MODULES): Add `help.mod'.
47947 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
47948 * grub/i386/pc/init.h (grub_reboot): New prototype.
47949 (grub_halt): Likewise.
47950 * include/grub/normal.h (grub_arg_show_help): New prototype.
47951 (grub_help_init): Likewise.
47952 (grub_help_fini): Likewise.
47953 * util/grub-emu.c (main): Initialize and deinitialize the help
47956 * normal/cmdline.c (grub_cmdline_get): Doc fix.
47958 * normal/command.c (grub_command_init): Fixed the description of
47959 the `set' and `unset' commands.
47961 2005-01-31 Marco Gerards <metgerards@student.han.nl>
47963 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
47965 * commands/ieee1275/halt.c: New file.
47966 * commands/ieee1275/reboot.c: Likewise.
47967 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
47968 `__attribute__ ((unused))'. Some GCS related fixed.
47969 (grub_suspend_init) [GRUB_UTIL]: Function removed.
47970 (grub_suspend_fini): Likewise.
47971 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
47973 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
47974 (halt_mod_CFLAGS): New variables.
47975 * include/grub/powerpc/ieee1275/ieee1275.h
47976 (grub_ieee1275_interpret): New prototype.
47978 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
47980 * include/grub/misc.h (memmove): New prototype.
47981 (memcpy): Likewise.
47983 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
47985 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
47986 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
47988 2005-01-22 Marco Gerards <metgerards@student.han.nl>
47990 * kern/misc.c (grub_strndup): Function rewritten.
47992 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
47994 * normal/menu.c (TERM_WIDTH): Macro redefined.
47995 (TERM_TOP_BORDER_Y): Likewise.
47996 (draw_border): Replaced while-loop by a for-loop. Make the number
47997 of lines consistent with the number of lines displayed in
47998 print_entries. Added a margin below the rectangle.
47999 (print_entry): Make the entry fit in the rectangle.
48000 (print_entries): Display the scroll arrows next to the right
48003 2005-01-21 Marco Gerards <metgerards@student.han.nl>
48005 * fs/minix.c (grub_minix_find_file): Reserve more space for
48006 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
48007 `grub_strncpy' to copy `path' into it.
48009 2005-01-21 Marco Gerards <metgerards@student.han.nl>
48011 Add the loopback device, a device via which files can be accessed
48014 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
48015 (pkgdata_MODULES): Add loopback.mod.
48016 (loopback_mod_SOURCES): New variable.
48017 (loopback_mod_CFLAGS): Likewise.
48018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48020 (pkgdata_MODULES): Add loopback.mod.
48021 (loopback_mod_SOURCES): New variable.
48022 (loopback_mod_CFLAGS): Likewise.
48023 * disk/loopback.c: new file.
48024 * include/grub/normal.h (grub_loop_init): New prototype.
48025 (grub_loop_fini): New prototype.
48026 * util/grub-emu.c (main): Initialize and de-initialize loopback
48028 * include/grub/disk.h (grub_disk_dev_id): Add
48029 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
48031 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
48033 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
48035 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
48036 (suspend_mod_SOURCES): New variable.
48037 (suspend_mod_CFLAGS): Likewise.
48038 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
48040 * commands/ieee1275/suspend.c: New file.
48042 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48044 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
48045 ((unused))' to `__attribute__ ((used))'.
48046 (GRUB_MOD_FINI): Likewise.
48047 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
48048 * genmk.rb (PModule): Assign space to common symbols when linking
48051 2005-01-20 Marco Gerards <metgerards@student.han.nl>
48053 * include/grub/mm.h (grub_mm_init_region): Change the type of the
48054 `unsigned' arguments to `grub_size_t'.
48055 (grub_malloc): Likewise.
48056 (grub_realloc): Likewise.
48057 (grub_memalign): Likewise.
48058 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
48059 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
48060 * util/misc.c (grub_malloc): Likewise.
48061 (grub_realloc): Likewise.
48062 * kern/mm.c (get_header_from_pointer): Change the casts to
48063 `unsigned' into a cast to `grub_size_t'.
48065 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
48066 point to `currnode' when `currnode' is changed.
48068 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
48069 Schottelius <nico-linux@schottelius.org>.
48071 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
48073 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
48074 (note_path): Remove variable.
48075 (GRUB_IEEE1275_NOTE_NAME): New macro.
48076 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
48077 (grub_ieee1275_note_hdr): New structure.
48078 (grub_ieee1275_note_desc): Likewise.
48079 (grub_ieee1275_note): Likewise.
48080 (load_note): Remove `dir' argument. All callers updated. Remove
48081 `note_img' and `path'. Do not load a file from `note_path'.
48082 Initialize a struct grub_ieee1275_note and write that to `out'.
48083 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
48085 2005-01-05 Marco Gerards <metgerards@student.han.nl>
48087 * util/misc.c (grub_util_read_image): Revert last change. It
48088 called `grub_util_read_at', which seeks from the beginning of the
48091 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
48093 * TODO: Add note about endianness in grub-mkimage.
48094 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
48096 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
48097 (grub_mkimage_SOURCES): New target.
48098 * include/grub/kernel.h (grub_start_addr): Remove variable.
48099 (grub_end_addr): Likewise.
48100 (grub_total_module_size): Likewise.
48101 (grub_kernel_image_size): Likewise.
48102 (GRUB_MODULE_MAGIC): New constant.
48103 (grub_module_info): New structure.
48104 (grub_arch_modules_addr): New prototype.
48105 (grub_get_end_addr): Remove prototype.
48106 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
48107 * include/grub/powerpc/ieee1275/kernel.h: New file.
48108 * include/grub/util/misc.h (grub_util_get_fp_size): New
48110 (grub_util_read_at): Likewise.
48111 (grub_util_write_image_at): Likewise.
48112 * kern/main.c (grub_get_end_addr): Remove function.
48113 (grub_load_modules): Call grub_arch_modules_addr instead of using
48114 grub_end_addr. Look for a grub_module_info struct in memory. Use
48115 the grub_module_info fields instead of calling grub_get_end_addr
48116 as loop conditions. Move grub_add_unused_region code here.
48117 (grub_add_unused_region): Remove function.
48118 * kern/i386/pc/init.c: Include grub/cache.h.
48119 (grub_machine_init): Remove call to grub_get_end_addr. Remove
48120 one call to add_mem_region.
48121 (grub_arch_modules_addr): New function.
48122 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
48123 (grub_total_module_size): Likewise.
48124 Include grub/machine/kernel.h.
48125 (grub_arch_modules_addr): New function.
48126 * util/grub-emu.c (grub_end_addr): Remove variable.
48127 (grub_total_module_size): Likewise.
48128 (grub_arch_modules_addr): New function.
48129 * util/misc.c: Include unistd.h.
48130 (grub_util_get_fp_size): New function.
48131 (grub_util_read_at): Likewise.
48132 (grub_util_write_image_at): Likewise.
48133 (grub_util_read_image): Call grub_util_read_at.
48134 (grub_util_write_image): Call grub_util_write_image_at.
48135 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
48136 additional memory in kernel_img for a struct grub_module_info.
48137 Fill in that grub_module_info.
48138 * util/powerpc/ieee1275/grub-mkimage.c: New file.
48140 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
48142 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
48144 * include/grub/powerpc/ieee1275/ieee1275.h
48145 (grub_ieee1275_milliseconds): New prototype.
48146 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
48148 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
48149 grub_ieee1275_milliseconds.
48151 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
48153 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
48155 (find_options): New function.
48156 (cmain): Call find_options.
48157 * include/grub/powerpc/ieee1275/ieee1275.h
48158 (grub_ieee1275_realmode): New extern variable.
48159 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
48160 grub_map if grub_ieee1275_realmode is false.
48162 2004-12-29 Marco Gerards <metgerards@student.han.nl>
48164 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
48165 lines are inserted and make it work like readline. Reported by
48166 Vincent Pelletier <subdino2004@yahoo.fr>.
48168 2004-12-28 Marco Gerards <metgerards@student.han.nl>
48170 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
48172 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
48173 `kern/powerpc/cache.S'.
48175 2004-12-27 Marco Gerards <metgerards@student.han.nl>
48177 * genmk.rb: Handle the `Program' class in the main loop. Written
48178 by Johan Rydberg <jrydberg@gnu.org>.
48179 (Program): New class.
48180 (programs): New variable.
48181 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
48182 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
48183 instead of "grub/kernel.h". Include <grub/machine/init.h>.
48184 (help_arch): Function removed.
48185 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
48186 `powerpc/libgcc.h' and `loader.h'.
48187 (pkgdata_PROGRAMS): New variable.
48188 (sbin_UTILITIES): Variable removed.
48189 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
48190 (grubof_SOURCES): Variable re-defined so it only includes the
48191 core functionality.
48192 (grubof_CFLAGS): Remove `-DGRUBOF'.
48193 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
48194 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
48195 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
48196 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
48197 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
48198 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
48199 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
48200 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
48201 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
48202 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
48203 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48204 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
48205 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
48206 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
48207 (pc_mod_CFLAGS): New variables.
48208 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
48209 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
48210 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
48211 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
48213 * include/grub/i386/pc/init.h (grub_os_area_addr)
48214 (rub_os_area_size): ... to here.
48215 * include/grub/powerpc/ieee1275/ieee1275.h
48216 (grub_ieee1275_entry_fn): Export symbol.
48217 * include/grub/powerpc/ieee1275/init.h: New file.
48218 * include/grub/powerpc/libgcc.h: Likewise.
48219 * include/grub/cache.h: Likewise.
48220 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
48221 <hollis@penguinppc.org>.
48222 * kern/dl.c: Include <grub/cache.h>.
48223 (grub_dl_flush_cache): New function.
48224 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
48226 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
48227 (grub_console_init): Removed prototypes.
48228 (grub_machine_init): Don't initialize the modules anymore.
48229 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
48231 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
48232 Macro undef removed.
48233 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
48234 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
48235 relocation `R_PPC_REL32'. Return an error when the relocation is
48237 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
48238 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
48239 * util/misc.c (grub_arch_sync_caches): Likewise.
48241 2004-12-19 Marco Gerards <metgerards@student.han.nl>
48243 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
48244 `symlist.c', add `grubof_symlist.c'.
48245 (symlist.c): Variable removed.
48246 (grubof_HEADERS): Variable added.
48247 (grubof_symlist.c): New target.
48248 (kernel_syms.lst): Use `grubof_HEADERS' instead of
48249 `kernel_img_HEADERS'.
48250 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
48251 * kern/powerpc/dl.c: New file.
48252 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
48254 (grub_arch_dl_relocate_symbols): Likewise.
48255 (grub_register_exported_symbols): Likewise.
48257 2004-12-13 Marco Gerards <metgerards@student.han.nl>
48259 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
48260 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
48261 to fail instead. Reported by Vincent Pelletier
48262 <subdino2004@yahoo.fr>.
48264 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
48265 it is not allocated. Reported by Vincent Pelletier
48266 <subdino2004@yahoo.fr>.
48268 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
48269 output so the output looks better.
48271 2004-12-04 Marco Gerards <metgerards@student.han.nl>
48273 Modulize the partition map support and add support for the amiga
48276 * commands/ls.c: Include <grub/partition.h> instead of
48277 <grub/machine/partition.h>.
48278 * kern/disk.c: Likewise.
48279 * kern/rescue.c: Likewise.
48280 * loader/i386/pc/chainloader.c: Likewise.
48281 * normal/cmdline.c: Likewise.
48282 * kern/powerpc/ieee1275/init.c: Likewise.
48283 (grub_machine_init): Call `grub_pc_partition_map_init',
48284 `grub_amiga_partition_map_init' and
48285 `grub_apple_partition_map_init'.
48286 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
48287 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
48288 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
48289 `partition.h' and `pc_partition.h'.
48290 (grub_setup_SOURCES): Remove
48291 `disk/i386/pc/partition.c'. Add `kern/partition.c',
48292 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
48293 (grub_emu_SOURCES): Likewise.
48294 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
48295 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
48296 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
48297 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
48298 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
48299 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
48300 (grubof_SOURCES): Likewise.
48301 * disk/i386/pc/partition.c: File removed.
48302 * disk/powerpc/ieee1275/partition.c: Likewise.
48303 * include/grub/powerpc/ieee1275/partition.h: Likewise.
48304 * include/grub/i386/pc/partition.h: Likewise.
48305 * kern/partition.c: New file.
48306 * partmap/amiga.c: Likewise.
48307 * partmap/apple.c: Likewise.
48308 * partmap/pc.c: Likewise.
48309 * include/grub/partition.h: Likewise..
48310 * include/grub/pc_partition.h: Likewise.
48311 * util/grub-emu.c: Include <grub/partition.h> instead of
48312 <grub/machine/partition.h>.
48313 (main): Call `grub_pc_partition_map_init',
48314 `grub_amiga_partition_map_init' and
48315 `grub_apple_partition_map_init' and deinitialize afterwards.
48316 * util/i386/pc/biosdisk.c: Include `#include
48317 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
48318 `<grub/machine/partition.h>'.
48319 * util/i386/pc/grub-setup.c: Likewise.
48320 * util/i386/pc/biosdisk.c: Likewise.
48321 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
48322 partition information in case of a PC partition.
48323 * util/i386/pc/grub-setup.c: Include `#include
48324 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
48325 `<grub/machine/partition.h>'.
48326 (setup): Only access the PC specific partition information in case
48329 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
48331 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
48332 (grub_longjmp): Likewise.
48333 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
48335 * normal/powerpc/setjmp.S: New file.
48336 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
48337 `normal/powerpc/setjmp.S'.
48338 (grubof_CFLAGS): Add `-DGRUBOF'.
48339 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
48340 [GRUB_UTIL && !GRUBOF].
48342 2004-11-16 Marco Gerards <metgerards@student.han.nl>
48344 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
48345 property named `name'. Correctly handle the error returned by
48346 `grub_ieee1275_finddevice' if a device can not be opened.
48348 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
48350 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
48351 `actual' for negativity.
48352 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
48355 2004-11-01 Marco Gerards <metgerards@student.han.nl>
48357 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
48358 (PAGE_OFFSET): New macro.
48359 (CRTC_ADDR_PORT): Likewise.
48360 (CRTC_DATA_PORT): Likewise.
48361 (START_ADDR_HIGH_REGISTER): Likewise.
48362 (START_ADDR_LOW_REGISTER): Likewise.
48363 (GRAPHICS_ADDR_PORT): Likewise.
48364 (GRAPHICS_DATA_PORT): Likewise.
48365 (READ_MAP_REGISTER): Likewise.
48366 (INPUT_STATUS1_REGISTER): Likewise.
48367 (INPUT_STATUS1_VERTR_BIT): Likewise.
48368 (page): New variable.
48369 (wait_vretrace): New function.
48370 (set_read_map): Likewise.
48371 (set_start_address): Likewise.
48372 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
48374 (check_vga_mem): Take the page into account.
48375 (write_char): Likewise.
48376 (write_cursor): Likewise.
48377 (scroll_up): Likewise. Copy the page to the page that is not
48378 shown and switch between both pages.
48379 (grub_vga_putchar): Fix off by one error.
48380 (grub_vga_cls): Wait for the vertical retrace. Take the page into
48383 2004-11-01 Marco Gerards <metgerards@student.han.nl>
48385 Add support for iso9660 (including rockridge).
48387 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
48388 (iso9660_mod_SOURCES): New variable.
48389 (iso9660_mod_CFLAGS): Likewise.
48390 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
48391 * include/grub/fs.h (grub_iso9660_init): New prototype.
48392 * util/grub-emu.c (main): Call `grub_iso9660_init'.
48393 * fs/iso9660.c: New file.
48395 * include/grub/misc.h (grub_strncat): New prototype.
48396 * kern/misc.c (grub_strncat): New function.
48398 * fs/hfs.c (grub_hfs_mount): Translate the error
48399 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
48400 * fs/jfs.c (grub_jfs_mount): Likewise.
48401 * fs/ufs.c (grub_ufs_mount): Likewise.
48403 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
48405 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
48406 which initialized BAT registers.
48407 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
48408 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
48410 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
48411 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
48413 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
48414 (grub_mapclaim): Likewise.
48415 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
48416 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
48419 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
48421 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
48422 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
48423 -ffreestanding and -msoft-float.
48425 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
48427 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
48428 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
48429 set in grub_ieee1275_flags.
48431 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
48433 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
48435 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
48436 grub_console_init first.
48437 Change the memory range used for grub_ieee1275_claim and
48438 grub_mm_init_region.
48439 Print an error message if the claim fails.
48440 Include <grub/misc.h>.
48442 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
48444 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
48445 Call grub_children_iterate for device nodes of type `scsi',
48447 (grub_ofdisk_open): Remove manual device alias resolution.
48448 Fix memory leak when device cannot be opened.
48449 * include/grub/powerpc/ieee1275/ieee1275.h
48450 (grub_children_iterate): New prototype.
48451 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
48453 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
48454 Return -1 if args.size was -1.
48456 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
48458 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
48459 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
48460 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
48461 Open Firmware's memory for it; claim memory from _start to _end.
48462 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
48463 (_end): New extern.
48464 (_start): Zero BSS from __bss_start to _end.
48465 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
48467 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
48469 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
48471 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
48472 -1 if args.base was -1.
48474 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
48476 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
48477 escape sequence instead of a literal ^L. Also call
48478 grub_ofconsole_gotoxy.
48480 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
48482 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
48483 void * arguments to grub_addr_t. All callers updated. Also make
48484 the `result' argument optional.
48485 (grub_ieee1275_release): change void * arguments to grub_addr_t.
48486 All callers updated.
48488 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
48490 * commands/ls.c (grub_ls_list_files): Use the string following the
48491 initial ')', if present, as the filesystem path.
48492 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
48494 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
48496 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
48498 Make the source code of the menu interface more readable.
48500 * normal/menu.c: Include grub/mm.h.
48501 (TERM_WIDTH): New macro.
48502 (TERM_HEIGHT): Likewise.
48503 (TERM_INFO_HEIGHT): Likewise.
48504 (TERM_MARGIN): Likewise.
48505 (TERM_SCROLL_WIDTH): Likewise.
48506 (TERM_TOP_BORDER_Y): Likewise.
48507 (TERM_LEFT_BORDER_X): Likewise.
48508 (TERM_BORDER_WIDTH): Likewise.
48509 (TERM_MESSAGE_HEIGHT): Likewise.
48510 (TERM_BORDER_HEIGHT): Likewise.
48511 (TERM_NUM_ENTRIES): Likewise.
48512 (TERM_FIRST_ENTRY_Y): Likewise.
48513 (TERM_ENTRY_WIDTH): Likewise.
48514 (TERM_CURSOR_X): Likewise.
48515 (draw_border): Use macros instead of magic numbers.
48516 (print_entry): Likewise.
48517 (print_entries): Likewise.
48518 (run_menu): Likewise. Also, handle the key 'e'.
48519 (run_menu_entry): Ignore empty command lines.
48520 (print_message): Added a new argument EDIT. If EDIT is true,
48521 print a different message.
48522 (init_page): Likewise.
48523 (edit_menu_entry): New function. Not implemented yet.
48525 2004-09-17 Marco Gerards <metgerards@student.han.nl>
48527 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
48528 can be loaded from normal mode.
48530 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
48532 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
48533 (multiboot_mod_CFLAGS): New variables.
48534 * loader/i386/pc/linux_normal.c: New file.
48535 * loader/i386/pc/multiboot_normal.c: Likewise.
48537 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
48538 attribute `unused'.
48540 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
48541 `fdiro' to read the mode information from instead of `diro'.
48543 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
48544 looking up a symlink.
48546 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
48548 * normal/command.c (grub_command_execute): Don't parse the
48549 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
48550 flags of the command.
48552 * normal/menu.c (grub_menu_run): Fix typo.
48554 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
48556 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
48558 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
48559 `y + 1' instead of `y - 1'.
48561 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
48563 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
48565 From Hollis Blanchard <hollis@penguinppc.org>:
48566 * kern/misc.c (memmove): New alias for grub_memmove.
48567 (memcmp): New alias for grub_memcmp.
48568 (memset): New alias for grub_memset.
48569 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
48570 Change "int handle" to "grub_ieee1275_phandle_t handle".
48571 * include/grub/powerpc/ieee1275/ieee1275.h
48572 (grub_ieee1275_get_property): Likewise.
48574 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
48576 Added normal mode command `chainloader' as module chain.mod, which
48577 depends on normal.mod and _chain.mod.
48579 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
48580 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
48581 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
48583 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
48584 but arguments parsing moved to ...
48585 (grub_chainloader_cmd): ... here. New function.
48586 * include/grub/i386/pc/chainloader.h: New file.
48587 * loader/i386/pc/chainloader_normal.c: Likewise.
48589 2004-09-11 Marco Gerards <metgerards@student.han.nl>
48591 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
48592 (grub_mkimage_LDFLAGS): Likewise.
48593 (grub_emu_SOURCES): Likewise.
48594 (kernel_img_HEADERS): Added fshelp.h.
48595 * fs/ext2.c: Include <grub/fshelp.h>.
48596 (FILETYPE_REG): New macro.
48597 (FILETYPE_INO_REG): Likewise.
48598 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
48600 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
48602 (grub_fshelp_node): New struct.
48603 (grub_ext2_data): Added member `diropen'. Changed member `inode'
48605 (grub_ext2_get_file_block): Removed function.
48606 (grub_ext2_read_block): New function.
48607 (grub_ext2_read_file): Replaced parameter `data' by `node'.
48608 This function was written.
48609 (grub_ext2_mount): Read the root inode. Create a diropen struct.
48610 (grub_ext2_find_file): Removed function.
48611 (grub_ext2_read_symlink): New function.
48612 (grub_ext2_iterate_dir): Likewise.
48613 (grub_ext2_open): Rewritten.
48614 (grub_ext2_dir): Rewritten.
48615 * include/grub/fshelp.h: New file.
48616 * fs/fshelp.c: Likewise.
48618 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
48620 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
48621 (print_message): Add a missing newline.
48622 (run_menu): Added timeout support.
48623 (run_menu_entry): New local function.
48624 (grub_menu_run): Added support for booting.
48626 * kern/loader.c (grub_loader_is_loaded): New function.
48628 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
48629 (grub_get_rtc): Exported.
48631 * include/grub/i386/pc/time.h: Include grub/symbol.h.
48632 (grub_get_rtc): Exported.
48634 * include/grub/normal.h (struct grub_command_list): Remove
48635 constant from the member `command'.
48637 * include/grub/loader.h (grub_loader_is_loaded): Declared.
48639 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
48641 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
48643 2004-08-28 Marco Gerards <metgerards@student.han.nl>
48645 Add support for the JFS filesystem.
48647 * fs/jfs.c: New file.
48648 * include/grub/fs.h (grub_jfs_init): New prototype.
48649 (grub_jfs_fini): New prototype.
48650 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
48651 (grub_emu_SOURCES): Likewise.
48652 (pkgdata_MODULES): Add jfs.mod.
48653 (jfs_mod_SOURCES): New variable.
48654 (jfs_mod_CFLAGS): Likewise.
48655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
48656 (grubof_SOURCES): Likewise.
48657 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
48659 * fs/fat.c (grub_fat_find_dir): Convert the filename little
48660 endian to the host endian.
48661 (grub_fat_utf16_to_utf8): Move function from there...
48662 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
48663 the endianness of the source string anymore.
48664 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
48666 2004-08-24 Marco Gerards <metgerards@student.han.nl>
48668 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
48669 (grub_boot_fini) [GRUB_UTIL]: Likewise.
48670 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
48671 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
48673 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
48674 (grub_hfs_iterate_dir): Make the function static. Add prototypes
48675 for `node_found' and `it_dir'.
48676 (grub_hfs_dir): Add prototype for `dir_hook'.
48678 * fs/minix.c (grub_minix_get_file_block): Add prototype for
48679 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
48680 and `indir32' to silence a gcc warning.
48682 * include/grub/fs.h (grub_hfs_init): New prototype.
48683 (grub_hfs_fini): Likewise.
48686 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48688 Each disk device has its own id now. This is useful to make use
48689 of multiple disk devices.
48691 * include/grub/disk.h (grub_disk_dev_id): New enum.
48692 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
48693 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
48695 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
48696 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48698 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
48699 GRUB_DISK_DEVICE_OFDISK_ID as an id.
48701 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
48702 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48704 * include/grub/disk.h (struct grub_disk_dev): Added a new member
48705 "id" which is used by the cache manager.
48707 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
48710 2004-08-18 Marco Gerards <metgerards@student.han.nl>
48712 * fs/hfs.c: New file.
48713 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
48714 (grub_emu_SOURCES): Likewise.
48715 (pkgdata_MODULES): Add hfs.mod.
48716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
48717 (grubof_SOURCES): Likewise.
48718 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
48720 * include/grub/misc.h (grub_strncasecmp): Add prototype.
48721 * kern/misc.c (grub_strncasecmp): Add function.
48723 2004-08-14 Marco Gerards <metgerards@student.han.nl>
48725 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
48728 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
48729 (grub_ext2_dir): In case the directory entry type is unknown, read
48732 2004-08-02 Peter Bruin <pjbruin@dds.nl>
48734 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
48735 grub_load_linux instead of grub_rescue_cmd_linux as second
48736 argument of grub_rescue_register_command.
48738 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
48740 2004-07-27 Marco Gerards <metgerards@student.han.nl>
48742 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
48744 * commands/boot.c: Remove the check for `GRUB_UTIL'.
48745 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
48746 `loader/powerpc/ieee1275/linux.c',
48747 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
48748 * include/grub/powerpc/ieee1275/ieee1275.h
48749 (grub_ieee1275_release): New prototype.
48750 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
48751 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
48752 normal, boot, linux and linux_normal.
48753 * loader/powerpc/ieee1275/linux.c: New file.
48754 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48756 2004-07-12 Marco Gerards <metgerards@student.han.nl>
48758 * normal/arg.c (grub_arg_parse): Correct error handling after
48759 reallocating the argumentlist (check if `argl' is not null instead
48760 of checking if `args' is not null).
48761 * kern/mm.c (grub_realloc): Return the same pointer when using the
48762 same region, instead of returning the header address.
48764 2004-07-11 Marco Gerards <metgerards@student.han.nl>
48766 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
48767 one block instead of two when looking for the initial partition.
48768 (grub_partition_probe): Initialize the local variable `p' with 0.
48769 Use base 10 for the grub_strtoul call.
48770 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
48771 need for one local variable.
48772 (grub_strtoul): Don't add the new value to `num', instead of that
48775 2004-07-11 Marco Gerards <metgerards@student.han.nl>
48777 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
48778 (pxeboot_img_SOURCES): New variable.
48779 (pxeboot_img_ASFLAGS): Likewise.
48780 (pxeboot_img_LDFLAGS): Likewise.
48781 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
48782 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
48783 <lode_leroy@hotmail.com>.
48785 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48787 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
48788 there was no input.
48790 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48792 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
48793 the history buffer logic.
48795 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48797 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
48798 (FILETYPE_INO_SYMLINK): New macros.
48799 (grub_ext2_find_file): Check if the node is a directory using the
48800 inode stat information instead of using the filetype in the
48801 dirent. Exclude the first character of an absolute symlink.
48802 (grub_ext2_dir): Mask out the filetype part of the mode member of
48805 2004-05-24 Marco Gerards <metgerards@student.han.nl>
48807 Add support for UFS version 1 and 2. Add support for the minix
48808 filesystem version 1 and 2, both the variants with 14 and 30 long
48811 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
48813 (grub_emu_SOURCES): Likewise.
48814 (pkgdata_MODULES): Add ufs.mod and minix.mod.
48815 (ufs_mod_SOURCES): New variable.
48816 (ufs_mod_CFLAGS): Likewise.
48817 (minix_mod_SOURCES): Likewise.
48818 (minix_mod_CFLAGS): Likewise.
48819 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
48821 (grubof_SOURCES): Likewise.
48822 * fs/ufs.c: New file.
48823 * fs/minix.c: New file.
48824 * include/grub/fs.h (grub_ufs_init): New prototype.
48825 (grub_ufs_fini): Likewise.
48826 (grub_minix_init): Likewise.
48827 (grub_minix_fini): Likewise.
48828 * util/grub-emu.c (main): Initialize and deinitialize UFS and
48831 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
48833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
48834 commands/ls.c, commands/terminal.c, commands/boot.c,
48835 commands/cmp.c and commands/cat.c.
48836 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
48838 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
48841 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
48843 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
48844 and grub_, respectively. Because the conversion is trivial and
48845 mechanical, I omit the details here. Please refer to the CVS
48846 if you need more information.
48848 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
48850 * include/pupa: Renamed to ...
48851 * include/grub: ... this.
48852 * util/i386/pc/pupa-mkimage.c: Renamed to ...
48853 * util/i386/pc/grub-mkimage.c: ... this.
48854 * util/i386/pc/pupa-setup.c: Renamed to ...
48855 * util/i386/pc/grub-setup.c: ... this.
48856 * util/pupa-emu.c: Renamed to ...
48857 * util/grub-emu.c: ... this.
48859 2004-03-29 Marco Gerards <metgerards@student.han.nl>
48861 Add support for the newworld apple macintosh (PPC). This has been
48862 tested on the powerbook 2000 only. It only adds support for
48863 generic ieee1275 functions, console and disk support. This should
48864 be easy to port to other architectures with support for Open
48867 * configure.ac: Accept the powerpc as host_cpu. In the case of
48868 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
48869 specific tests are only executed while building for the i386.
48870 Inverse test for crosscompile.
48871 * genmk.rb (Utility): Allow assembler files.
48872 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
48873 * conf/powerpc-ieee1275.rmk: New file.
48874 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
48875 * disk/powerpc/ieee1275/partition.c: Likewise.
48876 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
48877 * include/pupa/powerpc/ieee1275/console.h: Likewise.
48878 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
48879 * include/pupa/powerpc/ieee1275/time.h: Likewise.
48880 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
48881 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
48882 * include/pupa/powerpc/ieee1275/loader.h
48883 * include/pupa/powerpc/setjmp.h: Likewise.
48884 * include/pupa/powerpc/types.h: Likewise.
48885 * kern/powerpc/ieee1275/init.c: Likewise.
48886 * kern/powerpc/ieee1275/openfw.c: Likewise.
48887 * term/powerpc/ieee1275/ofconsole.c: Likewise.
48889 These files were written by Johan Rydberg
48890 (jrydberg@night.trouble.net) and I only modified them slightly.
48892 * boot/powerpc/ieee1275/cmain.c: New file.
48893 * boot/powerpc/ieee1275/crt0.S: Likewise.
48894 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
48895 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
48897 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
48899 * Makefile.in: Update copyright.
48900 * genmodsrc.sh: Likewise.
48901 * gensymlist.sh: Likewise.
48902 * term/i386/pc/vga.c: Indent correctly.
48904 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
48905 bugreporting address.
48906 * util/i386/pc/pupa-setup.c (usage): Likewise,
48907 (main): Call pupa_ext2_init and pupa_ext2_fini.
48909 * fs/fat.c (log2): Renamed to ...
48910 (fat_log2): ... this.
48911 All callers changed.
48912 * kern/misc.c (memcpy): Alias to pupa_memmove.
48913 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
48915 * util/console.c (pupa_ncurses_fini): Return 0.
48917 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
48918 Move fail label here.
48919 [__GNU__]: Don't warn when using stat.
48920 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
48921 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
48922 long int. Use strtol instead of strtoul.
48924 2004-03-14 Marco Gerards <metgerards@student.han.nl>
48926 * commands/boot.c: New file.
48927 * commands/cat.c: Likewise.
48928 * commands/cmp.c: Likewise.
48929 * commands/ls.c: Likewise.
48930 * commands/terminal.c: Likewise.
48931 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
48932 (pupa_register_command): Changed interface to match the new
48934 (pupa_command_execute): Changed (almost rewritten) so it uses
48935 pupa_split_command. Added support for setting variables using the
48937 (rescue_command): Changed to work with the new argument parser.
48938 (terminal_command): Moved from here to commands/terminal.c.
48939 (set_command): New function.
48940 (unset_command): New function.
48941 (insmod_command): New function.
48942 (rmmod_command): New function.
48943 (lsmod_command): New function.
48944 (pupa_command_init): Don't initialize the command terminal
48945 anymore. Initialize the commands set, unset, insmod, rmmod and
48947 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
48948 (kernel_img_HEADERS): Add arg.h and env.h.
48949 (pupa_mkimage_LDFLAGS): Add kern/env.c.
48950 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
48951 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
48953 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
48955 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
48956 (boot_mod_SOURCES): New variable.
48957 (terminal_mod_SOURCES): Likewise.
48958 (ls_mod_SOURCES): Likewise.
48959 (cmp_mod_SOURCES): Likewise.
48960 (cat_mod_SOURCES): Likewise.
48962 * normal/arg.c: New file.
48963 * kern/env.c: Likewise.
48964 * include/pupa/arg.h: Likewise.
48965 * include/pupa/env.h: Likewise.
48966 * font/manager.c (font_command): Changed to match argument parsing
48968 (PUPA_MOD_INIT): Likewise.
48969 * hello/hello.c (pupa_cmd_hello): Likewise.
48970 (PUPA_MOD_INIT): Likewise.
48971 * include/pupa/disk.h: Include <pupa/device.h>.
48972 (pupa_print_partinfo): New prototype.
48973 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
48974 (pupa_dl_get_prefix): Likewise.
48975 * include/pupa/misc.h: Include <pupa/err.h>.
48976 (pupa_isgraph): New prototype.
48977 (pupa_isdigit): Likewise.
48978 (pupa_split_cmdline): Likewise.
48979 * include/pupa/normal.h: Include <pupa/arg.h>.
48980 (pupa_command): Changed the prototype of the member `func' to
48981 match the argument parsing interface. Added member `options'.
48982 (pupa_register_command): Updated to match function.
48983 (pupa_arg_parse): New prototype.
48984 (pupa_hello_init) [PUPA_UTIL]: New prototype.
48985 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
48986 (pupa_ls_init) [PUPA_UTIL]: Likewise.
48987 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
48988 (pupa_cat_init) [PUPA_UTIL]: Likewise.
48989 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
48990 (pupa_boot_init) [PUPA_UTIL]: Likewise.
48991 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
48992 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
48993 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
48994 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
48995 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
48996 * kern/disk.c: Include <pupa/file.h>.
48997 (pupa_print_partinfo): New function.
48998 * kern/dl.c: Include <pupa/env.h>.
48999 (pupa_dl_dir): Variable removed.
49000 (pupa_dl_load): Use the environment variable `prefix' instead of
49001 the variable pupa_dl_dir.
49002 (pupa_dl_set_prefix): Function removed.
49003 (pupa_dl_get_prefix): Likewise.
49004 * kern/i386/pc/init.c: Include <pupa/env.h>.
49005 (pupa_machine_init): Use the environment variable `prefix' instead of
49006 using pupa_dl_set_prefix to set the prefix.
49007 * kern/main.c: Include <pupa/env.h>.
49008 (pupa_set_root_dev): Use the environment variable `prefix' instead of
49009 using pupa_dl_get_prefix to get the prefix.
49010 * kern/misc.c: Include <pupa/env.h>.
49011 (pupa_isdigit): New function.
49012 (pupa_isgraph): Likewise.
49013 (pupa_ftoa): Likewise.
49014 (pupa_vsprintf): Added support for printing values of the type
49015 `double'. Make it possible to format variable output when using
49016 formatting like `%1.2%f'.
49017 (pupa_split_cmdline): New function.
49018 * kern/rescue.c: Include <pupa/env.h>.
49019 (next_word): Removed function.
49020 (pupa_rescue_cmd_prefix): Likewise.
49021 (pupa_rescue_cmd_set): New function.
49022 (pupa_rescue_cmd_unset): New function.
49023 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
49024 split the command line instead of splitting it here. Added
49025 support for setting variables using the syntax `foo=bar'. Don't
49026 initialize the prefix command anymore. Initialized the set and
49028 * normal/cmdline.c: Include <pupa/env.h>.
49029 (pupa_tab_complete): Added prototypes for print_simple_completion,
49030 print_partition_completion, add_completion, iterate_commands,
49031 iterate_dev, iterate_part and iterate_dir. Moved code to print
49032 partition information from here to kern/disk.c.
49033 (pupa_cmdline_run): Don't check if the function exists anymore.
49034 * normal/main.c: Include <pupa/env.h>.
49035 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
49036 instead of using pupa_dl_get_prefix to get the prefix.
49037 * term/i386/pc/vga.c: Include <pupa/arg.h>.
49038 (check_vga_mem): Cast pointers to `void *' to silence a gcc
49040 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
49041 (pupa_vga_setcolor): Declare unused variables with `__attribute__
49042 ((unused))' to silence a gcc warning.
49043 (pupa_vga_setcolor): Likewise.
49044 (debug_command): Changed to match argument parsing
49046 * util/pupa-emu.c: Include <pupa/env.h>.
49047 (options): Added 0's for unused fields to silence a gcc warning.
49049 (main): Use the environment variable `prefix' instead of using
49050 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
49051 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
49054 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
49055 * util/misc.c: Include <malloc.h>.
49056 (pupa_malloc): Rewritten so errors are correctly reported.
49057 (pupa_realloc): Likewise.
49058 (pupa_memalign): Likewise.
49059 (pupa_mm_init_region): Declare unused variables with
49060 `__attribute__ ((unused))' to silence a gcc warning.
49061 * normal/i386/setjmp.S: Remove tab at the end of the file to
49062 silence a gcc warning.
49063 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
49064 variables with `__attribute__ ((unused))' to silence a gcc
49066 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
49067 local variable i unsigned to silence a gcc warning.
49069 * kern/term.c: Include <pupa/misc.h>.
49070 (pupa_more_lines): New variable.
49071 (pupa_more): Likewise.
49072 (pupa_putcode): When the pager is active pause at the end of every
49074 (pupa_set_more): New function.
49075 * include/pupa/term.h (pupa_set_more): New prototype.
49078 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
49080 Now this project is GRUB 2 rather than PUPA. The location of
49081 the CVS repository was moved to GRUB's.
49083 * configure.ac: Use bug-grub as the reporting address.
49084 Use GRUB instead of PUPA.
49085 Change the version number to 1.90.
49087 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
49089 * genkernsyms.sh: Updated copyright information.
49090 * genmk.rb: Likewise.
49091 * genmodsrc.sh: Likewise.
49092 * gensymlist.sh: Likewise.
49093 * boot/i386/pc/boot.S: Likewise.
49094 * boot/i386/pc/diskboot.S: Likewise.
49095 * disk/i386/pc/biosdisk.c: Likewise.
49096 * disk/i386/pc/partition.c: Likewise.
49097 * font/manager.c: Likewise.
49098 * fs/ext2.c: Likewise.
49099 * fs/fat.c: Likewise.
49100 * include/pupa/boot.h: Likewise.
49101 * include/pupa/device.h: Likewise.
49102 * include/pupa/disk.h: Likewise.
49103 * include/pupa/dl.h: Likewise.
49104 * include/pupa/elf.h: Likewise.
49105 * include/pupa/err.h: Likewise.
49106 * include/pupa/file.h: Likewise.
49107 * include/pupa/font.h: Likewise.
49108 * include/pupa/fs.h: Likewise.
49109 * include/pupa/kernel.h: Likewise.
49110 * include/pupa/loader.h: Likewise.
49111 * include/pupa/misc.h: Likewise.
49112 * include/pupa/mm.h: Likewise.
49113 * include/pupa/net.h: Likewise.
49114 * include/pupa/normal.h: Likewise.
49115 * include/pupa/rescue.h: Likewise.
49116 * include/pupa/setjmp.h: Likewise.
49117 * include/pupa/symbol.h: Likewise.
49118 * include/pupa/term.h: Likewise.
49119 * include/pupa/types.h: Likewise.
49120 * include/pupa/i386/setjmp.h: Likewise.
49121 * include/pupa/i386/types.h: Likewise.
49122 * include/pupa/i386/pc/biosdisk.h: Likewise.
49123 * include/pupa/i386/pc/boot.h: Likewise.
49124 * include/pupa/i386/pc/console.h: Likewise.
49125 * include/pupa/i386/pc/init.h: Likewise.
49126 * include/pupa/i386/pc/kernel.h: Likewise.
49127 * include/pupa/i386/pc/linux.h: Likewise.
49128 * include/pupa/i386/pc/loader.h: Likewise.
49129 * include/pupa/i386/pc/memory.h: Likewise.
49130 * include/pupa/i386/pc/multiboot.h: Likewise.
49131 * include/pupa/i386/pc/partition.h: Likewise.
49132 * include/pupa/i386/pc/time.h: Likewise.
49133 * include/pupa/i386/pc/vga.h: Likewise.
49134 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
49135 * include/pupa/util/getroot.h: Likewise.
49136 * include/pupa/util/misc.h: Likewise.
49137 * include/pupa/util/resolve.h: Likewise.
49138 * kern/device.c: Likewise.
49139 * kern/disk.c: Likewise.
49140 * kern/dl.c: Likewise.
49141 * kern/err.c: Likewise.
49142 * kern/file.c: Likewise.
49143 * kern/fs.c: Likewise.
49144 * kern/loader.c: Likewise.
49145 * kern/main.c: Likewise.
49146 * kern/misc.c: Likewise.
49147 * kern/mm.c: Likewise.
49148 * kern/rescue.c: Likewise.
49149 * kern/term.c: Likewise.
49150 * kern/i386/dl.c: Likewise.
49151 * kern/i386/pc/init.c: Likewise.
49152 * kern/i386/pc/lzo1x.S: Likewise.
49153 * kern/i386/pc/startup.S: Likewise.
49154 * loader/i386/pc/chainloader.c: Likewise.
49155 * loader/i386/pc/linux.c: Likewise.
49156 * loader/i386/pc/multiboot.c: Likewise.
49157 * normal/cmdline.c: Likewise.
49158 * normal/command.c: Likewise.
49159 * normal/main.c: Likewise.
49160 * normal/menu.c: Likewise.
49161 * normal/i386/setjmp.S: Likewise.
49162 * term/i386/pc/console.c: Likewise.
49163 * term/i386/pc/vga.c: Likewise.
49164 * util/console.c: Likewise.
49165 * util/genmoddep.c: Likewise.
49166 * util/misc.c: Likewise.
49167 * util/pupa-emu.c: Likewise.
49168 * util/resolve.c: Likewise.
49169 * util/unifont2pff.rb: Likewise.
49170 * util/i386/pc/biosdisk.c: Likewise.
49171 * util/i386/pc/getroot.c: Likewise.
49172 * util/i386/pc/pupa-mkimage.c: Likewise.
49173 * util/i386/pc/pupa-setup.c: Likewise.
49175 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
49177 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
49178 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
49179 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
49180 reading and reset it after reading.
49181 (pupa_ext2_close): Return PUPA_ERR_NONE.
49183 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
49185 (struct linux_kernel_header): Add kernel_version and
49187 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
49188 pupa_file_read succeeds.
49189 (pupa_rescue_cmd_initrd): Implement.
49191 2003-12-03 Marco Gerards <metgerards@student.han.nl>
49193 * fs/ext2.c (pupa_ext2_label): New function.
49194 (pupa_ext2_fs): Added label.
49195 * fs/fat.c (pupa_fat_label): New function.
49196 (pupa_fat_fs): Added label.
49197 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
49199 * kern/misc.c (pupa_strndup): New function.
49200 * include/pupa/misc.h (pupa_strndup): New prototype.
49202 * include/pupa/normal.h: Include <pupa/err.h>.
49203 (pupa_set_history): New prototype.
49204 (pupa_iterate_commands): New prototype.
49205 * normal/cmdline.c: Include <pupa/machine/partition.h>,
49206 <pupa/disk.h>, <pupa/file.h>.
49207 (hist_size): New variable.
49208 (hist_lines): Likewise.
49209 (hist_end): Likewise.
49210 (hist_used): Likewise.
49211 (pupa_set_history): New function.
49212 (pupa_history_get): Likewise.
49213 (pupa_history_add): Likewise.
49214 (pupa_history_replace): Likewise.
49215 (pupa_tab_complete): Likewise.
49216 (pupa_cmdline_run): Added tab completion and history buffer. Tab
49217 completion shows partitionnames while completing partitions, this
49218 feature was suggested by Jeff Bailey.
49219 * normal/command.c (pupa_iterate_commands): New function.
49220 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
49221 (pupa_normal_init): Initialize history buffer.
49222 (PUPA_MOD_INIT): Likewise.
49223 (pupa_normal_fini): Free the history buffer.
49224 (PUPA_MOD_FINI): Likewise.
49226 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
49229 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
49230 * configure.ac [i386]: Check for regparam bug.
49231 (NESTED_FUNC_ATTR) [! i386]: Defined.
49233 2003-11-17 Marco Gerards <metgerards@student.han.nl>
49235 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
49236 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
49237 (pupa_emu_SOURCES): New variable.
49238 (pupa_emu_LDFLAGS): Likewise.
49239 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
49240 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
49241 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
49242 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
49243 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
49244 (pupa_jmp_buf): New typedef.
49245 (pupa_setjmp) [PUPA_UTIL]: New macro.
49246 (pupa_longjmp) [PUPA_UTIL]: Likewise.
49247 * include/pupa/term.h (struct pupa_term): New member `refresh'.
49248 (pupa_refresh): New prototype.
49249 * include/pupa/util/getroot.h: New file.
49250 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
49252 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
49253 (pupa_rescue_cmd_cat): Likewise.
49254 (pupa_rescue_cmd_ls): Likewise.
49255 (pupa_rescue_cmd_testload): Likewise.
49256 (pupa_rescue_cmd_lsmod): Likewise.
49257 * normal/cmdline.c (pupa_cmdline_get): Likewise.
49258 * normal/menu.c (run_menu): Likewise.
49259 * kern/term.c (pupa_cls): Likewise.
49260 (pupa_refresh): New function.
49261 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
49262 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
49263 * util/console.c: New file.
49265 * util/i386/pc/getroot.c: New file.
49266 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
49267 (pupa_putchar): New function.
49268 (pupa_refresh): Likewise.
49269 (xgetcwd): Function moved to ...
49270 (strip_extra_slashes): Likewise.
49271 (get_prefix): Likewise.
49272 * util/i386/pc/getroot.c: ... here.
49273 (find_root_device): Function moved and renamed to...
49274 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
49275 Changed all callers.
49276 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
49278 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
49279 Changed all callers.
49280 * util/misc.c (pupa_memalign): New function.
49281 (pupa_mm_init_region): Likewise.
49282 (pupa_register_exported_symbols): Likewise.
49283 (pupa_putchar): Function removed.
49284 * util/pupa-emu.c: New file.
49286 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
49288 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
49289 (_multiboot_mod_SOURCES): New variable.
49290 (_multiboot_mod_CFLAGS): Likewise.
49291 * loader/i386/pc/multiboot.c: New file.
49292 * include/pupa/i386/pc/multiboot.h: Likewise.
49293 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
49294 (pupa_multiboot_real_boot): New function.
49295 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
49296 (pupa_multiboot_real_boot): New prototype.
49297 (pupa_rescue_cmd_multiboot): Likewise
49298 (pupa_rescue_cmd_module): Likewise.
49300 * kern/loader.c (pupa_loader_set): Continue when
49301 pupa_loader_unload_func() fails.
49302 (pupa_loader_unset): New function.
49303 * include/pupa/loader.h (pupa_loader_unset): New prototype.
49305 * kern/misc.c (pupa_stpcpy): New function.
49306 * include/pupa/misc.h (pupa_stpcpy): New prototype.
49308 2003-11-12 Marco Gerards <metgerards@student.han.nl>
49310 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
49311 for available extensions.
49313 * include/pupa/i386/pc/time.h: New file.
49314 * kern/disk.c: Include <pupa/machine/time.h>.
49315 (PUPA_CACHE_TIMEOUT): New macro.
49316 (pupa_last_time): New variable.
49317 (pupa_disk_open): Flush the cache when there was a timeout.
49318 (pupa_disk_close): Reset the timer.
49319 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
49321 * util/misc.c: Include <sys/times.h>
49322 (pupa_get_rtc): New function.
49324 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
49326 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
49328 (pupa_ext2_get_file_block): Use blocks member.
49330 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
49331 first block. Return -1 instead of pupa_errno on error.
49333 2003-10-27 Marco Gerards <metgerards@student.han.nl>
49335 * README: In the pupa-mkimage example use _chain instead of chain
49336 and ext2 instead of fat.
49337 * TODO: Replace ext2fs with jfs as an example. Add an item for
49338 adding journal playback for ext2fs.
49339 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
49340 (pkgdata_MODULES): Added ext2.mod.
49341 (ext2_mod_SOURCES): New variable.
49342 (ext2_mod_CFLAGS): Likewise.
49343 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
49344 * include/pupa/misc.h (pupa_strncpy): New prototype.
49345 (pupa_strcat): Likewise.
49346 (pupa_strncmp): Likewise.
49347 * kern/misc.c (pupa_strcat): Enable function.
49348 (pupa_strncpy): New function.
49349 (pupa_strncmp): Likewise.
49350 * fs/ext2.c: New file.
49352 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
49353 when the read failed before retrying.
49354 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
49355 (_FILE_OFFSET_BITS): Likewise.
49356 * configure.ac: Added AC_SYS_LARGEFILE.
49358 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
49360 * genmk.rb (PModule#rule): Make sure to get only symbol names
49361 from the output of nm.
49362 Reported by Robert Millan <rmh.grub@aybabtu.com>.
49364 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
49366 I forgot to check in these changes for a long time. This adds
49367 incomplete support for VGA console, and this is still very
49368 buggy. Also, a lot of consideration is required for I18N,
49369 UNICODE, and VGA font issues. Therefore, assume that this is
49370 such that "better than nothing".
49372 * font/manager.c: New file.
49373 * include/pupa/font.h: Likewise.
49374 * include/pupa/i386/pc/vga.h: Likewise.
49375 * term/i386/pc/vga.c: Likewise.
49376 * util/unifont2pff.rb: Likewise.
49378 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
49379 (pkgdata_MODULES): Added vga.mod and font.mod.
49380 (vga_mod_SOURCES): New variables.
49381 (vga_mod_CFLAGS): Likewise.
49382 (font_mod_SOURCES): Likewise.
49383 (font_mod_CFLAGS): Likewise.
49385 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
49387 * include/pupa/term.h: Include pupa/err.h.
49388 (struct pupa_term): Added init and fini.
49389 Changed the argument of putchar to pupa_uint32_t.
49391 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
49392 (pupa_console_real_putchar): New prototype.
49393 (pupa_console_putchar): Removed.
49394 (pupa_console_checkkey): Exported.
49395 (pupa_console_getkey): Likewise.
49397 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
49400 * kern/term.c (pupa_term_set_current): Rewritten.
49401 (pupa_putchar): Likewise.
49402 (pupa_putcode): New function.
49404 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
49405 (pupa_console_real_putchar): ... this.
49406 (pupa_vga_set_mode): New function.
49407 (pupa_vga_get_font): Likewise.
49409 * normal/command.c: Include pupa/term.h.
49410 (terminal_command): New function.
49411 (pupa_command_init): Register the command "terminal".
49413 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
49414 (DISP_UP): Likewise.
49415 (DISP_RIGHT): Likewise.
49416 (DISP_DOWN): Likewise.
49417 (DISP_HLINE): Likewise.
49418 (DISP_VLINE): Likewise.
49419 (DISP_UL): Likewise.
49420 (DISP_UR): Likewise.
49421 (DISP_LL): Likewise.
49422 (DISP_LR): Likewise.
49424 * term/i386/pc/console.c (pupa_console_putchar): New function.
49426 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
49428 * util/resolve.c (pupa_util_resolve_dependencies): BUG
49429 FIX. Reverse the path_list.
49431 * include/pupa/normal.h: Export pupa_register_command and
49432 pupa_unregister_command.
49434 * hello/hello.c (pupa_cmd_hello): New module.
49435 * conf/i386-pc.rmk: Added hello.mod.
49437 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
49439 * kern/i386/pc/lzo1x.S: New file.
49441 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
49442 (compress_kernel): New variable.
49443 (generate_image): Heavily modified to support compressing a
49444 large part of the core image.
49446 * util/misc.c (pupa_util_read_image): Fix a file descriptor
49448 (pupa_util_load_image): New function.
49450 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
49451 (pupa_compressed_size): New variable.
49452 (codestart): Enable Gate A20 here.
49453 Decompress the compressed part of the core image.
49454 Rearrange the code to put functions and variables which are
49455 required for initialization in the non-compressed part.
49458 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
49461 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
49463 * include/pupa/i386/pc/kernel.h
49464 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
49465 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
49466 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
49467 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
49468 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
49470 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
49472 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
49473 (Utility#rule): Likewise.
49475 * configure.ac: Check if LZO is available.
49477 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
49479 * include/pupa/normal.h: New file.
49480 * include/pupa/setjmp.h: Likewise.
49481 * include/pupa/i386/setjmp.h: Likewise.
49482 * normal/cmdline.c: Likewise.
49483 * normal/command.c: Likewise.
49484 * normal/main.c: Likewise.
49485 * normal/menu.c: Likewise.
49486 * normal/i386/setjmp.S: Likewise.
49488 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
49489 (pupa_rescue_cmd_initrd): Likewise.
49491 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
49494 * kern/i386/pc/startup.S (translation_table): New variable.
49495 (translate_keycode): New function.
49496 (pupa_console_getkey): Call translate_keycode.
49498 * kern/rescue.c (attempt_normal_mode): New function.
49499 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
49500 it failed, print a message.
49502 * kern/mm.c (pupa_real_malloc): Print more information when a
49503 free magic is broken.
49504 (pupa_free): If the first free header is not free actually, set
49507 * kern/main.c (pupa_load_normal_mode): Just load the module
49509 (pupa_main): Don't print the message
49510 "Entering into rescue mode..." here.
49512 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
49514 (pupa_rescue_cmd_initrd): Likewise.
49515 (pupa_rescue_cmd_initrd): Likewise.
49517 * include/pupa/symbol.h (FUNCTION): Specify the type.
49518 (VARIABLE): Likewise.
49520 * include/pupa/err.h (pupa_err_t): Added
49521 PUPA_ERR_UNKNOWN_COMMAND.
49523 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
49524 (pupa_dl_get_prefix): Likewise.
49526 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
49527 Added _chain.mod and _linux.mod instead of chain.mod and
49529 (chain_mod_SOURCES): Renamed to ...
49530 (_chain_mod_SOURCES): ... this.
49531 (chain_mod_CFLAGS): Renamed to ...
49532 (_chain_mod_CFLAGS): ... this.
49533 (linux_mod_SOURCES): Renamed to ...
49534 (_linux_mod_SOURCES): ... this.
49535 (linux_mod_CFLAGS): Renamed to ...
49536 (_linux_mod_CFLAGS): ... this.
49537 (normal_mod_SOURCES): New variable.
49538 (normal_mod_CFLAGS): Likewise.
49539 (normal_mod_ASFLAGS): Likewise.
49541 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
49543 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
49546 * kern/dl.c (pupa_dl_ref): Refer depending modules
49548 (pupa_dl_unref): Unrefer depending modules recursively.
49549 Don't call pupa_dl_unload implicitly, because PUPA can crash if
49550 a module is unloaded before one depending on that module is
49552 (pupa_dl_unload): Unload depending modules explicitly,
49555 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
49557 * include/pupa/i386/pc/linux.h: New file.
49558 * loader/i386/pc/linux.c: Likewise.
49560 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
49562 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
49563 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
49564 of PUPA_CHAINLOADER_BOOT_SECTOR.
49566 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
49567 (pupa_linux_prot_size): New variable.
49568 (pupa_linux_tmp_addr): Likewise.
49569 (pupa_linux_real_addr): Likewise.
49570 (pupa_linux_boot_zimage): New function.
49571 (pupa_linux_boot_bzimage): Likewise.
49573 * kern/i386/pc/init.c (struct mem_region): New structure.
49574 (MAX_REGIONS): New macro.
49575 (mem_regions): New variable.
49576 (num_regions): Likewise.
49577 (pupa_os_area_addr): Likewise.
49578 (pupa_os_area_size): Likewise.
49579 (pupa_lower_mem): Likewise.
49580 (pupa_upper_mem): Likewise.
49581 (add_mem_region): New function.
49582 (compact_mem_regions): Likewise.
49583 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
49584 the size of the conventional memory and that of so-called upper
49585 memory (before the first memory hole).
49586 Instead of adding each found region to free memory, use
49587 add_mem_region and add them after removing overlaps.
49588 Also, add only 1/4 of the upper memory to free memory. The rest
49589 is used for loading OS images. Maybe this is ad hoc, but this
49590 makes it much easier to relocate OS images when booting.
49592 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
49593 (pupa_enter_rescue_mode): Don't register initrd and module.
49595 * kern/mm.c: Include pupa/dl.h.
49597 * kern/main.c: Include pupa/file.h and pupa/device.h.
49599 * kern/loader.c (pupa_loader_load_module_func): Removed.
49600 (pupa_loader_load_module): Likewise.
49602 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
49605 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
49606 (pupa_linux_tmp_addr): Likewise.
49607 (pupa_linux_real_addr): Likewise.
49608 (pupa_linux_boot_zimage): Likewise.
49609 (pupa_linux_boot_bzimage): Likewise.
49611 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
49612 (pupa_upper_mem): Likewise.
49613 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
49614 module is too dangerous.
49616 * include/pupa/loader.h (pupa_os_area_addr): Declared.
49617 (pupa_os_area_size): Likewise.
49618 (pupa_loader_set): Remove the first argument. Loader doesn't
49619 manage modules or initrd any longer.
49620 (pupa_loader_load_module): Removed.
49622 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
49623 (linux_mod_SOURCES): New variable.
49624 (linux_mod_CFLAGS): Likewise.
49626 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
49628 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
49629 the length of a blocklist correctly.
49631 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
49632 Use ioctl only if the OS file is a block device.
49633 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
49634 not very useful for normal files.
49636 * kern/main.c (pupa_set_root_dev): New function.
49637 (pupa_load_normal_mode): Likewise.
49638 (pupa_main): Call those above.
49640 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
49643 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
49645 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
49647 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
49648 (setup): Configure the installed partition information and the
49651 * loader/i386/pc/chainloader.c (my_mod): New variable.
49652 (pupa_chainloader_unload): New function.
49653 (pupa_rescue_cmd_chainloader): Refer itself.
49654 (PUPA_MOD_INIT): Save its own module in MY_MOD.
49656 * kern/i386/pc/startup.S (install_partition): Removed.
49657 (version_string): Likewise.
49658 (config_file): Likewise.
49659 (pupa_install_dos_part): New variable.
49660 (pupa_install_bsd_part): Likewise.
49661 (pupa_prefix): Likewise.
49662 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
49664 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
49666 (make_install_device): New function.
49667 (pupa_machine_init): Set the dl prefix.
49669 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
49670 (buf): Renamed to ...
49671 (linebuf): ... this.
49672 (pupa_rescue_cmd_prefix): New function.
49673 (pupa_rescue_cmd_insmod): Likewise.
49674 (pupa_rescue_cmd_rmmod): Likewise.
49675 (pupa_rescue_cmd_lsmod): Likewise.
49676 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
49679 * kern/mm.c (pupa_memalign): If failed even after invalidating
49680 disk caches, unload unneeded modules and retry.
49682 * kern/misc.c (pupa_memmove): New function.
49683 (pupa_memcpy): Removed.
49684 (pupa_strcpy): New function.
49685 (pupa_itoa): Made static.
49687 * kern/dl.c (pupa_dl_iterate): New function.
49688 (pupa_dl_ref): Likewise.
49689 (pupa_dl_unref): Likewise.
49690 (pupa_dl_unload): Return if succeeded or not.
49691 (pupa_dl_unload_unneeded): New function.
49692 (pupa_dl_unload_all): Likewise.
49693 (pupa_dl_init): Renamed to ...
49694 (pupa_dl_set_prefix): ... this.
49695 (pupa_dl_get_prefix): New function.
49697 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
49698 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
49699 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
49700 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
49701 (pupa_install_dos_part): Declared.
49702 (pupa_install_bsd_part): Likewise.
49703 (pupa_prefix): Likewise.
49704 (pupa_boot_drive): Likewise.
49706 * include/pupa/types.h: Fix a typo.
49708 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
49710 (pupa_memmove): Declared.
49711 (pupa_strcpy): Likewise.
49713 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
49714 pupa_mod_init takes one argument, its own module.
49715 (pupa_dl_unload_unneeded): Declared.
49716 (pupa_dl_unload_all): Likewise.
49717 (pupa_dl_ref): Likewise.
49718 (pupa_dl_unref): Likewise.
49719 (pupa_dl_iterate): Likewise.
49720 (pupa_dl_init): Renamed to ...
49721 (pupa_dl_set_prefix): ... this.
49722 (pupa_dl_get_prefix): Declared.
49724 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
49725 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
49727 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
49728 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
49730 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
49731 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
49733 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49735 * util/i386/pc/pupa-setup.c (setup): Define the internal
49736 function find_first_partition_start at the top level, because GCC
49737 3.0.x cannot compile internal functions in deeper scopes
49739 (find_root_device): Use lstat instead of stat.
49740 Don't follow symbolic links.
49741 Fix the path-constructing code.
49743 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
49744 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
49745 by a BLKGETSIZE ioctl first, because block devices don't fill
49746 the member st_mode of the structure stat on Linux.
49747 [__linux__] (linux_find_partition): Use a temporary buffer
49748 REAL_DEV for the working space. Copy it to DEV before returning.
49749 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
49750 buffer cache consistent.
49751 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
49752 strncmp. The previous value was merely wrong.
49753 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
49755 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
49756 FAT size is 12. The previous value was merely wrong.
49758 * kern/main.c (pupa_main): Don't split the starting message from
49761 * kern/term.c (pupa_putchar): Put CR after LF instead of before
49762 LF, because BIOS goes crazy about character attributes in this
49765 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49767 * include/i386/pc/util/biosdisk.h: New file.
49768 * util/i386/pc/biosdisk.c: Likewise.
49769 * util/i386/pc/pupa-setup.c: Likewise.
49771 * Makefile.in (INCLUDE_DISTFILES): Added
49772 include/pupa/i386/pc/util/biosdisk.h.
49773 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
49774 directory util/i386/pc.
49775 (install-local): Added a rule for sbin_UTILITIES.
49776 (uninstall): Likewise.
49778 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
49780 * util/misc.c (xrealloc): New function.
49781 (pupa_malloc): Likewise.
49782 (pupa_free): Likewise.
49783 (pupa_realloc): Likewise.
49784 (pupa_stop): Likewise.
49785 (pupa_putchar): Likewise.
49787 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
49789 * include/pupa/util/misc.h (xrealloc): Declared.
49791 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
49793 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
49794 (PUPA_BOOT_MACHINE_BPB_END): ... this.
49796 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
49797 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49799 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
49800 way should be implemented.
49801 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49803 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
49804 the size of NAME for safety.
49805 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
49808 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
49809 (pupa_setup_SOURCES): Likewise.
49811 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
49813 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49815 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
49816 bunch of pushl's from pusha, because this destroys the return
49819 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49821 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
49822 This means that any missing prototypes could be fatal. Also, you
49823 must take care when writing assembly code. See the comments at
49824 the beginning of startup.S, for more details.
49826 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
49827 compilation mechanism.
49828 (pupa_chainloader_real_boot): Likewise.
49829 (pupa_biosdisk_rw_int13_extensions): Likewise.
49830 (pupa_biosdisk_rw_standard): Likewise.
49831 (pupa_biosdisk_check_int13_extensions): Likewise.
49832 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
49833 (pupa_biosdisk_get_diskinfo_standard): Likewise.
49834 (pupa_get_memsize): Likewise.
49835 (pupa_get_mmap_entry): Likewise.
49836 (pupa_console_putchar): Likewise.
49837 (pupa_console_setcursor): Likewise.
49838 (pupa_getrtsecs): Use pushl instead of push.
49840 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
49841 memory instead of the stack for a mmap entry, because some
49842 BIOSes may ignore the maximum size and overflow.
49844 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
49846 * genmk.rb (PModule#rule): Compile automatically generated
49847 sources with module-specific CFLAGS as well as other sources.
49849 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49851 * configure.ac: Check ld.
49852 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
49853 respectively, before checking endianness and sizes.
49855 * Makefile.in (LD): New variable.
49857 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49859 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
49861 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49863 * Changelog: New file.