1 2013-10-14 qwertial <qwertial>
3 * grub-core/gdb_grub.in: Fix overflow and wrong field.
5 2013-10-14 Jon McCune <jonmccune@google.com>
7 * docs/grub.texi: Document new signatures possibility.
9 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
13 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
17 (grub_util_tchar_to_utf8): Likewise.
19 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
21 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
22 * grub-core/kern/emu/main.c: Add missing include.
23 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
24 Don't call grub_util_init_nls.
25 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
28 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
30 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
33 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
35 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
37 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
39 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
41 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
43 Add a wrapper for fopen. On unix-like systems just pass-through. On
44 windows use unicode version.
46 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
48 Move set_program_name and init_nls to host_init. On windows
49 fix in this fuction console and argument charset as well.
51 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
53 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
54 GRUB_ENABLE_CRYPTODISK.
56 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
57 GRUB_ENABLE_CRYPTODISK.
58 * util/grub-mkconfig_lib.in: Likewise.
60 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
62 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
64 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
66 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
67 error when enabling debug.
69 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
71 * configure.ac: Use -melf_*_obsd on openbsd.
73 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
75 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
77 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
79 * include/grub/misc.h: Use gnu_printf rather than printf as format
80 template since our functions are independent of libc.
82 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
84 * util/grub-setup.c (setup): Move copying of partition table as
85 futher up as possible to avoid possible overwrite by floppy routines.
87 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
89 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
91 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
93 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
94 * docs/grub.texi: Likewise.
96 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
98 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
99 it's mostly unused. Move vestiges to the callers.
101 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
103 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
104 version of salt and hash. Use grub_snprintf rather than snprintf.
106 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
108 * docs/grub.texi: Fix problem with braces.
110 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
112 * conf/Makefile.extra-dist: Fix extra-dist list.
113 * grub-core/Makefile.core.def: Likewise.
115 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
117 * docs/grub.texi: Document disk names used on Windows and AROS.
119 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
121 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
123 * grub-core/osdep/aros/hostdisk.c: Likewise.
125 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
127 Avoid including hostfile.h when not necessarry as it pulls
128 in OS-specific headers which may redefine generic names
131 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
133 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
134 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
136 * docs/grub.texi: Likewise.
138 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
140 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
142 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
144 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
146 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
148 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
150 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
153 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
155 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
158 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
160 Move OS-specific driver configuration to grub_util_fd_open. This
161 moves OS-dependent parts from kern/emu/hostdisk.c to
162 grub-core/osdep/*/hostdisk.c.
164 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
166 * util/grub-mkimage.c (generate_image): Use size_t instead of
168 * util/grub-mkimagexx.c (locate_sections): Likewise.
169 (load_image): Likewise.
171 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
173 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
175 (grub_util_write_image): Likewise.
177 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
179 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
180 get random when no RNG is available.
181 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
183 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
185 * include/grub/util/lvm.h: Removed.
187 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
189 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
190 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
192 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
194 * grub-core/osdep/windows/sleep.c: Add missing config.h.
196 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
198 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
200 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
202 * grub-core/net/drivers/emu/emunet.c: Move to ..
203 * grub-core/osdep/linux/emunet.c: ..here.
205 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
207 * util/ieee1275/ofpath.c: Move to ...
208 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
209 * grub-core/osdep/basic/ofpath.c: ..here.
211 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
213 Move password-querying (util-version) routines to grub-core/osdep.
215 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
217 Move sleep routines to grub-core/osdep.
219 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
221 Move OS-dependent files to grub-core/osdep and document it.
223 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
225 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
226 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
228 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
230 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
232 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
234 * util/misc.c: Remove leftover inclusion of malloc.h.
236 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
238 * include/grub/setjmp.h: Remove leftover GRUBOF.
240 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
242 * util/raid.c: Fold into ...
243 * util/getroot_linux.c: ... here. Make all functions static.
245 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
247 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
250 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
252 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
253 occasional bug. If there are too many boot entries or too low
254 scrollbar height then we need to use another formula to calculate
255 the position and size of the scrollbar thumb.
257 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
259 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
261 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
263 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
264 * docs/grub.texi: Likewise.
266 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
268 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
271 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
273 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
274 minimal width calculations.
276 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
278 * docs/grub.texi: Update note on colors on emu console.
280 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
282 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
283 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
284 it's FS and not GRUB limitation.
286 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
288 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
290 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
292 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
294 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
296 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
297 kernels by version order.
299 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
301 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
303 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
305 Add AROS hostdisk and getroot routines.
307 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
309 Make cryptodisk and diskfilter probe data retrievable programmatically
310 and not just printable.
312 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
314 Split random retrieving code into separate files.
316 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
318 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
321 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
323 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
325 * grub-core/tests/fake_input.c: Likewise.
326 * grub-core/tests/cmdline_cat_test.c: Likewise.
328 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
330 * grub-core/video/capture.c: Do not do finalization when .fini
331 is called as there is explicit capture_end.
333 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
335 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
336 changing windows to avoid crash.
338 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
340 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
342 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
344 * po/exclude.pot: Add several strings to exclude.
346 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
348 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
350 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
352 * autogen.sh: Add ./util/grub-gen-widthspec.c and
353 ./util/grub-gen-asciih.c to exclude list.
355 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
357 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
358 and don't mark error strings for translation.
360 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
362 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
363 properly in case of missing block size.
365 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
367 * grub-core/lib/arm/setjmp.S: Add missing license section.
369 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
371 * po/swiss.sed: Add replacement for key names and for term computer.
373 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
375 * grub-core/gfxmenu/theme_loader.c: New global options for the
376 theme background image handling. desktop-image-scale-method,
377 desktop-image-h-align, desktop-image-v-align.
378 * grub-core/gfxmenu/view.c: Likewise.
379 * include/gfxmenu_view.h: Likewise.
380 * include/bitmap_scale.h: Proportional scale functions introduced.
381 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
382 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
383 cases of unexpected input variables for scale functions.
384 * docs/grub.texi: Updated documentation for new options.
386 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
388 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
390 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
392 * grub-core/tests/checksums.h: Corrected due to changes in
393 bilinear interpolation function.
395 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
397 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
398 to eliminate artefacts in bilinear interpolation.
400 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
402 * grub-core/video/readers/tga.c: Support paletted tga.
404 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
406 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
407 incorrect cbcr setting when in color mode.
409 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
411 * grub-core/video/readers/png.c: Support paletted images and clean up
414 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
416 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
417 usage of wrong table which resulted in mishandling of 4-byte
420 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
422 * grub-core/term/terminfo.c: Add Home and End key sequences.
424 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
426 * grub-core/video/readers/png.c (grub_png_decode_image_header):
427 Fix formula for computing total number of bytes.
429 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
431 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
432 image processing, fix big-endian and support grayscale.
434 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
436 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
437 Correctly will with maximum transparency when using index color.
439 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
441 * grub-core/video/readers/png.c: Support grayscale
443 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
445 * grub-core/video/readers/jpeg.c: Support grayscale.
447 2013-09-26 Jon McCune <jonmccune@google.com>
449 * grub-core/commands/loadenv.c: Support skipping signature check
450 and variable names filtering.
452 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
454 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
455 * grub-core/kern/emu/hostfs.c: Likewise.
456 * util/getroot_unix.c: Likewise.
458 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
460 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
461 Migrate all explicit defines to this new one.
463 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
465 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
466 grub_util_fd_strerror when using grub_util_fd_*.
467 (grub_util_fd_open_device): Likewise.
468 (grub_util_biosdisk_read): Likewise.
469 (grub_util_biosdisk_write): Likewise.
470 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
471 (grub_util_fd_strerror): Likewise.
472 (grub_util_fd_sync): Likewise.
473 (grub_util_fd_close): Likewise.
474 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
475 (grub_util_fd_close): Likewise.
476 (grub_util_fd_strerror): Likewise.
477 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
478 function proto rather than macro.
479 (grub_util_fd_sync): Likewise.
480 (grub_util_fd_open): Likewise.
481 (grub_util_fd_strerror): New proto.
483 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
485 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
486 platforms on which it doesn't work.
488 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
490 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
491 stat immediately to where it's used.
493 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
495 * util/getroot.c (grub_util_check_block_device): Move to ...
496 * util/getroot_unix.c (grub_util_check_block_device): ... here.
497 * util/getroot.c (grub_util_check_char_device): Move to ...
498 * util/getroot_unix.c (grub_util_check_char_device): ... here.
500 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
502 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
505 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
507 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
509 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
511 * docs/grub.texi (File name syntax): Document ZFS filenames
512 (/volume@snapshot/...).
514 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
516 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
517 Always return full path. Fixes a problem with mkrelpath.
519 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
521 * util/grub-install.in: Add GPT PReP support.
522 * util/grub-probe.c (probe): Support GPT partition type.
523 (main): Support -t gpt_parttype.
525 2013-09-23 Aleš Nesrsta <starous@volny.cz>
527 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
529 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
531 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
533 2013-09-23 Tim Hardeck <thardeck>
535 * util/grub.d/10_hurd.in: Filter out character for the class.
536 * util/grub.d/10_kfreebsd.in: Likewise.
537 * util/grub.d/10_linux.in: Likewise.
538 * util/grub.d/20_linux_xen.in: Likewise.
540 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
542 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
545 2013-09-23 Josh Triplett <josh@joshtriplett.org>
547 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
550 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
552 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
553 doesn't use posix_wrap. Keep literal -fno-builtin however.
555 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
557 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
559 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
562 * configure.ac: Do not enable -Wmissing-noreturn as its
563 usefulness is limited and creates problems on some OS notably with
564 code generated by bison.
566 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
569 * configure.ac: Do not explicitly enable -Waddress as it's not
570 supported by all gcc and when it is, it's already enabled by -Wall.
572 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
574 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
575 desactivated use of EDID at all.
577 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
580 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
581 video if no text is available.
583 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
586 * configure.ac: Substitute TARGET_RANLIB.
588 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
591 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
593 Based on patches from AROS.
595 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
598 * grub-core/Makefile.am: Override STRIP and RANLIB.
599 * configure.ac: compute TARGET_RANLIB.
600 * INSTALL: Document TARGET_RANLIB
602 Based on patches from AROS.
604 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
606 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
607 that floppies are unpartitioned.
609 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
611 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
612 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
614 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
616 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
617 less nice but more portable.
618 * grub-core/lib/posix_wrap/wchar.h: Likewise.
620 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
622 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
624 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
626 (grub_cryptodisk_cheat_insert): Likewise.
627 (grub_cryptodisk_close): Likewise.
629 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
631 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
632 Use windows path for DEFAULT_DIRECTORY.
634 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
636 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
637 difference was likely just gcc version, not anything mingw-related.
639 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
641 Use Winapi on both cygwin and mingw32 to share more code between both.
643 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
645 * util/grub-install.in: Add --grub-editenv option.
646 * util/grub-install_header (grub_compress_file): Explicitly check for
647 plain file to avoid cp error.
649 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
651 * docs/grub.texi (Device syntax): Document new LVM UUID based device
652 names; fix LVM driver name (lvm, not lv).
653 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
656 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
658 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
659 files rather than one file with loads of #if's.
660 * util/getroot.c: Likewise.
662 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
664 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
666 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
668 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
669 GNU/Hurd to the list of checked PRNG.
671 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
673 * configure.ac: On FreeBSD use -melf_*_fbsd format.
675 2013-09-21 Ales Nesrsta <starous@volny.cz>
677 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
679 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
681 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
682 * grub-core/disk/lvm.c: Add LVM UUIDs.
683 * util/getroot.c: Use LVM UUIDs whenever possible.
685 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
687 * docs/grub.texi (Networking commands): Add documentation for
688 network related commands.
690 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
692 * util/getroot.c (grub_util_open_dm): Check major rather than the name
693 to determine if device is handled by devmapper.
694 (convert_system_partition_to_system_disk): Likewise.
695 (get_dm_uuid): Don't check explicitly if device is mapped, it's
696 already done in grub_util_open_dm.
698 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
700 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
701 Clean up stack manipulation (sync_caches_armv*)
703 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
705 * util/lvm.c: Remove since unused. Remove remaining references.
707 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
709 Handle the case of partitioned LVM properly.
711 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
712 Stop on meeting LVM, mpath or DMRAID.
713 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
714 (read_device_map): Likewise.
715 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
716 device is full disk rather than erroring out on LVM and similar cases.
718 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
720 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
722 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
724 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
726 Reported by: Leif Lindholm
728 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
729 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
731 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
734 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
736 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
737 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
739 2013-09-18 Douglas Ray <dougray@cpan.org>
741 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
744 2013-09-18 Aleš Nesrsta <starous@volny.cz>
746 * docs/grub.texi: Fix broken link.
748 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
750 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
751 to break endless loop.
753 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
755 * util/grub-fstest.c: Fix several printf formats.
756 * util/grub-mkimage.c: Likewise.
757 * util/grub-mkimagexx.c: Likewise.
758 * util/grub-script-check.c: Likewise.
760 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
762 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
765 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
767 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
769 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
771 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
772 removed in current versions cygwin_conv_*.
774 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
776 * configure.ac: Disable efiemu runtime on cygwin.
778 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
780 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
781 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
783 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
785 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
788 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
790 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
792 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
795 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
797 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
798 when on x86 and not cygwin.
799 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
802 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
804 * configure.ac: Set CPP to build one when checkoing for freetype for
807 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
809 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
810 [!GRUB_BUILD]: Remove has_argument.
812 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
814 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
815 Replace with a dummy.
817 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
819 * configure.ac: Don't change host_os from mingw to cygwin.
821 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
823 * configure.ac: Change target_os from windows to cygwin.
825 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
827 Handle grub-pe2elf and grub-mkfont for cases when build != host.
829 * Makefile.am (build-grub-mkfont): Don't include gnulib.
830 (build-grub-gen-asciih): Likewise.
831 (build-grub-gen-widthspec): Likewise.
832 * Makefile.util.def (grub-pe2elf): Remove.
833 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
834 * configure.ac: Separate tests for build.
835 Move ./build-grub-pe2elf to grub-core.
837 * grub-core/Makefile.am (build-grub-pe2elf): New target.
838 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
840 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
842 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
843 * util/grub-pe2elf.c: Simplify not to rely on getopt.
844 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
846 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
848 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
849 mingw32 as well based on grub_util_get_disk_size.
850 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
851 grub_util_get_fd_size.
853 (fsync): Moved to ...
854 * grub-core/kern/emu/misc.c (fsync): ... here.
856 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
858 * include/grub/mm.h (grub_extend_alloc): Remove.
859 * grub-core/loader/i386/pc/plan9.c: Use own version of
860 grub_extend_alloc with appropriate types.
862 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
864 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
866 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
868 * util/getroot.c: Include sys/wait.h only when we need waitpid.
870 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
872 Fix dependencies on cygwin.
874 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
875 dependencies when used and defined.
876 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
878 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
880 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
881 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
883 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
885 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
886 implementation available to cause compile-time rather than runtime
889 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
891 * util/grub-fstest.c: Don't check for symlinks on windows.
893 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
895 * INSTALL: Mention unavailability of man pages when cross-compiling.
897 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
899 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
901 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
903 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
905 * INSTALL: Document cross-compilation.
906 * acinclude.m4: Determine whether nm support -P and --defined-only.
907 * configure.ac: Add TARGET_ to all variables pertaining to target
908 that don't have it yet.
909 * gentpl.py: Likewise.
910 * grub-core/Makefile.am: Likewise.
911 * grub-core/genmod.sh.in: Likewise.
912 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
915 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
917 * configure.ac: Remove -Wempty-body. It's not essential and needs
920 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
922 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
923 * util/getroot.c: Likewise.
925 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
927 * grub-core/disk/ahci.c: Add needed explicit cast.
928 * grub-core/lib/backtrace.c: Likewise.
929 * grub-core/net/ip.c: Likewise.
930 * grub-core/net/tcp.c: Likewise.
931 * grub-core/net/udp.c: Likewise.
933 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
935 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
937 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
939 * util/import_gcry.py: Add final newline in visibility.h.
941 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
943 * conf/Makefile.common: Fix typo.
945 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
947 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
949 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
951 * Makefile.am (widthspec.h): Fix typo.
952 * util/grub-gen-widthspec.c: Likewise.
954 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
956 Move ascii.h and widthspec.h generation to a separate build-time-only
959 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
961 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
962 Always fill bootdisk info and improve check for NetBSD disklabel.
964 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
966 * conf/Makefile.extra-dist: Add util/bin2h.c.
967 Reported by: floppym.
969 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
971 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
973 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
975 * configure.ac: Disable unifont and starfield if no freetype was found.
977 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
979 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
980 on NetBSD and OpenBSD.
982 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
984 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
986 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
988 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
989 reduced. Inheritant options are processed during the theme loading.
991 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
993 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
995 2013-08-14 Avik Sil <aviksil@in.ibm.com>
997 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
999 2013-08-14 Avik Sil <aviksil@in.ibm.com>
1001 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
1004 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1006 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
1007 remove-potcdate.sed.
1009 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1011 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
1012 unused attribute from pull argument.
1014 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1016 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
1019 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1021 * util/getroot.c (pull_lvm_by_command): add --separator option
1022 to vgs call to disable padding of output to 10 characters.
1024 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1026 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
1028 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
1031 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1033 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
1036 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1038 Fix handling of build-time grub-bin2h and grub-mkfont when doing
1039 full Canadian cross. Tested with build=x86_64, host=arm,
1040 target=ppc-ieee1275.
1042 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1044 * configure.ac: Error if no $BUILD_CC could be found.
1047 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1049 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
1052 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1054 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
1055 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
1057 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
1059 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
1060 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
1061 falling back to the partition device, otherwise a later call to this
1062 function may fail spuriously.
1063 Reported by Axel Beckert. Fixes Debian bug #708614.
1065 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
1067 * autogen.sh: Replace find -not by the POSIX-compliant find !.
1069 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
1071 Prevent shadowing of stdlib's devname(3) on BSD.
1073 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
1074 and devlast to diskname and disklast, respectively.
1076 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
1078 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
1080 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1082 * docs/grub.texi: Introduce terminal window position options:
1083 terminal-left: terminal window's left position
1084 terminal-top: terminal window's top position
1085 terminal-width: terminal window's width
1086 terminal-height: terminal window's height
1087 terminal-border: terminal window's border width
1088 * grub-core/gfxmenu/theme-loader.c: Likewise.
1089 * include/grub/gfxmenu_view.h: Likewise.
1090 * po/exlude.pot: Likewise.
1091 * grub-core/gfxmenu/view.c: Likewise.
1092 Also updated minimal window size.
1093 Also terminal_sanity_check function has been introduced.
1094 * grub-core/tests/checksums.h: Update (terminal window height
1095 is adjusted now for low resolution screen)
1097 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1099 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
1102 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1104 * po/exclude.pot: Add few recent exceptions.
1106 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1108 * tests/grub_func_test.in: Add unicode.pf2.
1110 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1112 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
1113 standard rather than noral color, in line with other terminals.
1115 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1117 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
1120 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1122 * grub-core/loader/arm/linux.c: Change printf to dprintf.
1124 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1126 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
1127 inappropriate printf.
1129 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
1131 * .bzrignore: Remove grub-core/lib/dtc-grub,
1132 grub-core/Makefile.libfdt.def
1133 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
1135 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1137 * include/grub/video.h (grub_video_register): Keep double-linked as
1138 well as single-linked invariants.
1139 Reported by: qwertial.
1141 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1143 * grub-core/commands/nativedisk.c (get_uuid): Handle
1144 GRUB_DISK_DEVICE_UBOOTDISK_ID.
1146 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
1148 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
1149 maximum of NW, N, NE heights instead of N's height and maximum of
1150 NW, W, SW widths instead of W's width. (So the box will be always
1153 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1155 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
1156 Fix misuse of variable count.
1158 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
1159 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
1160 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
1162 New ports to arm-uboot and arm-efi.
1163 Mostly by Leif Lindholm with some additions from
1164 Francesco Lavra and cleanup by Vladimir Serbinenko.
1166 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1168 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
1170 Reported by: Leon Drugi.
1172 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1174 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
1175 Reported by: Paulo Flabiano Smorigo.
1177 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
1179 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
1181 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
1183 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
1185 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1187 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
1189 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1191 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
1193 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
1195 * grub-core/net/bootp.c: Export net_* variables.
1196 * grub-core/net/net.c: Likewise.
1198 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1200 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
1202 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1204 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
1206 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1208 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
1210 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1212 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
1214 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1216 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
1219 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1221 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
1224 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1226 * grub-core/fs/zfs/zfs_lz4.c: New file.
1227 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
1229 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1231 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
1233 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1235 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
1236 (check_pool_label): Likewise.
1237 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
1239 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1241 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
1243 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
1245 * docs/grub.texi (Commands): Document postition parameters
1246 for menuentry command.
1248 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
1250 * util/grub-mknetdir.in: Remove stray line from help output.
1252 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1254 Remove early sm712 init as there is no reason for it (the "watchdog"
1255 effect was due to wrong GPIO map).
1257 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1259 * grub-core/commands/pcidump.c: Remove static variables.
1261 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1263 * grub-core/commands/sleep.c: Refresh screen before sleeping.
1265 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1267 * configure.ac: Move delimiter after the infos.
1269 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1271 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
1273 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1275 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
1276 not filling whole 8x16 space.
1278 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1280 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
1282 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1284 * configure.ac: Indicate which liblzma is used if any.
1286 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
1287 2013-06-21 Craig Sanders <savannah@taz.net.au>
1289 * util/grub-reboot.in: Document submenu usage.
1291 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
1293 * .bzrignore: Update with a number of new test-related files.
1295 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
1297 * util/grub-script-check.c: Fail on scripts containing no
1298 commands, to guard against corrupted grub-mkconfig setups that
1299 produce no useful output.
1300 * tests/grub_script_no_commands.in: New test.
1301 * Makefile.util.def (grub_script_no_commands): Add.
1302 Reported by Hans Putter. Fixes Debian bug #713886.
1304 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
1306 * grub-core/disk/diskfilter.c: Forgot to remove comment
1307 from previous commit.
1309 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
1311 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
1312 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
1314 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
1316 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
1318 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
1320 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
1321 rescan diskfilter devices until nothing new is found.
1323 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1325 Fix casts when compiling coreboot-specific code for 64-bit EFI.
1327 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1329 Don't try to detect cbfs on *-emu.
1331 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1333 * grub-core/term/gfxterm.c: USe right background color when scrolling.
1335 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1337 Add support for processed coreboot payload chainloading.
1339 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1341 Enable coreboot information commands even when not loaded as
1342 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
1344 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1346 Support for cbfs. Also factor out the part which is common
1347 for all archives to a separate module. This splits tar from cpio
1348 as they are very different but keeps cpio, cpio_be, odc and newc
1349 together since they're very similar.
1351 2013-06-15 David Michael <fedora.dm0@gmail.com>
1353 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
1354 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
1356 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1358 * tests/grub_script_eval.in: Really add the eval test.
1360 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1362 Move flavour-specific parts out of common cpio.c file and
1363 rename remaining to cpio_common.c
1365 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
1367 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
1368 off new function grub_script_execute_new_scope. Change callers to use
1369 either of them as appropriate.
1370 * grub-core/commands/eval.c: New command eval.
1371 * docs/grub.texi (Commands): Document it.
1373 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
1375 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
1376 to fetch values when listing.
1378 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
1380 Fix make dist on non-pc.
1382 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
1384 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
1385 without a device name.
1387 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1389 Remove enable_executable_check as it's not needed anymore.
1390 Reported by: dougray.
1392 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1394 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
1395 ambigouos RAID before discovering RAIDs on top of it.
1398 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1400 Fix typo (failback vs fallback).
1402 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
1404 * util/grub.d/30_os-prober.in: Add support for probing EFI
1405 System Partition (as of os-prober 1.58).
1407 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1409 * configure.ac: Add yet another path to unifont. For parabola.
1411 2013-05-30 Josh Triplett <josh@joshtriplett.org>
1413 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
1414 handling to copy the killed characters to the kill buffer as
1415 UCS4 stored as grub_uint32_t rather than as 8-bit characters
1416 stored as char. Eliminates UCS4 truncation and corruption
1417 observed when killing characters with Ctrl-u and yanking them
1420 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1422 Detach optional parts of gfxterm and integrate in with coreboot init.
1424 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1426 Move blit and fill dispatcher to appropriate files to decrease export
1427 and relocation overhead.
1429 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1431 * grub-core/font/font.c, include/grub/font.h: Inline simple font
1434 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1436 * grub-core/Makefile.am: Fix compilation problem with some
1439 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1441 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
1443 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1445 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
1448 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1450 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
1453 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
1455 * grub-core/partmap/dfly.c: New partition map.
1457 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1459 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
1461 Reported by: Francesco Lavra.
1463 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
1465 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
1466 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
1468 * conf/Makefile.common: define dist_grubconf_DATA
1470 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1472 Progressively skip menu elements on small terminals rather
1475 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1477 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
1478 to avoid losing last column.
1480 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1482 * po/exclude.pot: Add missing string "%C".
1484 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1486 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
1489 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1491 * util/grub-install.in: Gettextize "Not found" message.
1493 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1496 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1498 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1500 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
1502 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
1504 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1506 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
1508 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1510 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
1511 attribute since structure is not necessarily aligned.
1513 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
1515 * docs/grub.texi (Device syntax): Clarify description of network
1518 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1520 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
1521 for vasprintf presence.
1523 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1525 * util/grub-install.in: Handle efibootmgr presence check.
1526 Reported by: Leif Lindholm.
1528 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1530 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
1531 new strings to translate.
1533 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1535 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
1536 yet another string (pun intended) to translate.
1538 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1540 * po/POTFILES-shell.in: Autogenerate it.
1542 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1544 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
1546 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1548 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
1551 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
1553 * docs/grub.texi (Network): Add description of net_default_interface,
1554 net_default_ip and net_default_mac. Rewrite variables description
1555 to emphasize that they are per-interface.
1557 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1559 New test: cmdline and cat.
1561 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1563 * grub-core/commands/cat.c: Show UTF-8 characters.
1565 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1567 * conf/Makefile.common: Poison float and double on non-emu.
1569 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1571 * configure.ac: Don't disable extended registers on emu.
1573 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1575 * configure.ac: Don't use extended registers on x86_64.
1576 Reported by: Peter Jones.
1578 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1580 * grub-core/term/efi/console.c: Fix compile error.
1582 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1584 Compressed HFS+ support.
1586 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1588 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
1591 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1595 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1597 * grub-core/tests/setjmp_test.c: New test.
1599 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1601 New variables 'net_default_*' to determine MAC/IP of default interface.
1603 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1605 * tests/gettext_strings_test.in: A test to check for strings not
1606 marked for translation.
1608 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1610 * autogen.sh: Exclude unused libgcrypt files from translation.
1612 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1614 Simplify few strings.
1616 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1618 Mark few forgotten strings for translation.
1620 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1622 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
1625 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1627 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
1629 * grub-core/video/readers/tga.c: Likewise.
1631 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1633 * tests/priority_queue_unit_test.cc: New test.
1635 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1637 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
1640 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
1642 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
1643 variable for one time boot menu entry.
1645 2013-05-05 Bean <bean123ch@gmail.com>
1647 * grub-core/commands/testspeed.c: New command testspeed.
1649 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1651 Factor-out human-size printing.
1653 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1655 Agglomerate more mallocs to speed-up gfxterm.
1657 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1659 Speed-up gfxterm by slightly agglomerating mallocs.
1661 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1665 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1667 Speed-up gfxterm by saving intermediate results in index+alpha
1670 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1672 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
1675 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1677 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
1678 line of timeout as it may contain the rest of long line.
1680 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1682 * grub-core/normal/main.c: Fix freed memory dereference.
1684 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1686 Fix several memory leaks.
1688 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1690 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
1692 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1694 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
1696 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1698 Fix test -a and -o precedence.
1699 Reported by: adrian15.
1701 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1703 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
1705 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
1707 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
1708 and add it as source to functional_test module.
1710 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1712 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
1714 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1716 New series of tests for gfxterm and gfxmenu.
1718 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1720 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
1721 the theme path relative to $prefix/themes.
1723 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1725 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
1727 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
1729 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1731 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
1734 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1736 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
1737 grub_gfxmenu_timeout_notifications.
1738 (grub_gfxmenu_view_destroy): Likewise.
1740 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1742 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
1744 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1746 Several fixes to ieee1275 and big-endian video.
1748 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1750 Add missing exports on mips.
1752 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1754 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
1755 if no unifont is found.
1756 Restore original keyboard.
1758 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1760 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
1761 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
1763 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1765 First automated video test (running videotest and comparing results)
1767 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1769 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
1770 instead of 2 to have full RGB/CMY test pattern.
1772 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1776 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1778 * include/grub/arc/arc.h: Account for missing "other" peripheral on
1779 ARCS. All users updated.
1781 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1783 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
1785 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1787 * grub-core/partmap/amiga.c: Fix size of checksummed block.
1789 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1791 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
1792 Reported by: qwertial.
1794 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
1796 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
1797 with syntax "XXX deg"/"XXX °".
1799 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1801 Make PCI init in i386-qemu port more robust.
1803 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
1805 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
1806 cached view is reused.
1807 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
1810 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1812 Unify more code in grub-install_header.
1814 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1818 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1820 Enforce disabling of firmware disk drivers when native drivers kick in.
1822 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1824 * grub-core/commands/nativedisk.c: Customize the list of modules on
1825 platform. Don't try to search for disks already using native drivers.
1827 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1829 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
1832 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1834 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
1835 handling of variables containing backslash.
1837 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1839 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
1841 Reported by: qwertial.
1843 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1845 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
1847 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1849 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
1851 Reported by: qwertial.
1853 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1855 * docs/grub.texi: Add a comment about usefullness of nativedisk.
1857 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1859 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
1861 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1863 New command `nativedisk'.
1865 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1867 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
1868 * grub-core/loader/i386/bsd.c: Likewise.
1870 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1872 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
1874 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1876 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
1877 grub_get_unaligned16 rather than shifts.
1879 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1881 * grub-core/kern/file.c: Use const char * rather than casting to
1884 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1886 * grub-core/commands/probe.c: Add missing grub_device_close.
1888 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1890 * INSTALL: Document linguas.sh.
1892 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1894 Remove POTFILES.in and regenerate it in autogen.sh.
1896 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1898 Move --directory/--override-directorry to grub-install_header and unify.
1900 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1902 * grub-core/term/morse.c: Macroify dih and dah.
1904 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1906 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
1908 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1910 * grub-core/term/ns8250.c: Systematically probe ports by writing
1911 to SR before using them.
1913 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1915 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
1917 (check_sas): Get sas_adress info.
1919 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1921 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
1924 2013-04-27 Leon Drugi <eyak>
1926 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
1929 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1931 Core compression test.
1933 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1935 Implement grub_machine_get_bootlocation for ARC.
1937 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1939 Improve AHCI detection and command issuing.
1941 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1945 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1947 Make 'make check' work on emu.
1949 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1951 Replace libcurses with our own vt100 handling for the ease of testing
1952 and decreasing prerequisites.
1954 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1956 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
1958 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1960 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
1961 compile when not needed.
1963 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1965 * tests/pseries_test.in: New test.
1967 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1969 Add test to check that different boot mediums work.
1971 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1973 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
1974 ofw limited ISO support.
1976 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1978 * configure.ac: Fix loongson conditional.
1980 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1984 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1986 Add serial on ARC platform.
1988 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1990 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
1993 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1995 * tests/partmap_test.in: Add missing double semicolon.
1997 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1999 * util/grub-mkrescue.in: Fix loongson filename.
2001 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2003 * util/grub-mkrescue.in: Move all files that don't have a location
2004 set in stone under /boot/grub. Use ISO hard links rather than copies
2007 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2009 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
2012 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2014 Make check work on mips-arc.
2016 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2018 * util/grub-mkrescue.in: Alias sashARCS as sash.
2020 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2022 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
2025 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2027 * util/grub-install.in: Fix target fo qemu_mips.
2028 Fix extension on EFI.
2030 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2032 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
2033 in front of chosen entry to mark it even if highlighting is lost.
2035 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2037 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
2038 gfxpayload=keep if cbfb is active.
2040 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2042 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
2044 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2046 Add missing video ids to coreboot and ieee1275 video.
2048 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2050 * util/grub-mkrescue.in: Add mips-arc support.
2052 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2054 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
2056 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2058 Move mips-arc link address. Previous link address was chosen
2059 in belief that RAM on SGI platforms grows down while in fact it
2060 grows up from an unusual base.
2062 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2064 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
2065 Fix a type which prevented CD-ROM and floppy boot.
2067 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2069 Support coreboot framebuffer.
2071 * grub-core/video/i386/coreboot/cbfb.c: New file.
2073 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2075 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
2076 detecting too small regions.
2078 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2080 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
2082 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2084 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
2086 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
2088 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2090 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
2091 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
2092 * grub-core/loader/powerpc/ieee1275/linux.c
2093 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
2095 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2097 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
2098 Look for /boot-rom as well as /rom/boot-rom.
2100 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2102 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
2103 handling when creating text_layer failed.
2104 * grub-core/video/video.c (grub_video_create_render_target):
2105 Set result to 0 on error.
2106 (grub_video_delete_render_target): Do not dereference NULL.
2108 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2110 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
2111 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
2112 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
2113 (grub_linux_load64): Mask out 2 high bits.
2115 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
2117 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
2120 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2122 Add support for pseries and other bootinfo machines to grub-mkrescue.
2124 Tested by: Paulo Flabiano Smorigo.
2126 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2128 * util/grub-mkrescue.in: Add GPT for EFI boot.
2130 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2132 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
2133 It improves performance in qemu.
2135 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2137 * build-aux/snippet: Add missing gnulib files.
2139 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
2141 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
2143 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
2145 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
2147 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2148 2013-04-15 Peter Jones <pjones@redhat.com>
2150 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
2152 Based on patch by Peter Jones.
2154 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2156 Fix DMRAID partition handling.
2158 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2160 * tests/grub_cmd_date.in: Skip on sparc64.
2162 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2164 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
2165 firmware error messages.
2167 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2169 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
2170 source and destination differ.
2172 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2174 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
2177 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2179 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
2180 match config-util.h to avoid warnings and increase compatibility.
2182 2013-04-14 Szymon Janc <szymon@janc.net.pl>
2183 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2185 Add option to compress files on install/image creation.
2187 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2189 * docs/grub-dev.texi: Rearrange menu to match the section order.
2190 Reported by: Bryan Hundven.
2192 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2194 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
2196 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2198 Move GRUB out of system area when using xorriso 1.2.9 or later.
2200 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2202 * tests/grub_cmd_date.in: Add missing exit 1.
2204 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2206 * tests/partmap_test.in: Skip on sparc64.
2208 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2210 Support grub-shell on sparc64.
2212 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2214 Support mkrescue on sparc64.
2216 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2218 Allow IEEE1275 ports on path even if it wasn't detected automatically.
2219 Needed on OpenBIOS due to incomplete device tree.
2221 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2223 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
2224 would be otherwise excluded.
2226 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2228 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
2229 Inline name defines used only once.
2231 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2233 Fix memory leaks in ofnet.
2234 Reported by: Francesco Lavra.
2236 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2238 * docs/man/grub-glue-efi.h2m: Add missing file.
2240 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2242 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
2244 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2246 Better support Apple Intel Macs on CD.
2248 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2250 Replace stpcpy with grub_stpcpy in tools.
2252 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2254 Handle Japanese special keys.
2255 Reported by: Hiroyuki YAMAMORI.
2256 Codes supplied by: Hiroyuki YAMAMORI.
2258 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2260 * util/grub-mkimage.c: Document memdisk implying --prefix.
2262 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2264 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
2265 much we can do about it anyway.
2267 2013-04-12 Aleš Nesrsta <starous@volny.cz>
2269 Fix handling of split transfers.
2271 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2273 * grub-core/net/http.c: Fix bad free.
2275 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2277 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
2280 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2282 Disable partmap check on i386-ieee1275 due to openfirmware issues.
2284 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2286 * tests/util/grub-shell.in: Fix it on powerpc.
2288 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2290 Turn off QEMU ACPI-way since new releases don't have shutdown port
2293 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2295 * docs/grub.texi: Update coreboot status info.
2297 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2299 * tests/grub_cmd_date.in: New test for datetime.
2301 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2303 * tests/partmap_test.in: Fix missing qemudisk setting.
2305 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2307 Support i386-ieee1275 grub-mkrescue and make check on it.
2309 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2311 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
2314 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2316 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
2317 GRUB_CMDLINE_XEN_DEFAULT.
2318 Reported by: Marc Warne (GigaTux) <gigatux>
2320 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2324 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2326 Use ACPI shutdown intests as traditional port was removed.
2328 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
2330 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
2333 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2335 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
2336 Fix few warining messages and leaks while on it.
2338 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
2340 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
2341 links under grub-core/lib/libgcrypt-grub/mpi.
2343 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2345 Fix ia64-efi image generation on big-endian machines. Deduplicate
2346 some code while on it.
2347 Reported by: Leif Lindholm.
2349 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
2351 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
2354 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
2356 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
2358 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
2360 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
2363 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2365 * grub-core/normal/term.c: Few more fixes for menu entry editor
2367 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2369 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2371 * grub-core/normal/term.c: Few more fixes for menu entry editor
2373 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2375 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
2377 * conf/Makefile.extra-dist (EXTRA_DIST): Add
2378 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
2380 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
2382 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
2383 instead of hardcoding grub.mo.
2385 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
2387 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
2389 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2391 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
2392 grub-core/disk/geli.c.
2394 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2396 * util/grub-mkfont.c: Prefer enum to #define.
2398 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2400 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
2402 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2404 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
2406 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2408 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
2410 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2412 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
2414 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2416 * include/grub/bsdlabel.h: Use enums.
2418 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2420 Move GRUB_CHAR_BIT to types.h.
2422 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
2424 * docs/grub.texi: Document more user commands.
2426 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
2428 * docs/grub.texi: Document menuentry --id option.
2430 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
2432 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
2434 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2436 Unify file copying setup across different install scripts. Add
2437 options for performing partial install.
2439 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2440 2013-04-04 Peter Jones <pjones@redhat.com>
2442 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
2444 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2446 Use TSC as a possible time source on i386-ieee1275.
2448 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2450 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
2453 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2455 * util/grub-setup.c (setup): Handle some corner cases.
2457 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2459 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
2461 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2463 * grub-core/commands/verify.c: Save verified file to avoid it being
2464 tampered with after verification was done.
2466 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2468 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
2469 reported width by one to compensate for curesor algorithm problem.
2471 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2473 Fix screen corruption in menu entry editor and simplify the code
2476 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
2478 * util/grub-mount.c (fuse_init): Return error if fuse_main
2481 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
2483 * include/grub/elf.h: Add missing ARM relocation codes and fix
2486 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
2488 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
2490 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
2491 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2493 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
2494 into account when calculating radius.
2496 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
2498 * grub-core/gfxmenu/view.c: Fix off-by-one error.
2500 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
2502 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
2504 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
2506 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
2507 missing closing bracket.
2509 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
2511 * INSTALL: Mention xorriso requirement.
2513 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
2515 * grub-core/commands/verify.c: Fix hash algorithms values for
2516 the first three hashes - they start with 1, not with 0.
2518 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2520 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
2521 Try terminating EFI services several times due to quirks in some
2524 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
2526 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
2527 skipping Event, Device, Processor, PowerRes, ThermalZone, and
2528 BankField extended opcodes.
2529 (get_sleep_type): Add minimal scope handling (just enough to
2530 handle setting the scope to the root path).
2531 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
2532 * include/grub/acpi.h: Add enumeration values for Event, Device,
2533 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
2535 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
2537 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
2540 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
2542 * grub-core/disk/ahci.c: Give more time for AHCI request.
2544 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
2546 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
2549 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
2551 Replace the region at 0 from coreboot tables to available in BSD
2554 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2556 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
2559 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2561 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
2564 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2566 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
2567 handling of multi-device filesystems.
2569 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2571 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
2574 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2576 Add new 'proc' filesystem framework and put luks_script into it.
2578 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2580 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
2583 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2585 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
2587 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2589 Add ability to generate newc additions on runtime.
2591 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2593 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
2596 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
2598 * po/POTFILES.in: Regenerate.
2600 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2602 * grub-core/commands/verify.c (hashes): Add several hashes
2605 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2607 Slight improve in USB-related boot-time checkpoints.
2609 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2611 * grub-core/commands/boottime.c: Fix copyright header.
2613 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2615 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
2616 coreboot tables content. Support for cbmemc.
2618 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2620 Fix a conflict between ports structures with 2 controllers of
2623 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2625 * include/grub/boottime.h: Add missing file.
2627 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2629 Initialize USB ports in parallel to speed-up boot.
2631 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2633 Fix USB devices not being detected when requested
2634 due to delayed attach.
2636 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2638 Implement boot time analysis framework.
2640 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2642 Remove get_endpoint_descriptor and change all functions needing
2643 descriptor to just receive it as argument rather than endpoint
2646 2013-03-19 Aleš Nesrsta <starous@volny.cz>
2648 Better estimate the maximum USB transfer size.
2650 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2652 Resend a packet if we got the wrong buffer in status.
2654 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2656 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
2657 multiplication rather than division.
2659 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2661 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
2664 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2666 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
2667 operations to have intended shifts and not divisions.
2669 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2671 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
2672 intended shifts rather than division.
2674 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2676 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
2677 computation for some years before epoch. Avode confusing division
2680 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2682 * grub-core/video/i386/pc/vbe.c
2683 (grub_video_vbe_print_adapter_specific_info): Replace division by
2686 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2688 Adjust types in gdb module to have intended unsigned shifts rather than
2691 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2693 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
2694 maximum size is 4G - 1 on hfs
2696 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2698 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
2700 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2702 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
2705 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
2707 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
2708 causing gcc error with gcc 4.7.1.
2710 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
2712 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
2713 dereference null pointer. While the code is technically correct, gcc
2714 may eliminate a null check if pointer is already dereferenced.
2716 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
2718 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
2720 * grub-core/normal/term.c (read_terminal_list): Likewise.
2722 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2724 Lift up core size limits on some platforms. Fix potential memory
2725 corruption with big core on small memory systems. Document remaining
2728 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2730 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
2733 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2735 Remove all trampoline support. Add -Wtrampolines when
2736 present. Remove symbols used for trampolines to make
2737 link fail if trampolines are present.
2739 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2741 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
2742 append out of its parent.
2744 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2746 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
2749 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2751 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
2752 all vars to a macro. All users updated.
2754 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2756 * grub-core/disk/ieee1275/nand.c: Fix compilation on
2759 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2761 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
2763 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2765 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
2767 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2769 Move to more hookless approach in IEEE1275 devices handling.
2771 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2773 * grub-core/kern/term.c (grub_term_normal_color),
2774 (grub_term_highlight_color): Add back lost defaults.
2776 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2778 Make elfload not use hooks. Opt for flags and iterators instead.
2780 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2782 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
2783 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
2785 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2787 * grub-core/script/execute.c (gettext_append): Remove nested functions.
2789 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2791 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
2792 hook pass-through parameter. All users updated and unnested.
2794 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2796 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
2799 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2801 * grub-core/fs/hfs.c: Remove nested functions.
2803 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2805 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
2806 the context through.
2807 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
2809 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2811 * util/grub-editenv.c (list_variables): Move print_var out of its
2814 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2816 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
2819 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2821 * grub-core/gentrigtables.c: Make tables const.
2823 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2825 Remove nested functions from videoinfo iterators.
2827 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2829 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
2830 for 64-bit platforms.
2832 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2834 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
2835 a FOR_CHILDREN macro.
2837 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2839 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
2840 platform from firmware path.
2842 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2844 Enable linux16 on non-BIOS systems for i.a. memtest.
2846 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
2848 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
2850 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2852 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
2853 Fix end of table condition.
2855 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2857 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
2860 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2862 * grub-core/fs/jfs.c: Remove nested functions.
2864 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2866 * grub-core/fs/minix.c: Remove nested functions.
2868 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2870 * grub-core/fs/iso9660.c: Remove nested functions.
2872 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2874 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
2877 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2879 * util/grub-fstest.c: Remove nested functions.
2881 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
2883 * grub-core/loader/machoXX.c: Remove nested functions.
2885 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
2887 Remove nested functions from disk and file read hooks.
2889 * include/grub/disk.h (grub_disk_read_hook_t): New type.
2890 (struct grub_disk): Add read_hook_data member.
2891 * include/grub/file.h (struct grub_file): Likewise.
2892 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
2897 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
2899 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
2900 Fix off by one error in enumerating extended partitions.
2902 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
2904 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
2905 memory leak if device name is not found.
2907 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2909 * grub-core/normal/menu_entry.c (update_screen): remove
2910 unused variable `off' which caused scroll down arrow to be always shown.
2912 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2914 * grub-core/normal/menu_entry.c (insert_string): fix off by one
2915 access to unallocated memory.
2917 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2919 * Makefile.util.def: Add partmap/msdos.c to common library.
2920 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
2921 * grub-core/disk/ldm.c: Check for existence of
2922 GRUB_PC_PARTITION_TYPE_LDM.
2924 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2926 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
2927 sizes and display sector size.
2929 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2931 Implement new command cmosdump.
2933 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2935 Support Openfirmware disks with non-512B sectors.
2937 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
2939 * (grub_ofdisk_get_block_size): New function.
2940 * (grub_ofdisk_prepare): Use the correct block size.
2941 * (grub_ofdisk_read): Likewise.
2942 * (grub_ofdisk_write): Likewise.
2943 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
2946 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2948 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
2950 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2952 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
2955 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
2960 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2962 Implement USBDebug (full USB stack variant).
2964 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2966 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
2967 unless they have unexpected values.
2969 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2971 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
2974 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2976 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
2977 zero-out of port structure.
2979 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2981 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
2982 of extended attributes.
2984 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
2986 * util/grub-install.in: change misleading comment about
2989 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2991 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
2992 when menu highlight color isn't set.
2994 2013-01-27 C. Masloch <pushbx@38.de>
2996 Improve FreeDOS direct loading support compatibility.
2998 * include/grub/i386/relocator.h (grub_relocator16_state):
3000 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
3002 (grub_relocator16_boot): Handle %ebp.
3003 * grub-core/lib/i386/relocator16.S: Likewise.
3004 * grub-core/loader/i386/pc/freedos.c:
3005 Load BPB to pass kernel which partition to load from.
3006 Check that kernel file is not too large.
3007 Set register dl to BIOS unit number as well.
3009 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
3011 * util/grub-reboot.in (usage): Document the need for
3013 * util/grub-set-default.in (usage): Likewise.
3014 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
3016 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3018 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
3019 than defining WORDS_BIGENDIAN manually.
3021 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3023 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
3026 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3028 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
3030 (blit_comb: add_device_width): Likewise.
3032 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3034 Remove nested functions from USB iterators.
3036 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
3037 (grub_usb_controller_iterate_hook_t): Likewise.
3038 (grub_usb_iterate): Add hook_data argument.
3039 (grub_usb_controller_iterate): Likewise.
3040 (struct grub_usb_controller_dev.iterate): Likewise.
3042 Update all implementations and callers.
3044 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3046 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
3047 margin when not needed.
3049 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3051 Make color variables global instead of it being per-terminal.
3053 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3055 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
3058 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3060 Fix powerpc and sparc64 build failures caused by un-nesting memory
3063 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3065 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
3066 parameter declarations.
3068 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3070 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
3072 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3074 Improve spkmomdem reliability by adding a separator between bytes.
3076 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3078 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
3079 an Acer registration utility with several sightings in the wild.
3080 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
3082 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3084 Remove nested functions from filesystem directory iterators.
3086 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
3087 (struct grub_fs.dir): Add hook_data argument.
3089 Update all implementations and callers.
3091 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3093 * docs/grub.texi (Multi-boot manual config): Fix typo for
3096 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
3098 * util/grub-mkimage.c (main): Postpone freeing arguments.output
3099 until after its use in generate_image.
3101 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
3103 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
3104 initrd size to addr_min, since the initrd will be allocated after
3107 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
3109 * conf/Makefile.common: Fix autogen rules to pass definition
3110 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
3112 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
3114 * include/grub/elf.h: Update ARM definitions based on binutils.
3116 2013-01-20 Aleš Nesrsta <starous@volny.cz>
3118 Split long USB transfers into short ones.
3120 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
3122 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
3123 is interrupted by ESC.
3125 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3127 * util/grub-script-check.c (main): Uniform the error message.
3129 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
3131 Remove nested functions from ELF iterators.
3133 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
3135 Remove nested functions from device iterators.
3137 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
3138 (grub_arc_iterate_devs): Add hook_data argument.
3139 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
3140 (struct grub_ata_dev.iterate): Add hook_data argument.
3141 * include/grub/device.h (grub_device_iterate_hook_t): New type.
3142 (grub_device_iterate): Add hook_data argument.
3143 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
3144 (struct grub_disk_dev.iterate): Add hook_data argument.
3145 (grub_disk_dev_iterate): Likewise.
3146 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
3148 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
3150 * include/grub/partition.h (grub_partition_iterate_hook_t): New
3152 (struct grub_partition_map.iterate): Add hook_data argument.
3153 (grub_partition_iterate): Likewise.
3154 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
3155 (struct grub_scsi_dev.iterate): Add hook_data argument.
3159 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
3161 Fix typos for "developer" and "development".
3163 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3165 Add license header to spkmodem-recv.c.
3167 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
3169 Rewrite spkmodem to use PIT for timing. Double the speed.
3171 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3173 Add new command pcidump.
3175 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3177 New terminal outputs using serial: morse and spkmodem.
3179 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3181 Improve bidi handling in entry editor.
3183 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3185 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
3186 argument to prevent name collision.
3188 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
3190 Remove nested functions from script reading and parsing.
3192 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
3193 getline_data argument, passed to getline.
3194 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
3195 getline_data argument, passed to grub_parser_split_cmdline.
3196 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
3197 lexerstate->getline_data to lexerstate->getline.
3198 (grub_script_lexer_init): Add getline_data argument, saved in
3199 lexerstate->getline_data.
3200 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
3201 argument, passed to grub_script_parse.
3202 * grub-core/script/script.c (grub_script_parse): Add getline_data
3203 argument, passed to grub_script_lexer_init.
3204 * include/grub/parser.h (grub_parser_split_cmdline): Update
3205 prototype. Update all callers to pass appropriate getline data.
3206 (struct grub_parser.parse_line): Likewise.
3207 (grub_rescue_parse_line): Likewise.
3208 * include/grub/reader.h (grub_reader_getline_t): Add void *
3210 * include/grub/script_sh.h (struct grub_lexer_param): Add
3211 getline_data member.
3212 (grub_script_parse): Update prototype. Update all callers to pass
3213 appropriate getline data.
3214 (grub_script_lexer_init): Likewise.
3215 (grub_normal_parse_line): Likewise.
3217 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
3219 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
3220 static instead of nested. Rename to ...
3221 (grub_parser_execute_getline): ... this.
3222 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
3224 * grub-core/normal/main.c (read_config_file: getline): Make static
3225 instead of nested. Rename to ...
3226 (read_config_file_getline): ... this.
3227 (grub_normal_read_line): Add unused data argument.
3228 * grub-core/script/execute.c (grub_script_execute_sourcecode:
3229 getline): Make static instead of nested. Rename to ...
3230 (grub_script_execute_sourcecode_getline): ... this.
3231 * util/grub-script-check.c (main: get_config_line): Make static
3234 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
3236 Remove nested functions from memory map iterators.
3238 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
3239 argument, passed to hook.
3240 * grub-core/kern/i386/coreboot/mmap.c
3241 (grub_linuxbios_table_iterate): Likewise.
3242 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
3244 (grub_machine_mmap_iterate): Add hook_data argument.
3245 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
3246 Add hook_data argument, passed to hook.
3247 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
3249 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
3251 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
3253 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
3255 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
3257 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
3259 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
3260 (grub_machine_mmap_iterate): Likewise.
3261 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
3262 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
3264 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
3265 Remove NESTED_FUNC_ATTR from here and from all users.
3266 (grub_mmap_iterate): Update prototype.
3267 (grub_efi_mmap_iterate): Update prototype. Update all callers to
3268 pass appropriate hook data.
3269 (grub_machine_mmap_iterate): Likewise.
3271 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
3272 static instead of nested.
3273 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
3275 (lsmmap_hook): ... this.
3276 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
3278 (grub_efiemu_mmap_fill: fill_hook): Likewise.
3279 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
3280 heap_init): Likewise.
3281 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
3283 (mmap_iterate_hook): ... this.
3284 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
3286 * grub-core/lib/ieee1275/relocator.c
3287 (grub_relocator_firmware_get_max_events: count): Likewise.
3288 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
3290 (grub_relocator_firmware_fill_events_iter): ... this.
3291 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
3292 hook): Likewise. Rename to ...
3293 (grub_relocator_alloc_chunk_align_iter): ... this.
3294 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
3296 (generate_e820_mmap_iter): ... this.
3297 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
3299 (count_hook): ... this.
3300 (grub_linux_boot: hook): Likewise. Rename to ...
3301 (grub_linux_boot_mmap_find): ... this.
3302 (grub_linux_boot: hook_fill): Likewise. Rename to ...
3303 (grub_linux_boot_mmap_fill): ... this.
3304 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
3305 hook): Likewise. Rename to ...
3306 (grub_fill_multiboot_mmap_iter): ... this.
3307 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
3308 hook): Likewise. Rename to ...
3309 (count_hook): ... this.
3310 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
3311 hook): Likewise. Rename to ...
3312 (grub_fill_multiboot_mmap_iter): ... this.
3313 * grub-core/loader/powerpc/ieee1275/linux.c
3314 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
3315 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
3316 Likewise. Rename to ...
3317 (alloc_phys_choose): ... this.
3318 (determine_phys_base: get_physbase): Likewise.
3319 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
3320 find_hook): Likewise.
3321 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
3322 (malloc_hook: count_hook): Likewise.
3323 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
3324 Likewise. Rename to ...
3325 (lower_hook): ... this.
3326 (grub_mmap_get_upper: hook): Likewise. Rename to ...
3327 (upper_hook): ... this.
3328 (grub_mmap_get_post64: hook): Likewise. Rename to ...
3329 (post64_hook): ... this.
3330 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
3331 Likewise. Rename to ...
3332 (lower_hook): ... this.
3333 (grub_mmap_get_upper: hook): Likewise. Rename to ...
3334 (upper_hook): ... this.
3335 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
3336 (grub_mmap_iterate: fill_hook): Likewise.
3337 (fill_mask): Pass addr and mask within a single struct.
3338 (grub_cmd_badram: hook): Make static instead of nested. Rename
3340 (badram_iter): ... this.
3341 (grub_cmd_cutmem: hook): Likewise. Rename to ...
3342 (cutmem_iter): ... this.
3344 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3346 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
3347 delimit path in strings using quotes.
3348 * util/getroot.c (grub_guess_root_devices): Likewise.
3349 (grub_make_system_path_relative_to_its_root): Likewise.
3350 * util/grub-probe.c (probe): Likewise.
3351 * util/ieee1275/ofpath.c (find_obppath): Likewise.
3352 (xrealpath): Likewise.
3354 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3356 Fix compilation with older compilers.
3358 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
3359 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
3361 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
3362 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
3363 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
3365 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
3366 * include/grub/crypto.h: Add type defines.
3367 * util/import_gcrypth.sed: Remove duplicate type defines.
3369 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3371 New command list_trusted.
3373 * grub-core/commands/verify.c (grub_cmd_list): New function.
3375 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
3377 * util/grub-mkimage.c (generate_image): Fix "size of public key"
3380 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
3382 Remove nested functions from PCI iterators.
3384 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
3385 passed to hook. Update all callers to pass appropriate hook data.
3386 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
3387 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
3388 Remove NESTED_FUNC_ATTR from here and from all users.
3389 (grub_pci_iterate): Update prototype.
3390 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
3391 instead of nested. Rename to ...
3392 (grub_cs5536_find_iter): ... this.
3393 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
3394 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
3396 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
3398 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
3400 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
3402 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
3403 * grub-core/video/radeon_fuloong2e.c
3404 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
3405 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
3406 find_card): Likewise.
3407 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
3410 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3412 * grub-core/commands/verify.c: Mark messages for translating.
3414 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3416 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
3419 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3421 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
3424 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3426 * autogen.sh: Do not try to delete nonexistant files.
3427 * util/import_gcrypth.sed: Add some missing header removals.
3429 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
3431 Clean up dangling references to grub-setup.
3432 Fixes Ubuntu bug #1082045.
3434 * docs/grub.texi (Images): Refer generally to grub-install rather
3435 than directly to grub-setup.
3436 (Installing GRUB using grub-install): Remove direct reference to
3438 (Device map) Likewise.
3439 (Invoking grub-install): Likewise.
3440 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
3441 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
3442 * util/grub-install.in (usage): Likewise.
3444 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
3445 Apply to grub-bios-setup and grub-sparc64-setup rather than to
3447 * configure.ac: Remove grub_setup output variable.
3449 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
3451 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
3452 grub-setup to grub-sparc64-setup.
3454 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
3456 Import gcrypt public-key cryptography and implement signature checking.
3458 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3460 * grub-core/fs/ntfs.c: Ue more appropriate types.
3461 * grub-core/fs/ntfscomp.c: Likewise.
3462 * include/grub/ntfs.h: Likewise.
3464 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3466 Support Apple FAT binaries on non-Apple platforms.
3468 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
3469 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
3471 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
3474 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3476 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
3479 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
3481 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
3482 explicitly zeroing elements.
3483 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
3484 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
3485 of elements in a structure already allocated using grub_zalloc.
3486 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
3488 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
3490 * docs/grub.texi (grub_cpu): New subsection.
3491 (grub_platform): Likewise.
3493 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
3495 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
3497 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3499 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
3502 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3504 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
3505 * grub-core/fs/ntfscomp.c: Likewise.
3506 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
3507 (grub_ntfs_comp): Likewise.
3509 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3511 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
3513 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
3514 of groups_per_block. All users updated.
3516 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3518 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
3519 grub_error properly.
3520 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
3521 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
3523 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
3525 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
3526 always in /boot/zfs.
3527 Reported by: Yuta Satoh.
3529 2013-01-03 Yuta Satoh <nigoro>
3531 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
3534 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
3536 * configure.ac: Extend -Wno-trampolines to host.
3538 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
3540 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
3543 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
3545 * docs/grub.texi (Invoking grub-mkrelpath): New section.
3546 (Invoking grub-script-check): Likewise.
3548 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
3550 * docs/grub.texi (Invoking grub-mount): New section.
3551 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
3553 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3555 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
3556 test failures, so that a failing unit test correctly causes 'make
3559 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3561 Fix failing printf test.
3563 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
3564 '$' in the correct order when collecting type information.
3566 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3568 * docs/grub.texi (configfile): Explain environment variable
3570 (source): New section.
3571 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
3573 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
3575 Remove several trivially-unnecessary uses of nested functions.
3577 * grub-core/commands/i386/pc/sendkey.c
3578 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
3580 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
3582 (legacy_file_getline): ... this.
3583 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
3585 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
3586 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
3588 (probe_dummy_iter): ... this.
3589 * grub-core/kern/i386/coreboot/mmap.c
3590 (grub_linuxbios_table_iterate: check_signature): Likewise.
3591 * grub-core/kern/parser.c (grub_parser_split_cmdline:
3592 check_varstate): Likewise. Mark inline.
3593 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
3594 an additional parameter.
3595 (find_long: fnd_long): Likewise. Pass two additional parameters.
3596 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
3597 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
3598 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
3599 Likewise. Rename to ...
3600 (grub_cmos_find_port_iter): ... this.
3601 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
3603 (find_rtc_iter): ... this.
3605 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
3606 function directly into the function body, since it is only called
3609 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
3611 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
3612 __attribute__ ((unused)).
3613 * grub-core/video/bochs.c (find_card): Likewise.
3614 * grub-core/video/cirrus.c (find_card): Likewise.
3615 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
3616 * grub-core/video/sis315pro.c (find_card): Likewise.
3617 * grub-core/video/sm712.c (find_card): Likewise.
3619 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3621 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
3622 Fixes Savannah bug #37821.
3624 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3626 Apply program name transformations at build-time rather than at
3627 run-time. Fixes Debian bug #696465.
3629 * acinclude.m4 (grub_TRANSFORM): New macro.
3630 * configure.ac: Create output variables with transformed names for
3632 * util/bash-completion.d/grub-completion.bash.in: Use
3633 pre-transformed variables for program names.
3634 * util/grub-install.in: Likewise.
3635 * util/grub-kbdcomp.in: Likewise.
3636 * util/grub-mkconfig.in: Likewise.
3637 * util/grub-mkconfig_lib.in: Likewise.
3638 * util/grub-mknetdir.in: Likewise.
3639 * util/grub-mkrescue.in: Likewise.
3640 * util/grub-mkstandalone.in: Likewise.
3641 * util/grub-reboot.in: Likewise.
3642 * util/grub-set-default.in: Likewise.
3643 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3644 * tests/util/grub-shell-tester.in: Remove unused assignment.
3645 * tests/util/grub-shell.in: Likewise.
3646 * util/grub.d/00_header.in: Likewise.
3648 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3650 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
3652 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
3654 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
3656 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
3658 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
3659 Reported by: Eriks Latosheks <foresterlv>.
3661 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3663 * docs/grub.texi (Network): Update instructions on generating netboot
3666 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3668 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
3669 around device name if necessarry.
3671 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3673 * util/grub-install.in: Follow the symbolic link parameter added
3674 to the file command.
3676 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
3678 * util/grub-install.in: Remove stale TODO.
3680 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3682 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
3683 dynamic allocation for the bootpath buffer.
3685 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
3687 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
3690 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3692 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
3693 argument rather than font name. All users updated.
3694 (grub_gfxterm_set_window): Likewise.
3696 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
3698 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
3701 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3703 * util/getroot.c (convert_system_partition_to_system_disk): Support
3706 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3708 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
3709 infinite loop on corrupted FS.
3711 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
3713 Fix big-endian mtime.
3715 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
3716 together sec and usec.
3717 (grub_ufs_dir): Use correct byteswapping for UFS time.
3719 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
3721 Support big-endian UFS1.
3723 * Makefile.util.def (libgrubmods): Add ufs_be.c
3724 * grub-core/Makefile.core.def (ufs1_be): New module.
3725 * grub-core/fs/ufs_be.c: New file.
3726 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
3729 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
3731 * include/grub/types.h: Fix functionality unaffecting typo in
3732 GRUB_TARGET_WORDSIZE conditional macro.
3734 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3736 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
3738 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
3740 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
3741 that /netbsd appears first (when it exists).
3743 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
3745 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
3746 Fixes Savannah bug #37558.
3748 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
3750 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
3751 description of extract_entries_configfile.
3753 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
3755 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
3757 (grub_cmd_linux): Likewise.
3758 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
3759 preferred_lifetime. Update all users.
3761 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
3763 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
3764 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
3766 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
3768 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
3769 errors from grub-probe to /dev/null, not stdout.
3771 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
3773 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
3776 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
3778 * util/grub-install.in: Make the error message if $source_dir
3779 doesn't exist more useful.
3781 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
3783 Fix grub-emu build on FreeBSD.
3785 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
3786 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
3788 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
3789 implementation is currently Linux-specific.
3790 * util/getroot.c (exec_pipe): Define only on Linux or when either
3791 libzfs or libnvpair is unavailable.
3792 (find_root_devices_from_poolname): Remove unused path variable.
3794 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
3796 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
3797 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
3798 should fit before end == 63.
3800 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
3802 * util/grub-setup.c (write_rootdev): Remove unused core_img
3803 parameter. Update all callers.
3804 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
3805 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
3808 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3810 * util/grub-mkconfig_lib.in (grub_tab): New variable.
3811 (grub_add_tab): New function.
3812 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
3813 * util/grub.d/10_illumos.in: Likewise.
3814 * util/grub.d/10_kfreebsd.in: Likewise.
3815 * util/grub.d/10_linux.in: Likewise.
3816 * util/grub.d/10_netbsd.in: Likewise.
3817 * util/grub.d/10_windows.in: Likewise.
3818 * util/grub.d/10_xnu.in: Likewise.
3819 * util/grub.d/20_linux_xen.in: Likewise.
3820 * util/grub.d/30_os-prober.in: Likewise.
3822 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3824 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3825 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
3826 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
3827 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
3828 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
3830 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
3831 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
3833 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3835 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
3837 Reported by: BURETTE, Bernard.
3839 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
3841 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
3844 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
3846 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
3847 IEEE1275 machines. Fixes powerpc-emu compilation.
3848 * include/grub/terminfo.h: Likewise.
3850 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3852 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
3854 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
3856 (efiemu_set_variable): Make vendor_guid a const pointer.
3858 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3860 Don't require grub-mkconfig_lib to generate manpages for programs.
3862 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
3863 dependencies, don't add grub-mkconfig_lib.
3864 (program): Pass empty adddeps.
3865 (script): Pass grub-mkconfig_lib as adddeps.
3867 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3869 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
3870 * util/getroot.c (grub_find_device): Likewise.
3871 (get_mdadm_uuid): Likewise.
3872 (grub_util_is_imsm): Likewise.
3873 (grub_util_pull_device): Likewise.
3874 * util/grub-probe.c (probe): Likewise.
3876 2012-09-10 Benoit Gschwind <gschwind>
3878 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
3879 (devs): Add devpath_8.
3881 2012-09-08 Peter Jones <pjones@redhat.com>
3883 * grub-core/Makefile.core.def (efifwsetup): New module.
3884 * grub-core/commands/efi/efifwsetup.c: New file.
3885 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
3886 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
3888 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
3890 2012-09-05 Jiri Slaby <jslaby@suse.cz>
3892 * configure.ac: Add SuSe path.
3894 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3898 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3900 * util/import_gcry.py: Sort cipher_files, to make build system
3901 generation more deterministic.
3903 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3905 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
3906 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
3907 (grub_set_datetime): Likewise.
3909 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3911 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
3914 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3916 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
3918 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3920 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
3922 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3924 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
3925 required for checkouts from bzr, but it may be useful for users or
3926 distributors wishing to update translations against a tarball
3927 distribution, and it can be helpful for the tarball to be a superset
3930 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3932 * Makefile.am (EXTRA_DIST): Add
3933 grub-core/tests/boot/linux.init-mips.S,
3934 grub-core/tests/boot/linux.init-ppc.S, and
3935 grub-core/tests/boot/linux-ppc.cfg.
3937 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3939 * grub-core/mmap/mips/loongson: Remove empty directory.
3941 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3943 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
3946 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3948 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
3951 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
3953 * configure.ac: Strengthen the test for working -nostdinc -isystem.
3955 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
3957 * po/POTFILES.in: Regenerated.
3959 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
3961 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
3962 (NetBSD): New subsection.
3964 2012-07-22 Ales Nesrsta <starous@volny.cz>
3966 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
3967 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
3969 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3971 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
3972 * util/grub.d/10_hurd.in: Add missing quoting.
3973 * util/grub.d/10_illumos.in: Likewise.
3974 * util/grub.d/10_kfreebsd.in: Likewise.
3975 * util/grub.d/10_linux.in: Likewise.
3976 * util/grub.d/20_linux_xen.in: Likewise.
3978 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3980 New command `lsefi'.
3982 * grub-core/Makefile.core.def (lsefi): New module.
3983 * grub-core/commands/efi/lsefi.c: New file.
3984 * include/grub/efi/api.h: Add more GUIDs.
3986 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3988 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
3989 (grub_bsd_elf32_hook): Likewise.
3990 (grub_bsd_elf64_size_hook): Likewise.
3991 (grub_bsd_elf64_hook): Likewise.
3992 (grub_bsd_load_elf): Likewise.
3994 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3996 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
3997 if hash function is unavailable.
3998 (dec_stream_header): Likewise.
4000 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4002 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
4005 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4007 Fix coreboot compilation.
4009 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
4010 (grub_vga_text_init_real): ... this.
4011 (grub_vga_text_fini): Rename to ...
4012 (grub_vga_text_fini_real): ... this.
4014 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4016 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
4018 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4020 * grub-core/lib/legacy_parse.c: Support clear and testload.
4022 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4024 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
4026 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4028 * grub-core/fs/ext2.c: Experimental support for 64-bit.
4030 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4032 * grub-core/net/tftp.c (ack): Fix endianness problem.
4033 (tftp_receive): Likewise.
4034 Reported by: Michael Davidsaver.
4036 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4038 * gentpl.py: Make mans depend on grub-mkconfig_lib.
4040 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4042 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
4043 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
4044 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
4046 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4048 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
4050 Reported by: Stuart Hayes.
4052 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
4054 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
4056 * grub-core/Makefile.core.def (mda_text): New module.
4057 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
4058 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
4059 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
4060 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
4062 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
4063 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
4064 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
4066 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
4068 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
4070 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
4072 * grub-core/term/i386/vga_common.c: Removed.
4073 * include/grub/i386/vga_common.h: Likewise.
4074 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
4075 (grub_vga_cr_bw_read): Likewise.
4076 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
4077 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
4078 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
4079 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
4080 grub_vga_cr_read/grub_vga_cr_write.
4081 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
4083 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4085 * configure.ac: Bump version to 2.00.
4086 * grub-core/normal/main.c (features): Add feature_200_final.
4088 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4089 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
4091 * NEWS: Fix unclarity and language mistakes.
4093 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4095 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
4096 additional size to 3 pages.
4097 Reported by: Stuart Hayes.
4099 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4101 * NEWS: Add 2.00 entry.
4103 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4105 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
4106 put explicit "/" for empty path.
4107 (wildcard_expand): Improve dprintf.
4109 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4111 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
4112 it's equal to currnode. This can happen with "" symlink.
4114 2012-06-27 Yves Blusseau <blusseau@zetam.org>
4116 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
4117 echo shell command by printf command.
4119 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4121 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
4122 the value returned by firmware is the maximal position, not diumension.
4123 (grub_terminfo_output_state): Use a more sane fallback.
4125 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4127 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
4129 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4131 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
4132 frequency to 150 MHz.
4134 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4138 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
4140 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
4142 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
4144 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4146 Handle slash in HFS label.
4148 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
4149 (grub_hfs_dir): Tanslate slash.
4150 (grub_hfs_label): Don't translate slash.
4152 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4154 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
4155 network protocol listing since it introduces problematic dependency on
4158 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4160 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
4162 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4164 Init video early on yeeloong to avoid being rebooted by watchdog.
4166 * grub-core/Makefile.am (gensm712): New target.
4167 (sm712_start.S): Likewise.
4168 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
4169 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
4170 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
4172 * include/grub/vga.h: Move registry definitions to...
4173 * include/grub/vgaregs.h: ... here.
4175 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4177 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
4180 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4182 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
4183 platforms with firmware disk drivers in the core.
4185 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4187 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
4188 informative verbose message.
4189 (read_lv): Handle 64-bit segment size.
4191 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4193 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
4195 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4197 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
4198 character but still remove trainling spaces.
4199 (grub_fat_label): Ignore archive flag.
4201 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4203 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
4204 cast between linux_kernel_header and linux_kernel_params.
4206 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4208 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
4210 (grub_raid6_recover_func_t): Likewise.
4211 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
4212 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
4214 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4216 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
4218 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
4222 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
4223 [__NetBSD__]: Add explicit cast before bitshift.
4225 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4227 * configure.ac: Bump to 2.00~rc1.
4229 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4231 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
4234 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4235 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
4237 * docs/grub.texi: Fix search syntax.
4238 (Multi-boot manual config): Put msdos rather than GPT example.
4239 Grammar corrections.
4241 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4243 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
4245 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4247 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
4249 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4251 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
4252 message on double free. Put the value of magic in case of mismatch.
4254 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4256 Speed-up video on yeeloong.
4258 * grub-core/video/sm712.c (framebuffer): Remove render_target and
4260 (grub_video_sm712_video_fini): Unmap cached_ptr.
4261 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
4262 (grub_video_sm712_set_active_render_target): Removed.
4263 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
4264 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
4267 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4269 Avoid flushing the same line multiple times on loongson.
4271 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
4272 Step in 32 bytes and not 1 byte.
4273 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
4276 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4278 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
4281 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4283 Implement flow control for http.
4285 * grub-core/net/http.c (parse_line): Handle response 206.
4286 (http_receive): Stall if too many packets are in the queue.
4287 (http_establish): Fix range header.
4288 (http_seek): Fix double free.
4289 (http_close): Likewise.
4290 (http_packets_pulled): New function.
4291 (grub_http_protocol): Set http_seek
4292 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
4293 (ack_real): Set window depending on i_stall.
4294 (grub_net_send_tcp_packet): Likewise.
4295 (grub_net_tcp_stall): New function.
4296 (grub_net_tcp_unstall): Likewise.
4297 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
4298 (grub_net_tcp_unstall): Likewise.
4300 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4302 * grub-core/net/tftp.c: Decrease stall to 50 packets.
4304 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4306 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
4308 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4310 * tests/util/grub-shell.in: Fix a typo.
4312 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4314 Implement flow control for tftp.
4316 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
4317 packets but stop only if stop condition is satisfied.
4318 (grub_net_fs_read_real): Call packets_pulled after real read. Use
4319 `stall' instead of `eof' as stop condition.
4320 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
4321 (http_err): Likewise.
4322 * grub-core/net/tftp.c (ack): Replace the first argument with data
4324 (tftp_receive): Stall if too many packets are in wait queue.
4325 (tftp_packets_pulled): New function.
4326 (grub_tftp_protocol): Set packets_pulled.
4327 * include/grub/net.h (grub_net_packets): New field count.
4328 (grub_net_put_packet): Increment count.
4329 (grub_net_remove_packet): Likewise.
4330 (grub_net_app_protocol): New field `packets_pulled'.
4331 (grub_net): New field `stall'.
4333 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4335 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
4336 sync part to handle them.
4338 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4340 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
4341 * grub-core/net/drivers/ieee1275/ofnet.c
4342 (grub_ieee1275_net_config_real): Likewise.
4344 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4346 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
4347 the direct route for server/gateway.
4349 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4351 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
4352 IP address to server name since we may not hame the DNS.
4354 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4356 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
4357 freeing random buffer on failure.
4358 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
4360 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4362 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
4364 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4366 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
4368 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
4369 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
4370 Handle malloc error correctly.
4372 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4374 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
4377 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4379 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
4382 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4384 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
4385 none is explicitly specified.
4387 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4389 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
4392 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4394 Respect netmask from bootp/dhcp.
4396 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
4397 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
4398 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
4400 (grub_net_add_ipv4_local): ... this.
4401 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
4402 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
4403 (grub_net_add_ipv4_local): New proto.
4405 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4407 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
4408 determining EFI memory map size.
4410 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4412 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
4414 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4416 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
4417 when looking for partition separator.
4419 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4421 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
4424 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4426 Restructure FAT driver to avoid hook in label reading as it hits a
4429 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
4430 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
4431 (grub_fat_iterate_dir): Split into ...
4432 (grub_fat_iterate_init): ... this, ...
4433 (grub_fat_iterate_fini): ... this, ...
4434 (grub_fat_iterate_dir_next): ... and this. All users updated.
4436 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4438 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4439 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
4440 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4441 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
4442 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
4443 New fields last_key and last_key_time.
4444 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
4445 extended key-esc into extended key-extended key.
4447 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4449 Avoid unnecessary memcpy of whole video buffer.
4451 * grub-core/video/fb/video_fb.c (dirty): New struct.
4452 (framebuffer): Add members current_dirty and previous_dirty.
4453 (dirty): New function.
4454 (grub_video_fb_fill_rect): Update dirty.
4455 (common_blitter): Likewise.
4456 (grub_video_fb_scroll): Likewise.
4457 (doublebuf_blit_update_screen): Copy only dirty part.
4458 (doublebuf_pageflipping_update_screen): Likewise.
4459 (grub_video_fb_doublebuf_blit_init): Init dirty.
4460 (doublebuf_pageflipping_init): Likewise.
4461 (grub_video_fb_setup): Likewise.
4463 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4465 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
4468 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4470 Fix wildcard regexp dot and other special characters handling.
4471 Reported by: Robert Mabee.
4473 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
4474 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
4475 (split_path): Trigger expansion on '?'.
4476 (unescape): New function.
4477 (wildcard_expand): Unescape parts copied without globbing.
4478 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
4479 (grub_script_arglist_to_argv): Don't unescape expansions.
4481 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4483 * include/grub/net.h (grub_net_card): New member txbufsize.
4484 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
4485 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
4486 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
4487 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
4489 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
4490 compatible property to check for macs. Set
4491 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
4492 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
4493 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
4494 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
4495 (send_card_buffer): Use txbuf.
4496 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
4497 nested function out of the parent while on it.
4499 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4501 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
4503 (grub_ieee1275_net_config_real): Fix config pointer.
4505 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4507 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
4508 filename parsing to non-block devices.
4510 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4512 * grub-core/kern/device.c (grub_device_open): Remove dead code.
4514 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
4516 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
4519 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
4521 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
4522 UUID search command even if hints probing failed.
4524 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
4526 * po/POTFILES.in: Regenerated.
4528 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
4530 Speed-up video on fuloong.
4532 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
4534 (grub_pci_device_unmap_range): Handle non-cached address.
4535 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
4537 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
4538 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
4539 (grub_video_sis315pro_set_active_render_target): Removed.
4540 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
4541 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
4542 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
4544 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
4547 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4549 * docs/grub.texi (Multi-boot manual config): New section.
4551 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4553 Avoid slow read-back from VRAM.
4555 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4557 * grub-core/video/fb/video_fb.c
4558 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
4559 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
4560 (front_target): Remove front_target. Add pages.
4561 (grub_video_fb_init): Skip setting front_pages.
4562 (grub_video_fb_fini): Likewise.
4563 (doublebuf_blit_update_screen): Use pages.
4564 (grub_video_fb_doublebuf_blit_init): Likewise.
4565 (doublebuf_pageflipping_init): Allocate offscreen buffer.
4566 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
4567 (grub_video_fb_setup): Prefer doublebuffing.
4569 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4571 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
4574 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4578 * tests/util/grub-shell.in: Handle loongson.
4579 * tests/partmap_test.in: Add loongson to the list of platform using ATA
4581 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
4582 Reboot instead of shutdown if REBOOT is defined.
4584 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4586 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
4587 sized ports since unlike on real hardware qemu supports only 32-bit
4590 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4592 * Makefile.util.def (grub-mkrescue): Enable on loongson.
4593 * util/grub-mkrescue.in: Handle loongson.
4595 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
4597 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
4598 Set is_part appropriately.
4599 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
4600 names. Canonicalize partition without full disk.
4602 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4604 Revert usb-quiesce since it's wrong.
4606 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
4607 (grub_ofdisk_init): Don't do quiesce.
4609 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4611 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
4612 PowerMac workaround to Xserves as well.
4613 Information supplied by: Benjamin Herrenschmidt.
4615 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4617 Don't assume that beginning address is also the entry point on ppc.
4619 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
4620 (grub_linux_boot): Use linux_entry.
4621 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
4622 (grub_linux_load64): Likewise.
4624 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4626 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
4628 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4630 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
4631 needlessly lose the console.
4633 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4635 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
4638 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
4640 Remove non-functional EFI grub_get_rtc. Put a better fatal message
4641 than current grub_get_rtc() not implemented when booted with
4642 coreboot without TSC.
4644 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
4645 Add machine/time.h to kernel headers on loongson.
4646 * grub-core/Makefile.core.def (kernel): Remove
4647 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
4648 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
4649 (grub_get_rtc): Likewise.
4650 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
4651 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
4652 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
4653 * grub-core/kern/i386/tsc.c (grub_tsc_init)
4654 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
4655 rather than installing known non-working time source.
4656 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
4657 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
4658 * include/grub/time.h: Don't include machine/time.h.
4659 * include/grub/efi/time.h: Removed.
4660 * include/grub/i386/efi/time.h: Likewise.
4661 * include/grub/i386/ieee1275/time.h: Likewise.
4662 * include/grub/powerpc/ieee1275/time.h: Likewise.
4663 * include/grub/sparc64/ieee1275/time.h: Likewise.
4664 * include/grub/x86_64/efi/time.h: Likewise.
4666 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
4668 Remove dot on i and j when combining with above diacritics.
4670 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
4672 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
4673 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
4674 with dotless variants when any combining above is present.
4676 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4678 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
4679 text and not binary.
4681 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4683 Stop polling as soon as we have the packet we were waiting for.
4685 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
4687 * grub-core/net/arp.c (have_pending): New var.
4688 (pending_req): Likewise.
4689 (grub_net_arp_send_request): Fill pending_req and use have_pending as
4691 (grub_net_arp_receive): Set have_pending.
4692 * grub-core/net/dns.c (recv_data): New field stop.
4693 (recv_hook): Set stop.
4694 (grub_net_dns_lookup): Init stop and use as stop condition.
4695 * grub-core/net/http.c (http_establish): Use headers_recv as stop
4697 * grub-core/net/net.c (grub_net_poll_cards): New argument
4698 stop_condition. Stop when it goes true.
4699 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
4701 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
4703 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4705 Keep TX and RX buffers on EFI rather than always allocate new ones.
4707 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
4708 card. All users updated.
4709 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
4710 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
4711 (get_card_packet): Likewise.
4712 (grub_efinet_findcards): Init new fields.
4714 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4716 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
4717 compilation error on sparc64.
4719 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4721 Use ITC on IA64 rather than broken routine based on daytime.
4723 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
4725 (grub_get_rtc) [__ia64__]: Likewise.
4726 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
4727 (get_itc): New function.
4728 (grub_rtc_get_time_ms): Likewise.
4729 (grub_machine_init): Calibrate ITC.
4730 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
4731 Keep only on non-ia64. Don't export since it's broken and used only
4732 if TSC is unavailable.
4734 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4736 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
4738 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
4739 Skip if parent is unused.
4741 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4743 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
4745 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4747 Fix wildcard escaping.
4749 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
4750 * grub-core/script/execute.c (wildcard_escape): .. to here.
4752 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
4753 * grub-core/script/execute.c (wildcard_unescape): .. to here.
4755 * grub-core/script/execute.c (gettext_append): Always escape.
4756 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
4757 * grub-core/script/yylex.l: Don't cut away the escaping.
4758 * tests/grub_script_echo1.in: Add tests with wildcard.
4760 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4762 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
4763 (ftdi_hw_configure): Likewise.
4764 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
4766 (real_config): Handle 1.5 stop bits.
4767 (pl2303_hw_configure): Likewise.
4769 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4771 * Makefile.am: Add ppc linux bootcheck.
4772 * grub-core/tests/boot/linux-ppc.cfg: New file.
4773 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
4775 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4777 * tests/grub_script_expansion.in: Skip network protocols.
4779 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4781 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
4783 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4785 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
4789 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4791 ESCC serial driver for conducting sautomated tests in qemu.
4792 Not tested on real hardware.
4794 * include/grub/serial.h (grub_serial_port): New field escc_desc.
4795 * grub-core/term/ieee1275/escc.c: New file.
4796 * grub-core/Makefile.core.def (escc): New module.
4798 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4800 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
4802 (serial_hw_fetch): Don't read invalid handle.
4803 (serial_hw_put): Don't write into invalid handle.
4805 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4807 Add a 1.5 stop bits value.
4809 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
4810 * include/grub/serial.h (grub_serial_stop_bits_t): Add
4811 GRUB_SERIAL_STOP_BITS_1_5.
4813 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4815 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
4816 value rather than let it uninited.
4818 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4820 * grub-core/commands/wildcard.c (+check_file): New function.
4821 (wildcard_expand): Don't expand to non-existing files, expand with
4822 suffix and not attempt to expand if not needed.
4824 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4826 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
4827 out of partitions containing other partitions.
4829 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4831 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
4832 on some qemu versions with GRUB.
4834 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
4836 (grub_openbsd_bootarg_pcibios): New struct.
4837 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
4840 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4842 * tests/util/grub-shell.in: Trim firmware output on EFI.
4844 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4846 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
4847 and coreboot since it's already in kernel.
4849 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4851 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
4852 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4853 to here. New return value start. All users updated.
4854 Recursively scan linear mappings.
4855 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
4857 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
4858 Use grub_util_get_dm_node_linear_info.
4859 * util/getroot.c (convert_system_partition_to_system_disk): Use
4860 grub_util_info rather than grub_dprintf.
4861 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
4863 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4865 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
4867 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
4868 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
4870 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4872 * include/grub/types.h (grub_set_unaligned64): New function.
4873 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
4876 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4878 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
4879 (grub_ofdisk_fini): Quiesce USB devices.
4881 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4883 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
4886 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4888 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
4890 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4892 * grub-core/disk/pata.c (grub_pata_pio_read)
4893 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
4894 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
4896 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4898 Extend automated tests to qemu-mips.
4900 * Makefile.am: reorganise tests and enable qemu-mips.
4901 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
4902 * grub-core/tests/boot/linux.init-mips.S: New file.
4903 * tests/partmap_test.in: Handle ata0 disks.
4904 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
4907 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4909 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
4911 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
4914 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4916 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
4917 (grub_halt): Likewise.
4918 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
4920 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4922 * grub-core/term/serial.c (grub_serial_register)
4923 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
4924 the behaviour in line with x86 platforms.
4926 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4928 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
4929 (grub_ata_strncpy): Likewise.
4930 (grub_ata_identify): Add missing byteswaps.
4932 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4934 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
4936 (screen_read_char): Likewise.
4937 (grub_vga_text_cls): Likewise.
4939 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4941 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
4943 (make_file_path): Likewise.
4945 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4947 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
4949 Tested by: Paulo Flabiano Smorigo.
4950 Crucial information about API supplied by: Coleen <Last name unknown>.
4951 Reviewed by: Coleen <Last name unknown>.
4953 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4955 * util/grub-mkimage.c: Disable -Wcast-align.
4957 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4959 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
4962 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4964 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
4966 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4968 * util/grub-probe.c (escape_of_path): Fix double free.
4970 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4972 * grub-core/commands/videoinfo.c (hook): Show pitch.
4974 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4976 * util/grub.d/20_linux_xen.in: Skip xen-syms.
4978 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4980 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
4981 (probe): Add ieee1275 to OFW devices.
4983 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4985 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
4987 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4989 Handle IBM OFW path.
4991 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
4993 (of_path_of_scsi): Handle vdevice.
4995 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
4997 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
4998 Allocate in multiples of 16 to avoid adding a few bytes free region the
5001 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
5003 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
5004 Allocate in multiples of 16 to avoid adding a few bytes free region the
5006 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
5008 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5010 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
5012 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
5013 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
5015 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
5017 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
5019 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5021 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
5022 resulted in \\ at the end of the line.
5024 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5026 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
5027 (grub_parser_cmdline_state): Likewise.
5028 (grub_parser_split_cmdline): Likewise.
5030 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5032 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
5033 /dev/root and /dev/dm-*.
5035 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5037 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
5038 fix partially stale display.
5040 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5042 * grub-core/normal/menu_entry.c (backward_char): Use right line for
5045 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5047 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
5048 Fix MBR remapping workaround.
5049 (grub_util_biosdisk_read) [__linux__]: Likewise.
5051 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
5053 * util/grub-install.in: Check for ieee1275 and not ieee1276.
5055 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5057 * configure.ac: Bump to beta6.
5059 2012-05-31 Christer Weinigel <christer@weinigel.se>
5061 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
5063 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5065 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
5066 (grub_cmd_linux): Likewise.
5068 2012-05-31 Christer Weinigel <christer@weinigel.se>
5072 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
5073 (GRUB_EHCI_MULT_TWO): Likewise.
5074 (GRUB_EHCI_MULT_THREE): Likewise.
5075 (GRUB_EHCI_CMASK_MASK): New enum value.
5076 (GRUB_EHCI_SMASK_MASK): Likewise.
5077 (GRUB_EHCI_CMASK_OFF): Likewise.
5078 (GRUB_EHCI_SMASK_OFF): Likewise.
5079 (grub_ehci_pci_iter): Enable periodic schedule.
5080 (grub_ehci_parse_notrun): Likewise.
5081 (grub_ehci_restore_hw): Likewise.
5082 (grub_ehci_setup_qh): Set flags for low speed transfers.
5083 (grub_ehci_find_qh): Use periodic list for low speed.
5084 (grub_ehci_setup_transfer): Check periodic queue as well.
5085 (grub_ehci_check_transfer): Likewise.
5086 (grub_ehci_cancel_transfer): Cancel periodic transfer.
5088 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5090 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
5093 2012-05-31 Peter Jones <pjones@redhat.com>
5095 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
5096 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
5097 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
5099 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5101 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
5102 uninited variable. Allocate at least setup_sects.
5104 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5106 Fix handling of EFI with big memory maps.
5108 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
5109 (real_mode_mem): Likewise.
5110 (real_mode_target): Likewise.
5111 (real_mode_pages): Likewise.
5112 (prot_mode_pages): Likewise.
5113 (linux_params): New var.
5114 (linux_cmdline): Likewise.
5115 (free_pages): Don't set real mode variables.
5116 (allocate_pages): Don't allocate real mode memory.
5117 (grub_e820_add_region): Remove the limit.
5118 (grub_linux_boot): Allocate and copy real mode memory.
5119 (grub_linux_unload): Free linux_cmdline.
5120 (grub_cmd_linux): Use temporary storage for parameters.
5121 (grub_cmd_initrd): Likewise.
5122 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
5123 (linux_kernel_params): Make it 1K big.
5125 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5127 * Makefile.util.def: Remove -Wno-format.
5128 * grub-core/Makefile.core.def: Likewise.
5130 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5132 * tests/cmp_unit_test.c: Add missing failure message.
5133 * tests/example_unit_test.c: Likewise.
5134 * tests/printf_unit_test.c: Likewise.
5136 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5138 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
5139 relaxation of protective MBR requirements.
5141 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
5143 * configure.ac: Add condition for COND_HOST_XNU.
5144 * Makefile.util.def (10_xnu): New script.
5145 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
5147 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
5149 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
5152 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
5154 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
5155 Binary on other platforms stays identical.
5157 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5159 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
5162 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5164 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
5166 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5168 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
5169 rather than defining size_t ourselves to avoid conflict.
5171 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5173 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
5174 initialisation to avoid __bzero reference.
5176 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5178 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
5180 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
5181 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
5182 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
5183 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
5184 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
5186 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5188 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
5189 * grub-core/kern/misc.c: Likewise.
5190 * grub-core/loader/i386/xnu.c: Likewise.
5191 * include/grub/i386/tsc.h: Likewise.
5192 * include/grub/symbol.h: Likewise.
5194 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5196 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
5197 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
5200 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5202 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
5203 Implement Apple flavour.
5204 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
5206 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5208 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
5209 (memmove) [__APPLE__]: Likewise.
5210 (memcpy) [__APPLE__]: Likewise.
5211 (memset) [__APPLE__]: Likewise.
5212 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
5213 (memmove) [__APPLE__]: Likewise.
5214 (memcpy) [__APPLE__]: Likewise.
5215 (memset) [__APPLE__]: Likewise.
5217 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5219 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
5222 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5224 * grub-core/normal/main.c (read_config_file): Provide config_file and
5226 * util/grub.d/41_custom.in: Use config_directoy when available.
5228 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5230 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
5231 (grub_bfs_dir): Likewise.
5233 2012-05-27 Peter Jones <pjones@redhat.com>
5235 The old code gives arguments to a printf function which can't work
5236 correctly, and the compiler complains.
5238 * grub-core/tests/example_functional_test.c (example_test): Add
5240 * grub-core/tests/lib/test.c (add_failure): Rewrite.
5241 * include/grub/test.h (grub_test_assert_helper): New declaration.
5242 (grub_test_assert): Use grub_test_assert_helper.
5244 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5246 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
5247 (exfctest): ... this to avoid overlong filenames.
5250 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5252 Handle "." and ".." on squashfs.
5254 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
5255 Make inode numbers into stack.
5256 (grub_squash_read_symlink): Use stack.
5257 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
5258 (make_root_node): Fill stack.
5259 (grub_squash_open): Use stack.
5261 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5263 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
5266 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5268 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
5269 stderr on test calls.
5271 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5273 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
5275 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5277 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
5279 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5281 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
5284 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5286 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
5287 (grub_hfsplus_iterate_dir): Add "." and "..".
5289 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5291 * grub-core/fs/cpio.c (canonicalize): Handle "..".
5292 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
5294 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5296 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
5297 (find_path): Handle "." and "..".
5299 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5301 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
5302 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
5303 (grub_affs_iterate_dir): Handle hardlinks.
5305 2012-05-26 Matthew Garrett <mjg@redhat.com>
5307 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
5308 (grub_efi_console_fini): Likewise.
5309 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
5310 (grub_video_gop_fill_mode_info): Rename to ...
5311 (grub_video_gop_fill_real_mode_info): ... this.
5312 (grub_video_gop_fill_mode_info): New function.
5313 (grub_video_gop_setup): Setup double framebuffer.
5314 (grub_video_gop_get_info_and_fini): Use original framebuffer.
5316 (grub_video_gop_swap_buffers): Copy framebuffer.
5317 (grub_video_gop_fini): Free offscreen buffer.
5318 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
5320 (grub_efi_gop_blt_pixel): New struct.
5322 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
5324 * gentpl.py: Remove error disabling for objconv.
5326 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
5328 * configure.ac: Remove -Wunitialized as it's not available on older
5331 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
5333 Fix extent overflow comparator.
5335 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
5336 (grub_hfsplus_read_block): Set type.
5337 (grub_hfsplus_cmp_extkey): Compare type.
5339 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
5341 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
5343 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
5345 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
5348 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
5350 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
5351 (dejavu_bold_14.pf2): New target.
5353 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
5355 * configure.ac: Fix djvu font detection.
5357 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5359 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
5360 ext* instead of ext2.
5362 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5364 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
5367 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
5369 * docs/grub-dev.texi: Remove dot from .png.
5371 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
5373 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
5374 protective entry in any slot.
5375 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
5376 if protective entry is found in any slot.
5378 Protective entry in non-first slot make no sense but is a widespread
5381 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
5383 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
5385 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
5387 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
5389 (grub_reiserfs_open): Don't free root.
5391 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
5393 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
5394 after freeing for safety.
5396 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5398 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
5399 Reported by: Jordan Uggla.
5401 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
5403 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
5404 actual implementation. Specifically, clarify that the grub menu will
5405 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
5408 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
5410 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
5413 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5415 Remove unjustified hard dependency of normal.mod on gfxterm.
5417 * include/grub/term.h (grub_term_output): New member fullscreen.
5418 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
5419 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
5420 (grub_gfxterm): Set .fullscreen.
5421 * grub-core/normal/menu.c (menu_init): Use fullscreen.
5422 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
5424 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5426 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
5427 mentioning possible problems with non-ASCII (non-compliant) ISOs.
5428 Mention case-insensitive AFFS, SFS and JFS.
5430 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5432 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
5434 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5436 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
5439 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5441 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
5442 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
5444 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5446 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
5447 (grub_jfs_mount): Fill caseins.
5448 (grub_jfs_find_file): Respect caseins.
5450 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5452 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
5455 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5457 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
5458 New argument origpath. All users updated.
5460 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5462 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
5463 (read_attr): Ensure that we read start of possibly compressed block.
5465 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5467 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
5468 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
5471 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5473 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
5474 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
5475 (dejavu.pf2): Replace with ...
5476 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
5479 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5481 * util/grub.d/20_linux_xen.in: Add missing line.
5483 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5485 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
5486 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
5487 (grub_utf16_to_utf8): Likewise.
5489 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5491 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
5492 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
5493 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5494 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
5495 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
5496 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
5498 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5500 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
5503 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5505 * grub-core/fs/udf.c (read_string): Bail out on size=0.
5506 (grub_udf_read_symlink): Handle read_string failure.
5508 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5510 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
5513 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5515 Fix handling of UDF symlinks.
5517 * grub-core/fs/udf.c (read_string): New argument outbuf.
5519 (grub_ufs_read_symlink): Rename to ...
5520 (grub_udf_read_symlink): ... this. All users updated.
5521 Handle symlinks with more than one component.
5523 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5525 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
5526 symlinks. Replace leading colon with a slash.
5528 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5530 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
5533 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5535 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
5536 match in inner node.
5538 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5540 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
5541 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
5542 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
5543 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
5544 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
5545 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
5546 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
5547 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
5548 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
5550 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5552 Use grub-probe and not cmp to check that disk is empty.
5554 * util/grub-install.in: Use grub-probe for zero-check.
5555 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
5556 (probe): Handle PRINT_ZERO_CHECK.
5557 (argp_parser): Handle -t zero_check.
5559 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5561 Flush block cache on adding disk to device map.
5563 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
5564 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
5566 (read_device_map): Likewise.
5567 (open_device): Flush on opening.
5569 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5571 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
5572 (handle_symlink): Fix off-by-one error.
5573 Canonicalize the target.
5574 (grub_cpio_dir): Canonicalize the name.
5577 (grub_cpio_open): Canonicalize the name.
5579 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5581 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
5584 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5586 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
5587 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
5589 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5591 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
5592 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
5595 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5597 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
5600 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5602 Fix UFS1 big file support.
5604 * grub-core/fs/ufs.c (INODE): Removed.
5605 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
5607 (INODE_MODE): Simplify.
5608 (grub_ufs_inode): Use uint64_t for size and not int64_t.
5609 (grub_ufs_lookup_symlink): Don't use INODE.
5611 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5613 Fix minixfs with non-power-of-two blocks since it's supported by minix.
5615 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
5616 (grub_minix_data): Replace log_block_size with block_size.
5617 (grub_minix_read_file): Use block_size but avoid 64-bit division.
5618 (grub_minix_mount): Fill block_size.
5620 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5622 * configure.ac: Bump to beta5.
5624 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5626 Fix wrapped HFS+ handling.
5628 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
5629 blocks_start. All users updated.
5630 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
5632 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
5634 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5636 Fix long symlinks on reiserfs.
5638 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
5639 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
5640 (grub_reiserfs_iterate_dir): Save size for non-directories.
5641 (grub_reiserfs_open): Don't reread stat block as we already know the
5643 (grub_reiserfs_read): Split into...
5644 (grub_reiserfs_read_real): ... and ...
5645 (grub_reiserfs_read): ...this.
5647 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5649 Fix non-indexed JFS.
5651 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
5652 (grub_jfs_data): New field namecomponentlen.
5653 (grub_jfs_mount): Fill namecomponentlen.
5654 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
5656 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5658 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
5659 * tests/grub_script_echo1.in: Add tests.
5661 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5663 * util/grub-install.in: Ignore empty devicetree directory.
5665 2012-05-08 Bean <bean123ch@gmail.com>
5667 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
5669 (free_rsm): Free header as well.
5670 (free_old_fragments): Fix memory leak.
5671 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
5672 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
5673 (destroy_pq): Likewise.
5674 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
5676 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5678 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
5679 resulting hash as a precaution.
5681 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5683 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
5684 '_' in variable names.
5685 * grub-core/net/net.c (grub_net_network_level_interface_register):
5688 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5690 Fix AFFS with non-512B blocks.
5692 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
5693 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
5694 (grub_affs_data): Replace blocksize with log_blocksize.
5695 (grub_affs_read_block): Fix non-512B blocks.
5696 (grub_affs_read_symlink): Likewise.
5697 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
5698 (grub_affs_read): Fix non-512B blocks.
5699 (grub_affs_label): Likewise.
5700 (grub_affs_mtime): Likewise.
5701 (grub_affs_mount): Fix block detection routine.
5703 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5705 Add filesystem mtime to AFFS.
5707 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
5708 (aftime2ctime): New function.
5709 (grub_affs_dir): Use aftime2ctime.
5710 (grub_affs_label): Fix return value.
5711 (grub_affs_mtime): New function.
5712 (grub_affs_fs): Add mtime.
5714 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5716 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
5719 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5721 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
5724 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5726 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
5728 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5730 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
5732 (FLAGS_CASE_SENSITIVE): New enum value.
5733 (cache_entry): New struct.
5734 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
5735 cache_size and cache.
5736 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
5737 Add log_blocksize and fshelp_flags.
5738 (grub_sfs_read_extent): Handle non-512 blocks.
5739 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
5740 (grub_sfs_read_file): Handle non-512 blocks.
5741 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
5743 (grub_sfs_read_symlink): Handle non-512 blocks.
5744 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
5745 (grub_sfs_dir): Free cache.
5746 (grub_sfs_close): Likewise.
5748 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5750 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
5753 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5755 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
5757 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5759 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
5761 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5763 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
5764 (grub_sfs_read_extent): Likewise.
5765 (grub_sfs_read_block): Likewise.
5766 (grub_sfs_mount): Likewise.
5767 (grub_sfs_iterate_dir): Likewise.
5768 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
5769 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
5771 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5773 Fix errors on compressed NTFS with 512B clusters.
5775 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
5777 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
5779 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
5780 Relax check for inline extents.
5781 (ntfscomp): Return correct -1 on error and not 0.
5783 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5785 * util/grub-install.in: Fix handling of prefix containing spaces.
5787 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5789 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
5790 (grub_squash_read_data): Fix offset byte-swapping.
5792 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5794 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
5795 per common usage and preffered in several parts of code.
5796 (grub_memcmp): Likewise.
5797 (grub_strncmp): Likewise.
5798 * include/grub/misc.h (grub_strcasecmp): Likewise.
5799 (grub_strncasecmp): Likewise.
5800 * Makefile.util.def (cmp_test): New test.
5801 (grub_script_strcmp): Likewise.
5802 * tests/cmp_unit_test.c: New file.
5803 * tests/grub_script_strcmp.in: Likewise.
5804 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
5806 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5808 * include/grub/pci.h: Move enums into no-asm part.
5810 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5812 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
5814 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5816 * util/getroot.c (find_hurd_root_device): Try to make error message
5817 and comments to translators clearer.
5819 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5821 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
5823 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5825 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
5828 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5830 * docs/grub.cfg: Update.
5832 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5834 * docs/grub.texi (PXE): Remove not present variables.
5836 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5838 * grub-core/net/net.c (defserver_set_env): New function.
5839 (defserver_get_env): Likewise.
5840 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
5842 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5844 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
5847 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5849 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
5850 * grub-core/kern/emu/hostdisk.c: Likewise.
5852 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5854 Handle hurd userspace partitions.
5856 * util/getroot.c (find_hurd_root_device): New function.
5857 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
5859 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5861 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
5863 Reported by: Bastian Blank.
5865 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5867 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
5868 crossing page boundary.
5870 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5872 Fix B-tree search in BFS, especially in presence of non-ASCII
5875 * grub-core/fs/bfs.c (bfs_strcmp): New function.
5876 (find_in_b_tree): Use standard bsearch + btree algorithm.
5878 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5880 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
5883 2012-05-03 Matthew Garrett <mjg@redhat.com>
5884 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5886 Suspend broadcom cards in order to stop their DMA.
5888 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
5889 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
5890 (pci): Don't build on x86 EFI.
5891 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
5892 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
5894 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
5895 stop_broadcom if running on EFI.
5896 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
5897 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
5898 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
5899 (grub_pci_find_capability): New proto.
5901 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5903 * docs/grub.texi: Remove dot from the extension as it apparently
5904 doesn't work with some makeinfo versions.
5906 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5908 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
5909 with GRUB expectance.
5911 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5913 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
5915 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5917 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
5918 zero after directory block since last entry may be not 0-terminated if
5919 it ends on block boundary. Use continue instead of if spanning whole
5922 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5924 Support 4K sectors UDF inline files.
5926 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
5927 (grub_udf_extended_file_entry): Likewise.
5928 (grub_fshelp_node): Name the anonymous union. Put block at the end.
5930 (get_fshelp_size): New function.
5931 (grub_udf_read_icb): Read whole block.
5932 (grub_udf_iterate_dir): Likewise.
5933 (grub_udf_dir): Likewise.
5934 (grub_udf_open): Likewise.
5936 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5938 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
5940 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5942 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
5943 inline symlinks in addition to workaround.
5945 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5947 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
5949 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5951 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
5953 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5955 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
5957 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5959 Fix reiserfs big seek times.
5961 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
5962 exact. All users updated.
5963 (grub_reiserfs_read): Use nearest btree search for seeking.
5964 Fix return value on error.
5966 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5968 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
5970 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
5971 * docs/grub.texi: Update menuentry description.
5973 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5975 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
5976 crash when embedding onto filesystem.
5978 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5980 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
5983 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5985 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
5987 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5989 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
5992 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5993 2012-05-01 Bean <bean123ch@gmail.com>
5995 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
5997 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5999 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
6000 Special behaviour for len = 0 to read whole file isn't used anywhere and
6001 can cause buffer ovewrflows in several places.
6003 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6005 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
6007 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6009 Handle RAIDZ on non-512B sectors.
6011 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
6012 max_children_ashift.
6013 (fill_vdev_info_real): Fill max_children_ashift.
6014 (read_device): Use max_children_ashift.
6016 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6018 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
6020 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6022 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
6024 * docs/grub.texi: Update device.map parts.
6026 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6028 Don't scan into non-diskfilter devices having diskfilter names.
6030 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
6031 (scan_disk): New argument accept_diskfilter. Fix recursion depth
6033 (scan_disk_hook): New function.
6035 2012-04-29 Bean <bean123ch@gmail.com>
6037 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
6040 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
6042 * configure.ac: Detect starfield theme font path
6043 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
6045 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6047 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
6048 geometry on serial consoles.
6050 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6052 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
6053 because of network consoles.
6055 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6057 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
6060 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6062 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
6065 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6067 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
6068 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
6070 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6072 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
6073 Allocate at lest 8192 for temporary buffer as required for lzo.
6075 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6077 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
6078 to cluster_bits, since it's already added in.
6079 (grub_fat_read_data): Likewise.
6081 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6083 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
6084 as long as cluster size is multiple of 512 bytes.
6086 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
6088 * util/grub-mkrescue.in: Fix locale directory.
6090 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
6092 * grub-core/kern/emu/hostdisk.c (map): Make static.
6094 2012-04-23 Bean <bean123ch@gmail.com>
6096 * util/grub-fstest.c (fstest): Add missing break.
6098 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
6102 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
6103 not define nr variable.
6104 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
6105 find_root_devices_from_poolname, find_root_devices_from_libzfs,
6106 grub_find_device): Do not define.
6108 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6110 Fix kfreebsd compile and behaviour.
6112 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
6114 * util/getroot.c: Fix wait.h include.
6115 (grub_guess_root_devices): Error if grub_find_device fails.
6116 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
6117 (grub_util_get_dev_abstraction): Likewise.
6118 (grub_util_pull_device): Likewise.
6119 (grub_util_get_grub_dev): Likewise.
6120 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
6122 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6124 Fix and unify wholedisk detection.
6126 * util/getroot.c (convert_system_partition_to_system_disk): New argument
6127 is_part. All users updated.
6128 (device_is_wholedisk): Removed.
6129 (grub_util_biosdisk_get_grub_dev): Use is_part.
6131 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6133 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
6136 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6138 * configure.ac: Bump to beta4.
6140 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6142 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
6143 --fs-uuid --set UUID syntax.
6145 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6147 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
6150 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6152 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
6154 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
6156 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
6158 2012-04-18 Mike Gilbert <floppym@gentoo.org>
6160 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
6162 2012-04-18 Bean <bean123ch@gmail.com>
6164 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
6167 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6169 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
6171 (grub_util_biosdisk_read): Handle Linux partitions not exactly
6172 corresponding to GRUB partitions.
6173 (grub_util_biosdisk_write): Likewise.
6175 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6177 Scan mdraid before LVM.
6179 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
6180 (grub_diskfilter_register_front): ... this.
6181 (grub_diskfilter_register_back): New function.
6182 All users of grub_diskfilter_register updated.
6184 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6186 * util/grub-install.in: Fix an automatic target detection bug.
6188 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6190 * util/grub-install.in: New option --efi-directory.
6192 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6194 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
6195 boot services if we have no other choice.
6197 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6199 * util/grub-mknetdir.in: Rename --override-directory to --directory and
6201 * tests/util/grub-shell.in: Update to --directory.
6203 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6205 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
6207 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6209 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
6210 (grub_minix_read_file): Likewise.
6211 (grub_minix_read_inode): Likewise.
6212 (grub_minix_find_file): Likewise.
6213 (grub_minix_dir): Likewise.
6215 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6217 * util/grub-setup.c (setup): Fix partition handling and blocklist
6220 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6222 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
6223 redundant buggy overlap check.
6225 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6227 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
6230 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6232 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
6233 kh.loadflags on pre-2.00 kernels.
6235 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6237 Terminate UNDI and PXE before launching the payload to avoid problems
6240 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
6241 (grub_loader_flags): ... this. All users updated.
6242 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
6243 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
6244 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
6245 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
6247 (grub_pxe_restore): Likewise.
6248 (fini_hnd): New var.
6249 (GRUB_MOD_INIT): Register shutdown hook.
6250 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
6251 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
6252 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
6253 (grub_loader_set): Rename second argument to flags.
6255 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6257 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
6259 (grub_get_num_of_utf8_bytes): New function.
6260 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
6261 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
6263 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
6264 (grub_ucs4_to_utf8): Change return type.
6266 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6268 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
6270 * grub-core/fs/bfs.c (hop_level): Likewise.
6271 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
6273 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6275 * grub-core/lib/adler32.c: Recode due to license unclearness.
6277 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6279 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
6280 (test_header): Likewise.
6282 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6284 Fix --help formatting.
6286 * util/grub-mkconfig_lib.in (print_option_help): New function.
6287 (grub_fmt): Likewise.
6288 * util/grub-install.in: Use print_option_help and grub_fmt.
6289 * util/grub-kbdcomp.in: Likewise.
6290 * util/grub-mkconfig.in: Likewise.
6291 * util/grub-mknetdir.in: Likewise.
6292 * util/grub-mkrescue.in: Likewise.
6293 * util/grub-mkstandalone.in: Likewise.
6294 * util/grub-reboot.in: Likewise.
6295 * util/grub-set-default.in: Likewise.
6296 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6298 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6300 * linguas.sh: Remove autogenerated *.po.
6302 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6304 * po/README: Move language fetcing to ...
6305 * linguas.sh: ... here.
6306 * po/README: Point to linguas.sh.
6308 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6310 * po/README: Exclude ko.po due to disclaimer problems.
6312 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6314 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
6316 (grub_gettext_translate_real): Handle 0th string.
6317 (grub_gettext_translate): Ensure that "" isn't translated.
6319 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6321 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
6322 TRANSLATORS comment.
6323 (grub_diskfilter_print_partmap): Propagate changing of error into
6326 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6328 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
6329 to uint64_t to prevent overflow.
6330 (grub_diskfilter_lv): Increase start_extent and extent_count
6331 to uint64_t to prevent overflow.
6333 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6335 * configure.ac: Increase version.
6337 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6339 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
6341 * po/Rules-translit: New file.
6342 * po/arabic.sed: Likewise.
6343 * po/cyrillic.sed: Likewise.
6344 * po/greek.sed: Likewise.
6345 * po/hebrew.sed: Likewise.
6346 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
6347 * po/Makefile.in.in: Add extra_dist4.
6349 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6351 Handle big-endian minixfs (fixes minixfs tests on bigendian).
6353 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
6354 modify names. Introduce MODE_BIGENDIAN.
6355 * grub-core/fs/minix_be.c: New file.
6356 * grub-core/fs/minix2_be.c: Likewise
6357 * grub-core/fs/minix3_be.c: Likewise.
6358 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
6360 * grub-core/Makefile.core.def (minix_be): New module.
6361 (minix2_be): Likewise.
6362 (minix3_be): Likewise.
6364 2012-04-01 Felix <email@hamburg.de>
6366 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
6367 (devs): Add MBP 2011.
6369 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6371 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
6373 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6375 * grub-core/normal/cmdline.c (print_completion): New field
6377 (grub_cmdline_get): Handle width properly.
6379 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6381 * grub-core/commands/lsacpi.c (options): Add missing terminator.
6383 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6385 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6386 after 29th of February.
6388 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6390 Fix exfat endianness handling.
6392 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
6393 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
6394 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
6395 Byte-swap utf16 when necessary.
6396 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
6398 2012-03-31 Anton Blanchard <anton@samba.org>
6399 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6401 Fix btrfs endianness handling.
6403 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
6404 (lower_bound): Make root uint64_t. Use root in le.
6405 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
6406 (find_path): Fix template key init.
6407 (grub_btrfs_dir): Fix mtime byteswap.
6408 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
6410 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6412 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
6413 recursion_depth. Break infinite resursions. All users updated.
6415 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6417 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
6419 Reported by: Peter Jones.
6421 2012-03-31 Anton Blanchard <anton@samba.org>
6423 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
6426 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
6428 * util/grub-install.in: Fix nvram call for PreP.
6430 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
6432 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
6433 the error when some elements are missing into a warning.
6435 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
6437 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
6439 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
6441 * docs/grub.texi (Invoking grub-probe): New section.
6442 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
6444 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
6446 Fix tab and wide character handling in editor and menu.
6448 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
6449 agglomerate control characters with combining marks.
6450 (bidi_line_wrap): Allow break on tab.
6451 (grub_unicode_get_comb_start): New function.
6452 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
6454 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
6456 * grub-core/normal/term.c (print_ucs4_terminal): New argument
6457 fixed_tab_size. All users updated.
6458 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
6459 (grub_term_getcharwidth): Handle \t.
6460 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
6463 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6465 Handle big-endian mdraid.
6467 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
6468 * grub-core/Makefile.core.def (mdraid09_be): New module.
6469 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
6470 rather than grub_le_to_cpu* and grub_cpu_to_le*.
6471 * grub-core/disk/mdraid_linux_be.c: New file.
6473 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6475 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
6477 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6479 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
6480 missing quotes which caused confusion among translators.
6482 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6484 * util/grub-mkconfig_lib.in: Fix typo.
6486 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6488 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
6490 * tests/grub_script_leading_whitespace.in: New file.
6491 * Makefile.util.def (grub_script_leading_whitespace): New test.
6493 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6495 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
6498 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6500 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
6501 starts with control character.
6503 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6505 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
6507 (grub_gdb_outbuf): Likewise.
6509 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6511 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
6512 zero terminator. Fixes a crash.
6514 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6516 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
6518 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
6519 images independently of preffered adderss field.
6521 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6523 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
6524 * grub-core/commands/regexp.c: Likewise.
6525 * grub-core/loader/i386/linux.c: Likewise.
6526 * grub-core/partmap/msdos.c: Likewise.
6527 * grub-core/script/execute.c: Likewise.
6528 * grub-core/term/gfxterm.c: Likewise.
6530 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6532 Add variable parsing in $"..." and fix several mismatches with bash.
6534 * Makefile.util.def (grub_script_gettext): New test.
6535 * grub-core/script/execute.c (parse_string): New function.
6536 (gettext_append): Likewise.
6537 (grub_script_arglist_to_argv): Use gettext_append.
6538 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
6539 * tests/grub_script_gettext.in: New file.
6541 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6543 Fix handling of leading spaces in scripts.
6545 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
6547 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
6548 other than skipping \r. All users updated.
6549 * tests/grub_script_echo1.in: Add space-related tests.
6550 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
6552 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6554 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
6556 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6558 * configure.ac: Bump up the version to beta2.
6560 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6562 Fix gettext reload bugs (e.g. inability to disable gettext
6565 * grub-core/gettext/gettext.c: Encapsulate all static variables in
6566 main_context and secondary_context. All functions updated.
6567 (grub_gettext_translate): Rename to ...
6568 (grub_gettext_translate_real): ... this. Return NULL on failed
6570 (grub_gettext_translate): Handle secondary context.
6571 (grub_gettext_delete_list): Close file and zero-out the context.
6572 (grub_mofile_open): Don't call grub_gettext_delete_list.
6574 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
6575 if locale="" to avoid pointless error message.
6576 (grub_gettext_env_write_lang): Update lang even if load fails.
6577 Handle secondary context.
6578 (grub_gettext_reread_prefix): New function.
6579 (read_main): Likewise.
6580 (read_secondary): Likewise.
6581 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
6582 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
6583 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
6584 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
6586 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6588 * configure.ac: Decrease warning level to avoid spurious warnings and
6589 to be able to compile with GCC 4.2.
6590 * Makefile.util.def: Remove -Wno-error=logical-op.
6592 2012-03-10 William Bittner <william.bittner@gmail.com>
6594 * util/import_unicode.py: Add missing brackets around string for
6597 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6599 Fix efi chainloader on network root.
6601 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
6603 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
6606 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6608 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
6609 unused show_text member.
6610 * docs/grub.texi: Document "text" property.
6612 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6614 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
6617 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6619 Fix IMSM handling on Fedora.
6621 * util/getroot.c (grub_util_is_imsm): New function.
6622 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
6624 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6626 * Makefile.am: Strip gold section.
6627 * conf/Makefile.common: Likewise.
6628 * gentpl.py: Likewise.
6629 * grub-core/Makefile.core.def: Likewise.
6630 * grub-core/genmod.sh.in: Likewise.
6632 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6634 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
6635 * util/grub.d/20_linux_xen.in: Likewise.
6636 Based on Debian patch.
6638 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6640 * util/grub.d/10_linux.in: Fix syntax error resulting in
6641 Richard Laager's patch.
6642 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
6644 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6646 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
6649 2012-03-10 Richard Laager <rlaager@wiktel.com>
6651 * util/grub.d/10_linux.in: Fix ZFS root passing.
6653 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6655 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
6656 * grub-core/commands/xnu_uuid.c: Likewise.
6657 * grub-core/loader/efi/appleloader.c: Likewise.
6658 * grub-core/script/execute.c: Likewise.
6659 * grub-core/script/main.c: Likewise.
6660 * util/grub-mkfont.c: Likewise.
6662 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6664 * util/grub-mkfont.c (options): Use more appropriate "select" that
6665 "set" for face index.
6667 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6669 * util/grub-editenv.c (options): Gettextize command summaries.
6671 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6673 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
6674 "out of memory" error messagge.
6676 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6678 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
6679 of diskfilter for diskfilter on diskfilter support.
6681 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6683 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
6685 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6687 * util/grub-install.in: Check for themes/starfield/theme.txt and not
6690 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6692 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
6694 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6696 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
6698 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6700 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
6703 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
6705 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
6707 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
6709 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
6711 * util/grub-install.in: Fix and gettextize error message.
6713 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6715 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
6717 * util/grub-mount.c (options): Likewise.
6719 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6721 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
6723 * grub-core/commands/search_wrap.c (options): Likewise.
6725 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6727 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
6729 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6731 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
6733 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
6736 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6738 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
6739 "temporary" since it's used in identifier and is limited in space.
6741 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6743 * po/POTFILES.in: Regenerate. Include *.h since they contain
6744 translatable strings as well.
6746 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6748 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
6749 byte-swap on big-endian.
6750 Reported by: Lennart Sorensen
6752 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6754 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
6755 (allocate_pages): Improve dprintf.
6756 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
6757 code32_start. Fill code32_start and kernel_alignment in params.
6758 (grub_cmd_initrd): Use prot_init_space.
6760 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6762 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
6764 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6766 * util/grub-install.in: Add missing dot at the end of sentence.
6768 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6770 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
6771 * grub-core/commands/videotest.c: Likewise.
6772 * grub-core/loader/i386/linux.c: Likewise.
6774 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6776 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
6778 Reported by: Milo Casagrande.
6780 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6782 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
6783 * grub-core/commands/gptsync.c: Likewise.
6784 * grub-core/commands/hashsum.c: Likewise.
6785 * grub-core/commands/i386/pc/sendkey.c: Likewise.
6786 * grub-core/commands/legacycfg.c: Likewise.
6787 * grub-core/io/gzio.c: Likewise.
6788 * grub-core/net/net.c: Likewise.
6789 * grub-core/term/gfxterm.c: Likewise.
6790 * grub-core/term/terminfo.c: Likewise.
6791 * grub-core/tests/test_blockarg.c: Likewise.
6792 * grub-core/video/video.c: Likewise.
6793 * util/grub-install.in: Likewise.
6794 * util/grub-mkfont.c: Likewise.
6796 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6798 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
6800 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6802 * grub-core/commands/search_wrap.c (options): Fix a typo.
6803 Reported by: David Prévot.
6805 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6807 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
6810 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6812 * util/grub-script-check.c (main): Fix a syntax error message which was
6815 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6817 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
6819 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6821 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
6824 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6826 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
6828 * util/grub-mount.c (options): Likewise.
6830 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6832 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
6834 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6836 * grub-core/net/http.c: Add TRANSLATORS comments.
6837 * grub-core/normal/cmdline.c: Likewise.
6838 * grub-core/normal/misc.c: Likewise.
6839 * grub-core/partmap/msdos.c: Likewise.
6840 * grub-core/parttool/msdospart.c: Likewise.
6841 * grub-core/script/execute.c: Likewise.
6842 * grub-core/script/main.c: Likewise.
6843 * grub-core/term/terminfo.c: Likewise.
6844 * grub-core/video/bitmap.c: Likewise.
6845 * util/grub-install.in: Likewise.
6846 * util/grub-mkimage.c: Likewise.
6847 * util/grub-mklayout.c: Likewise.
6848 * util/grub-setup.c: Likewise.
6850 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6852 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
6853 with similar messages in grub-fstest.
6855 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6857 * util/grub-install.in: Unify "option requires an argument" message
6858 with similar messages in other files.
6859 * util/grub-mkconfig.in: Likewise.
6861 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6863 * util/grub-set-default.in: Replace printf with gettext_printf (the
6864 string in in question is already translated from grub-reboot)
6866 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6868 * configure.ac: Bump up the version to beta1.
6870 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6872 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
6873 case when min_align = 0.
6875 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6877 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
6878 and fix a case when line_start overflows.
6880 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6882 * util/grub-reboot.in (usage): Mention id posibility.
6883 * util/grub-set-default.in (usage): Likewise.
6885 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6887 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
6888 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
6889 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
6890 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
6891 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6892 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6893 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6895 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6897 * grub-core/commands/menuentry.c (options): Remove
6898 GRUB_ARG_OPTION_REPEATABLE.
6899 Reported by: Andreas Vogel
6901 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
6903 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
6905 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
6907 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
6910 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6912 Use sort -V by the idea of Georgi Georgiev.
6914 * util/grub-mkconfig_lib.in (version_sort): New function.
6915 (version_test_numeric): Use version_sort.
6917 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6919 Use submenus in grub-mkconfig.
6921 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
6922 * util/grub-mkconfig_lib.in (grub_quote): New function.
6923 (gettext_printf): Use gettext and not gettext_quoted to fix several
6925 * util/grub.d/10_hurd.in: Use submenus.
6926 * util/grub.d/10_kfreebsd.in: Likewise.
6927 * util/grub.d/10_linux.in: Likewise.
6928 * util/grub.d/10_netbsd.in: Likewise.
6929 * util/grub.d/20_linux_xen.in: Likewise.
6930 * util/grub.d/30_os-prober.in: Likewise.
6931 * util/grub.d/10_illumos.in: Add missing quoting.
6932 * util/grub.d/10_windows.in: Likewise.
6934 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6936 Fix menu title instability bug.
6938 * grub-core/commands/menuentry.c (options): New option --id.
6939 (grub_normal_add_menu_entry): New argument id. All users updated.
6940 (grub_cmd_menuentry): Handle --id.
6941 (grub_menu_init): Accept unknown arguments.
6942 * grub-core/normal/main.c (features): Add feature_menuentry_id and
6943 feature_menuentry_options.
6944 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
6946 (get_entry_number): Match with id as well.
6947 * include/grub/menu.h (grub_menu_entry): New member id.
6948 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
6949 * util/grub.d/00_header.in: Define menuentry_id_option.
6950 * util/grub.d/10_hurd.in: Define id.
6951 * util/grub.d/10_illumos.in: Likewise.
6952 * util/grub.d/10_kfreebsd.in: Likewise.
6953 * util/grub.d/10_linux.in: Likewise.
6954 * util/grub.d/10_netbsd.in: Likewise.
6955 * util/grub.d/10_windows.in: Likewise.
6956 * util/grub.d/20_linux_xen.in: Likewise.
6957 * util/grub.d/30_os-prober.in: Likewise.
6959 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6961 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
6962 "scope" with "body".
6964 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6966 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
6967 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
6968 prot_size and prot_file_size.
6970 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6972 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
6973 All users updated. If easily=1 require raid-5/-6 to be full.
6974 (is_node_readable): Likewise.
6975 (scan_devices): Scan incomplete but readable LVs at the end.
6976 (grub_diskfilter_memberlist): Pull missing devices.
6977 (insert_array): Skip scanning until device is complete or scan is
6979 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
6981 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
6982 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
6984 2012-03-03 Matthew Garrett <mjg@redhat.com>
6985 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6987 Avoid EFI boot services when loading Linux.
6989 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
6990 avoid_efi_bootservices. All users updated.
6991 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
6992 argument avoid_efi_bootservices. All users updated.
6993 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
6994 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
6995 align, min_align, relocatable, prefered_address. All users updated.
6996 Allocate avoiding boot services if kernel is relocatable.
6997 (grub_cmd_linux): Check if kernel is relocatable.
6998 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
6999 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
7000 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
7001 avoid_efi_boot_services.
7002 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
7003 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
7004 (linux_kernel_params): Likewise.
7006 2012-03-03 Matthew Garrett <mjg@redhat.com>
7007 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7011 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
7013 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
7014 modes. Set gop_handle.
7015 (grub_video_gop_get_edid): New function.
7016 (grub_gop_get_preferred_mode): Likewise.
7017 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
7018 (grub_video_efi_gop_adapter): Set .get_edid.
7019 * include/grub/efi/edid.h: New file.
7020 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
7022 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7024 * util/grub-install.in: Load efivars unconditionally.
7026 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7028 * po/Rules-piglatin: Change suffix from .po-update-en to
7029 .po-update-en-piglatin.
7031 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7035 * po/piglatin.sed: New file.
7036 * po/en@piglatin.header: Likewise.
7037 * po/Rules-piglatin: Likewise.
7038 * po/README: Add en@piglatin to autogenerated languages.
7040 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7042 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
7044 * grub-core/commands/hdparm.c (options): Use "Display" rather than
7045 "Check" since we don't check anything.
7046 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
7048 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
7049 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
7050 (grub_md_sha512_real): Likewise.
7052 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7054 * grub-core/commands/gptsync.c: Fix typographic quoting.
7055 * grub-core/commands/ieee1275/suspend.c: Likewise.
7056 * grub-core/commands/parttool.c: Likewise.
7057 * grub-core/commands/search_wrap.c: Likewise.
7058 * grub-core/commands/videoinfo.c: Likewise.
7059 * grub-core/gfxmenu/gui_label.c: Likewise.
7060 * grub-core/hello/hello.c: Likewise.
7061 * grub-core/kern/emu/main.c: Likewise.
7062 * grub-core/net/net.c: Likewise.
7063 * grub-core/normal/menu.c: Likewise.
7064 * grub-core/normal/menu_text.c: Likewise.
7065 * grub-core/normal/misc.c: Likewise.
7066 * util/grub-editenv.c: Likewise.
7067 * util/grub-install.in: Likewise.
7068 * util/grub-kbdcomp.in: Likewise.
7069 * util/grub-mkconfig.in: Likewise.
7070 * util/grub-mknetdir.in: Likewise.
7071 * util/grub-mkrescue.in: Likewise.
7072 * util/grub-mkstandalone.in: Likewise.
7073 * util/grub-reboot.in: Likewise.
7074 * util/grub-set-default.in: Likewise.
7075 * util/grub-setup.c: Likewise.
7076 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7078 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7080 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
7081 * grub-core/commands/keystatus.c: Likewise.
7082 * grub-core/commands/loadenv.c: Likewise.
7083 * grub-core/commands/probe.c: Likewise.
7084 * grub-core/commands/regexp.c: Likewise.
7085 * grub-core/commands/true.c: Likewise.
7086 * grub-core/commands/videoinfo.c: Likewise.
7087 * grub-core/disk/cryptodisk.c: Likewise.
7088 * grub-core/disk/ldm.c: Likewise.
7089 * grub-core/disk/loopback.c: Likewise.
7090 * grub-core/disk/luks.c: Likewise.
7091 * grub-core/fs/zfs/zfsinfo.c: Likewise.
7092 * grub-core/kern/disk.c: Likewise.
7093 * grub-core/kern/emu/hostdisk.c: Likewise.
7095 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7097 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
7098 * util/grub-install.in: Add missing quote in the comment.
7100 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7102 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
7103 * grub-core/commands/lsmmap.c: Likewise.
7104 * grub-core/commands/minicmd.c: Likewise.
7105 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
7106 * grub-core/commands/regexp.c: Likewise.
7107 * grub-core/gdb/gdb.c: Likewise.
7108 * grub-core/term/gfxterm.c: Likewise.
7109 * util/grub-mkconfig.in: Likewise.
7110 * util/grub-mkfont.c: Likewise.
7111 * util/grub-mklayout.c: Likewise.
7112 * util/grub-mknetdir.in: Likewise.
7113 * util/grub-mkrescue.in: Likewise.
7114 * util/grub.d/30_os-prober.in: Likewise.
7116 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7118 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
7119 with "Direct color" and "Packed" with "Packed pixel".
7120 (grub_cmd_videoinfo): Simplify legend.
7122 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7124 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
7125 absolutely unclear error message.
7127 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7129 * util/grub-mkstandalone.in: Remove confusing leftover print.
7131 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7133 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
7135 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
7136 (GRUB_MOD_INIT): Likewise.
7137 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
7139 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
7141 * util/grub-install.in (usage): Likewise.
7142 Spell ID in whole letters.
7143 Add missing ending dot.
7145 * util/grub-reboot.in: Fix capitalisation.
7146 * util/grub-set-default.in: Likewise.
7148 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7150 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
7151 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
7152 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
7153 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
7154 Disable -Werror for -Wdeprecated-declarations.
7155 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
7156 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
7157 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
7158 (grub_util_get_grub_dev): Make luks handling dependent on
7159 HAVE_DEVICE_MAPPER and not __linux__.
7160 (get_win32_path): Fix format security.
7161 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
7162 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
7163 Don't try grub_find_zpool_from_dir.
7164 (grub_make_system_path_relative_to_its_root) [!__linux__]:
7165 #ifdef-out paresdir.
7167 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7169 * util/grub-pe2elf.c (usage): Add missing noreturn.
7170 (write_section_data): Rename name to shname to avoid shadowing.
7171 (write_symbol_table): Rename name to symname to avoid shadowing.
7172 Fix write_reloc_section call.
7174 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7176 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
7177 to ensure that it's after the last byte of .text.
7179 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7181 * util/ieee1275/ofpath.c (my_isdigit): New function.
7182 (trailing_digits): Use my_isdigit.
7183 (strip_trailing_digits): Likewise.
7185 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7187 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
7188 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
7190 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7192 * grub-core/kern/i386/pc/startup.S: Define __start.
7194 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7196 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
7197 strip already transforms he format.
7199 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7201 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
7203 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7205 * util/grub-install.in: Add missing gettext init.
7206 * util/grub-kbdcomp.in: Likewise.
7207 * util/grub-mkconfig.in: Likewise.
7208 * util/grub-mknetdir.in: Likewise.
7209 * util/grub-mkrescue.in: Likewise.
7210 * util/grub-mkstandalone.in: Likewise.
7211 * util/grub-reboot.in: Likewise.
7212 * util/grub-set-default.in: Likewise.
7213 * util/grub.d/00_header.in: Likewise.
7214 * util/grub.d/10_hurd.in: Likewise.
7215 * util/grub.d/10_windows.in: Likewise.
7216 * util/grub.d/30_os-prober.in: Likewise.
7217 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7219 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7221 * po/Rules-swiss: Fix header comment.
7223 2012-02-29 Andreas Vogel <anvoit>
7225 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
7226 resulted in leak of arguments.
7228 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7230 * grub-core/boot/i386/pc/startup_raw.S: Use separate
7231 reed_solomon_size const definition instead of computing it since
7232 Apple assembler doesn't support the later.
7234 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7236 * gentpl.py (kernel): Rewrite Apple part.
7238 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7240 * include/grub/kernel.h (FOR_MODULES): Check module magic.
7242 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7244 * util/grub-mkimagexx.c (locate_sections): Support non-standard
7246 (load_image): Likewise.
7248 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7250 * configure.ac: Fix a typo in previous commit.
7252 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7254 Don't add -Wl,-N on Apple platform.
7256 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
7257 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
7259 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7261 * grub-core/Makefile.core.def (lzma_decompress): Use
7262 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
7264 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7266 * grub-core/genmod.sh.in: Rewrite the Apple part.
7268 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7270 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
7273 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7275 * acinclude.m4 (grub_CHECK_PIC): New test.
7276 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
7278 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7280 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
7281 to avoid the warning.
7283 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7285 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
7286 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
7287 after. All users updated.
7289 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7291 Use the common size routine in hostfs so we can read disks as well.
7293 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
7294 (grub_util_get_fd_size): ... this. Return size in bytes.
7296 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
7297 grub_util_get_fd_size.
7299 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7301 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
7302 Add blocksize retrieval.
7304 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7306 * configure.ac: Restore CFLAGS after efiemu check.
7308 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7310 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
7313 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7315 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
7317 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7319 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
7320 (grub_cmd_halt): Likewise.
7322 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7324 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
7325 for local arithmetics.
7326 Break %sp init into 2 instructions.
7327 Add 0 byte at the end.
7329 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7331 * grub-core/disk/diskfilter.c (read_segment): Initialise err
7334 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7336 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
7339 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7341 * grub-core/disk/ldm.c (make_vg): Init part.name.
7342 (grub_ldm_detect): Silence spurious warning.
7343 (grub_util_is_ldm): Likewise.
7345 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7347 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
7348 sane value to avoid a spurious warning.
7350 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7352 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
7353 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
7355 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7357 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
7358 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
7360 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7362 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
7363 hardcoding the relevant info.
7365 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7367 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
7368 missing const qualifiers.
7369 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
7371 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7373 * util/getroot.c [__APPLE__]: Add missing includes.
7374 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
7376 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7378 * util/grub-mkimage.c (generate_image): Silence spurious warning.
7380 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7382 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
7385 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7387 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
7389 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7391 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
7392 and grub_file_close call.
7394 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7396 Add LZSS Mach-O support (needed for new xnu kernelcache).
7398 * grub-core/Makefile.core.def (xnu): Add file lzss.c
7399 * grub-core/loader/lzss.c: New file.
7400 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
7401 on Mach-O open failure.
7402 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
7403 Don't free cmdsXX in uncompressedXX is set.
7404 (grub_macho_file): Init new fields.
7405 New argument is_64bit. All users updated.
7406 Handle compressed. Error out if no suitable architecture is found.
7408 (grub_macho_open): New argument is_64bit. All users updated.
7409 * grub-core/loader/macho32.c: Add defines for new fields.
7410 * grub-core/loader/macho64.c: Likewise.
7411 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
7412 (grub_macho_parse): Handle compressed.
7413 Defer actual processing if compressed.
7414 (grub_macho_cmds_iterate): Decompress if compressed. New argument
7415 "filename". All users updated.
7416 (grub_macho_size): New argument "filename". All users updated.
7417 (grub_macho_get_entry_point): Likewise.
7418 (grub_macho_load): Handle compressed.
7419 * include/grub/macho.h (grub_macho_lzss_header): New struct.
7420 (GRUB_MACHO_LZSS_OFFSET): New define.
7421 (grub_decompress_lzss): New proto.
7422 * include/grub/machoload.h (grub_macho_file): New fields to handle
7424 (grub_macho_contains_macho64): Remove proto.
7425 (grub_macho_contains_macho32): Likewise.
7426 * util/grub.d/30_os-prober.in: Use kernel cache if available.
7428 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7430 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
7432 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7436 * Makefile.am (starfield_theme_files): New var.
7437 (starfield_DATA): Use starfield_theme_files.
7438 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
7439 Add bootcheck-related files.
7440 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
7441 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
7442 and font_char_metrics.txt.
7443 * grub-core/Makefile.core.def (kernel): Update extra_dist.
7444 (setjmp): Add lib/ia64/longjmp.S.
7445 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
7446 * po/POTFILES.in: Regenerate.
7447 * po/Rules-swiss: use DISTFILES.common.extra2 and not
7448 DISTFILES.common.extra1.
7449 * util/devicemap.c: Removed.
7450 * grub-core/lib/i386/relocator_backward.S: Likewise.
7451 * util/import_gcry.py: Remove unused files. Add extra_dist for
7454 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7456 * grub-core/gettext/gettext.c (grub_mofile_open): Call
7457 grub_gettext_delete_list before changing grub_gettext_max to avoid
7458 running out of array bounds.
7460 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7462 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
7463 grub_vga_text_init/grub_vga_text_fini.
7465 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7467 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
7469 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7471 * configure.ac: Bump to 2.00~beta0.
7473 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7475 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
7476 missing initialisation.
7478 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7480 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
7482 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7484 Support v2 xnu boot arguments.
7486 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
7487 New argument fsbfreq_out.
7488 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
7489 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
7491 * grub-core/loader/machoXX.c (grub_macho_load): New argument
7493 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
7494 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
7495 (grub_xnu_boot_params): Rename to ...
7496 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
7497 (grub_xnu_boot_params_v2): New struct.
7499 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7501 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
7502 zeroing of CRC field before computing CRC.
7504 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7506 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
7507 Change order of allocations to decrease fragmentation.
7509 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7511 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
7513 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
7515 Use write-combining MTRR to speed up video with buggy BIOSes.
7517 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
7518 (cpuid): New define.
7521 (mtrr_base): Likewise.
7522 (mtrr_mask): Likewise.
7523 (grub_vbe_enable_mtrr_entry): New function.
7524 (grub_vbe_enable_mtrr): Likewise.
7525 (grub_vbe_disable_mtrr): Likewise.
7526 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
7527 control off to BIOS.
7528 (grub_video_vbe_init): Fill mtrr.
7529 (grub_video_vbe_fini): Disable mtrr.
7530 (grub_video_vbe_get_info_and_fini): Likewise.
7531 (grub_video_vbe_setup): Enable mtrr.
7533 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
7535 * include/grub/partition.h (grub_partition_map): Change prototype of
7536 embed to take a maximum value for nsectors.
7537 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
7538 * include/grub/fs.h (grub_fs): Likewise.
7539 * grub-core/partmap/msdos.c (embed_signatures): New array.
7540 (pc_partition_map_embed): Check for and avoid sectors matching any
7541 of the signatures in embed_signatures, up to max_nsectors.
7542 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
7543 returned sector map to max_nsectors.
7544 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
7545 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
7546 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
7547 * util/grub-setup.c (setup): Allow for the embedding area being
7548 split into multiple blocklists. Tell dest_partmap->embed the
7549 maximum number of sectors we care about.
7551 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7553 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
7554 Specify blocklist_install and reserver_first_sector for all fs.
7555 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
7558 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7560 * util/grub-install.in: Clarify strings.
7561 Fix source dir check.
7563 2012-02-27 Richard Laager <rlaager@wiktel.com>
7565 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
7566 "zfs" and "fuse.zfs" as synonyms.
7568 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7570 * configure.ac: Put platform and target_cpu substitutions back since
7571 they are used for directories.
7573 2012-02-27 Richard Laager <rlaager@wiktel.com>
7574 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7576 * util/grub.d/10_linux.in: Add ZFS-related arguments.
7577 * util/grub.d/20_linux_xen.in: Likewise.
7579 2012-02-27 Richard Laager <rlaager@wiktel.com>
7581 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
7584 2012-02-27 Richard Laager <rlaager@wiktel.com>
7586 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
7589 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7591 Don't use insecure popen in getroot.
7593 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
7594 (exec_pipe): ... here.
7595 (find_root_devices_from_poolname): Use exec_pipe.
7597 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7599 Remove platform and target_cpu replacement.
7601 * configure.ac: Remove platform and target_cpu substitutions.
7602 * tests/util/grub-shell.in: Use modinfo.
7603 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
7606 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7608 Autodetect platform in grub-install but allow override.
7610 * util/grub-install.in: Autodetect platform. Support --target and
7611 --directory. Read platform from modinfo.sh.
7613 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7615 Support btrfs multi-volume probe.
7617 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
7618 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
7619 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
7620 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
7621 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
7622 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
7623 grub_find_root_devices_from_btrfs if on btrfs.
7625 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7627 Remove any awareness of *.c util files about target.
7629 * Makefile.util.def (grub-setup): Split to ...
7630 (grub-bios-setup): ... and this.
7631 (grub-sparc64-setup): ... and this.
7632 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
7633 * docs/man/grub-setup.h2m: Split into ...
7634 * docs/man/grub-sparc64-setup.h2m: ... this.
7635 * docs/man/grub-bios-setup.h2m: ... and this.
7636 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
7637 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
7638 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
7639 (grub_target_addr_t): Remove.
7640 (grub_target_size_t): Remove.
7641 (grub_target_ssize_t): Remove.
7642 * util/grub-install.in: Use new grub-*-setup.
7643 * util/grub-mkimagexx.c (Elf_Word): New define.
7644 (Elf_Half): Likewise.
7645 (Elf_Section): Likewise.
7646 (ELF_ST_TYPE): Likewise.
7647 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
7648 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
7650 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7652 Replace grub_target_addr with more appropriate types.
7654 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
7655 grub_target_addr with grub_addr.
7656 * grub-core/commands/iorw.c (grub_cmd_read): Replace
7657 grub_target_addr with grub_port.
7658 (grub_cmd_write): Likewise.
7659 * grub-core/commands/memrw.c (grub_cmd_read): Replace
7660 grub_target_addr with grub_addr.
7661 (grub_cmd_write): Likewise.
7662 * grub-core/video/efi_uga.c (find_line_len): Likewise.
7664 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7666 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
7667 const qualifier for vendor_guid.
7669 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7671 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
7673 (efiemu_memequal): Likewise.
7674 (find_variable): Likewise.
7676 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7678 Fix missing console prototype on qemu-mips.
7680 * include/grub/mips/qemu_mips/console.h: New file.
7682 2012-02-27 Matthew Garrett <mjg@redhat.com>
7683 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7685 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
7686 * include/grub/efi/efi.h: Likewise.
7687 * include/grub/efi/api.h: Add guid for EFI-specified variables.
7688 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
7689 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
7690 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
7691 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
7692 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
7694 2012-02-27 Matthew Garrett <mjg@redhat.com>
7696 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
7698 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7700 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
7703 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7705 * configure.ac: Remove inappropriate use of program_transform_name
7706 on grubdir and bootdir but allow explicit specification of those
7709 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7711 * util/grub-mknetdir.in (grub_prefix): Removed.
7712 (subdir): Use @bootdirname@ and @grubdirname@.
7714 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7716 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
7718 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7720 * po/POTFILES.in: Regenerated.
7722 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7724 Remove improper use of program_transform_name on pkglibrootdir.
7726 * configure.ac (pkglibrootdir): Removed.
7727 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
7728 * util/grub-mkimage.c: Likewise.
7730 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7732 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
7735 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7737 * util/grub-install.in: Use file identifier if no UUID is available
7738 or user explicitly prompted for it.
7740 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
7742 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
7743 (freebsd_get_zfs): New function.
7744 (grub_freebsd_boot): Pass zfs UUID.
7745 (grub_cmd_freebsd): Set zfs UUID.
7747 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7749 * conf/Makefile.common (platformdir): Base on pkglibdir and not
7752 2012-02-27 Mike Gilbert <floppym@gentoo.org>
7754 Add configure flag to control libzfs integration.
7756 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
7758 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7760 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
7762 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
7765 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7767 Remove grub_{modname}_init and grub_{modname}_fini. They should never
7768 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
7769 be used on non-modules.
7771 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
7772 Rename to grub_boot_init.
7773 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
7774 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
7775 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
7776 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
7777 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
7778 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
7779 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
7780 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
7782 (grub_machine_init): Remove empty inits.
7783 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
7785 (grub_machine_init): Remove empty inits.
7786 * grub-core/term/arc/console.c: Remove explicit proto.
7787 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
7788 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
7789 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7790 grub_at_keyboard_fini.
7791 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
7792 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
7793 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7795 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
7796 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
7797 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7799 * grub-core/term/ieee1275/console.c: Remove explicit proto.
7800 * grub-core/term/serial.c (GRUB_MOD_INIT)
7801 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
7802 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7804 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
7805 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
7806 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7808 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
7809 (GRUB_MOD_FINI): Likewise.
7810 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
7811 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
7812 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7813 grub_video_radeon_fuloong2e_fini.
7814 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
7815 [LOONGSON]: Rename to grub_video_sis315pro_init.
7816 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7817 grub_video_sis315pro_fini.
7818 * grub-core/video/sm712.c (GRUB_MOD_INIT)
7819 [LOONGSON]: Rename to grub_video_sm712_init.
7820 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7821 grub_video_sm712_fini.
7822 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
7823 (grub_at_keyboard_fini): Likewise.
7824 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
7825 Don't declare grub_{modname}_init.
7826 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
7827 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
7829 (grub_keylayouts_fini) [!EMU]: Likewise.
7830 * include/grub/serial.h (grub_serial_init) [!EMU]:
7832 (grub_serial_fini) [!EMU]: Likewise.
7833 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
7835 (grub_terminfo_fini) [!EMU]: Likewise.
7836 * include/grub/video.h (grub_font_init) [!EMU]:
7838 (grub_font_fini) [!EMU]: Likewise.
7839 (grub_gfxterm_init) [!EMU]: Likewise.
7840 (grub_gfxterm_fini) [!EMU]: Likewise.
7841 (grub_video_sm712_init) [!EMU]: Likewise.
7842 (grub_video_sm712_fini) [!EMU]: Likewise.
7843 (grub_video_sis315pro_init) [!EMU]: Likewise.
7844 (grub_video_sis315pro_fini) [!EMU]: Likewise.
7845 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
7846 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
7848 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7850 Make nand a prefix for nand devices.
7852 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
7854 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7856 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
7857 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
7859 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7861 * include/grub/env.h (grub_env_find): Remove prototype.
7862 * grub-core/kern/env.c (grub_env_find): Make static.
7863 (grub_env_set): Remove useless set.
7865 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7867 * grub-core/kern/i386/realmode.S: Remove useless align.
7869 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7871 * include/grub/dl.h (grub_dl_load_file): Don't export.
7873 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7875 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
7878 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7880 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
7882 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
7883 not reloading whole superblock but only the part which is really needed.
7884 Remove useless grub_errors.
7885 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
7888 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7890 Don't export grub_get_rtc.
7892 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
7893 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
7895 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7897 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
7899 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7901 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
7902 argument since it can be deduced from diskfilter. All users updated.
7904 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7908 * include/grub/list.h (grub_prio_list): Removed.
7909 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
7910 GRUB_COMMAND_PRIO_MASK.
7911 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
7912 GRUB_COMMAND_FLAG_ACTIVE.
7913 (grub_prio_list_insert): Removed.
7914 (grub_prio_list_remove): Likewise.
7915 (GRUB_AS_PRIO_LIST): Likewise.
7916 (GRUB_AS_PRIO_LIST_P): Likewise.
7917 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
7918 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
7919 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
7920 * grub-core/kern/command.c (grub_register_command_prio): Inline
7922 (grub_unregister_command): Likewise.
7924 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7926 Fix interrupt mixup from previous commit.
7928 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
7929 (grub_realidt): New var.
7930 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
7932 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
7934 (grub_relocator16_boot): Set grub_relocator16_idt.
7935 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
7936 (LOCAL(realidt)): ... this.
7937 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
7938 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
7939 (grub_realidt): New variable.
7941 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7943 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
7944 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
7945 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
7946 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
7948 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
7949 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
7950 * po/POTFILES.in: Regenerate.
7952 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7954 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
7957 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7959 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
7961 (add_length): Likewise.
7963 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7964 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
7966 GDB serial and backtrace support.
7968 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
7969 (prot_to_real): Likewise.
7970 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
7971 * grub-core/Makefile.core.def (backtrace): New module.
7973 * grub-core/gdb/cstub.c: New file.
7974 * grub-core/gdb/gdb.c: Likewise.
7975 * grub-core/gdb/i386/idt.c: Likewise.
7976 * grub-core/gdb/i386/machdep.S: Likewise.
7977 * grub-core/gdb/i386/signal.c: Likewise.
7978 * grub-core/lib/i386/backtrace.c: Likewise.
7979 * grub-core/lib/backtrace.c: Likewise.
7980 * include/grub/backtrace.h: Likewise.
7981 * include/grub/gdb.h: Likewise.
7982 * include/grub/i386/gdb.h: Likewise.
7984 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7986 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
7988 (add_length): Likewise.
7989 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
7990 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
7992 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
7993 __argp_get_display_len.
7995 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7997 $"..." support in scripts.
7999 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
8000 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
8001 * grub-core/script/yylex.l: Likewise.
8002 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
8005 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8007 * gentpl.py: Remove obsolete pkglib_DATA handling.
8009 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8011 Don't transform PACKAGE_TARNAME following a discussion on autoconf
8014 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
8015 * util/grub-kbdcomp.in: Likewise.
8016 * util/grub-mkconfig.in: Likewise.
8017 * util/grub-mkconfig_lib.in: Likewise.
8018 * util/grub-mknetdir.in: Likewise.
8019 * util/grub-mkrescue.in: Likewise.
8020 * util/grub-mkstandalone.in: Likewise.
8021 * util/grub-reboot.in: Likewise.
8022 * util/grub-set-default.in: Likewise.
8023 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8025 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8029 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
8030 * util/grub.d/00_header.in: Compute prefix in the only place it's still
8031 used for backward compatibility.
8033 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8035 Add new all_video module.
8037 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
8038 * grub-core/Makefile.core.def (all_video): New module.
8039 * grub-core/genmoddep.awk: Generate dependency of all_video from
8041 * grub-core/lib/fake_module.c: New file.
8042 * grub-core/normal/main.c (features): Add feature_all_video_module.
8043 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
8044 don't do explicit search again.
8045 insmod all_video in load_video if available.
8047 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8049 Another round of string clarification and adding TRANSLATORS comments.
8051 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8053 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
8055 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8057 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
8059 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
8060 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
8062 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8064 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
8065 trailing newline implicitly. All users updated.
8067 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8069 Implement serial on IEEE1275 and EFI.
8071 * docs/grub.texi (Platform-specific limitations): Fix the columen video
8072 on emu. Mention arc and emu as the only platforms without serial
8074 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
8076 * grub-core/term/efi/serial.c: New file.
8077 * grub-core/term/ieee1275/serial.c: Likewise.
8078 * grub-core/term/serial.c (grub_serial_find): Disable direct port
8079 specification if no ns8250 driver is available.
8080 (grub_cmd_serial): Likewise.
8081 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
8082 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
8083 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
8084 (grub_efi_parity_type_t): New type.
8085 (grub_efi_stop_bits_t): Likewise.
8086 (grub_efi_serial_io_interface): New struct.
8087 * include/grub/serial.h (grub_serial_port): Make 'broken' field
8088 available for all interfaces.
8089 Add EFI and IEEE1275 fields.
8090 (grub_ofserial_init): New proto.
8091 (grub_efiserial_init): Likeiwse.
8092 * util/grub.d/00_header.in: Don't check for the presence of serial
8095 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8097 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
8098 name as if it was an alias.
8100 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
8102 * grub-core/commands/lsacpi.c (options): Fix typo.
8104 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
8106 Convert grub-emu to argp.
8108 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
8110 * util/argp_common.c: Rename to ...
8111 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
8112 Add missing includes.
8113 * grub-core/kern/emu/main.c: Convert to argp.
8114 * po/POTFILES.in: Regenerate.
8115 * util/grub-install.in (usage): Make first letter lowcase in messages
8117 * util/grub-setup.c (options): Likewise.
8119 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8121 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
8122 Put back accidently commented-out code.
8124 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8126 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
8127 loop check using Brent algorithm.
8128 (grub_hfsplus_btree_search): Likewise.
8130 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8132 * util/grub-install.in: Fix usage of wrong device for PreP install.
8134 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8136 * conf/Makefile.common (CFLAGS_GNULIB): Add
8137 -Wno-unsafe-loop-optimizations.
8138 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
8140 * grub-core/commands/legacycfg.c: Add pragma to skip
8141 -Wunsafe-loop-optimizations.
8142 (check_password_md5_real): Fix loop counter type.
8143 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
8145 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
8146 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
8148 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
8149 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
8150 * grub-core/net/net.c (grub_net_route_address): Add safety loop
8152 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
8153 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
8154 avoid possible infinite loops.
8155 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
8156 and -Wunsafe-loop-optimizations.
8157 * grub-core/script/yylex.l: Likewise.
8158 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
8159 (print_glyphs): Avoid infinite loops.
8160 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
8162 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
8164 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
8165 to avoid infinite loop.
8166 (disp_acpi_rsdt_table): Likewise.
8168 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8170 * grub-core/font/font.c (grub_font_load): Add support for default
8171 path for fonts ($prefix/fonts).
8172 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
8173 for checking if string is a path.
8174 * grub-core/normal/main.c (features): Add feature_default_font_path.
8175 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
8176 * util/grub.d/00_header.in: Use default directory if possible.
8177 * util/grub-install.in: Install unicode.pf2.
8179 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8181 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
8182 * po/Rules-swiss: New file.
8183 * po/swiss.sed: Likewise.
8185 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
8187 * grub-core/fs/btrfs.c (find_device): Fix typos.
8188 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
8189 * util/grub-mkrelpath.c (argp_parser): Likewise.
8190 Reported by: Yuri Chornoivan.
8192 2012-02-23 Dalet Omega <daletomega@gmail.com>
8194 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
8195 for usual informative messages.
8197 2012-02-23 Dalet Omega <daletomega@gmail.com>
8201 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
8202 * conf/Makefile.common: Define starfielddir.
8203 * configure.ac: Configure starfield.
8204 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
8205 * themes/starfield/README: Likewise.
8206 * themes/starfield/blob_w.png: Likewise.
8207 * themes/starfield/boot_menu_c.png: Likewise.
8208 * themes/starfield/boot_menu_e.png: Likewise.
8209 * themes/starfield/boot_menu_n.png: Likewise.
8210 * themes/starfield/boot_menu_ne.png: Likewise.
8211 * themes/starfield/boot_menu_nw.png: Likewise.
8212 * themes/starfield/boot_menu_s.png: Likewise.
8213 * themes/starfield/boot_menu_se.png: Likewise.
8214 * themes/starfield/boot_menu_sw.png: Likewise.
8215 * themes/starfield/boot_menu_w.png: Likewise.
8216 * themes/starfield/slider_c.png: Likewise.
8217 * themes/starfield/slider_n.png: Likewise.
8218 * themes/starfield/slider_s.png: Likewise.
8219 * themes/starfield/src/blob_nw.xcf: Likewise.
8220 * themes/starfield/src/bootmenu/: Likewise.
8221 * themes/starfield/src/bootmenu/center.xcf: Likewise.
8222 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
8223 * themes/starfield/src/bootmenu/side.xcf: Likewise.
8224 * themes/starfield/src/slider_c.xcf: Likewise.
8225 * themes/starfield/src/slider_n.xcf: Likewise.
8226 * themes/starfield/src/slider_s.xcf: Likewise.
8227 * themes/starfield/src/terminalbox/: Likewise.
8228 * themes/starfield/src/terminalbox/center.xcf: Likewise.
8229 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
8230 * themes/starfield/src/terminalbox/side.xcf: Likewise.
8231 * themes/starfield/starfield.png: Likewise.
8232 * themes/starfield/terminal_box_c.png: Likewise.
8233 * themes/starfield/terminal_box_e.png: Likewise.
8234 * themes/starfield/terminal_box_n.png: Likewise.
8235 * themes/starfield/terminal_box_ne.png: Likewise.
8236 * themes/starfield/terminal_box_nw.png: Likewise.
8237 * themes/starfield/terminal_box_s.png: Likewise.
8238 * themes/starfield/terminal_box_se.png: Likewise.
8239 * themes/starfield/terminal_box_sw.png: Likewise.
8240 * themes/starfield/terminal_box_w.png: Likewise.
8241 * themes/starfield/theme.txt: Likewise.
8243 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
8245 * util/grub.d/00_header.in: Add missing export theme.
8247 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8249 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
8251 Reported by: Eren D.
8253 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8255 * conf/Makefile.common (grubdatadir): Removed.
8256 (Makefile.am): Move eveything grubdata to pkgdata.
8258 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8260 * grub-core/commands/acpihalt.c (get_sleep_type):
8261 Remove unused variable.
8263 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8265 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
8266 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
8267 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
8268 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
8269 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
8270 i18n with gettext no-op.
8271 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
8272 GRUB_ACPI_OPCODE_STRING_CONST.
8273 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
8274 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
8276 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8278 * po/POTFILES.in: Regenerate.
8280 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8282 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
8283 -Wno-error=missing-noreturn.
8285 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8287 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
8288 condition to avoid possibly infinite loops.
8289 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
8290 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
8292 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8294 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
8295 condition to avoid possibly infinite loops.
8297 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8299 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
8302 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8304 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
8306 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8308 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
8310 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8312 * util/bin2h.c (usage): Add missing attribute noreturn.
8314 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8316 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
8317 if the size isn't divisible by 512.
8319 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8321 Make list_push and list_remove functions rather than inline functions
8322 to decrease size and avoid aliasing violations.
8324 * include/grub/list.h (grub_list_push): Move to ...
8325 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
8326 * include/grub/list.h (grub_list_remove): Move to ...
8327 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
8329 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8331 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
8332 and -Wunused-result.
8334 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
8336 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
8337 Reported by: Seth Goldberg
8339 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
8341 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
8343 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
8345 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
8346 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
8348 * docs/grub.texi (Simple configuration): Document
8349 GRUB_CMDLINE_GNUMACH.
8351 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
8353 * conf/Makefile.common (platform_SCRIPTS): New variable.
8354 (platform_PROGRAMS): Likewise.
8355 * gentpl.py: Mark *,module and *.image for install.
8356 * grub-core/gdb_grub.in: Add a notice of expected environment.
8357 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
8358 (gmodule.pl): Likewise.
8360 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
8362 Replace grub_checkkey with grub_getkey_noblock.
8364 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
8365 (grub_getkey_noblock): ... this. All users updated.
8367 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
8369 * grub-core/kern/emu/console.c: Move to ...
8370 * grub-core/term/emu/console.c: ...here.
8371 (grub_ncurses_getkey): Fix return value if no key is detected.
8373 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8375 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
8376 (grub_unit_test_fini): Likewise.
8377 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
8379 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8381 * include/grub/test.h (GRUB_UNIT_TEST)
8383 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8385 * grub-core/script/execute.c (grub_script_break): Clarify logic.
8386 Better error handling.
8387 (grub_script_return): Likewise.
8388 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
8390 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8392 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
8393 rimplicit redifinition.
8395 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8397 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
8400 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8402 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
8403 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
8406 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8408 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
8409 as GRUB_ERR_BUG. Don't malloc if no device is available.
8411 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8413 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
8414 Mark calling with invalid term as GRUB_ERR_BUG.
8416 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8418 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
8419 packets rather than raising an error.
8421 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8423 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
8426 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8428 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
8429 diagnostic to dprintf.
8430 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8432 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8434 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
8437 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8439 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
8440 (grub_ntfs_iterate_dir): Likewise.
8442 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8444 Efiemu stylistic fixes and gettext.
8446 * grub-core/efiemu/i386/loadcore32.c
8447 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
8448 * grub-core/efiemu/i386/loadcore64.c
8449 (grub_arch_efiemu_relocate_symbols64): Likewise.
8450 * grub-core/efiemu/i386/pc/cfgtables.c
8451 (grub_machine_efiemu_init_tables): Likewise.
8452 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
8453 (grub_efiemu_loadcore_initXX): Add a filename argument.
8455 Improved error message.
8456 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
8457 Add a filename argument.
8459 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
8460 Reclassify double relocation as GRUB_ERR_BUG.
8462 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8464 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
8467 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8469 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
8472 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8474 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
8476 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8478 Improve string. Gettextize.
8480 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8482 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
8484 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
8486 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8488 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
8489 [GRUB_UTIL]: New function.
8490 (insert_array) [GRUB_UTIL]: Store partmaps.
8491 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
8493 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
8494 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
8495 (probe_abstraction): Print diskfilter and not raid.
8496 Reported by: Lennart Sorensen
8498 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8500 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
8501 * util/grub-mkimagexx.c (MASK3): New define.
8502 (add_value_to_slot_20b): Use MASK3.
8503 (add_value_to_slot_21): Likewise.
8504 (relocate_addresses): Fix format specification.
8505 (load_image): Explicitly init symtab_section.
8507 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8509 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
8510 (grub_util_biosdisk_get_grub_dev): Fix format specification.
8512 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8514 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
8516 Reported by: Lennart Sorensen
8518 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8520 * gentpl.py: Add missing license header.
8521 * docs/grub.texi: Update copyright year.
8523 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
8525 Source grub-mkconfig_lib from the build directory at build time.
8526 Suggested by: Vladimir Serbinenko.
8528 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
8529 * util/grub-install.in: Define pkgdatadir if not already set, and source
8530 grub-mkconfig_lib from there.
8531 * util/grub-kbdcomp.in: Likewise.
8532 * util/grub-mkconfig.in: Likewise.
8533 * util/grub-mknetdir.in: Likewise.
8534 * util/grub-mkrescue.in: Likewise.
8535 * util/grub-mkstandalone.in: Likewise.
8536 * util/grub-reboot.in: Likewise.
8537 * util/grub-set-default.in: Likewise.
8538 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8540 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8542 Increase warning level.
8544 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
8545 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
8546 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
8547 (TARGET_CFLAGS): Likewise.
8548 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
8549 * grub-core/Makefile.core.def (decompressor_xz): Add
8550 -Wno-unreachable-code.
8551 (normal): Add -Wno-redundant-decls.
8552 (xzio): Add -Wno-unreachable-code.
8553 (lzopio): Add -Wno-redundant-decls -Wno-error.
8554 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
8555 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
8556 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
8557 * grub-core/kern/dl.c: Add exception to -Wcast-align.
8558 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
8559 * grub-core/kern/i386/coreboot/init.c: Add exception to
8560 -Wsuggest-attribute=noreturn.
8561 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
8562 * grub-core/kern/ia64/dl_helper.c: Likewise.
8563 * grub-core/kern/mips/dl.c: Likewise.
8564 * grub-core/kern/sparc64/dl.c: Likewise.
8565 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
8566 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
8568 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
8569 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
8570 * grub-core/loader/mips/linux.c: Likewise.
8571 * grub-core/loader/multiboot_elfxx.c: Likewise.
8572 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
8573 * grub-core/video/sm712.c: Add exception to -Wcast-align.
8574 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
8575 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
8577 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
8578 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
8581 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8583 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
8586 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8588 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
8589 Avoid improper use of strings.
8590 (grub_cmd_legacy_initrdnounzip): Likewise.
8592 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8594 * include/grub/emu/misc.h (grub_util_warn): Add missing format
8596 (grub_util_info): Likewise.
8597 (grub_util_error): Likewise.
8599 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8601 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
8602 * util/grub-fstest.c (fstest): Likewise.
8604 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8606 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
8607 (grub_md_sha512_real): Likewise.
8608 (grub_util_get_geli_uuid): Likewise.
8609 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
8610 (grub_util_biosdisk_open): Fix format specification.
8611 Respect format security.
8612 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
8613 (xrealloc): Likewise.
8614 (xasprintf): Likewise.
8616 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8618 * util/import_gcry.py: Include grub/crypto.h in init.c.
8620 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8622 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
8623 (generate_image): Make prefix a const char *.
8624 Fix format specifications. Respect format security.
8625 Avoid void * arithmetics.
8627 (argp_parser): Remove unused variable. Respect format security.
8628 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
8629 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
8630 (count_funcs): Remove unused variable.
8631 (relocate_addresses): Fix format specification.
8632 Disable x86-64 with elf32. Remove unused variables.
8633 (add_fixup_entry): Avoid shadowing.
8634 (make_reloc_section): Fix format specification.
8636 (locate_sections): Fix format specifications.
8637 (load_image): Avoid shadowing.
8639 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8641 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
8642 Fix format specifications. Respect format security.
8643 Don't translate already translated grub_errmsg.
8644 (argp_parser): Remove unused variable
8646 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8648 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
8650 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8652 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
8653 (main): Likewise. Use xmalloc. Respect format security.
8655 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8657 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
8659 (argp_parser): Remove unused variable.
8661 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8663 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
8664 (add_pixel): Make static.
8665 (add_font): Likewise.
8666 (write_string_section): Make name and str a const char *.
8667 (write_be16_section): Make name a const char *.
8668 (print_glyphs): Make static.
8669 (write_font_ascii_bitmap): Likewise.
8670 (write_font_width_spec): Likewise.
8671 (write_font_pf2): Likewise.
8672 (argp_parser): Remove unused variable.
8673 Respect format security.
8674 (main): Avoid shadowing. Respect format security.
8676 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8678 * util/grub-editenv.c (argp_parser): Make static.
8679 (create_envblk_file): Use xmalloc.
8680 (open_envblk_file): Likewise.
8681 Resepect format security.
8682 (set_variables): Respect format security.
8684 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8686 * util/getroot.c (grub_find_device): Respect format security.
8687 (get_mdadm_uuid): Remove unused variable.
8688 (grub_util_pull_device): Dont call gettext on already translated
8690 (find_system_device): Remove unused variable.
8691 (grub_util_get_grub_dev): Likewise.
8692 (grub_make_system_path_relative_to_its_root): Respect format security.
8694 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8696 * util/grub-fstest.c (execute_command): Make first argument
8698 (read_file): Avoid shadowing.
8699 Reuse underlying error message if device open fails.
8700 (cmd_cmp): Respect format security.
8701 (root): Make const char *.
8702 (fstest): Remove args argument and use global copy.
8703 Respect format security.
8704 (argp_parser): Make static.
8705 (main): Make default_root const char *.
8707 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8709 * util/grub-mount.c (root): Make const char *.
8710 (execute_command): Make first argument a const char *.
8711 (fuse_init): Respect format security.
8712 (argp_parser): Make static. Remove unused variable.
8713 (main): Make default_root a const char *.
8714 Respect format security.
8716 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8718 * util/grub-probe.c (probe): Don't call gettext on already translated
8720 Remove unused variables.
8721 (argp_parser): Remove unused variable.
8723 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8725 * util/grub-script-check.c (argp_parser): Remove unused variable.
8726 (main): Rename read to curread to avoid shadowing.
8728 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8730 * util/misc.c (grub_util_write_image_at): Fix format specification.
8731 (grub_util_write_image): Likewise.
8732 (grub_script_execute_argument_to_string): Removed (unused).
8733 (grub_script_execute_menuentry): Likewise.
8734 (grub_putchar): Likewise.
8736 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8738 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
8739 (FUNCTION) [GRUB_UTIL]: Likewise.
8740 (VARIABLE) [GRUB_UTIL]: Likewise.
8742 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8744 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
8745 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
8747 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8749 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
8752 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8754 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
8755 (LzmaEnc_SaveState): Removed (unused).
8756 (LzmaEnc_RestoreState): Likewise.
8757 (LzmaEnc_InitPriceTables): Made static.
8758 (LzmaEnc_Construct): Likewise.
8759 (LzmaEnc_FreeLits): Likewise.
8760 (LzmaEnc_Destruct): Likewise.
8761 (LzmaEnc_Init): Likewise.
8762 (LzmaEnc_InitPrices): Likewise.
8763 (LzmaEnc_Finish): Likewise.
8764 (LzmaEnc_PrepareForLzma2): Removed (unused).
8765 (LzmaEnc_MemPrepare): Likewise.
8766 (LzmaEnc_GetNumAvailableBytes): Likewise.
8767 (LzmaEnc_GetCurBuf): Likewise.
8768 (LzmaEnc_CodeOneMemBlock): Likewise.
8770 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8772 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
8773 (grub_util_ldm_embed): Likewise.
8775 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8777 * util/grub-editenv.c (print_var): Rename name to varname to
8779 (main): Rename index to curindex to avoid shadowing.
8780 Make filename a const char *.
8782 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8784 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8785 to arg_getline to avoid shadowing.
8787 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8789 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
8790 disk_ to avoid shadowing.
8792 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8794 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
8795 curindex to avoid shadowing.
8797 (MatchFinder_GetNumAvailableBytes): Make static.
8799 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8801 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
8804 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8806 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
8807 argument from encrypt to do_encrypt to avoid shadowing.
8809 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8811 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
8812 incorrect nesting of #if's.
8814 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8816 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
8817 checks which are always false on some platforms.
8818 (grub_cmd_lsacpi): Likewise.
8819 * grub-core/kern/misc.c (grub_strtoul): Likewise.
8820 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
8823 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8825 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
8826 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
8828 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8830 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
8831 re_dfa_t to avoid breaking alignment invariants.
8832 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
8833 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
8835 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8837 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
8838 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
8840 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8842 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
8845 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8847 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
8848 conserve alignment invariants.
8849 (grub_ehci_ehcc_read16): Likewise.
8850 (grub_ehci_oper_read32): Likewise.
8851 (grub_ehci_oper_write32): Likewise.
8852 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8853 Conserve alignment invariants.
8855 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8857 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
8858 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
8861 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8863 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
8864 Remove unused variable.
8866 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8868 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
8871 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8873 * include/grub/net.h: Remove double declarations.
8875 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8877 Remove "payload" command in ia64 Linux loader since I couldn't
8878 find any evidence of it being used for anything.
8879 Replace "relocate" command with an environment variable
8881 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
8883 (ia64_boot_payload): Removed.
8884 (last_payload): Likewise.
8885 (RELOCATE_OFF): Likewise.
8886 (RELOCATE_ON): Likewise.
8887 (RELOCATE_FORCE): Likewise.
8888 (relocate): Likewise.
8889 (free_pages): Don't free payloads.
8890 (grub_load_elf64): Use common error messages.
8891 Use "linux_relocate" variable.
8892 Increase the space after boot_params.
8893 (grub_cmd_payload): Removed.
8894 (grub_cmd_relocate): Likewise.
8895 (grub_cmd_fpswa): Improve messages.
8896 (cmd_payload): Removed.
8897 (cmd_relocate): Likewise.
8898 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
8899 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
8901 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8903 Convert UHCI to DMA framework.
8905 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
8906 (grub_uhci_pci_iter): Fill new members
8907 (grub_alloc_td): Use P2V and V2P functions.
8908 (grub_free_queue): Likewise.
8909 (grub_alloc_qh): Likewise.
8910 (grub_uhci_setup_transfer): Likewise.
8911 (grub_uhci_check_transfer): Likewise.
8913 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8915 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
8916 Remove assignment in if while on it.
8918 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8920 * util/grub-mkstandalone.in: Fix modules directory.
8922 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8924 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
8926 (argp_parser): Accept "auto" as compression specification.
8928 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8930 Fix `help' with unloaded modules.
8932 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
8933 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
8934 (grub_dyncmd_dispatcher): Small stylistic fix.
8935 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
8936 explicit help is requested.
8938 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8940 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
8941 Explicitly init restart while on it.
8943 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8945 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
8948 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8950 * util/grub-mknetdir.in: Use . rather than source for POSIX
8953 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8955 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
8957 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8959 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
8962 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8964 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
8967 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8969 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
8971 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8973 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
8974 iteration of partitions.
8976 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8978 Improve gettext support. Stylistic fixes and error handling fixes while
8981 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8983 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
8984 part. Instead setup the correct stack in RM.
8985 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
8987 * include/grub/i386/relocator_private.h: New file.
8989 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8991 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
8993 * util/grub-fstest.c (options): Add missing DEVICE part.
8995 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8997 Clarify and unify messages.
8999 * grub-core/commands/hashsum.c (options): Unify messages.
9000 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
9001 literal-only message as translatable.
9002 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
9003 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
9004 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
9006 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
9007 key, not the key used to unlock. Clarify what it's used for.
9008 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
9009 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
9010 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
9011 * util/grub-editenv.c (options): Unify "verbose" message.
9012 * util/grub-fstest.c (read_file): Unify error message.
9013 (fstest): Add quotes around commands.
9014 (options): Unify "verbose" message.
9015 * util/grub-install.in: Add quotes around variable name.
9016 * util/grub-kbdcomp.in: Unify error message.
9017 * util/grub-mkfont.c (main): Likewise.
9018 * util/grub-mkrescue.in: Likewise.
9019 * util/grub-mklayout.c (options): Unify "verbose" message.
9020 * util/grub-mkstandalone.in: Unify help and verbose messages.
9021 * util/grub-mount.c (options): Unify "verbose" message.
9022 * util/grub-probe.c (options): Likewise.
9023 * util/grub-script-check.c (options): Likewise.
9024 * util/grub-setup.c (setup): Unify no-terminator message.
9025 (options): Use DEVICE and not DEV.
9026 Unify "verbose" message.
9027 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
9029 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9031 Improve and unify messages.
9033 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
9034 name. All users updated.
9035 Print filename in error.
9036 (read_device_map): Print filename in error.
9037 * util/getroot.c (grub_guess_root_devices): Print filename in error.
9038 (grub_util_get_os_disk): Likewise.
9039 (grub_util_biosdisk_get_grub_dev): Likewise.
9040 (grub_util_check_block_device): Likewise.
9041 (grub_util_check_char_device): Likewise.
9042 (grub_make_system_path_relative_to_its_root): Likewise.
9043 * util/grub-editenv.c (create_envblk_file): Likewise.
9044 (open_envblk_file): Likewise.
9045 (write_envblk): Likewise.
9046 * util/grub-fstest.c (cmd_cp): Likewise.
9047 (cmd_cat): Likewise.
9048 (cmd_cmp): Likewise.
9049 * util/grub-menulst2cfg.c (main): Likewise.
9050 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
9051 (write_font_width_spec): Likewise.
9052 (write_font_pf2): Likewise.
9053 * util/grub-mkimage.c (generate_image): New argument outname.
9055 Remove unreacheable message.
9056 (options): Unify messages.
9057 (help_filter): Likewise.
9058 * util/grub-mklayout.c (usage): Removed (unused).
9059 (main): Print filename in error.
9060 * util/grub-mkrescue.in: Fix wrong quoting.
9061 * util/grub-setup.c (setup): Print filename in error.
9062 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
9063 (check_sas): Likewise.
9064 * util/misc.c (grub_util_get_fp_size): Removed.
9065 (grub_util_get_image_size): Print filename in error.
9066 (grub_util_read_at): Removed.
9067 (grub_util_read_image): Print filename in error.
9068 (grub_util_load_image): Likewise.
9069 (grub_util_write_image_at): New argument filename. All users updated.
9070 Print filename in error.
9071 (grub_util_write_image): New argument filename. All users updated.
9072 Print filename in error.
9073 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
9074 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
9076 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9078 * grub-core/Makefile.core.def (pxechain): New module.
9079 * grub-core/loader/i386/pc/pxechainloader.c: New file.
9080 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
9082 (grub_pc_net_config_real): Use grub_pxe_get_cached.
9083 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
9085 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9087 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
9088 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
9089 * include/grub/err.h (grub_error_saved): New struct.
9090 (grub_errmsg): Make array size explicit.
9091 * include/grub/misc.h (grub_error_save): New function.
9092 (grub_error_load): Likewise.
9093 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
9094 (grub_error_push): Update `errno' member name.
9095 (grub_error_pop): Likewise
9096 * grub-core/net/tftp.c (tftp_data): New member save_err.
9097 (tftp_receive): Save error.
9098 (tftp_open): Restore error.
9100 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9102 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
9103 to real mode down to execute A20-related code in protected mode as
9106 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
9108 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
9109 NULL when the argument `level' has an unexpected value.
9111 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9113 Move platform-dependent files from $prefix to $prefix/$platform.
9115 * config.h.in (GRUB_TARGET_CPU): New definition.
9116 (GRUB_PLATFORM): Likewise.
9117 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
9118 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
9119 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9120 * grub-core/kern/dl.c (grub_dl_load): Likewise.
9121 * grub-core/normal/autofs.c (read_fs_list): Likewise.
9122 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
9123 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
9124 * grub-core/normal/term.c (read_terminal_list): Likewise.
9125 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
9127 (grub_gettext_init_ext): Likewise.
9128 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
9130 * util/grub-install.in: Update directories.
9131 * util/grub-mknetdir.in: Likewise.
9132 * util/grub-mkrescue.in: Likewise.
9134 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9136 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
9137 grub_error framework. All users updated.
9139 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9141 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
9142 lists (by always binsearching), improve caching (cache strings
9143 used for binsearch, not only results), improve
9144 maintainability (by using more structured binary search) and correct
9147 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9149 * grub-core/script/execute.c (grub_script_return): Fix warning.
9151 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9153 * grub-core/script/execute.c (grub_script_return): Fix potential
9155 Reported by: Jim Meyering.
9157 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9159 * po/POTFILES.in: Regenerate.
9160 * util/grub-install.in: Gettextize the strings missed in first pass.
9162 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9164 * Makefile.util.def (grub-mkdevicemap): Removed.
9165 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
9166 * include/grub/util/deviceiter.h: Removed.
9167 * util/deviceiter.c: Likewise.
9168 * util/getroot.c (grub_util_get_os_disk): New function.
9169 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
9170 replacement for EFI.
9171 * util/grub-mkdevicemap.c: Removed.
9172 * util/grub-probe.c (probe): Handle PRINT_DISK.
9173 (argp_parser): Handle -t disk.
9175 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9177 * util/grub-mkfont.c: Migrate to argp.
9178 * util/grub-mklayout.c: Likewise.
9179 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9180 * util/grub-mkrelpath.c: Likewise.
9181 * util/grub-probe.c: Likewise.
9182 * util/grub-script-check.c: Likewise.
9184 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9186 * util/grub-reboot.in: Add missing datarootdir.
9187 Add missing newline.
9188 * util/grub-set-default.in: Add missing datarootdir.
9189 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
9190 * util/grub-mkrescue.in: Likewise.
9192 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9194 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
9196 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9198 * util/grub-kbdcomp.in: Add decent help and gettextize.
9199 * docs/man/grub-kbdcomp.h2m: New file.
9201 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9203 Migrate grub-mkimage.c to argp.
9205 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
9206 (grub-setup): Likewise.
9207 * util/grub-setup.c (print_version): Move to ...
9208 * util/argp_common.c (print_version): ... here.
9209 * util/grub-setup.c (argp_program_version_hook): Move to ...
9210 * util/argp_common.c (argp_program_version_hook): ... here.
9211 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
9213 * util/grub-mkimage.c (main): Migrate to argp.
9215 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9217 * util/grub-mkrescue.in: Use same message as
9218 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
9219 for better translations.
9221 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9223 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
9224 options with generic grub-mkrescue.in with the goal of future
9227 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9229 * grub-core/kern/mm.c: Add missing include of i18n.h
9230 * grub-core/lib/relocator.c: Likewise.
9232 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9234 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
9236 (allocate_pages): Check return value.
9237 Replace fatal with error.
9238 (grub_linux_boot): Replace printf with dprintf.
9239 Check find_mmap_size return value.
9240 Replace fatal with error.
9241 Don't call grub_machine_fini.
9242 (grub_load_elf64): Replace printf with dprintf.
9243 (grub_cmd_linux): Likewise.
9244 (grub_cmd_initrd): Likewise.
9245 (grub_cmd_payload): Likewise.
9247 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9249 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
9251 * grub-core/video/radeon_fuloong2e.c
9252 (grub_video_radeon_fuloong2e_setup): Likewise.
9253 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
9254 * grub-core/video/video.c (grub_video_set_mode): Don't override
9255 standard out of memory message.
9257 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
9259 NetBSD disk wedge support.
9261 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
9262 [__NetBSD__]: Handle NetBSD disk wedges.
9263 * util/getroot.c (convert_system_partition_to_system_disk)
9264 [__NetBSD__]: Likewise.
9266 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
9268 * util/grub-mkconfig.in: Use umask rather than chmod to create
9269 grub.cfg.new to avoid insecure grub.cfg.
9271 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9273 * grub-core/commands/ls.c: Gettextize.
9274 * grub-core/commands/setpci.c: Likewise.
9275 * grub-core/commands/videotest.c: Likewise.
9276 * grub-core/disk/geli.c: Likewise.
9277 * grub-core/kern/mm.c: Likewise.
9278 * grub-core/lib/relocator.c: Likewise.
9279 * grub-core/loader/efi/appleloader.c: Likewise.
9280 * grub-core/loader/i386/xnu.c: Likewise.
9281 * grub-core/loader/ia64/efi/linux.c: Likewise.
9282 * grub-core/loader/xnu.c: Likewise.
9283 * grub-core/net/dns.c: Likewise.
9284 * grub-core/net/net.c: Likewise.
9285 * grub-core/script/lexer.c: Likewise.
9286 * grub-core/script/parser.y: Likewise.
9287 * grub-core/script/yylex.l: Likewise.
9288 * util/getroot.c: Likewise.
9289 * util/grub-setup.c: Likewise.
9291 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9293 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
9296 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9298 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
9300 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9302 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
9304 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
9305 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
9307 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9309 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
9310 * util/grub-install.in: Gettextize.
9311 * util/grub-mkconfig.in: Likewise.
9312 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
9314 (grub_warn): Gettextize.
9315 * util/grub-mknetdir.in: Gettextize.
9316 * util/grub-mkrescue.in: Likewise.
9317 * util/grub-mkstandalone.in: Likewise.
9318 * util/grub-reboot.in: Likewise.
9319 * util/grub-set-default.in: Likewise.
9320 * util/grub.d/00_header.in: Likewise.
9321 * util/grub.d/10_hurd.in: Likewise.
9322 * util/grub.d/10_kfreebsd.in: Likewise.
9323 * util/grub.d/10_linux.in: Likewise.
9324 * util/grub.d/10_netbsd.in: Likewise.
9325 * util/grub.d/10_windows.in: Likewise.
9326 * util/grub.d/20_linux_xen.in: Likewise.
9327 * util/grub.d/30_os-prober.in: Likewise.
9328 * po/POTFILES-shell.in: Regenerate.
9330 2012-02-03 Richard Laager <rlaager@wiktel.com>
9332 * util/grub-mkimage.c (main): Fix format-security warning.
9333 * util/grub-mkrelpath.c (main): Likewise.
9334 * util/grub-probe.c (main): Likewise.
9336 2012-02-03 Richard Laager <rlaager@wiktel.com>
9338 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
9340 Put back lost PRINT_DRIVE.
9342 2012-02-03 Richard Laager <rlaager@wiktel.com>
9344 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
9345 (grub_guess_root_devices): Replace strlen with sizeof.
9347 (find_root_devices_from_poolname): Remove unused variable.
9350 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9352 Support install on multi-device filesystems.
9354 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
9355 (grub_guess_root_devices): ...this. Return char **. All users updated.
9356 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
9358 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
9359 (find_root_devices_from_poolname): ... here.
9360 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
9362 (grub_guess_root_device): Rename to ...
9363 (grub_guess_root_devices): ... this. Return char **. All users updated.
9364 * util/grub-install.in: Handle multi-device filesystems.
9365 * util/grub-probe.c (probe). Make device_names a char **. Add delim
9366 argument. All users updated.
9367 Handle multi-device filesystems.
9368 Use 'delim' as separator.
9369 Remove device check to allow filesystems on file.
9370 (main): Support -0 argument. Handle multi-device.
9371 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
9372 Fix a cross-device check while on it.
9373 (arguments): Remove root_dev.
9374 (argp_parser): Remove -r.
9375 (main): Remove root_dev.
9377 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
9379 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
9381 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
9383 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
9385 Reported by: NODA, Kai <nodakai>.
9387 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
9391 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
9393 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
9394 (grub_ehci_setup_qh): Likewise.
9395 (grub_ehci_find_qh): Likewise.
9396 (grub_ehci_transaction): Likewise.
9397 (grub_ehci_setup_transfer): Likewise.
9398 (grub_ehci_check_transfer): Likewise.
9399 (grub_ehci_portstatus): Likewise.
9400 (grub_ehci_detect_dev): Likewise.
9401 (grub_ehci_transfer_controller_data): New field td_last_phys.
9402 (grub_ehci_setup_transfer): Fill td_last_phys.
9403 (grub_ehci_check_transfer): Use td_last_phys.
9405 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
9407 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
9408 if no submenu is present.
9410 2012-02-01 Aleš Nesrsta <starous@volny.cz>
9414 * include/grub/usb.h (grub_usbms_protocol_t): New values
9415 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
9416 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
9417 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
9418 (grub_usbms_dev): Add subclass, protocol and intrpt.
9419 Remove in_maxsz and out_maxsz.
9420 (grub_usbms_reset): Rename to ...
9421 (grub_usbms_bo_reset): .. this.
9422 (grub_usbms_cbi_cmd): New function.
9423 (grub_usbms_cbi_reset): Likewise.
9424 (grub_usbms_reset): Likewise.
9425 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
9426 (grub_usbms_transfer): Rename to ...
9427 (grub_usbms_transfer_bo): ... this.
9428 (grub_usbms_transfer_cbi): Likewise.
9429 (grub_usbms_transfer): Likewise.
9431 2012-02-01 Aleš Nesrsta <starous@volny.cz>
9432 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
9434 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
9435 the support for the CS5536 modification thereos and few bugfixes.
9437 * grub-core/Makefile.core.def (ehci): New module.
9438 * grub-core/bus/usb/ehci.c: New file.
9439 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
9440 port and hubaddr. All users updated.
9441 Save port and hubaddr into dev structure.
9442 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
9444 * include/grub/pci.h (grub_dma_phys2virt): New function.
9445 (grub_dma_virt2phys): Likewise.
9446 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
9448 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9450 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
9451 check as some mkfs implementations omit it.
9453 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9455 * docs/grub.texi (Unicode): Mention identifier and space limitations.
9457 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9459 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
9460 Add new member volname2.
9461 (grub_jfs_label): Use volname2 if available.
9463 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9465 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
9466 over last_mounted as seen in image generated by mkfs.nilfs2.
9467 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
9469 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9471 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
9472 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
9473 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
9475 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9477 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
9480 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9482 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
9483 subvolume name (by removing a bogus and useless check).
9485 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9487 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
9490 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
9492 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
9493 (grub_scsi_read_capacity10): ... this.
9494 (grub_scsi_read_capacity16): New function.
9495 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
9497 Fix off-by-one error.
9498 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
9500 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
9501 (grub_scsi_read_capacity10): ... this.
9502 (grub_scsi_read_capacity_data): Rename to ...
9503 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
9504 (grub_scsi_read_capacity16): New struct.
9505 (grub_scsi_read_capacity16_data): Likewise.
9506 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
9507 grub_scsi_cmd_read_capacity10.
9508 New command grub_scsi_cmd_read_capacity16.
9510 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
9514 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
9515 (grub_scsi_write16): Likewise.
9516 (grub_scsi_read): Use read16 when necessary.
9517 (grub_scsi_write): Likewise.
9518 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
9519 (grub_scsi_write16): Likewise.
9520 (grub_scsi_cmd_t): Add READ16 and WRITE16.
9522 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
9524 SCSI write support (for usbms mainly).
9526 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
9528 (grub_scsi_write): Implement.
9529 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
9531 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
9533 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
9536 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9538 * grub-core/lib/posix_wrap/string.h (memchr): New function.
9540 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9542 * po/POTFILES.in: Regenerate.
9544 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9546 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
9547 with grub_printf to avoid unnecessary fatal failure.
9549 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9551 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
9552 (INT_MAX): Likewise.
9553 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
9554 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
9555 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
9559 (strncpy): Likewise.
9561 (strncat): Likewise.
9562 (strcoll): Likewise.
9563 * include/grub/types.h (GRUB_SHRT_MAX): New define.
9564 (GRUB_INT_MAX): Likewise.
9566 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9568 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
9570 (optimize_utf8): Likewise.
9571 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
9573 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9575 * grub-core/boot/i386/pc/lnxboot.S: Use
9576 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
9577 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
9579 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
9581 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
9583 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9585 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
9586 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
9587 now to avoid double free.
9588 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
9590 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
9591 * util/grub-probe.c (escape_of_path): Always return a new copy.
9592 (print_full_name): Escape path.
9593 (probe): Don't call grub_util_devname_to_ofpath on NULL.
9594 Fix hints on abstractions.
9596 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9598 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
9599 Don't add "root" line if no compatibility hont is available.
9600 Suggested by: Seth Goldberg.
9602 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9604 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
9605 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
9606 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
9607 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
9609 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9611 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
9613 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9615 * util/grub-pe2elf.c (ehdr): Make static.
9617 (num_sections): Likewise.
9620 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9622 Eliminate ofpath limits and possible overflows.
9624 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
9625 (OF_PATH_MAX): Removed.
9626 (MAX_DISK_CAT): New const.
9627 (find_obppath): Use allocated rather than preallocated buffer.
9628 Return result. Argument of_path removed. All users updated.
9630 (xrealpath): New function.
9631 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
9632 Allocate rather than use preallocated buffer. All users updated.
9633 (__of_path_common): Use allocated rather than preallocatecd buffer.
9634 Return result. Argument of_path removed. All users updated.
9635 (vendor_is_ATA): Read only needed part form the file.
9636 (check_sas): Allocate depending on contents rather than fixed.
9637 (main) [STANDALONE]: Handle NULL result.
9639 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9641 * grub-core/normal/completion.c (iterate_dev): Close the disk.
9643 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9645 Cryptodisk write support.
9647 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
9648 (grub_cryptodisk_decrypt): Moved logic to ...
9649 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
9650 (grub_cryptodisk_write): Implement.
9651 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
9652 (grub_util_fd_write): ... this. Make global.
9653 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
9655 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9657 * include/grub/list.h (grub_list_remove): Don't crash if element is
9660 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9662 Rename ofconsole to console.
9664 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
9665 as sysnonym to console.
9666 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
9667 * grub-core/term/ieee1275/console.c: ... this. All users updated.
9668 Rename grub_ofconsole_ to grub_console_. All users updated
9669 (grub_console_term_output): Rename "ofconsole" to "console".
9670 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
9673 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9675 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
9677 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
9678 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
9679 GRUB_DISK_DEVICE_FILE_ID.
9681 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9683 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
9684 and improve performance.
9686 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9688 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
9689 missing ieee1275/ prefix on whole disk.
9691 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9693 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
9694 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
9696 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9698 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
9700 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9702 Merge common RAID and LVM logic to an abstract diskfilter.
9703 Add LDM support using the same framework.
9705 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
9706 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
9707 (libgrubmods): Remove grub-core/disk/raid.c and
9708 grub-core/partmap/gpt.c.
9709 * grub-core/Makefile.core.def (ldm): New module.
9710 (raid): Renamed to diskfilter. All users updated.
9711 * grub-core/disk/raid.c: Moved to ...
9712 * grub-core/disk/diskfilter.c: ... here.
9713 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
9715 (find_array): Renamed to ...
9716 (find_lv): ... this. Support multi-LV. Skip nameless LVs
9717 (grub_is_array_readable): Renamed to ...
9718 (grub_is_lv_readable): ... this. Support multinode hierarchy.
9719 (insert_array): New argument id.
9720 (is_node_readable): New function.
9721 (scan_device): Rename to ...
9722 (scan_disk): .. this. Restrict to one disk.
9723 (scan_devices): New function.
9724 (grub_diskfilter_iterate): Support multi-LV.
9725 Skip invisible and nameless LVs.
9726 (grub_diskfilter_memberlist): Support multi-LV.
9727 (grub_diskfilter_read_node): New function.
9728 (grub_raid_read): Most of logic moved to ...
9729 (read_segment): ... here
9730 (read_lv): New function.
9731 (grub_diskfilter_get_vg_by_uuid): New function.
9732 (grub_diskfilter_make_raid): Likewise.
9733 * grub-core/disk/ldm.c: New file.
9734 * grub-core/disk/lvm.c (vg_list): Removed.
9735 (lv_count): Likewise.
9736 (scan_depth): Likewise.
9737 (is_lv_readable): Likewise.
9738 (grub_lvm_getvalue): Advance pointer past the number.
9740 (do_lvm_scan): Refactored into ...
9741 (grub_lvm_detect): ... this. Support raid.
9742 (grub_lvm_iterate): Removed.
9743 (grub_lvm_memberlist): Likewise.
9744 (grub_lvm_open): Likewise.
9745 (grub_lvm_close): Likewise.
9746 (read_lv): Likewise.
9747 (read_node): Likewise.
9748 (is_node_readable): Likewise.
9749 (is_lv_readable): Likewise.
9750 (grub_lvm_read): Likewise.
9751 (grub_lvm_write): Likewise.
9752 (grub_lvm_dev): Use diskfilter
9753 (GRUB_MOD_INIT): Likewise.
9754 (GRUB_MOD_FINI): Likewise.
9755 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
9757 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
9758 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9759 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
9760 grub_diskfilter_read_node.
9762 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
9763 grub_diskfilter_read_node.
9764 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
9765 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
9766 (grub_disk_dev_iterate): Move from here...
9767 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
9768 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9770 (grub_hostdisk_find_partition_start): Likewise.
9771 (grub_hostdisk_os_dev_to_grub_drive): New function.
9772 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
9773 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
9774 * util/getroot.c (make_device_name): ... here.
9775 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9777 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
9778 * grub-core/kern/emu/hostdisk.c
9779 (convert_system_partition_to_system_disk): Move to ...
9780 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
9781 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
9782 * util/getroot.c (device_is_wholedisk): ... here.
9783 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
9784 * util/getroot.c (find_system_device): ... here.
9785 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
9787 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
9788 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9790 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
9792 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
9794 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
9795 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
9796 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
9798 * include/grub/raid.h: Renamed to ...
9799 * include/grub/diskfilter.h: ... this.
9800 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
9801 (GRUB_RAID_LAYOUT_*): Make into array.
9802 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
9803 (grub_diskfilter_vg): New struct.
9804 (grub_diskfilter_pv_id): Likewise.
9805 (grub_raid_member): Removed.
9806 (grub_raid_array): Likewise.
9807 (grub_diskfilter_pv): New struct.
9808 (grub_diskfilter_lv): Likewise.
9809 (grub_diskfilter_segment): Likewise.
9810 (grub_diskfilter_node): Likewise.
9811 (grub_diskfilter_get_vg_by_uuid): New proto.
9812 (grub_raid_register): Inline.
9813 (grub_diskfilter_unregister): Likewise.
9814 (grub_diskfilter_make_raid): New proto.
9815 (grub_diskfilter_vg_register): Likewise.
9816 (grub_diskfilter_read_node): Likewise.
9817 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
9818 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
9819 (grub_util_is_ldm): Likewise.
9820 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
9821 (grub_hostdisk_find_partition_start): Likewise.
9822 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
9823 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
9825 (grub_gpt_partition_map_iterate): New proto.
9826 * include/grub/lvm.h (grub_lvm_vg): Removed.
9827 (grub_lvm_pv): Likewise.
9828 (grub_lvm_lv): Likewise.
9829 (grub_lvm_segment): Likewise.
9830 (grub_lvm_node): Likewise.
9831 * util/getroot.c [...]
9832 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
9833 (probe_abstraction): Likewise.
9834 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
9835 (main): Remove dead logic.
9837 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
9839 Simplify root device discover and don't fail when trying to open
9842 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
9844 (get_diskname_from_path): Likewise.
9845 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
9848 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9850 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
9852 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9854 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
9857 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9859 * util/grub-install.in: Add missing \.
9860 Reported by: gentoofan
9862 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9864 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
9865 (direct_read): Use correct compressed size.
9866 (grub_squash_read_data): Likewise.
9868 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9870 * docs/grub.texi (Platform limitations): New section.
9871 (Platform-specific operations): Likewise.
9872 * docs/grub-dev.texi (Porting): Likewise.
9874 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9876 IEEE1275 disk write support.
9878 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
9880 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
9881 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
9882 and seek loginc to ...
9883 (grub_ofdisk_prepare): ... here.
9884 (grub_ofdisk_write): Implement.
9886 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9888 ARC disk write support.
9890 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
9891 (reopen): New argument writable. All users updated.
9892 Handle required access mode.
9893 (grub_arcdisk_write): Implement.
9894 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
9895 (grub_arc_firmware_vector): Make buffer to write a const buffer.
9897 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9899 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
9900 (read_sblock): Don't attempt to read superblocks outside the disk size.
9902 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9904 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
9905 first superblock to find the second one when possible.
9907 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9909 * util/grub-install.in: Fix an ARC bug.
9910 Print a warning if no platform-specific setup is available.
9912 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9914 Use static allocation rather than scratch pointer in reed_solomon.
9915 It decreases its size significantly and avoids a variable in .text.
9917 * grub-core/lib/reed_solomon.c (scratch): Removed.
9918 (chosenstat): New const or static array.
9924 (errvals): Likewise.
9926 (pol_evaluate): Replace x with log_x argument. All users updated.
9927 (syndroms): Removed.
9928 (gauss_solve): Use statically allocated arrays.
9929 (rs_recover): Likewise.
9930 Calculate syndroms directly.
9931 (decode_block): Use statically allocated arrays.
9932 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
9933 (main) [TEST]: Allow -DTEST -DSTANDALONE.
9935 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9937 Eliminate fixed limit on reed solomon decoder length.
9939 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
9940 rather than hardcoding the address.
9941 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
9942 no_reed_solomon_length.
9943 Move gate_a20 to no-reed-solomon part.
9944 Don't force a particular size of no reed-solomon part.
9945 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
9947 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
9948 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
9950 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9952 * grub-core/commands/wildcard.c (match_files): Handle filenames
9953 without explicit device.
9954 (wildcard_expand): Don't add explicit device if not already present.
9955 * tests/grub_script_echo1.in: Add a new expansion test.
9957 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9959 Replace single-linked with double-linked lists. It results in more
9960 compact and more efficient code.
9962 * grub-core/kern/list.c (grub_list_push): Moved from here ...
9963 * include/grub/list.h (grub_list_push): ... to here. Set prev.
9964 (grub_list_remove): Moved from here ...
9965 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
9966 (grub_prio_list_insert): Set prev.
9967 * include/grub/list.h (grub_list): Add prev. All users updated.
9969 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9971 Handle newer autotools. Add some missing quotes while on it.
9973 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
9974 (pkglib_DATA): Move grub-mkconfig_lib from here ...
9975 (pkgdata_DATA): ... here.
9976 * Makefile.util.def (update-grub_lib): Removed.
9977 * conf/Makefile.common (pkglib_DATA): Removed.
9978 (pkglib_SCRIPTS): Likewise.
9979 (pkgdata_DATA): New variable.
9980 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
9983 Remove unused variable while on it.
9984 * tests/util/grub-shell.in: Likewise.
9985 * util/grub-install.in: Likewise.
9986 * util/grub-mkconfig.in: Likewise.
9987 * util/grub-mknetdir.in: Likewise.
9988 * util/grub-mkrescue.in: Likewise.
9989 * util/grub-mkstandalone.in: Likewise.
9990 * util/grub.d/00_header.in: Likewise.
9991 * util/grub.d/10_hurd.in: Likewise.
9992 * util/grub.d/10_illumos.in: Likewise.
9993 * util/grub.d/10_kfreebsd.in: Likewise.
9994 * util/grub.d/10_linux.in: Likewise.
9995 * util/grub.d/10_netbsd.in: Likewise.
9996 * util/grub.d/10_windows.in: Likewise.
9997 * util/grub.d/20_linux_xen.in: Likewise.
9998 * util/grub.d/30_os-prober.in: Likewise.
9999 * util/update-grub_lib.in: Removed.
10001 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
10003 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
10004 a workaround for intel problem.
10006 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
10007 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
10008 2012-01-23 pfsmorigo
10010 * util/grub-install.in: Support dd'in into PreP partition.
10011 * util/grub-probe.c (probe): Support discovering partition type.
10012 (main): Support -t msdos_parttype.
10014 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
10016 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
10017 infinite recursion using counter.
10018 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
10019 init to skip it if the magic check fails.
10020 (dec_stream_header): Init s->crc32.
10022 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10023 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
10024 2012-01-22 Richard Laager <rlaager@wiktel.com>
10026 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
10028 (find_bestub): Determine correct size.
10029 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
10030 (scan_disk): Align the size down.
10031 Call check pool before find_bestub to have ashift.
10033 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10035 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
10036 dprintf in no-malloc zone.
10038 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
10040 * configure.ac: Add back in test for limits.h.
10042 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10044 Support 4K-sector NTFS.
10046 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
10047 (grub_ntfs_data): Remove blocksize.
10048 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
10049 Remove data argument. All users updated.
10051 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10053 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
10054 being in .text to avoid dprel references.
10055 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
10056 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
10057 (grub_arch_highmemsize): Likewise.
10058 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
10059 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
10060 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
10062 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10064 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
10066 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
10067 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
10069 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10071 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
10073 (grub_set_datetime_cmos): Likewise.
10075 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10077 Make XZ compression parameters dependent on target and not host CPU.
10079 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
10080 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
10082 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10084 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
10085 set but not used variable.
10087 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10089 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
10090 created when no uuid support is compiled into mkfs.reiser.
10092 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10094 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
10095 (utf8_to_macroman): Do the opposite.
10096 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
10098 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10100 * configure.ac: Refise build qemu_mips w/o unifont.
10102 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10104 Eliminate grub_min/grub_max prone to overflow usage.
10106 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
10107 (poll_nonroot_hub): Likewise.
10108 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
10109 (grub_affs_label): Likewise.
10110 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
10111 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
10112 (grub_hfs_label): Likewise.
10113 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
10114 * grub-core/fs/zfs/zfs.c (MIN): Remove.
10115 (zap_leaf_array_equal): Use grub_size. Remove MIN.
10116 (zap_leaf_array_get): Likewise.
10117 (dnode_get_path): Likewise.
10118 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
10119 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
10120 * grub-core/script/execute.c (grub_script_break): Likewise.
10121 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
10123 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
10124 * include/grub/misc.h (grub_min): Removed.
10125 (grub_max): Likewise.
10127 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10129 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
10132 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10134 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
10136 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10138 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
10140 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10142 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
10143 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
10145 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10147 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
10148 rather than a hack for grub_strncasemap.
10150 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10152 Support multiple initrds
10153 Note: part of this was accidently committed in r3739.
10155 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
10157 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
10158 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
10159 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10160 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10161 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10163 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10165 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
10166 disks with unknown size.
10167 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
10169 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10171 Remove defines pertaining to arbitrary limits not affecting GRUB
10174 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
10175 (EXT2_MAX_SYMLINKCNT): Likewise.
10176 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
10177 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
10178 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
10179 (GRUB_PXE_MAX_BLKSIZE): Likewise.
10180 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
10181 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
10182 (DN_MAX_OBJECT_SHIFT): Likewise.
10183 (DN_MAX_OFFSET_SHIFT): Likewise.
10184 (DN_MAX_OBJECT): Likewise.
10185 (DNODES_PER_LEVEL_SHIFT): Likewise.
10186 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
10187 (SPA_MAXBLOCKSIZE): Likewise.
10188 (SPA_BLOCKSIZES): Likewise.
10189 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
10190 (MZAP_MAX_BLKSZ): Likewise.
10192 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10194 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
10195 handle NULL appropriately.
10198 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10202 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
10204 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
10205 * configure.ac: Fix efiemu check.
10207 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10209 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
10211 Reported by: adamwill
10213 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
10215 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
10217 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10219 Fix handling of wide characters in gfxterm.
10221 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
10222 (clear_char): Likewise.
10223 (paint_char): Skip code == NULL chars.
10224 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
10226 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10228 * grub-core/normal/charset.c: Move comment to right place.
10230 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
10232 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
10233 (GRUB_AFFS_FLAG_FFS): Put back where it was.
10234 (grub_affs_mount): Revert the correct version checking.
10236 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
10238 * docs/grub.texi (Unicode): Mention several other unsupported features.
10240 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10242 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
10243 case statements as compile-time one.
10244 (direct_read): Prevent spurious warnings.
10245 (grub_squash_read_data): Likewise.
10247 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10249 Various squash4 fixes and LZO and XZ support.
10251 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
10252 Add xzembed source files.
10253 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
10254 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
10255 (grub_squash_inode): New subtype long_dir.
10256 (SQUASH_TYPE_LONG_DIR): New inode type.
10257 (COMPRESSION): New enum.
10258 (XZBUFSIZ): New const.
10259 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
10260 (read_chunk): Use data->decompress.
10261 (zlib_decompress): New function.
10262 (lzo_decompress): Likewise.
10263 (xz_decompress): Likewise.
10264 (squash_mount): Set new data fields.
10265 (grub_squash_iterate_dir): Handle long dir.
10266 (squash_unmount): Free xzdec and xzbuf.
10267 (grub_squash_open): Check ino type.
10268 (direct_read): Stylistic fixes. Use data->decompress.
10269 (grub_squash_read_data): Likewise.
10270 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
10271 (get_byte): Likewise.
10272 (grub_zlib_disk_read): Removed.
10273 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
10274 (GRUB_POSIX_BOOL_DEFINED): New define.
10275 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
10276 * grub-core/lib/xzembed/xz.h: Addmissing includes.
10277 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
10278 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
10280 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10282 Don't override more informative errors.
10284 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
10285 * grub-core/font/font.c (open_section): Likewise.
10286 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
10287 filename. Don't override errors.
10288 (grub_cmd_openbsd_ramdisk): Don't override errors.
10289 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
10290 (grub_cmd_initrd): Likewise.
10291 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10292 (grub_cmd_initrd): Likewise.
10293 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
10294 (grub_cmd_linux): Likewise.
10295 (grub_cmd_initrd): Likewise.
10296 (grub_cmd_payload): Likewise.
10297 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10298 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
10299 (grub_cmd_module): Likewise.
10300 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10301 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10302 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
10303 (grub_cmd_xnu_mkext): Likewise.
10304 (grub_cmd_xnu_ramdisk): Likewise.
10305 (grub_xnu_check_os_bundle_required): Likewise.
10306 (grub_xnu_load_kext_from_dir): Likewise.
10307 (grub_cmd_xnu_kextdir): Likewise.
10308 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
10310 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10312 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
10313 as 1024 in block size field. Found on one of my test images.
10314 Small optimisation while on it.
10316 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10318 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
10319 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
10320 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
10321 performance fixes while on it.
10322 (grub_sfs_close): Fix memory leak while on it.
10323 (grub_sfs_label): Convert Latin1 to UTF-8.
10325 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10327 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
10328 space to avoid overflows.
10329 (grub_hfs_label): Convert from macroman to UTF-8.
10331 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10333 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
10335 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10337 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
10339 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10341 * unicode: Import Unicode 6.0 data.
10343 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10345 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
10348 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10350 Avoid cutting in the middle of UTF-8 character.
10352 * include/grub/charset.h (grub_getend): New function.
10353 * grub-core/script/function.c (grub_script_function_find): Use
10355 * grub-core/normal/completion.c (add_completion): Likewise.
10357 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10359 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
10360 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
10361 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
10362 (GRUB_UNICODE_TAG_END): Likewise.
10363 (GRUB_UNICODE_LAST_VALID): Likewise.
10365 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10367 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
10368 len and make it smaller. All users updated.
10369 * util/import_unicode.py: Put length and not end character.
10372 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10374 Make better Unicode-compliant and unify some UTF-8 code pathes.
10376 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
10378 (grub_is_valid_utf8): Use grub_utf8_process.
10379 Check resulting code range.
10380 (grub_utf8_to_ucs4): Use grub_utf8_process.
10381 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
10384 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10386 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
10388 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10390 * docs/grub.texi (Filesystems): Mention AFS.
10392 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10394 * docs/grub.texi (Filesystems): Clarify restrictions.
10395 (Regexp): Mention non-Unicode regexp behaviour.
10396 (Other): Mention non-Unicode matching behaviour.
10398 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10400 Make HFS implementation use MacRoman.
10402 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
10403 (macroman): New const array.
10404 (macroman_to_utf8): New function.
10405 (utf8_to_macroman): Likewise.
10406 (grub_hfs_find_dir): Use utf8_to_macroman.
10407 (grub_hfs_dir): Use macroman_to_utf8.
10408 Set case_insensitive.
10410 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10412 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
10414 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10416 Integrate hints into autogeneration scripts.
10418 * docs/grub.texi (Filesystems): Add a hostdisk example.
10419 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
10420 (grub-probe): Add ofpath.
10421 * gentpl.py: Remove group nosparc64.
10422 * grub-core/commands/search.c (cache_entry): New struct.
10424 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
10425 * grub-core/commands/search_wrap.c (options): Add platform-specific
10427 (grub_cmd_search): Handle platform-specific hints.
10428 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
10429 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
10430 (grub_util_biosdisk_data): Likewise.
10431 (grub_util_biosdisk_open): Set device_map.
10432 (read_device_map): Handle "" as indication of no map.
10434 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
10435 (grub_util_biosdisk_get_compatibility_hint): New function.
10436 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
10437 * include/grub/emu/hostdisk.h
10438 (grub_util_biosdisk_get_compatibility_hint): New proto.
10439 * util/grub-install.in: Don't call grub-mkdevicemap.
10440 Add platform-specific hint to load.cfg.
10441 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
10442 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
10443 hints. Set root preliminary to compatibility hint, not to OS name.
10444 * util/grub-probe.c (PRINT_*): Add hints.
10445 (print): Make static.
10446 (escape_of_path): New function.
10447 (guess_bios_drive): Likewise.
10448 (guess_efi_drive): Likewise.
10449 (guess_baremetal_drive): Likewise.
10450 (print_full_name): Likewise.
10451 (probe): Handle hints.
10453 * util/ieee1275/devicemap.c: Removed.
10454 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
10456 (grub_util_devname_to_ofpath): Return NULL on failure.
10458 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
10460 * util/getroot.c (grub_util_pull_device): Fix memory leak.
10462 * po/POTFILES.in: Regenerated.
10464 Allow purely long options
10466 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
10467 (SHORT_ARG_USAGE): Likewise.
10468 (grub_arg_show_help): Compare opt with help_options.
10469 (parse_option): Receive opt as argument. If makes big simplificatons.
10472 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10474 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
10475 Restructure to avoid warning.
10477 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10479 * util/grub-install.in: Account for possible escaped comma in device
10482 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10484 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
10487 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10489 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
10490 allocation and zero-setting.
10491 (grub_ieee1275_get_devname): Check that alias is complete.
10493 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10495 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
10496 unaligned segments.
10498 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10500 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
10502 (grub_ofdisk_open): Check and discard ieee1275 prefix.
10503 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10504 Add ieee1275 prefix.
10506 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10508 * docs/grub.texi (Filesystems): Update.
10510 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10512 Support odc, newc and bigendian cpio formats.
10514 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
10515 * grub-core/Makefile.core.def (newc): New module.
10517 (cpio_be): Likewise.
10518 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
10520 (MAGIC2): Likewise.
10521 (head) [MODE_ODC]: Adapt for the format.
10522 (head) [MODE_NEWC]: Likewise.
10523 (head) [!MODE_*]: Write fields of interest as arrays.
10524 (MAGIC_USTAR): Removed.
10525 (read_number) [MODE_NEWC]: Change to hex.
10526 (read_number) [!MODE_*]: Parse binary arrays.
10527 (grub_cpio_find_file): Factor out the code for better structure and
10528 always use read_number.
10529 (grub_cpio_mount): Use MAGIC and MAGIC2.
10530 (grub_cpio_dir): Exit on first hook non-0 return.
10531 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
10532 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
10533 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
10534 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
10535 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
10536 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
10537 * grub-core/fs/newc.c: New file.
10538 * grub-core/fs/odc.c: Likewise.
10539 * grub-core/fs/cpio_be.c: Likewise.
10541 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10543 Fix handling of tar numbers occupying the whole field.
10545 * grub-core/fs/cpio.c (read_number): New function.
10546 (grub_cpio_find_file): Use read_number instead of strtoull.
10548 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10550 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
10551 occupying the whole field size.
10553 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
10555 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
10557 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10559 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
10561 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
10563 * grub-core/Makefile.core.def (lzma_decompress): Add missing
10564 TARGET_IMG_LDFLAGS.
10566 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10568 * util/getroot.c (ESCAPED_PATH_MAX): New define.
10569 (mountinfo_entry): Increase the field size to take escaping into
10571 (find_root_device_from_libzfs): Add one byte to size of strings for
10574 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10576 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
10578 * util/grub-setup.c (setup): Likewise.
10580 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10582 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
10585 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10587 * docs/grub.texi (Internationalisation): New section.
10589 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10591 * docs/grub.texi (Loopback booting): New section.
10593 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
10595 * util/grub-mkstandalone.in: Fix minor typo errors.
10597 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
10599 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
10601 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
10602 net/icmp.c and net/icmp6.c.
10603 (http): New module.
10604 (priority_queue): Likewise.
10605 * grub-core/io/bufio.c: Rewritten.
10606 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
10607 TYPE_WITH_CONFIGFILE_OPTION.
10608 (legacy_commands): Add bootp and dhcp.
10609 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
10610 (grub_legacy_parse): Likewise.
10611 * grub-core/lib/priority_queue.c: New file.
10612 * grub-core/net/arp.c: Add missing license header.
10613 (arp_find_entry): Removed.
10614 (arp_find_entry): Likewise.
10615 (grub_net_arp_resolve): Rename to ...
10616 (grub_net_arp_send_request): ...this.
10617 (grub_net_arp_receive): New card argument.
10618 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
10619 Set router and DNS server.
10620 (grub_net_configure_by_dhcp_ack): Handle routing information.
10621 (grub_cmd_bootp): Set checksum.
10622 (grub_bootp_init): Remove net_dhcp.
10623 * grub-core/net/dns.c: New file.
10624 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
10626 (get_card_packet): Handle allocation.
10627 (grub_efinet_findcards): Set mtu.
10628 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
10629 (get_card_packet): Handle allocation.
10630 (emucard): Set mtu.
10631 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
10632 (GRUB_MOD_INIT): Set mtu.
10633 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
10635 (get_card_packet): Handle allocation.
10636 (grub_ofnet_findcards): Set mtu.
10637 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
10639 (grub_net_recv_ethernet_packet): Handle IPv6.
10640 * grub-core/net/http.c: New file.
10641 * grub-core/net/icmp.c: Likewise.
10642 * grub-core/net/icmp6.c: Likewise.
10643 * grub-core/net/ip.c (ip6addr): New type.
10644 (ip6hdr): Likewise.
10645 (reassemble): Likewise.
10646 (cmp): New function.
10647 (reassembles): New variable.
10648 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
10649 (id): New variable.
10650 (send_fragmented): New function.
10651 (grub_net_send_ip_packet): Rename to ...
10652 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
10654 (grub_net_recv_ip_packets): Rename to ...
10655 (handle_dgram): ... this. Check checksum. Handle non-UDP.
10656 (free_rsm): New function.
10657 (free_old_fragments): Likewise.
10658 (grub_net_recv_ip4_packets): New function.
10659 (grub_net_send_ip6_packet): Likewise.
10660 (grub_net_send_ip_packet): Likewise.
10661 (grub_net_recv_ip6_packets): Likewise.
10662 (grub_net_recv_ip_packets): Likewise.
10663 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
10664 (LINK_LAYER_CACHE_SIZE): New const.
10665 (link_layer_find_entry): New function.
10666 (grub_net_link_layer_add_address): Likewise.
10667 (grub_net_link_layer_resolve_check): Likewise.
10668 (grub_net_link_layer_resolve): Likewise.
10669 (grub_net_ipv6_get_slaac): Likewise.
10670 (grub_net_ipv6_get_link_local): Likewise.
10671 (grub_cmd_ipv6_autoconf): Likewise.
10672 (parse_ip): Handle one number representation.
10673 (parse_ip6): New functoion.
10674 (match_net): Handle IPv6.
10675 (grub_net_resolve_address): Handle IPv6 and DNS.
10676 (grub_net_resolve_net_address): Handle IPv6.
10677 (route_cmp): New function.
10678 (grub_net_route_address): Find best route.
10679 (grub_net_addr_to_str): Handle IPv6.
10680 (grub_net_addr_cmp): New function.
10681 (grub_net_add_addr): Register local route.
10682 (print_net_address): Handle net address.
10683 (grub_net_poll_cards): Retransmit TCP.
10684 (grub_net_poll_cards_idle_real): Likewise.
10685 (have_ahead): New function.
10686 (grub_net_seek_real): Use underlying seek.
10687 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
10688 * grub-core/net/tcp.c: New file.
10689 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
10690 (cmp): New function.
10692 (tftp_receive): Handle unordered input.
10693 (destroy_pq): New function.
10694 (tftp_close): Close pq.
10695 * grub-core/net/udp.c: Put missing license header.
10696 (grub_net_udp_socket): New function.
10697 (udp_socket_register): Likewise.
10698 (grub_net_udp_close): Likewise.
10699 (grub_net_recv_udp_packet): Check checksum.
10700 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
10701 * include/grub/misc.h (grub_memchr): New function.
10702 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
10703 (grub_net_card_driver): Return buf in recv.
10704 (grub_net_slaac_mac_list): New struct.
10705 (grub_network_level_protocol_id): Add ipv6.
10706 (grub_net_network_level_addr): Likewise.
10707 (grub_net_network_level_net_addr): Likewise.
10708 (grub_net_app_protocol): Add seek.
10709 (grub_net_socket): Removed.
10710 (grub_net_sockets): Likewise.
10711 (grub_net_socket_register): Likewise.
10712 (grub_net_socket_unregister): Likewise.
10713 (FOR_NET_SOCKETS): Likewise.
10714 (grub_net_add_addr): Add const.
10715 (GRUB_NET_BOOTP_*): New enum.
10716 (grub_net_addr_cmp): New proto.
10717 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
10718 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
10719 (grub_net_hwaddr_to_str): NEw proto.
10720 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
10721 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
10722 (grub_dns_init): New proto.
10723 (grub_dns_fini): Likewise.
10724 (grub_net_tcp_retransmit): Likewise.
10725 (grub_net_link_layer_add_address): Likewise.
10726 (grub_net_link_layer_resolve_check): Likewise.
10727 (grub_net_link_layer_resolve): Likewise.
10728 (grub_net_dns_lookup): Likewise.
10729 (grub_net_add_dns_server): Likewise.
10730 (grub_net_remove_dns_server): Likewise.
10731 (GRUB_NET_TRIES): New const.
10732 (GRUB_NET_INTERVAL): Likewise.
10733 * include/grub/net/arp.h: Mostly rewritten.
10734 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
10735 * include/grub/net/ip.h: Mostly rewritten.
10736 * include/grub/net/netbuff.h: Indent.
10737 * include/grub/net/tcp.h: New file.
10738 * include/grub/net/udp.h: Mostly rewritten.
10739 * include/grub/priority_queue.h: New file.
10740 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
10741 (grub_swap_bytes64_compile_time): Likewise.
10742 (grub_cpu_to_be16_compile_time): Likewise.
10743 (grub_cpu_to_be32_compile_time): Likewise.
10744 (grub_cpu_to_be64_compile_time): Likewise.
10745 (grub_be_to_cpu64_compile_time): Likewise.
10747 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
10749 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
10750 UINT_TO_PTR with cast.
10752 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10754 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
10757 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10759 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
10762 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10764 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
10767 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10769 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
10770 Add missing const attribute.
10771 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
10773 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
10776 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10778 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
10780 (serpent_setkey): Likewise.
10781 (serpent_encrypt_internal): Likewise.
10782 (serpent_decrypt_internal): Likewise.
10783 (serpent_encrypt): Don't put an alignment-increasing cast.
10784 (serpent_decrypt): Likewise.
10785 (serpent_test): Likewise.
10787 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10789 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
10791 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10793 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
10795 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
10797 (PTR_TO_UINT64): Likewise.
10798 (PTR_TO_UINT32): Likewise.
10800 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10802 * util/grub-mkimage.c (generate_image): Decrease the higher limit
10804 * util/grub-setup.c (setup): Don't add redundancy past the higher load
10807 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10809 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
10810 text_width > available width a bit more gracefully.
10812 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10814 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
10815 current address calculation.
10817 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10819 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
10821 (encode_block): Likewise.
10823 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10825 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
10828 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10830 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
10831 non-RS part to avoid RS messing with GDT.
10832 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
10833 Increase to suit in realmode routines.
10835 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10837 * grub-core/kern/i386/realmode.S: Increase alignment.
10838 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
10840 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10842 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
10844 (syndroms): Compute 0 syndrom.
10845 (rs_recover): Use 0 syndrom.
10847 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10849 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
10851 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10853 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
10856 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10858 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
10860 (get_top_pad): Likewise.
10861 (get_right_pad): Likewise.
10862 (get_bottom_pad): Likewise.
10864 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10866 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
10868 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10870 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
10871 attribute as the structure isn't guaranteed to be properly aligned.
10872 (grub_efi_pci_device_path): Likewise.
10873 (grub_efi_pccard_device_path): Likewise.
10874 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
10875 specify the size of `memory_type'.
10876 (grub_efi_vendor_device_path): Likewise.
10877 (grub_efi_controller_device_path): Likewise.
10878 (grub_efi_acpi_device_path): Likewise.
10879 (grub_efi_expanded_acpi_device_path): Likewise.
10880 (grub_efi_atapi_device_path): Likewise.
10881 (grub_efi_scsi_device_path): Likewise.
10882 (grub_efi_fibre_channel_device_path): Likewise.
10883 (grub_efi_1394_device_path): Likewise.
10884 (grub_efi_usb_device_path): Likewise.
10885 (grub_efi_usb_class_device_path): Likewise.
10886 (grub_efi_i2o_device_path): Likewise.
10887 (grub_efi_mac_address_device_path): Likewise.
10888 (grub_efi_ipv4_device_path): Likewise.
10889 (grub_efi_ipv6_device_path): Likewise.
10890 (grub_efi_infiniband_device_path): Likewise.
10891 (grub_efi_uart_device_path): Likewise.
10892 (grub_efi_vendor_messaging_device_path): Likewise.
10893 (grub_efi_hard_drive_device_path): Likewise.
10894 (grub_efi_cdrom_device_path): Likewise.
10895 (grub_efi_vendor_media_device_path): Likewise.
10896 (grub_efi_file_path_device_path): Likewise.
10897 (grub_efi_protocol_device_path): Likewise.
10898 (grub_efi_piwg_device_path): Likewise.
10899 (grub_efi_bios_device_path): Likewise.
10901 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10903 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
10904 (grub_ucs4_to_utf8_alloc): Likewise.
10905 (grub_ucs4_to_utf8): Likewise.
10906 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
10907 (grub_ucs4_to_utf8_alloc): Likewise.
10909 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10911 AFFS never uses unicode.
10913 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
10914 (grub_latin1_to_utf8): New inline function.
10915 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
10917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10919 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
10922 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10924 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
10925 (grub_squash_dirent_header): Likewise.
10926 (read_chunk): Don't double swap.
10927 (grub_squash_iterate_dir): Fix swap sizes.
10929 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10931 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
10933 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10935 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
10936 (grub_hfs_iterate_dir): Likewise.
10938 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10940 Fix video on platforms where unaligned access is forbidden.
10941 Make several optimisations while on it.
10943 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
10944 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10945 (grub_video_fbblit_replace_32bit_1bit): Likewise.
10946 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
10948 (grub_video_fbblit_replace_16bit_1bit):
10949 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10950 (grub_video_fbblit_replace_8bit_1bit): Likewise.
10951 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
10952 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
10953 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
10954 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
10955 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
10956 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
10957 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
10958 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
10959 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
10960 (grub_video_fbblit_replace_index_RGB888): Likewise.
10961 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
10962 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
10963 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
10964 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
10965 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
10966 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
10967 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
10969 (grub_video_fbblit_blend_XXX565_1bit):
10970 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10971 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
10972 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
10974 * grub-core/video/fb/video_fb.c (common_blitter)
10975 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
10976 (grub_video_fb_create_render_target_from_pointer)
10977 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10978 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
10979 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
10981 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
10983 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10985 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
10986 HH22 and HM10 relocations.
10988 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10990 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
10992 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10994 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
10995 allocation succeeded.
10997 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10999 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
11000 argument a u8 pointer. All users updated.
11001 Handle unaligned buffers.
11003 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11005 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
11006 add_part to workaround compiler bug.
11008 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11010 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
11012 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11014 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
11015 Reserve alignment invariants.
11016 (grub_multiboot_load): Likewise.
11017 (retrieve_video_parameters): Likewise.
11018 (grub_multiboot_make_mbi): Likewise.
11020 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11022 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
11025 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11027 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
11028 (grub_pata_pio_write): Likewise.
11030 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11032 Add noreturn attributes and remove unreachable code.
11034 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
11036 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
11037 code. Mark as noreturn.
11038 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
11039 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
11040 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
11042 * grub-core/kern/main.c (grub_main): Mark as noreturn.
11043 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
11044 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
11045 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
11046 * include/grub/kernel.h (grub_main): Mark as noreturn.
11047 * include/grub/reader.h (grub_rescue_run): Likewise.
11049 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11051 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
11052 redundant declaration.
11054 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11056 * include/grub/net.h (grub_net_network_level_interfaces): Remove
11057 redundant declaration.
11058 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
11060 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11062 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
11063 to ensure alignment.
11064 (grub_hdparm_print_identify): Make argument uint16 * to ensure
11065 alignment. Ensure tmp alignment.
11066 (grub_cmd_hdparm): Ensure buf alignment.
11067 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
11068 to ensure alignment.
11069 (grub_ata_dumpinfo): Ensure text alignment.
11070 (grub_atapi_identify): Preserve alignment invariant.
11071 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
11073 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11075 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
11076 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
11077 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
11078 * include/grub/misc.h (grub_reboot)
11079 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
11080 (grub_halt) [__mips__]: Likewise.
11082 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11084 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
11085 Remove redundant declaration.
11086 (grub_mmap_get_post64): Likewise.
11087 (grub_mmap_get_upper): Likewise.
11088 (grub_mmap_get_lower): Likewise.
11090 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11092 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
11093 uint32_t * to ensure alignment.
11094 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
11096 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11098 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
11099 uint16_t * to ensure alignment.
11100 (sun_pc_partition_map_iterate): Make `block' a union to ensure
11103 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11105 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
11106 to ensure alignment.
11107 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
11109 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11111 * grub-core/fs/ntfs.c (u16at): Make into inline function.
11112 Handle unaligned pointers.
11115 (fixup): Use byte access instead of v16at.
11116 (find_attr): Fix imporper usage of v32at.
11117 (read_data): Likewise.
11118 (list_file): Handle byte-swapping and unaligned strings.
11119 (grub_ntfs_label): Likewise.
11121 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11123 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
11124 as it's not necessarily aligned.
11126 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11128 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
11129 redundant declaration.
11130 (grub_serial_init): Likewise.
11131 (grub_terminfo_init): Likewise.
11133 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11135 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
11137 (ZAP_HASH_IDX): Likewise.
11138 (ZAP_LEAF_HASH_SHIFT): Likewise.
11139 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
11140 (LEAF_HASH): Likewise.
11141 (ZAP_LEAF_NUMCHUNKS): Likewise.
11142 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
11143 alignment invariants. Return pointer. All users updated.
11144 (ZAP_LEAF_ENTRY): Make into inline function.
11147 (xor_out): Use grub_crypto_xor.
11148 (dnode_get_path): Use grub_get_unaligned.
11149 (nvlist_find_value): Likewise.
11150 (grub_zfs_nvlist_lookup_uint64): Likewise.
11151 (grub_zfs_nvlist_lookup_string): Likewise.
11152 (get_nvlist_size): Likewise.
11153 (grub_zfs_open): Likewise.
11154 (fill_fs_info): Likewise.
11155 (grub_zfs_dir): Likewise.
11156 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
11157 alignment invariants.
11158 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
11159 necessarily aligned.
11161 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11163 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
11165 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11167 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
11168 arithmetic to conserve alignment invariants.
11170 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11172 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
11173 redundant declaration.
11174 (grub_efiemu_mm_obtain_request): Likewise.
11175 (grub_efiemu_prepare): Likewise.
11177 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11179 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
11182 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11184 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
11185 case of aunaligned recptr.
11186 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
11188 (grub_hfsplus_btree_search): Handle unaligned index.
11190 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11192 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
11193 to get freetag and skip.
11195 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11197 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
11199 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
11200 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
11202 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11204 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
11205 name for checksum and fix allocation algorithm.
11207 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11209 * include/grub/types.h (grub_properly_aligned_t): New type.
11210 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
11211 (grub_get_unaligned16): Add explicit casts.
11212 (grub_get_unaligned32): Likewise.
11213 (grub_get_unaligned64): Likewise.
11214 (grub_set_unaligned16): New function.
11215 (grub_set_unaligned32): Likewise.
11217 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11219 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
11221 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11223 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
11224 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
11225 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
11227 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11229 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
11232 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11234 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
11235 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
11237 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11239 Unify and improve RAID and crypto xor.
11241 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
11242 changed to grub_crypto_xor
11243 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
11244 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
11245 Use bigger types when possible.
11247 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11249 * grub-core/disk/raid.c (scan_devices): Fix condition.
11251 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11253 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
11254 Make name a const ptr.
11256 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11258 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
11259 first argument a const pointer.
11260 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
11261 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
11263 (grub_children_iterate): Likewise.
11264 (grub_machine_mmap_iterate): Remove redundant declaration.
11266 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11268 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
11269 (grub_cmd_acpi) [!x86]: Disable EBDA.
11271 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11273 Enable UTF8 in gnulib regexp.
11275 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
11276 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
11277 (isupper): Use grub_isupper.
11278 (isascii): New inline function.
11279 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
11280 * grub-core/lib/posix_wrap/wctype.h: Likewise.
11281 * grub-core/normal/charset.c (grub_utf8_process): New function.
11282 (grub_utf8_to_utf16): Use grub_utf8_process.
11283 (grub_encode_utf8_character): New function.
11284 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
11285 * include/grub/charset.h (grub_utf8_process): New declaration.
11286 (grub_encode_utf8_character): Likewise.
11287 * include/grub/misc.h (grub_islower): New inline function.
11288 (grub_isupper): Likewise.
11289 (grub_strchrsub): Moved down to fix the definitions.
11291 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11293 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
11296 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11298 * include/grub/loader.h (grub_loader_register_preboot_hook):
11299 Use struct preboot * and not void * for handle. All users updated.
11300 (grub_loader_unregister_preboot_hook): Likewise.
11302 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
11304 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
11305 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
11306 UTF-16-BE. All users updated.
11307 (grub_hfsplus_cmp_catkey): Fix unicode handling.
11308 (grub_hfsplus_iterate_dir): Likewise.
11309 (grub_hfsplus_label): Likewise.
11311 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
11313 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
11315 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
11317 Add missing const qualifiers.
11319 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
11320 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
11321 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
11322 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
11323 (grub_lvm_check_flag): Likewise.
11324 * grub-core/efiemu/i386/coredetect.c
11325 (grub_efiemu_get_default_core_name): Likewise
11326 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
11327 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
11328 * grub-core/fs/ntfs.c (fixup): Likewise.
11329 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
11330 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
11331 (fzap_lookup): Likewise.
11332 (zap_lookup): Likewise.
11333 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
11334 * grub-core/lib/legacy_parse.c (check_option): Likewise.
11335 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
11336 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
11337 (grub_freebsd_add_meta_module): Likewise.
11338 (grub_cmd_freebsd_module): Likewise.
11339 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
11340 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
11341 (grub_xnu_writetree_get_size): Likewise.
11342 (grub_xnu_writetree_toheap_real): Likewise.
11343 (grub_xnu_find_key): Likewise.
11344 (grub_xnu_create_key): Likewise.
11345 (grub_xnu_create_value): Likewise.
11346 (grub_xnu_register_memory): Likewise.
11347 (grub_xnu_check_os_bundle_required): Likewise.
11348 (grub_xnu_scan_dir_for_kexts): Likewise.
11349 (grub_xnu_load_kext_from_dir): Likewise.
11350 * grub-core/normal/color.c (color_list): Likewise.
11351 * grub-core/normal/completion.c (current_word): Likewise.
11352 * grub-core/normal/menu_entry.c (insert_string): Likewise.
11353 * grub-core/term/serial.c (grub_serial_find): Likewise.
11354 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
11355 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
11357 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
11358 (grub_freebsd_add_meta_module): Likewise.
11359 * include/grub/lib/arg.h (grub_arg_option): Likewise.
11360 * include/grub/net.h (grub_net_card_driver): Likewise.
11361 (grub_net_card): Likewise.
11362 (grub_net_app_protocol): Likewise.
11363 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
11364 * include/grub/serial.h (grub_serial_find): Likewise.
11365 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
11366 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
11367 (grub_xnu_create_value): Likewise.
11368 (grub_xnu_find_key): Likewise.
11369 (grub_xnu_scan_dir_for_kexts): Likewise.
11370 (grub_xnu_load_kext_from_dir): Likewise.
11372 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
11373 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
11374 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
11375 Moved from here ...
11376 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
11378 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
11380 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
11382 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
11384 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
11385 (read_device): Fix size calculation.
11387 2011-11-25 Robert Millan <rmh@gnu.org>
11389 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
11390 (find_root_device_from_libzfs): Add zpool output parser to be used
11391 as fallback when libzfs isn't available.
11393 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
11395 * po/Makefile.in.in: Add missing escape-continuation.
11397 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
11399 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
11401 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
11403 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
11405 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
11407 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
11409 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
11411 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
11413 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
11415 * grub-core/lib/adler32.c: Add missing license specification.
11416 * grub-core/lib/crc64.c: Likewise.
11417 * grub-core/loader/i386/pc/plan9.c: Likewise.
11418 * grub-core/partmap/plan.c: Likewise.
11420 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
11422 Add facility to debug GRUB with gdb under qemu.
11424 * grub-core/gdb_grub.in: New file.
11425 * grub-core/gmodule.pl.in: Likewise.
11426 * grub-core/Makefile.core.def (gmodule.pl): New script.
11427 (gdb_grub): Likewise.
11429 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
11431 * util/grub-mount.c (argp_parser): Accept relative pathes.
11432 * util/grub-fstest.c (argp_parser): Likewise.
11434 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
11438 * Makefile.util.def (libgrubmods): Add
11439 grub-core/partmap/plan.c.
11440 * docs/grub.texi: Notice Plan9 support.
11441 * grub-core/Makefile.core.def (plan9): New module.
11442 (part_plan): Likewise.
11443 * grub-core/loader/i386/pc/plan9.c: New file.
11444 * grub-core/partmap/plan.c: Likewise.
11445 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
11447 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
11448 * include/grub/mm.h (grub_extend_alloc): New inline function.
11450 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
11452 Make Reed-Solomon faster by using power of generator representation of
11455 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
11456 (gf_double_t): Likewise.
11457 (gf_invert): Removed.
11458 (gf_powx): New array.
11459 (gf_powx_inv): Likewise.
11460 (scratch): Move higher.
11461 (gf_reduce): Removed.
11462 (gf_mul): Use powx.
11463 (gf_invert): Likewise.
11464 (init_inverts): Replaced with ...
11465 (init_powx): ...this. All users updated.
11466 (pol_evaluate): Replace multiplications with additions.
11467 (rs_encode): Likewise.
11468 (gauss_eliminate): Call gf_invert.
11469 (grub_reed_solomon_add_redundancy): Call init_powx.
11470 (grub_reed_solomon_recover): Call init_powx unconditionally.
11472 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11474 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
11476 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11478 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
11479 disk->partiton for safety.
11481 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11483 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
11485 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
11487 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11489 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
11491 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11493 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
11495 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11497 Fix spaces handling in proc/self/mountinfo.
11499 * util/getroot.c (unescape): New function.
11500 (grub_find_root_device_from_mountinfo): Use unescape.
11502 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11504 Support ZFS embedding.
11506 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
11507 (grub_zfs_fs): Register grub_zfs_embed.
11509 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11511 Fix MIPS compilation.
11513 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
11514 * include/grub/offsets.h: Rename decompressor fields from
11515 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
11516 * util/grub-mkimage.c (image_targets): Use new names.
11518 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11520 Defer multiboot device parsing until we're in compressed part.
11522 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
11523 bsd_part. setdevice has fallen into disuse.
11524 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
11525 (bsd_part): Likewise.
11526 (boot_dev): New variable.
11527 (multiboot_trampoline): Don't parse multiboot device.
11528 Pass multiboot device in %edx.
11529 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
11531 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
11533 * grub-core/kern/i386/pc/startup.S: Save edx.
11534 (grub_boot_drive): Removed.
11535 (grub_install_dos_part): Likewise.
11536 (grub_install_bsd_part): Likewise.
11537 (grub_boot_device): New variable.
11538 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
11539 (grub_install_bsd_part): Likewise.
11540 (grub_boot_drive): Likewise.
11541 (grub_boot_device): New variable.
11542 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
11544 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
11545 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
11546 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
11547 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
11548 * util/grub-install.in: Remove redundant condition.
11550 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11552 Fix bug introduced by previous commit.
11554 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
11556 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11558 Use decompressors framework on i386-pc. It increases core size
11559 by 46 bytes but improves compatibility and maintainability.
11561 * grub-core/Makefile.core.def (lzma_decompress): New image.
11562 (kernel): Add i386_pc_ldflags.
11563 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
11564 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
11565 to real_to_prot, prot_to_real and device info.
11566 * include/grub/offsets.h: Renamed decompressor offsets.
11567 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
11568 (image_target_desc): Remove raw_size and rename decompressor fields.
11569 (compress_kernel): Handle lzma.
11570 (generate_image): Handle decompressors on i386-pc.
11572 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11574 * configure.ac: Add -fno-asynchronous-unwind-tables.
11576 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11578 Move assembly code to C by using intwrap. It increases core size
11579 by 88 bytes but improves compatibility and maintainability.
11581 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
11582 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
11583 ... here. Translated to C.
11584 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
11585 * grub-core/term/i386/pc/console.c (grub_console_getkey):
11586 ... here. Translated to C.
11587 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
11588 * grub-core/term/i386/pc/console.c (grub_console_getxy):
11589 ... here. Translated to C.
11590 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
11591 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
11592 ... here. Translated to C.
11593 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
11594 * grub-core/term/i386/pc/console.c (grub_console_cls):
11595 ... here. Translated to C.
11596 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
11597 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
11598 ... here. Translated to C.
11599 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
11600 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
11602 * grub-core/term/i386/pc/console.c (int10_9): New function.
11603 (grub_console_putchar): Likewise.
11604 * include/grub/i386/pc/console.h: Removed the not anymore shared
11607 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11609 Move grub_chainloader_real_boot out of the kernel.
11611 * grub-core/Makefile.am: Remove machine/loader.h.
11612 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
11614 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
11616 (grub_relocator16_keep_a20_enabled): Likewise.
11617 (grub_relocator16_boot): Fill new variables.
11618 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
11619 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
11621 (grub_chainloader_unload): Likewise.
11622 (grub_chainloader_cmd): Likewise.
11623 * include/grub/i386/pc/loader.h: Removed.
11624 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
11625 and esi. All initialisers updated.
11627 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11628 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
11630 * Makefile.util.def (grub-mount): New util.
11631 * .bzrignore: Add grub-mount.
11632 * configure.ac: Check for fuse and enable grub-mount if available.
11633 * docs/man/grub-mount.h2m: New file.
11634 * util/grub-mount.c: Likewise.
11636 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11638 * grub-core/commands/efi/fixvideo.c: Gettextize.
11639 * grub-core/commands/hashsum.c: Likewise.
11640 * grub-core/commands/i386/cmostest.c: Likewise.
11641 * grub-core/commands/i386/pc/drivemap.c: Likewise.
11642 * grub-core/commands/i386/pc/lsapm.c: Likewise.
11643 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11644 * grub-core/commands/lsmmap.c: Likewise.
11645 * grub-core/commands/menuentry.c: Likewise.
11646 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11647 * grub-core/commands/setpci.c: Likewise.
11648 * grub-core/loader/i386/bsd.c: Likewise.
11649 * grub-core/loader/i386/linux.c: Likewise.
11650 * util/getroot.c: Likewise.
11651 * util/grub-editenv.c: Likewise.
11652 * util/grub-fstest.c: Likewise.
11653 * util/grub-mkfont.c: Likewise.
11654 * util/grub-mkimage.c: Likewise.
11655 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11656 * util/grub-pe2elf.c: Likewise.
11657 * util/grub-probe.c: Likewise.
11658 * util/grub-setup.c: Likewise.
11659 * util/ieee1275/ofpath.c: Likewise.
11660 * util/misc.c: Likewise.
11661 * util/raid.c: Likewise.
11663 2011-11-11 Robert Millan <rmh@gnu.org>
11665 * util/getroot.c (grub_util_get_geom_abstraction): Remove
11666 __attribute__((unused)) from `os_dev', which *is* being used.
11668 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11670 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
11672 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
11673 GRUB_IA64_DL_GOT_ALIGN.
11674 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
11675 GRUB_IA64_DL_TRAMP_ALIGN.
11677 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11679 Replace grub_fatal with normal errors in i386 linux loader.
11681 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
11682 (allocate_pages): Check find_efi_mmap_size return value.
11683 (grub_e820_add_region): Return error.
11684 (grub_linux_boot): Check mmap return value.
11686 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11688 * grub-core/commands/acpihalt.c: Gettextized.
11689 * grub-core/commands/cacheinfo.c: Likewise.
11690 * grub-core/commands/cmp.c: Likewise.
11691 * grub-core/commands/efi/loadbios.c: Likewise.
11692 * grub-core/commands/gptsync.c: Likewise.
11693 * grub-core/commands/ieee1275/suspend.c: Likewise.
11694 * grub-core/commands/legacycfg.c: Likewise.
11695 * grub-core/commands/memrw.c: Likewise.
11696 * grub-core/commands/minicmd.c: Likewise.
11697 * grub-core/commands/parttool.c: Likewise.
11698 * grub-core/commands/time.c: Likewise.
11699 * grub-core/commands/videoinfo.c: Likewise.
11700 * grub-core/disk/geli.c: Likewise.
11701 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
11702 * grub-core/disk/luks.c: Likewise.
11703 * grub-core/disk/lvm.c: Likewise.
11704 * grub-core/font/font_cmd.c: Likewise.
11705 * grub-core/fs/zfs/zfscrypt.c: Likewise.
11706 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11707 * grub-core/gfxmenu/view.c: Likewise.
11708 * grub-core/kern/emu/hostdisk.c: Likewise.
11709 * grub-core/kern/emu/main.c: Likewise.
11710 * grub-core/kern/emu/misc.c: Likewise.
11711 * grub-core/kern/emu/mm.c: Likewise.
11712 * grub-core/kern/mips/arc/init.c: Likewise.
11713 * grub-core/kern/mips/loongson/init.c: Likewise.
11714 * grub-core/kern/partition.c: Likewise.
11715 * grub-core/lib/i386/halt.c: Likewise.
11716 * grub-core/lib/mips/arc/reboot.c: Likewise.
11717 * grub-core/lib/mips/loongson/reboot.c: Likewise.
11718 * grub-core/loader/i386/pc/chainloader.c: Likewise.
11719 * grub-core/loader/i386/xnu.c: Likewise.
11720 * grub-core/loader/multiboot.c: Likewise.
11721 * grub-core/net/bootp.c: Likewise.
11722 * grub-core/net/net.c: Likewise.
11723 * grub-core/normal/term.c: Likewise.
11724 * grub-core/partmap/bsdlabel.c: Likewise.
11725 * grub-core/parttool/msdospart.c: Likewise.
11726 * grub-core/term/gfxterm.c: Likewise.
11727 * grub-core/term/terminfo.c: Likewise.
11728 * grub-core/video/i386/pc/vbe.c: Likewise.
11729 * util/grub-menulst2cfg.c: Likewise.
11730 * util/grub-mkdevicemap.c: Likewise.
11731 * util/grub-mklayout.c: Likewise.
11732 * util/grub-mkrelpath.c: Likewise.
11733 * util/grub-script-check.c: Likewise.
11734 * util/ieee1275/grub-ofpathname.c: Likewise.
11735 * util/resolve.c: Likewise.
11737 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11739 Support %1$d syntax.
11741 * tests/printf_unit_test.c: New file.
11742 * Makefile.util.def (printf_test): New test.
11743 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
11745 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11747 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
11750 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11752 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
11754 * grub-core/font/font.c (grub_font_load): Likewise.
11756 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11758 * util/grub-macho2img.c: Add comment concerning gettext.
11759 * grub-core/lib/legacy_parse.c: Likewise.
11761 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11763 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
11764 (grub_xvasprintf): Likewise.
11766 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11768 Add const keyword to grub_env_get and gettextize week days.
11770 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
11771 (grub_read_hook_datetime): Return const char *.
11772 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
11774 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
11776 (grub_get_weekday_name): Return const char *. Call gettext.
11777 * grub-core/script/argv.c (grub_script_argv_append): Receive const
11778 char * and len as the argument. All users updated.
11779 (grub_script_argv_split_append): Receive const char *.
11780 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
11781 * include/grub/env.h (grub_env_get): Likewise.
11782 (grub_env_read_hook_t): Return const char *.
11783 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
11784 (grub_script_argv_split_append): Likewise.
11786 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11788 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
11790 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11792 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
11793 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
11795 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11797 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
11800 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11802 Fix mips compilation.
11804 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
11806 (hashes): Use in embed decoder as well (for sizes).
11807 (dec_stream_header): Fix embed decompressor logic.
11808 (dec_stream_footer): Likewise.
11810 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11812 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
11813 an error and not a fatal on unrecognised relocation types.
11815 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11817 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11818 Issue error rather than printf on unknown arguments.
11820 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11822 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
11825 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11827 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
11830 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11832 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
11833 leftover debug printf.
11835 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11837 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
11839 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11841 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
11844 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11846 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
11848 2011-11-10 Shea Levy <slevy@tieronedesign.com>
11850 Allow all modules to perform serial IO
11852 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
11853 * include/grub/serial.h (grub_serial_port_configure): New inline
11855 (grub_serial_port_fetch): Likewise.
11856 (grub_serial_port_put): Likewise.
11857 (grub_serial_port_fini): Likewise.
11858 (grub_serial_find): New proto.
11860 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11862 Put symlink at the end of the node and fix a potential
11865 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
11866 Make symlink into an array.
11867 (set_rockridge): Set have_symlink and alloc_dirents.
11868 (grub_iso9660_read_symlink): Use new layout.
11869 (grub_iso9660_iterate_dir): Fix memory corruption.
11871 (grub_iso9660_dir): Set have_symlink.
11872 (grub_iso9660_open): Likewise.
11874 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11876 Remove local keyword.
11878 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
11879 (version_test_gt): Likewise.
11880 (version_find_latest): Likewise.
11881 (gettext_printf): Likewise.
11882 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
11884 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11886 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
11888 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11890 Fix ZFS memory and resource leaks.
11892 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
11895 (fill_vdev_info): New parameter inserted. All users updated.
11896 (check_pool_label): Likewise.
11897 (scan_disk): Likewise.
11898 (scan_devices): Close non-inserted disks.
11899 (fzap_iterate): Free l.
11900 (unmount_device): Free children descripto memory.
11902 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11904 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
11905 argument (access out of bounds).
11907 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11909 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
11912 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11914 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
11917 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11919 Fix several memory leaks.
11921 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
11922 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
11923 (grub_cpio_dir): Likewise.
11924 * grub-core/fs/fat.c (grub_fat_label): Likewise.
11925 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
11926 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
11927 (grub_romfs_label): Likewise.
11928 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
11929 (squash_unmount): New function.
11930 (grub_squash_dir): Fix memory leak.
11931 (grub_squash_open): Likewise.
11932 (grub_squash_read): Likewise.
11933 (grub_squash_mtime): Likewise.
11934 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
11935 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
11936 * util/grub-fstest.c (fstest): Likewise.
11938 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11940 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
11941 avoid accessing beyond the array.
11943 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11945 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
11947 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11949 Several AFFS fixes.
11951 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
11952 (GRUB_AFFS_FLAG_FFS): Removed.
11953 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
11954 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
11955 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
11956 (grub_fshelp_node): Make block 32-bit.
11957 Add block_cache and last_block_cache.
11958 (grub_affs_read_block): Fill and use block cache.
11959 (grub_affs_read_file): Removed.
11960 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
11962 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
11964 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
11966 (grub_affs_close): Free block cache.
11967 (grub_affs_read): Use grub_fshelp_read_file directly.
11969 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11971 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
11974 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11976 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
11978 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11981 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11983 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
11985 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
11986 byteswap when needed.
11988 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11990 Fix FreeBSD compilation.
11992 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
11993 to avoid circular dependency.
11994 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
11995 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
11996 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
11998 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12000 Fix ZFS crypto error types.
12002 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
12003 (grub_gcm_decrypt): Likewise.
12004 (grub_zfs_load_key_real): Fix error code type. Handle possible error
12007 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12011 * Makefile.util.def (10_illumos): New script.
12012 * configure.ac: Set COND_HOST_ILLUMOS.
12013 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
12014 Support Illumos calls.
12015 (find_partition_start) [__sun__]: Likewise.
12016 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
12017 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
12018 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
12019 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
12021 * util/grub-probe.c (probe) [__sun__]: Do character check.
12022 * util/grub.d/10_illumos.in: New file.
12024 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12026 Support escaped commas in hostdisk.
12028 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
12029 (find_grub_drive): Use unescape_cmp.
12030 (make_device_name): Escape commas.
12032 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12034 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
12036 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12038 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
12041 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12043 Support trampoline jumps on powerpc.
12045 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
12047 (grub_dl_load_segments): Set mod->sz.
12048 (grub_dl_flush_cache): Flush whole space occupied by module, not just
12050 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
12052 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
12054 (trampoline): New struct.
12055 (trampoline_template): New const.
12056 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
12057 * include/grub/dl.h (grub_dl): Add sz element.
12058 [__powerpc__]: Follow __ia64__.
12059 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
12060 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
12061 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
12062 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
12064 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
12066 ZFS crypto support.
12068 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
12069 * grub-core/Makefile.core.def (zfscrypt): New module.
12070 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
12071 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
12072 it. All users updated.
12073 (grub_zfs_decrypt): New var.
12074 (grub_zfs_load_key): Likewise.
12075 (zio_checksum_functions): Add SHA256+MAC.
12076 (zio_checksum_verify): Handle incomplete comparison due to MAC.
12077 (zio_read): Handle encrypted blocks.
12078 (zap_verify): Remove incorrect check.
12079 (fzap_iterate): Handle non-standard fzap.
12080 (zap_iterate): Likewise.
12081 (zap_iterate_u64): New function.
12082 (dnode_get_fullpath): Load keys.
12083 * grub-core/fs/zfs/zfscrypt.c: New file.
12084 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
12085 (grub_crypto_ecb_encrypt): Make input const.
12086 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
12087 (grub_crypto_ecb_encrypt): Make input const.
12088 (GRUB_CIPHER_AES): New macro.
12089 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
12090 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
12091 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
12092 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
12093 prefix. All users updated.
12094 (grub_zfs_add_key): New proto.
12095 (grub_zfs_decrypt): Likewise.
12096 (grub_zfs_load_key): Likewise.
12097 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
12098 * util/grub-fstest.c (options): Add -K option.
12099 (argp_parser): Likewise.
12101 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
12103 Support zle compression on ZFS.
12105 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
12106 (decomp_table): Add zle.
12107 * include/grub/zfs/zio.h (zio_compress): Add zle.
12109 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
12111 Support BtrFS embedding.
12113 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
12114 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
12115 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
12116 * util/grub-setup.c (setup): Use fs embedding if available.
12117 Add additional sanity check.
12119 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
12121 * util/grub-install.in: Fix condition for config_opt.
12123 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12125 Support third redundancy strip on raidz3.
12127 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
12128 Return error on singularity. All users updated.
12129 (read_device): Don't stop on 3rd failure on raidz3.
12131 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12133 Support case-insensitive ZFS subvolumes.
12135 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
12137 (zap_hash): Likewise.
12138 (name_cmp): New function.
12139 (zap_leaf_array_equal): New parameter case_insensitive.
12141 (zap_leaf_lookup): Likewise.
12142 (fzap_lookup): Likewise.
12143 (zap_lookup): Likewise.
12144 (dnode_get_path): New parameter case_insensitive. Retrieve case
12145 sensitiviness of a volume. All users updated.
12146 (dnode_get_fullpath): New parameter case_insensitive.
12148 (grub_zfs_dir): Set info.case_insensitiveness.
12150 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12152 Support second redundancy strip on raidz(2,3).
12154 * grub-core/fs/zfs/zfs.c (powx): New array.
12155 (powx_inv): Likewise.
12157 (xor_out): New function.
12158 (gf_mul): Likewise.
12159 (recovery): Likewise.
12160 (read_device): Use second redundancy strip.
12162 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12164 Use a power of generator representation of GF(256) multiplication group
12165 to save space time and complexity.
12167 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
12168 (raid6_table2): Likewise.
12170 (powx_inv): Likewise.
12172 (grub_raid_block_mul): Replace with ...
12173 (grub_raid_block_mulx): ...this.
12174 (grub_raid6_init_table): Rewritten.
12175 (grub_raid6_recover): Use power of generator representation.
12177 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12179 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
12180 for the right device.
12182 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12184 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
12185 expected by grub-mkimage and it's more clear since there is no implicit
12188 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12190 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
12192 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
12194 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
12196 * util/grub-mkrescue.in: Fix handling xorriso option.
12198 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12200 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
12203 2011-11-03 crocket <crockabiscuit@gmail.com>
12205 * util/grub.d/10_linux.in: Add Slackware initrd naming.
12207 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12209 XZ CRC64 and SHA256 support.
12211 * Makefile.util.def (libgrubmods): Add crc64.c.
12212 * grub-core/Makefile.core.def (crc64): New module.
12213 * grub-core/lib/crc64.c: New file.
12214 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
12215 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
12217 (MAX_HASH_SIZE): New define.
12218 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
12219 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
12220 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
12221 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
12222 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
12223 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
12224 Handle non-crc32 hashes.
12225 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
12226 (dec_stream_header): Handle non-crc32 hashes.
12227 (dec_stream_footer): Likewise.
12228 (dec_block_header): Likewise.
12229 (dec_main): Likewise.
12230 (xz_dec_init): Likewise.
12231 (xz_dec_reset): Likewise.
12232 (xz_dec_end): Likewise.
12233 * util/import_gcry.py: Add CRC64 line.
12235 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12237 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
12240 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12242 Make reiserfs label retrieval similar to other *_label functions.
12244 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
12245 (REISERFS_MAX_LABEL_LENGTH): Removed.
12246 (REISERFS_LABEL_OFFSET): Likewise.
12247 (grub_reiserfs_label): Rewritten.
12249 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12251 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
12254 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12256 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
12258 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
12260 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
12261 drive failure on both raidz and raidz2.
12263 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
12265 Fix RAIDZ(2) for >= 5 devices.
12267 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
12268 asize argument. All users updated.
12270 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
12274 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
12275 (fill_vdev_info_real): Set ashift.
12276 (read_device): Rewrite RAIDZ part based on reverse engineering.
12278 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12280 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
12281 don't report potentially unavialiable fields in debug output.
12282 (find_path): Fix double-free and memory leak.
12284 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12286 Read label on UFS1.
12288 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
12289 (grub_ufs_fs): Always set .label.
12291 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12295 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
12296 (grub_ufs_data): New field log2_blksz.
12297 (grub_ufs_read_file): Use shifts.
12298 (grub_ufs_mount): Check block size and logarithm it.
12300 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12302 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
12305 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12307 Handle symlinks and long names on tar and cpio.
12309 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
12310 (ATTR_FILE): Likewise.
12311 (ATTR_DIR): Likewise.
12312 (ATTR_LNK): Likewise.
12313 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
12314 (grub_cpio_find_file): Fill mode, handle linkname field as well as
12316 (grub_cpio_mount): Zero-fill data.
12317 (handle_symlink): New function.
12318 (grub_cpio_dir): Handle symlinks.
12319 (grub_cpio_open): Likewise.
12320 (grub_cpio_close) [MODE_USTAR]: Free linkname.
12322 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12324 Fix iso9660 filename limitations and fix memory leaks.
12326 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
12327 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
12329 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12331 Fix JFS file name length limitations.
12333 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
12334 (grub_jfs_diropen): Fix maximum filename length.
12335 (grub_jfs_getent): Fix filename length.
12336 (grub_jfs_lookup_symlink): Fix size checks.
12338 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12340 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
12343 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12345 Leverage BFS implementation to read AFS.
12347 * Makefile.util.def (libgrubmods): Add afs.c.
12348 * grub-core/Makefile.core.def (afs): New module
12349 * grub-core/fs/afs.c: New file.
12350 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
12352 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12354 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
12356 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12358 * grub-core/fs/bfs.c: Run indent.
12360 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12362 BFS implementation based on the specification.
12364 * grub-core/fs/bfs.c: New file.
12365 * Makefile.util.def (libgrubmods): Add bfs.c.
12366 * grub-core/Makefile.core.def (bfs): New module.
12368 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12370 * util/grub-fstest.c (cmd_cp): Clarify error message.
12371 (cmd_cmp): Likewise.
12373 2011-10-30 Yves Blusseau <blusseau@zetam.org>
12375 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
12378 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
12380 Remove afs and befs because of copyright problem.
12382 * grub-core/fs/afs.c: Removed.
12383 * grub-core/fs/afs_be.c: Removed.
12384 * grub-core/fs/befs.c: Removed.
12385 * grub-core/fs/befs_be.c: Removed.
12386 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
12387 * grub-core/Makefile.core.def (afs): Removed.
12388 (afs_be): Likewise.
12390 (befs_be): Likewise.
12392 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12394 Prefer rockridge over Joliet.
12396 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
12398 (set_rockridge): ... here.
12399 (grub_iso9660_mount): Check rockridge on the primary label when
12400 discovering. Ignore Joliet if Rockridge is present.
12402 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12404 Use shifts in nilfs2.
12406 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
12407 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
12408 (grub_nilfs2_palloc_entries_per_group): Replace with ...
12409 (grub_nilfs2_log_palloc_entries_per_group): ... this.
12410 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
12411 (grub_nilfs2_entries_per_block): Replaced with ...
12412 (grub_nilfs2_log_entries_per_block_log): ... this.
12413 (grub_nilfs2_blocks_per_group): Replaced with ...
12414 (grub_nilfs2_blocks_per_group_log): ... this.
12415 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
12416 (grub_nilfs2_blocks_per_desc_block_log): ... this.
12417 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
12418 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
12419 (grub_nilfs2_palloc_entry_offset): Replaced ...
12420 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
12421 (grub_nilfs2_dat_translate): Use shifts.
12422 (grub_nilfs2_read_inode): Likewise.
12423 (GRUB_MOD_INIT): Ensure that logs are correct.
12425 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12427 Use shifts in minix filesystem.
12429 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
12430 (GRUB_MINIX_ZONE2SECT): Likewise.
12431 (grub_minix_data): Replace block_size with log_block_size.
12432 (grub_minix_read_file): Use shifts.
12433 (grub_minix_mount): Check block size and take a logarithm.
12435 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12437 Use shifts in squash4.
12439 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
12440 (squash_mount): Check block size and take logarithm.
12441 (direct_read): Use shifts.
12443 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12445 Correct befs block counting logic.
12447 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
12448 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
12449 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
12450 (grub_afs_read_inode): Use block_shift.
12451 (RANGE_SHIFT): New definition.
12452 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
12453 unexpected conditions, use shifts and appropriate types.
12454 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
12456 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12458 * grub-core/disk/raid.c (scan_devices): Check partition.
12459 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
12461 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
12463 Support BFS (befs) UUID.
12465 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
12466 (grub_afs_small_data_element_header): New struct.
12467 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
12468 (grub_afs_read_attribute) [MODE_BFS]: New function.
12469 (grub_afs_iterate_dir): Allocate for complete inode.
12470 (grub_afs_mount): Likewise.
12471 (grub_afs_uuid) [MODE_BFS]: New function.
12472 (grub_afs_fs) [MODE_BFS]: Add .uuid.
12474 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
12476 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
12477 (zfs_unmount): Fix memory leak.
12479 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12481 Support NTFS reparse points.
12483 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
12484 (symlink_descriptor): New struct.
12485 (grub_ntfs_read_symlink): New function.
12486 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
12487 (grub_ntfs_open): Likewise.
12489 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12491 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
12493 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12495 fstest xnu_uuid subcommand.
12497 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
12498 grub-core/commands/xnu_uuid.c.
12499 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
12500 (fstest): Handle xnu_uuid.
12501 (options): Document xnu_uuid.
12502 (argp_parser): Parse xnu_uuid.
12504 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12506 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
12507 -l argument. Add newline at the end if printing.
12508 (GRUB_MOD_INIT): Document -l.
12510 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12512 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
12514 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12516 ZFS multi-device and version 33 support.
12518 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
12519 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
12520 (grub_zfs_data): Add multidev-ice-related fields.
12521 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
12522 (dva_get_offset): Make dva const.
12523 (zfs_fetch_nvlist): New function.
12524 (fill_vdev_info_real): Likewise.
12525 (fill_vdev_info): Likewise.
12526 (check_pool_label): Likewise.
12527 (scan_disk): Likewise.
12528 (scan_devices): Likewise.
12529 (read_device): Likewise.
12530 (read_dva): Likewise.
12531 (zio_read_gang): Use read_dva.
12532 (zio_read_data): Likewise.
12533 (zap_leaf_lookup): Add missing endian conversion.
12534 (zap_verify): Add missing endian conversion. All users updated.
12535 (fzap_lookup): Likewise.
12536 (fzap_iterate): Likewise.
12537 (dnode_get_path): Handle SA bonus.
12538 (nvlist_find_value): Make input const. All users updated.
12539 (unmount_device): New function.
12540 (zfs_unmount): Use unmount_device.
12541 (zfs_mount): Use scan_disk.
12542 (zfs_mtime): New function.
12543 (grub_zfs_open): Handle system attributes.
12544 (fill_fs_info): Likewise.
12545 (grub_zfs_dir): Likewise.
12546 (grub_zfs_fs): Add mtime.
12547 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
12548 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
12549 (SA_MTIME_OFFSET): Likewise.
12550 (SA_SYMLINK_OFFSET): Likewise.
12551 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
12552 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
12553 (fstest): Support zfsinfo.
12554 (argp_parser): Likewise.
12556 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12558 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
12561 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12565 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
12566 sharing the same block. Iterate over correct number of indices.
12567 (dnode_get_path): Handle symlinks correctly.
12569 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12571 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
12573 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12575 Read label on HFS+.
12577 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
12578 (grub_hfsplus_btree_search): Fix types.
12579 (grub_hfsplus_label): Implement.
12581 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12583 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
12585 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12587 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
12589 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12591 Fix symlink handling on iso9660.
12593 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
12595 (grub_iso9660_susp_iterate): Accept zero-size iterate.
12596 (grub_iso9660_read_symlink): Moved most of code ...
12597 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
12599 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12601 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
12602 Use union to avoid breaking strict-aliasing rules.
12604 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12606 Support multi-extent iso files.
12608 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
12610 (grub_fshelp_node): Revamp. All users updated.
12611 (FLAG_*): New enum.
12612 (read_node): New function.
12613 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
12615 (grub_iso9660_mount): Don't attempt to read sua when there is none.
12616 (get_node_size): New function.
12617 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
12619 Fix memory leak on . and ..
12620 (grub_iso9660_read): Use read_node.
12621 (grub_iso9660_close): Free node.
12623 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12625 Fix tar 4G limit and handle paths containing dot.
12627 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
12628 (canonicalize): New function.
12629 (grub_cpio_find_file): Use canonicalize. Store offs in
12631 (grub_cpio_dir): Use grub_disk_addr_t.
12632 (grub_cpio_open): Likewise.
12634 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12636 Fix handling of uncompressed blocks on squashfs and break 4G limit.
12638 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
12640 (grub_squash_inode): Add long_file and block_size.
12641 (grub_squash_cache_inode): New struct.
12642 (grub_squash_dirent): Make types into enum.
12643 (SQUASH_TYPE_LONG_REGULAR): New type.
12644 (grub_squash_frag_desc): Add field size.
12645 (SQUASH_BLOCK_FLAGS): New enum.
12646 (grub_squash_data): Use grub_squash_cache_inode.
12647 (grub_fshelp_node): Make ino_chunk 64-bit.
12648 (read_chunk): Minor argument change. All users updated.
12649 (squash_mount): Use correct le_to_cpu.
12650 (grub_squash_open): Handle LONG_REGULAR.
12651 (direct_read): New function.
12652 (grub_squash_read_data): Handle blocks correctly.
12654 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12656 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
12658 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12660 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
12662 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12664 Fix 2G limit on ZFS.
12666 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
12668 (uberblock_verify): Likewise.
12669 (dmu_read): Likewise.
12670 (grub_zfs_read): Likewise. Remove invalid cast.
12672 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12674 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
12675 (grub_jfs_blkno): Fix incorrect shift.
12676 (grub_jfs_read_file): Use more appropriate types.
12678 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12680 Support triple indirect on minix2 and minix3.
12682 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
12683 Declare triple_indir_zone.
12684 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
12687 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12691 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
12692 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
12693 Rename ctime to mtime. All users updated.
12694 (grub_minix_get_file_block): Fix types and double indirect computations.
12696 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12698 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
12699 if no label is found.
12700 (grub_fat_iterate_dir): Fix file size type.
12701 (grub_fat_iterate_dir): Likewise.
12703 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12705 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
12707 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
12708 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
12710 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12712 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
12714 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12716 * util/import_gcry.py: Accept space between # and include.
12718 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12720 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
12722 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12724 Fine grainely disable warnings on lexer. Remove Wno-error on it.
12726 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
12727 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
12729 * grub-core/script/yylex.l: Add fine-grained #pragma.
12731 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12733 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
12734 New inline function.
12735 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
12737 (memset) [GRUB_UTIL]: Likewise.
12738 (memcmp) [GRUB_UTIL]: Likewise.
12740 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12742 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
12743 inline function rather than a define.
12745 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12747 * util/grub-setup.c: Add missing include.
12749 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12751 * util/ieee1275/grub-ofpathname.c: Add missing include.
12753 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12755 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
12756 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
12759 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12761 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
12764 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12766 * util/grub-install.in: Add datarootdir as per automake manual
12768 * util/grub-mknetdir.in: Likewise.
12770 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12772 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
12774 * util/grub.d/10_kfreebsd.in: Likewise.
12775 * util/grub.d/10_linux.in: Likewise.
12776 * util/grub.d/10_netbsd.in: Likewise.
12777 * util/grub.d/10_windows.in: Likewise.
12778 * util/grub.d/20_linux_xen.in: Likewise.
12780 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
12782 Remove redundant grub_kernel_image_size.
12784 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
12786 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
12787 the small code. It moves it only by few bytes but simplifies the code.
12788 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
12790 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
12791 (grub_kernel_image_size): Removed.
12792 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
12793 (grub_kernel_image_size): Removed.
12794 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
12795 compiled with Apple toolchain.
12796 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
12797 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
12798 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
12799 (grub_total_module_size): Likewise.
12800 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
12802 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
12803 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
12804 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12805 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
12806 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
12807 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
12808 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
12809 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
12811 (grub_total_module_size): Removed.
12812 * util/grub-mkimage.c (image_target_desc): Remove image_size.
12813 (image_targets): Likewise.
12814 Set .compressed_size to no field on sparc.
12815 (generate_image): Remove kernel_image_size handling.
12817 2011-10-19 Szymon Janc <szymon@janc.net.pl>
12819 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
12820 NULL pointer dereference.
12822 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12824 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
12825 done with a dedicated section.
12827 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
12828 Ensure the correct position of boot_path.
12829 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
12830 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
12832 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
12833 * include/grub/boot.h: Removed. All references removed.
12834 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
12836 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
12838 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12840 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
12843 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12845 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
12847 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12849 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12850 Don't add the bogus brackets.
12852 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12856 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
12857 * grub-core/Makefile.core.def (exfat): New module.
12858 * grub-core/fs/exfat.c: New file.
12859 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
12860 (GRUB_FAT_ATTR_*): Make into an enum.
12861 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
12862 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
12863 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
12864 (GRUB_FAT_MAXFILE): Removed.
12865 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
12866 (grub_current_fat_bpb_t): New type.
12867 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
12868 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
12869 (grub_fat_dir_node_t): New type.
12870 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
12871 (fat_log2) [MODE_EXFAT]: Removed.
12872 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
12873 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
12874 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
12875 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
12876 (grub_fat_label) [MODE_EXFAT]: New function.
12877 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
12878 reserved_first_sector to 0.
12880 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12882 Move grub_reboot out of the kernel.
12884 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
12885 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
12886 * grub-core/lib/efi/reboot.c: ... here.
12887 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
12888 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12889 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
12890 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
12891 * grub-core/lib/i386/reboot_trampoline.S: ... here.
12892 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
12893 * grub-core/lib/ieee1275/reboot.c: ... here.
12894 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
12895 * grub-core/lib/mips/arc/reboot.c: ... here.
12896 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
12897 * grub-core/lib/mips/loongson/reboot.c: ...here.
12898 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
12899 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
12900 * include/grub/emu/misc.h (grub_reboot): New function declaration.
12901 * include/grub/i386/reboot.h: New file.
12902 * include/grub/mips/loongson/ec.h: Fix includes.
12903 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
12904 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
12905 * grub-core/lib/i386/reboot.c: New file.
12907 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
12909 Make grub_prefix into module to fix the arbitrary limit and save
12912 * grub-core/kern/emu/main.c (grub_prefix): Removed.
12913 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
12914 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
12915 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
12916 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
12917 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
12918 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
12919 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
12920 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
12921 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
12922 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
12923 * include/grub/ia64/efi/kernel.h: Removed.
12924 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
12925 (grub_prefix): Removed.
12926 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
12927 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
12928 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
12929 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
12930 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
12931 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
12932 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
12933 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
12934 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
12935 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
12936 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12937 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12938 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12939 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12940 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
12941 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
12942 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
12943 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12944 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
12945 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
12946 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
12947 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
12948 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
12949 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
12950 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
12951 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
12952 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
12953 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
12954 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
12956 * util/grub-mkimage.c (image_target_desc): Removed prefix and
12958 (image_targets): Likewise.
12959 (generate_image): Put prefix as a module.
12961 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12963 Replace grub_module_iterate with FOR_MODULES.
12965 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
12966 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
12967 (grub_efi_modules_addr): ...this.
12968 * grub-core/kern/efi/init.c (grub_modbase): New variable.
12969 (grub_efi_init): Set grub_modbase.
12970 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
12971 (grub_modbase): New variable.
12972 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
12973 (grub_modbase): New variable.
12974 (grub_machine_init): Set grub_modbase.
12975 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
12976 (grub_modbase): New variable.
12977 (grub_machine_init): Set grub_modbase.
12978 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
12979 (grub_modbase): New variable.
12980 (grub_machine_init): Set grub_modbase.
12981 * grub-core/kern/main.c (grub_module_iterate): Remove.
12982 (grub_modules_get_end): Use grub_modbase.
12983 (grub_load_modules): Use FOR_MODULES.
12984 (grub_load_config): Likewise.
12985 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
12986 (grub_modbase): New variable.
12987 (grub_machine_init): Set grub_modbase.
12988 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
12989 (grub_modbase): New variable.
12990 (grub_machine_init): Set grub_modbase.
12991 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
12993 (grub_modbase): New variable.
12994 (grub_machine_init): Set grub_modbase.
12995 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
12996 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
12997 (grub_module_iterate): Likewise.
12998 (grub_modbase): New variable declaration.
12999 (FOR_MODULES): New macro.
13001 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13003 * configure.ac: Check for __ctzdi2 and __ctzsi2.
13004 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
13006 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13008 Fix few obvious type discrepancies.
13010 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
13011 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
13012 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
13014 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
13015 and connected types.
13016 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
13018 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
13019 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
13020 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
13021 and connected types.
13023 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13025 Fix python 3.x incompatibilities.
13027 * gentpl.py: Put brackets around print strings.
13028 * util/import_gcry.py: Open explicitly as utf-8.
13029 Use in instead of has_key.
13031 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13033 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
13034 (GRUB_XFS_INO_AGBITS): Make into inline function.
13035 (GRUB_XFS_INO_INOINAG): Likewise.
13036 (GRUB_XFS_INO_AG): Likewise.
13037 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
13038 (GRUB_XFS_EXTENT_OFFSET): Likewise.
13039 (GRUB_XFS_EXTENT_BLOCK): Likewise.
13040 (GRUB_XFS_EXTENT_SIZE): Likewise.
13041 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
13042 (GRUB_XFS_NEXT_DIRENT): Likewise.
13043 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
13044 (grub_xfs_read_file): Fix offset type.
13046 2011-10-15 Robert Millan <rmh@gnu.org>
13048 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
13050 2011-10-15 Robert Millan <rmh@gnu.org>
13052 Fix build problem on FreeBSD and GNU/kFreeBSD.
13054 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
13056 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13058 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
13060 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
13062 (grub_hfsplus_btree_recoffset): Likewise.
13063 (grub_hfsplus_btree_recptr): Likewise.
13064 (grub_hfsplus_find_block): Likewise.
13065 (grub_hfsplus_btree_search): Likewise.
13066 (grub_hfsplus_read_block): Likewise.
13067 (grub_hfsplus_read_file): Likewise.
13068 (grub_hfsplus_mount): Likewise.
13069 (grub_hfsplus_btree_iterate_node): Likewise.
13070 (grub_hfsplus_btree_search): Likewise.
13071 (grub_hfsplus_iterate_dir): Likewise.
13072 (grub_hfsplus_read): A small code simplification.
13074 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13076 * grub-core/kern/emu/hostdisk.c
13077 (convert_system_partition_to_system_disk): Don't assume that children
13078 of mapper nodes are mapper nodes.
13080 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13082 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
13083 * include/grub/misc.h (grub_isxdigit): New function.
13084 * grub-core/video/colors.c (my_isxdigit): Removed. All users
13085 switched to grub_isxdigit.
13086 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
13087 number starting with a letter.
13089 2011-10-09 Robert Millan <rmh@gnu.org>
13091 LVM support for FreeBSD and GNU/kFreeBSD.
13093 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
13095 (LVM_DEV_MAPPER_STRING): Move from here ...
13096 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
13097 * util/getroot.c: Include `<grub/util/lvm.h>'.
13098 (grub_util_get_dev_abstraction): Enable
13099 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
13100 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
13101 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
13102 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
13104 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
13106 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
13107 when LVM abstraction is required for ${GRUB_DEVICE}.
13109 2011-10-06 Szymon Janc <szymon@janc.net.pl>
13111 Add support for LZO compression in GRUB:
13112 - import of minilzo library,
13113 - LZO decompression for btrfs,
13114 - lzop files decompression.
13116 * grub-core/io/lzopio.c: New file.
13117 * grub-core/lib/adler32.c: Likewise.
13118 * grub-core/lib/minilzo/lzoconf.h: Likewise.
13119 * grub-core/lib/minilzo/lzodefs.h: Likewise.
13120 * grub-core/lib/minilzo/minilzo.c: Likewise.
13121 * grub-core/lib/minilzo/minilzo.h: Likewise.
13122 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
13123 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
13124 grub-core/lib/minilzo/minilzo.c to common.
13125 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
13126 cflags in cppflags.
13127 * grub-core/Makefile.core.def (btrfs): Likewise.
13128 * grub-core/Makefile.core.def (lzopio): New module.
13129 (adler32): Likewise.
13130 * grub-core/fs/btrfs.c: Include minilzo.h.
13131 (GRUB_BTRFS_COMPRESSION_LZO): New define.
13132 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
13133 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
13134 (grub_btrfs_lzo_decompress): New function.
13135 (grub_btrfs_extent_read): Add support for LZO compression type.
13136 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
13137 (GRUB_USHRT_MAX): Likewise.
13138 (GRUB_UINT_MAX): Likewise.
13139 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
13140 (UINT_MAX): Likewise.
13141 (CHAR_BIT): Likewise.
13142 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
13143 grub-core/lib/posix_wrap/limits.h
13144 (UCHAR_MAX): Likewise.
13145 * include/grub/file.h (grub_file_filter_id): New compression filter
13146 GRUB_FILE_FILTER_LZOPIO.
13147 * include/grub/file.h (grub_file_filter_id): Set
13148 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
13149 * include/grub/types.h (grub_get_unaligned16): New function.
13150 (grub_get_unaligned32): Likewise.
13151 (grub_get_unaligned64): Likewise.
13152 * util/import_gcry.py (cryptolist): Add adler32.
13154 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
13156 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
13157 in perspective decreases the complexity of build system and fixes
13158 compilation right now.
13160 2011-10-01 Ales Nesrsta <starous@volny.cz>
13162 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
13163 (fixed problem related to using UHCI with coreboot).
13165 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
13167 * gentpl.py: Use Autogen macros so that the output template file
13168 (Makefile.tpl) size is reduced.
13170 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
13172 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
13175 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
13177 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
13178 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
13180 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
13182 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
13185 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
13187 Remove extra declaration of sleep for mingw32.
13189 * util/misc.c (sleep) [__MINGW32__]: Removed.
13190 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
13192 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
13194 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
13196 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
13198 (NETBSD_BTINFO_BOOTWEDGE): New definition.
13199 (grub_netbsd_btinfo_bootwedge): New struct.
13200 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
13202 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
13204 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
13206 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
13209 2011-09-28 Andreas Born <futur.andy@googlemail.com>
13211 Fix incorrect identifiers in bash-completion.
13213 * util/bash-completion.d/grub-completion.bash.in
13214 (_grub_mkpasswd-pbkdf2): Rename to ...
13215 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
13216 (_grub_script-check): Rename to ...
13217 (_grub_script_check): ... this. All users updated.
13219 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
13221 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
13222 Return 0 if disk isn't biosdisk.
13224 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
13226 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
13228 * Makefile.util.def (grub-fstest): Likewise.
13230 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
13232 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
13233 Get sector size from disk label.
13235 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
13237 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
13238 */README* as well as README*.
13239 Reported by: Axel Beckert.
13241 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13243 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
13244 case of less than 256 MiB of RAM.
13246 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13248 * grub-core/commands/wildcard.c (make_regex): Handle @.
13250 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13252 * util/grub-install.in: Move cryptodisk logic to appropriate place.
13254 2011-08-21 Szymon Janc <szymon@janc.net.pl>
13256 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
13257 AC_LANG_CONFTEST macros.
13259 2011-08-20 Szymon Janc <szymon@janc.net.pl>
13261 Add grub-fstest option to uncompress data for commands.
13263 * util/grub-fstest.c (uncompress): New var.
13264 (options): New option -u.
13266 2011-08-20 Szymon Janc <szymon@janc.net.pl>
13268 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
13269 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
13271 2011-08-20 Szymon Janc <szymon@janc.net.pl>
13273 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
13274 file type was not recognized correctly (not gzip or corrupted).
13276 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13278 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
13279 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
13281 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13283 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
13285 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
13286 video_radeon_fuloong2e.
13287 * grub-core/video/radeon_fuloong2e.c: New file.
13288 * include/grub/video.h (grub_video_id_t): Add new ID
13289 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
13291 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13293 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
13295 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
13296 that PRID matches the detected subplatform and reset the subplatform
13299 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13301 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
13303 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13305 Fix PCI iterating on functions >= 4.
13307 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
13308 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
13310 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
13311 (grub_pci_read): Fix bitmask.
13312 (grub_pci_read_word): Likewise.
13313 (grub_pci_read_byte): Likewise.
13314 (grub_pci_write): Likewise.
13315 (grub_pci_write_word): Likewise.
13316 (grub_pci_write_byte): Likewise.
13318 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13320 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
13321 can still be specified in TARGET_CFLAGS)
13323 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13325 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
13327 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
13328 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
13329 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
13330 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
13331 (FULOONG): Rename to ...
13332 (FULOONG2F): ... this. All users updated.
13333 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
13334 (machtype_fuloong2f_str): ... this.
13335 (machtype_fuloong2e_str): New string.
13336 Check for machtype_fuloong2e_str.
13337 * grub-core/loader/mips/linux.c (loongson_machtypes)
13338 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
13339 * grub-core/term/serial.c (loongson_defserial)
13340 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
13341 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
13342 loongson_defserial.
13343 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
13345 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
13346 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
13347 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
13348 to IMAGE_FULOONG2F_FLASH. All users updated.
13349 (image_targets): Rename images.
13350 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
13352 2011-08-19 Szymon Janc <szymon@janc.net.pl>
13354 Make enable of disk cache statistics code configurable.
13356 * configure.ac: --enable-cache-stats added.
13357 * config.h.in (DISK_CACHE_STATS): New define.
13358 * grub-core/Makefile.core.def (cacheinfo): New command.
13359 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
13360 * grub-core/commands/cacheinfo.c: New file.
13361 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
13362 moved to cacheinfo.c.
13363 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
13365 * include/grub/disk.h: Likewise.
13367 2011-08-19 Szymon Janc <szymon@janc.net.pl>
13369 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
13370 * grub-core/Makefile.am: Likewise.
13372 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
13374 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
13377 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
13379 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
13381 (grub_jfs_lookup_symlink): Use correct starting inode.
13383 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
13385 * util/grub-setup.c (main): Add missing gcry initialisation.
13387 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
13389 Don't accept text modes on EFI when booting Linux.
13391 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
13392 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
13394 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
13395 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
13397 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
13398 use of "/path/.." as in grub-install for EFI as well as handling
13399 symlinks correctly.
13400 Fixes Debian bug #637768.
13402 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
13404 * util/grub-probe.c: Remove duplicate #include.
13406 2011-08-10 Robert Millan <rmh@gnu.org>
13408 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
13410 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
13412 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
13413 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
13415 2011-08-03 Robert Millan <rmh@gnu.org>
13417 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
13418 la_array as packed.
13419 Reported by: Zachary Bedell
13421 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
13423 * configure.ac: The Loongson port requires grub-mkfont due to its
13424 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
13427 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
13429 * util/grub-install.in: Don't source grub-mkconfig_lib until after
13430 processing arguments (otherwise help2man fails when GRUB has not yet
13433 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13435 New script grub-mkstandalone.
13437 * Makefile.util.def (grub-mkstandalone): New script.
13438 * docs/man/grub-mkstandalone.h2m: New file.
13439 * util/grub-mkstandalone.in: Likewise.
13441 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13443 Support ATA disks with 4K sectors.
13445 * include/grub/ata.h (grub_ata): New member log_sector_size.
13446 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
13447 (grub_ata_identify): Read sector size.
13448 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
13450 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13452 * util/grub-install.in: Don't use uhci outside of x86.
13454 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13456 * util/grub-mkrescue.in: Add missing quotes.
13458 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13460 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
13463 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
13465 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
13467 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
13469 * include/grub/video.h: add missing EXPORT_FUND on
13470 grub_video_edid_checksum and grub_video_edid_preferred_mode.
13472 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
13474 * include/grub/mips/kernel.h: Fix define conflict.
13476 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
13478 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
13481 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
13483 Preferred resolution detection for VBE.
13485 * grub-core/video/video.c (grub_video_edid_checksum): New function.
13486 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
13487 the Flat Panel extension, in line with the X.org VESA driver.
13488 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
13490 (grub_vbe_bios_get_ddc_capabilities): Likewise.
13491 (grub_vbe_bios_read_edid): Likewise.
13492 (grub_vbe_get_preferred_mode): Likewise.
13493 (grub_video_vbe_setup): When the mode is "auto", try to get the
13494 preferred mode from VBE, and use the largest mode that is no larger
13495 than the preferred mode (some BIOSes expose a preferred mode that is
13496 not in their mode list!). If this fails, fall back to 640x480 as a
13497 safe conservative choice.
13498 (grub_video_vbe_get_edid): New function.
13499 (grub_video_vbe_adapter): Add get_edid.
13500 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
13501 (struct grub_video_adapter): Add get_edid.
13502 (grub_video_edid_checksum): Add prototype.
13503 (grub_video_edid_preferred_mode): Likewise.
13504 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
13507 * grub-core/commands/videoinfo.c (print_edid): New function.
13508 (grub_cmd_videoinfo): Print EDID if available.
13510 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
13511 is more appropriate on a wider range of platforms than 640x480.
13512 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
13515 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13517 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
13519 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13521 * po/POTFILES.in: Regenerate.
13523 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13525 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
13526 incorrect memory usage.
13528 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13530 * util/grub-install.in: Source grub-mkconfig_lib.
13532 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
13534 Remove getroot.c from core on emu platform.
13536 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
13538 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
13540 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
13541 * util/getroot.c (get_win32_path): ... here.
13542 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
13543 * util/getroot.c (fini_libzfs): ... here.
13544 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
13545 * util/getroot.c (grub_get_libzfs_handle): ... here.
13546 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
13548 * util/getroot.c (grub_find_zpool_from_dir): ... here.
13549 * grub-core/kern/emu/misc.c
13550 (grub_make_system_path_relative_to_its_root): Moved from here...
13551 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
13552 * grub-core/kern/emu/getroot.c: Moved from here ...
13553 * util/getroot.c: ... here. All users updated.
13554 * grub-core/kern/emu/raid.c: Moved from here ...
13555 * util/raid.c: ... here. All users updated.
13557 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
13559 * po/POTFILES.in: Regenerate.
13561 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13563 Fix compilation on GNU/Linux.
13565 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
13567 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
13568 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
13569 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
13571 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13572 2011-07-07 Michael Gorven <michael@gorven.za.net>
13573 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
13575 LUKS and GELI support.
13577 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
13578 grub-core/disk/luks.c, grub-core/disk/geli.c,
13579 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
13580 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
13581 grub-core/lib/arg.c.
13582 (libgrubmods.a): Remove gcrypts cflags and cppflags.
13583 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
13584 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
13585 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
13586 (grub-bin2h): Add libgcry.a.
13587 (grub-mkimage): Likewise.
13588 (grub-mkrelpath): Likewise.
13589 (grub-script-check): Likewise.
13590 (grub-editenv): Likewise.
13591 (grub-mkpasswd-pbkdf2): Likewise.
13592 (grub-pe2elf): Likewise.
13593 (grub-fstest): Likewise.
13594 (grub-mkfont): Likewise.
13595 (grub-mkdevicemap): Likewise.
13596 (grub-probe): Likewise.
13597 (grub-ofpath): Likewise.
13598 (grub-mklayout): Likewise.
13599 (example_unit_test): Likewise.
13600 (grub-menulst2cfg): Likewise.
13601 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
13602 * grub-core/Makefile.core.def (cryptodisk): New module.
13605 * grub-core/disk/AFSplitter.c: New file.
13606 * grub-core/disk/cryptodisk.c: Likewise.
13607 * grub-core/disk/geli.c: Likewise.
13608 * grub-core/disk/luks.c: Likewise.
13609 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
13611 (grub_util_get_dm_abstraction): New function.
13612 (grub_util_follow_gpart_up): Likewise.
13613 (grub_util_get_geom_abstraction): Likewise.
13614 (grub_util_get_dev_abstraction): Use new functions.
13615 (grub_util_pull_device): Pull GELI and LUKS.
13616 (grub_util_get_grub_dev): Handle LUKS and GELI.
13617 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
13618 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
13619 (follow_geom_up): Removed.
13620 (grub_util_fd_seek): New function.
13621 (open_device): Use grub_util_fd_seek.
13622 (nread): Rename to ..
13623 (grub_util_fd_read): ... this. All users updated.
13624 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
13625 (grub_crypto_cbc_decrypt): Likewise.
13626 (grub_crypto_hmac_write): Likewise.
13627 (grub_crypto_hmac_buffer): Likewise.
13628 (grub_password_get): Extend to util.
13629 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
13630 New member modname.
13631 (gcry_md_spec) [GRUB_UTIL]: Likewise.
13632 * include/grub/cryptodisk.h: New file.
13633 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
13634 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
13636 (grub_util_follow_gpart_up): New proto.
13637 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
13638 (grub_util_fd_read): Likewise.
13639 (grub_cryptodisk_cheat_mount): Likewise.
13640 (grub_util_cryptodisk_print_uuid): Likewise.
13641 (grub_util_get_fd_sectors): Likewise.
13642 * util/grub-fstest.c (mount_crypt): New var.
13643 (fstest): Mount crypto if requested.
13644 (options): New option -C.
13645 (argp_parser): Parse -C.
13646 (main): Init and fini gcry.
13647 * util/grub-install.in: Support cryptodisk install.
13648 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
13649 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
13651 (prepare_grub_to_access_device): Likewise.
13652 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
13653 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
13654 (probe_cryptodisk_uuid): New function.
13655 (probe_abstraction): Likewise.
13656 (probe): Use new functions.
13657 * util/import_gcry.py: Create Makefile.utilgcry.def.
13658 Add modname member.
13660 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13662 Lazy device scanning.
13664 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
13665 (grub-setup): Remove util/raid.c.
13666 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
13667 * grub-core/disk/lvm.c (scan_depth): New variable.
13668 (grub_lvm_iterate): Rescan if necessary.
13669 (find_lv): New function based on grub_lvm_open.
13670 (grub_lvm_open): Use find_lv. Rescan on error.
13671 (is_node_readable): New function.
13672 (is_lv_readable): Likewise.
13673 (grub_lvm_scan_device): Skip already found disks.
13674 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
13675 Stop if searched device is found and readable.
13676 * grub-core/disk/raid.c (inscnt): New variable.
13677 (scan_depth): Likewise.
13678 (scan_devices): New function based on grub_raid_register. Abort if
13679 looked for device is found.
13680 (grub_raid_iterate): Rescan if needed.
13681 (find_array): NEw function based on -grub_raid_open.
13682 (grub_raid_open): Use find_array and rescan.
13683 (insert_array): Set became_readable_at.
13684 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
13685 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
13687 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
13688 (grub_util_pull_device): New function.
13689 (grub_util_get_grub_dev): Call grub_util_pull_device.
13690 * util/raid.c: Moved to ..
13691 * grub-core/kern/emu/raid.c: ... here.
13692 (grub_util_raid_getmembers): New parameter "bootable".
13693 All users updated. Support 1.x.
13694 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
13696 * include/grub/disk.h (grub_disk_pull_t): New enum.
13697 (grub_disk_dev): Change iterate prototype.
13699 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
13701 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
13702 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
13703 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
13704 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
13706 * include/grub/util/raid.h: Removed.
13708 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
13710 * po/POTFILES.in: Regenerate.
13712 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
13714 Unify sparc init with other ieee1275.
13716 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
13717 instead of kern/sparc64/ieee1275/init.c.
13718 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
13719 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
13720 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
13721 grub/machine/kernel.h.
13722 (grub_ieee1275_original_stack) [__sparc__]: New variable.
13723 (grub_claim_heap) [__sparc__]: Use sparc version.
13724 (grub_machine_init): Moved args parsing to
13725 (grub_parse_cmdline): ...this.
13726 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
13727 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
13729 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
13731 Move BOOTP to separate file.
13733 * grub-core/Makefile.core.def (net): Add net/bootp.c.
13734 * grub-core/net/net.c: Move all BOOTP functions to
13735 * grub-core/net/bootp.c: ... here.
13737 Use frame interface on PXE.
13739 * grub-core/Makefile.core.def (pxecmd): Removed.
13740 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
13741 * grub-core/commands/i386/pc/pxecmd.c: Removed.
13742 * grub-core/i386/pc/pxe.c: Moved from here ...
13743 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
13744 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
13745 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
13747 EFI network support.
13749 * grub-core/Makefile.core.def (efinet): New module.
13750 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
13752 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
13754 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
13755 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
13756 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
13757 * grub-core/net/drivers/efi/efinet.c: New file.
13758 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
13759 (grub_efi_net_config): New extern var.
13761 Various cleanups and bugfixes.
13763 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
13765 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
13766 disk declared as partition.
13767 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
13769 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
13770 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
13771 (grub_debug_zalloc): Likewise.
13772 (grub_debug_realloc): Likewise.
13773 (grub_debug_memalign): Likewise.
13774 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
13775 Check that target is IPv4.
13776 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
13777 local-mac-address as fallback.
13778 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
13780 * grub-core/net/ip.c (ipchksum): Rename to ...
13781 (grub_net_ip_chksum): ... this. All users updated.
13782 (grub_net_recv_ip_packets): Special handling for DHCP.
13783 * util/grub-mkimage.c (generate_image): Zero-out aout header.
13785 Unify prefix handling
13787 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
13788 (grub_machine_get_bootlocation): ... this.
13789 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
13790 (grub_machine_get_bootlocation): ... this.
13791 (grub_prefix): New variable.
13793 (root_dev): New variable.
13795 (main): Use new variables.
13796 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
13798 (grub_machine_get_bootlocation): ... this.
13799 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
13800 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
13801 (grub_machine_get_bootlocation): ... this.
13802 (grub_machine_set_prefix): Removed.
13803 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
13804 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
13806 (grub_machine_get_bootlocation): ... this.
13807 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
13808 (grub_set_prefix_and_root): ... this. All users updated.
13809 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
13811 (grub_machine_get_bootlocation): ... this.
13812 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
13813 (grub_machine_get_bootlocation): New proto.
13814 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
13816 Less intrusive and more reliable seek on network implementation.
13818 * grub-core/kern/file.c (grub_file_net_seek): Removed.
13819 (grub_file_seek): Don't call grub_file_net_seek.
13820 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
13821 (grub_net_fs_read_real): .. this.
13822 (grub_net_seek_real): Use net->offset.
13823 (grub_net_fs_read): Seek if necessary.
13825 Unify IEEE1275 netwotk config with the other platforms.
13827 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
13829 (grub_machine_get_bootlocation): Support network.
13830 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13831 Support type and device parsing.
13832 (grub_ieee1275_get_device_type): New function.
13833 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
13835 (grub_ieee1275_net_config_real): ... this.
13836 (grub_ofnet_probecards): Removed.
13837 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
13838 * include/grub/ieee1275/ofnet.h: Removed.
13839 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
13841 (grub_ieee1275_get_device_type): New function.
13843 Unify network device closing across platforms and make more robust.
13845 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
13847 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
13849 * grub-core/net/net.c (grub_net_network_level_interface_register):
13851 (grub_net_card_unregister): Close all interfaces.
13852 (receive_packets): Don't poll if no iterfaces are registered.
13854 (grub_net_fini_hw): New function.
13855 (grub_net_restore_hw): Likewise.
13856 (fini_hnd): New variable.
13857 (GRUB_MOD_INIT): Register preboot hook.
13858 (GRUB_MOD_FINI): Run and unregister preboot hook.
13860 Poll network cards when idle.
13862 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
13863 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
13864 * grub-core/net/net.c (receive_packets): Save last poll time.
13865 (grub_net_poll_cards_idle_real): New function.
13866 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
13867 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
13868 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
13870 Rename ofnet interfaces.
13872 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
13873 (grub_ofnet_findcards): Use ofnet_%s names.
13875 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
13877 Cleanup socket opening.
13879 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
13880 (grub_net_fs_close): Likewise.
13881 (grub_net_fs_read_real): Use eof member.
13882 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
13883 (+grub_net_udp_close): New inline function.
13885 * include/grub/net/tftp.h: Moved to the top of ...
13886 * grub-core/net/tftp.c: ... here.
13887 * include/grub/net/ip.h: Moved mostly to the top of ...
13888 * grub-core/net/ip.c: ... here.
13889 * include/grub/net/ethernet.h: Moved mostly to the top of ...
13890 * grub-core/net/ethernet.c: ... here.
13892 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
13894 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
13897 * include/grub/net/ip.h (ipv4_ini): Removed.
13898 (ipv4_fini): Likewise.
13900 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
13901 (grub_net_send_ip_packets): Likewise.
13903 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13905 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
13906 grub_read_cmos prototype.
13908 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13910 VGA text support in qemu-mips
13912 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
13913 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
13914 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
13916 * grub-core/kern/i386/qemu/init.c: Renamed to ...
13917 * grub-core/kern/vga_init.c: ... this.
13918 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
13919 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
13920 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
13922 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
13923 GRUB_MACHINE_PCI_IO_BASE.
13925 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13927 MIPS qemu flash support.
13929 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
13931 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
13932 (grub_machine_init): Probe memory if its size isn't known.
13933 * util/grub-mkimage.c (image_targets): Add flash targets.
13934 (generate_image): Handle flash targets.
13936 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13938 MIPS qemu at_keyboard support.
13940 * gentpl.py (videoinkernel): Add qemu-mips.
13941 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
13942 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
13943 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
13945 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
13946 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
13947 * grub-core/term/serial.c (grub_serial_register)
13948 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
13950 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13952 CMOS support on sparc.
13954 * gentpl.py (cmos): Add powerpc and sparc.
13955 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
13957 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
13958 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
13959 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
13960 grub_set_datetime_cmos.
13961 * grub-core/lib/ieee1275/cmos.c: New file.
13962 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
13963 (find_rtc): Set no_ieee1275_rtc on error.
13964 (grub_get_datetime): Call grub_get_datetime_cmos on error.
13965 (grub_set_datetime): Call grub_set_datetime_cmos on error.
13966 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
13967 fail. Move value to argument. All users updated
13968 (grub_cmos_write): Likewise.
13969 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
13970 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
13971 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
13972 grub_get_datetime_cmos and grub_set_datetime_cmos.
13974 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13976 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
13977 sourcing grub-mkconfig_lib.
13978 * util/update-grub_lib.in: Likewise.
13979 * util/grub.d/00_header.in: Likewise.
13980 * util/grub.d/10_hurd.in: Likewise.
13981 * util/grub.d/10_kfreebsd.in: Likewise.
13982 * util/grub.d/10_linux.in: Likewise.
13983 * util/grub.d/10_netbsd.in: Likewise.
13984 * util/grub.d/10_windows.in: Likewise.
13985 * util/grub.d/20_linux_xen.in: Likewise.
13986 * util/grub.d/30_os-prober.in: Likewise.
13988 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
13990 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
13991 default_bg_color rather than black.
13992 (grub_gfxterm_fullscreen): Likewise.
13993 (grub_gfxterm_background_color_cmd): Save new background color in
13996 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13998 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
14000 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14002 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
14005 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14007 Chainloading on coreboot support.
14009 * grub-core/Makefile.core.def (chain): Add coreboot.
14010 * grub-core/loader/i386/coreboot/chainloader.c: New file.
14012 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14014 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
14017 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14019 Implement time command.
14021 * grub-core/Makefile.core.def (time): New module.
14022 * grub-core/commands/time.c: New file.
14023 * grub-core/script/parser.y: Remove "time" keyword.
14024 * grub-core/script/yylex.l: Likewise.
14026 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14028 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
14030 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14032 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
14033 when handling leftovers.
14035 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14037 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
14038 so that help2man doesn't fail.
14040 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14042 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
14043 type in pointers on sparc64.
14044 (get_card_packet): Likewise.
14046 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
14048 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
14050 (grub_cmd_videoinfo): Fetch current video mode.
14052 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14054 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
14055 because of underlying system restrictions.
14057 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14059 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
14062 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14064 Coreboot video support.
14066 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
14068 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
14069 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
14071 * grub-core/kern/i386/int.S: ... here.
14072 * grub-core/video/i386/pc/vbe.c: Updated includes.
14073 * grub-core/video/i386/pc/vga.c: Likewise.
14074 * include/grub/i386/coreboot/memory.h
14075 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
14076 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
14077 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
14078 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
14079 Disable interrupts.
14080 * include/grub/i386/pc/vga.h: Removed. All users updated.
14082 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14084 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
14085 definitions for dprintf.
14086 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
14088 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14090 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
14092 (get_card_packet): Likewise.
14094 2011-06-26 Yves Blusseau <blusseau@zetam.org>
14096 Display the path of the file when file is not found
14098 * grub-core/fs/fat.c: Display the filename when file is not found.
14099 * grub-core/fs/fshelp.c: Likewise.
14100 * grub-core/fs/hfs.c: Likewise.
14101 * grub-core/fs/jfs.c: Likewise.
14102 * grub-core/fs/minix.c: Likewise.
14103 * grub-core/fs/ufs.c: Likewise.
14104 * grub-core/fs/btrfs.c: Likewise.
14105 * grub-core/commands/i386/pc/play.c: Likewise.
14107 2011-06-26 Szymon Janc <szymon@janc.net.pl>
14109 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
14110 pointer checks before calling grub_free().
14111 * grub-core/commands/wildcard.c (match_devices): Likewise.
14112 * grub-core/commands/wildcard.c (match_files): Likewise.
14113 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
14114 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
14115 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
14116 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
14117 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
14118 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
14119 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
14120 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
14121 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
14123 2011-06-25 Patrick <p55@mailinator.com>
14125 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
14127 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
14129 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
14130 (grub_pxe_send): Likewise.
14131 (GRUB_MOD_INIT): Fix types.
14133 2011-06-24 Szymon Janc <szymon@janc.net.pl>
14135 * grub-core/io/xzio.c: Fix code style issues
14137 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14138 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
14140 Network infrastructure.
14141 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
14143 * include/grub/net/arp.h: New file.
14144 * include/grub/net/device.h: Likewise.
14145 * include/grub/net/ethernet.h: Likewise.
14146 * include/grub/net/ip.h: Likewise.
14147 * include/grub/net/netbuff.h: Likewise.
14148 * include/grub/net/tftp.h: Likewise.
14149 * include/grub/net/udp.h: Likewise.
14150 * include/grub/ieee1275/ofnet.h: Likewise.
14151 * include/grub/emu/export.h: Likewise.
14152 * include/grub/net.h: Likewise.
14153 * grub-core/net/arp.c: Likewise.
14154 * grub-core/net/ethernet.c: Likewise.
14155 * grub-core/net/ip.c: Likewise.
14156 * grub-core/net/udp.c: Likewise.
14157 * grub-core/net/tftp.c: Likewise.
14158 * grub-core/net/netbuff.c: Likewise.
14159 * grub-core/net/net.c: Likewise.
14160 * grub-core/net/drivers/emu/emunet.c: Likewise.
14161 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
14162 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
14164 * grub-core/Makefile.core.def (net): New module.
14167 (emunet): Likewise.
14168 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
14170 * grub-core/kern/device.c (grub_net_open) : New variable.
14171 (grub_device_open): Handle network device.
14172 (grub_device_close): Likewise.
14173 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
14174 (grub_grubnet_fini): Likewise.
14175 (grub_file_seek): Seek in network device.
14176 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
14177 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
14179 (grub_machine_fini): Call grub_grubnet_fini.
14180 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
14182 (grub_ieee1275_get_aliasdevname): New function.
14183 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14184 Add unofficial Solaris network info.
14185 (grub_multiboot_make_mbi): Likewise.
14186 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
14187 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
14188 * include/grub/device.h (grub_fs): Removed.
14189 * include/grub/err.h (grub_err_t): Add network-related values.
14190 * include/grub/i386/pc/pxe.h: Removed bootp parts.
14191 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
14192 (grub_ieee1275_get_aliasdevname): New proto.
14193 * include/grub/net.h: Rewritten.
14195 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14197 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
14200 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14202 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
14203 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
14204 it truncates the output.
14205 Reported by: Ximin Luo.
14207 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14209 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
14211 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14213 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
14214 partmap before abstraction.
14216 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
14218 * util/grub-mkconfig_lib.in: Add missing quotes.
14220 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14222 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
14223 old method if mountinfo would return /dev/root and /dev/root doesn't
14226 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14230 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
14231 (decomp_table): Add zlib entries.
14232 (zio_read): USe 8 bits for compression function rather than 3.
14233 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
14235 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14237 * grub-core/disk/ahci.c: Add missing license statements.
14238 * grub-core/fs/romfs.c: Likewise.
14239 * grub-core/lib/ia64/setjmp.S: Likewise.
14240 * grub-core/loader/i386/pc/freedos.c: Likewise.
14241 * grub-core/loader/ia64/efi/linux.c: Likewise.
14242 * grub-core/video/colors.c: Likewise.
14243 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
14245 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14249 * grub-core/Makefile.core.def (ata_pthru): Removed.
14250 (ahci): New module.
14252 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
14254 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
14256 (grub_hdparm_do_check_powermode_cmd): Likewise.
14257 (grub_hdparm_do_smart_cmd): Likewise.
14258 (grub_hdparm_set_val_cmd): Likewise.
14259 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
14260 * grub-core/disk/ahci.c: New file.
14261 * grub-core/disk/ata.c: Factor out the low-level part into ...
14262 * grub-core/disk/pata.c: ... here.
14263 * grub-core/disk/ata_pthru.c: Contents moved to ...
14264 * grub-core/disk/pata.c: ... here.
14265 * grub-core/disk/scsi.c (grub_scsi_names): New array.
14266 (grub_scsi_iterate): Use grub_scsi_names.
14267 (grub_scsi_open): Likewise.
14268 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
14269 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
14270 (grub_ata_regs_t): New struct.
14271 (grub_disk_ata_pass_through_parms): Likewise.
14272 (grub_ata_device): Renamed to ...
14273 (grub_ata): ... this.
14274 (grub_ata_dev): New struct.
14275 Removed all low-level inline functions.
14276 * include/grub/scsi.h: Add PATA and AHCI subsystems.
14277 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
14278 iterate hooks and open. All users updated.
14279 * util/grub-install.in: Handle AHCI disk module.
14281 2011-06-23 Szymon Janc <szymon@janc.net.pl>
14283 Add support for DRI and RSTn markers in JPEG files.
14285 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
14286 (JPEG_MARKER_RST0): Likewise.
14287 (JPEG_MARKER_RST1): Likewise.
14288 (JPEG_MARKER_RST2): Likewise.
14289 (JPEG_MARKER_RST3): Likewise.
14290 (JPEG_MARKER_RST4): Likewise.
14291 (JPEG_MARKER_RST5): Likewise.
14292 (JPEG_MARKER_RST6): Likewise.
14293 (JPEG_MARKER_RST7): Likewise.
14294 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
14295 (grub_jpeg_decode_dri): New function.
14296 (grub_jpeg_decode_sos): Move image data related part into
14297 grub_jpeg_decode_data function.
14298 (grub_jpeg_decode_data): New function.
14299 (grub_jpeg_reset): New function.
14300 (grub_jpeg_decode_jpeg): Handle new markers.
14302 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14304 * util/ieee1275/ofpath.c (check_sas): Close fd.
14305 (main): Free of_path.
14306 Reported by: David Volgyes <dvolgyes>.
14308 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14310 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
14311 Reported by: David Volgyes <dvolgyes>.
14313 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14315 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
14317 Reported by: David Volgyes <dvolgyes>.
14319 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14321 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
14323 Reported by: David Volgyes <dvolgyes>.
14325 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14327 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
14328 Prevent memory leak.
14330 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14332 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
14333 (main): Close file.
14334 Reported by: David Volgyes <dvolgyes>.
14336 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14338 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
14339 to continue if allocation is failed.
14341 Reported by: David Volgyes <dvolgyes>.
14343 2011-06-23 David Volgyes <dvolgyes>
14345 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
14348 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14350 Fix spurious warning.
14352 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
14353 (acorn_partition_map_find): Use .bin member.
14355 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14357 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
14358 /dev/root as a valid device.
14360 2011-06-23 Jim Meyering <meyering@redhat.com>
14362 Avoid NULL deref in grub_device_open.
14364 * grub-core/kern/device.c (grub_device_open): Don't dereference
14365 a NULL pointer upon failed grub_env_get.
14367 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14369 Support non-512B sectors and agglomerate reads.
14371 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
14372 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
14373 (disk_io_guid): Removed.
14374 (make_devices): Locate solely by BlockIO.
14375 (grub_efidisk_open): Fill log_sector_size and total_sectors.
14376 (grub_efidisk_read): Use read_blocks.
14377 (grub_efidisk_write): Use write_blocks.
14378 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
14380 (get_safe_sectors): Handle non-512B sectors.
14381 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
14383 (grub_biosdisk_write): Handle non-512B sectors.
14384 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
14385 (grub_scsi_read): Remove special non-512B block handling (now handled
14387 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
14388 and do sanity checks.
14389 (grub_disk_adjust_range): Handle non-512B sectors.
14390 (transform_sector): New function.
14391 (grub_disk_read_small): Likewise.
14392 (grub_disk_read): Rewritten.
14393 (grub_disk_write): Handle non-512B sectors.
14394 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
14396 (open_device): Use log_sector_size.
14397 (grub_util_biosdisk_read): Likewise.
14398 (grub_util_biosdisk_write): Likewise.
14399 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
14401 (pc_partition_map_embed): Likewise.
14402 * include/grub/disk.h (grub_disk): New field log_sector_size.
14403 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
14404 (GRUB_DISK_CACHE_BITS): Increased to 6.
14405 * util/grub-fstest.c (fstest): New command testload.
14406 (argp_parser): Likewise.
14408 2011-06-16 Robert Millan <rmh@gnu.org>
14410 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
14411 `ata' driver on kernel of FreeBSD 9.
14413 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
14414 (get_ataraid_disk_name): New functions.
14415 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
14416 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
14417 get_ataraid_disk_name() and get_ada_disk_name().
14419 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
14421 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
14424 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
14426 * docs/grub.texi (Obtaining and Building GRUB): Substitute
14427 `ftp.gnu.org' for `alpha.gnu.org'.
14429 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
14431 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
14432 partitions under /dev/disk/by-id/.
14434 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
14436 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
14437 after ten consecutive open failures. Scanning all the way up to
14438 10000 is excessive and can cause serious performance problems in
14439 some configurations.
14440 Fixes Ubuntu bug #787461.
14442 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14444 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
14447 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
14448 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14450 Don't stat devices unless we have to.
14452 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
14453 dir == /dev/mapper.
14454 (grub_guess_root_device): Use already known os_dev if possible.
14455 * grub-core/kern/emu/hostdisk.c
14456 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
14457 if device is known to be a dm one.
14459 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
14461 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
14462 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
14463 Reported by: Pawel Tecza.
14465 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
14467 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
14468 (lsefisystab): Likewise.
14470 (lsefimmap): Likewise.
14471 (hdparm): Enable on qemu-mips.
14472 (setjmp): Add ia64 nodist.
14473 (serial): Simplify tags.
14475 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14477 * Makefile.util.def (grub-ofpathname): Install manual page.
14479 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14481 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
14483 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14485 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
14487 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14489 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
14492 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14494 Use full 64-bit division.
14496 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
14497 (grub_divmod64): ... this.
14498 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
14501 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14503 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
14506 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14508 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
14509 to avoid accidents when debugging with 'sh -x'.
14510 * grub-core/gensyminfo.sh.in: Likewise.
14511 * tests/example_scripted_test.in: Likewise.
14512 * tests/grub_cmd_regexp.in: Likewise.
14513 * tests/grub_script_blanklines.in: Likewise.
14514 * tests/grub_script_dollar.in: Likewise.
14515 * tests/grub_script_expansion.in: Likewise.
14516 * tests/grub_script_final_semicolon.in: Likewise.
14517 * tests/partmap_test.in: Likewise.
14518 * tests/util/grub-shell-tester.in: Likewise.
14519 * tests/util/grub-shell.in: Likewise.
14521 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14523 Move gfxmenu color handling to video, so that gfxterm can use it
14526 * grub-core/gfxmenu/named_colors.c: Move to ...
14527 * grub-core/video/colors.c: ... here. Rename
14528 grub_gui_get_named_color to grub_video_get_named_color.
14529 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
14530 * grub-core/video/colors.c (my_isxdigit): ... here.
14531 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
14533 * grub-core/video/colors.c (parse_hex_color_component): ... here.
14534 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
14536 * grub-core/video/colors.c (grub_video_parse_color): ... here.
14538 * include/grub/gui.h (grub_gui_color_t): Move to ...
14539 * include/grub/video.h (grub_video_rgba_color_t): ... here.
14540 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
14541 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
14542 * include/grub/gui.h (grub_gui_map_color): Move to ...
14543 * include/grub/video.h (grub_video_map_rgba_color): ... here.
14544 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
14546 * include/grub/video.h (grub_video_get_named_color): ... here.
14547 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
14548 * include/grub/video.h (grub_video_parse_color): ... here.
14550 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
14552 (gfxmenu): Remove gfxmenu/named_colors.c.
14553 (video) [videomodules]: Add video/colors.c.
14555 Add a background_color command.
14557 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
14559 (GRUB_MOD_INIT): Register background_color command.
14560 (GRUB_MOD_FINI): Unregister background_color command.
14561 (redraw_screen_rect): Allow blend/replace of text layer to be
14562 controlled independently from whether there is a background bitmap.
14563 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
14566 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14568 Patch BPB in ntldr and chainloader --bpb.
14570 * grub-core/fs/fat.c: Include grub/fat.h.
14571 (grub_fat_bpb): Moved to ...
14572 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
14573 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
14575 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
14577 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
14579 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
14581 (grub_chainloader_cmd): Patch BPB if --bpb is given.
14582 (GRUB_MOD_INIT): Show --bpb.
14583 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
14584 * grub-core/normal/main.c (features): New variable.
14585 (GRUB_MOD_INIT): Set feature_* variables.
14586 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
14588 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
14590 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14592 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
14595 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14597 FreeDOS direct loading support.
14599 * docs/grub.texi (Supported OS): Add FreeDOS.
14600 * grub-core/Makefile.core.def (freedos): New module.
14601 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
14603 (grub_relocator16_boot): Handle %ebx.
14604 * grub-core/lib/i386/relocator16.S: Likewise.
14605 * grub-core/loader/i386/pc/freedos.c: New file.
14607 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14609 Long Linux command line support.
14611 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
14612 (maximal_cmdline_size): New variable.
14613 (allocate_pages): Use maximal_cmdline_size.
14614 (grub_cmd_linux): Set and use maximal_cmdline_size.
14615 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
14616 (allocate_pages): Use maximal_cmdline_size.
14617 (grub_cmd_linux): Set and use maximal_cmdline_size.
14618 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
14619 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
14622 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14623 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14625 Improve devmapper support
14627 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
14628 (grub_util_is_lvm): New function.
14629 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
14630 than lvm if not dmraid.
14631 Handle mapped md nodes.
14632 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
14633 (grub_util_device_is_mapped): ... this. Make always available. All users
14635 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
14636 (convert_system_partition_to_system_disk): Handle lvm, mpath and
14638 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
14640 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14642 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
14644 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
14645 * grub-core/modinfo.sh.in: New file.
14646 * grub-core/Makefile.core.def (modinfo.sh): New script.
14647 * util/grub-mknetdir.in: Use modinfo.sh.
14648 * util/grub-mkrescue.in: Likewise.
14650 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14652 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
14653 Fix potential usage of Elf32 instead of Elf64 when compiling on
14654 32-bit architecture. Add endianness macros while on it.
14656 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14658 Use mipsel- rather than mips- in directories involving mipsel ports to
14659 allow both endiannesses coexist.
14661 * configure.ac: proparate target_cpu=mipsel rather than resetting to
14662 mips. All conditions adjusted.
14663 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
14665 * util/grub-install.in: Adjust conditions to take renaming into account.
14666 * util/grub-mkimage.c (image_targets): Likewise. New target
14667 mips-qemu_mips-elf for bigendian mips.
14669 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14671 Avoid unnecessary copying on MIPS.
14673 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
14674 early if src == dest.
14675 * util/grub-mkimage.c (generate_image): Arange for src == dest if
14676 compression is none.
14678 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14680 Reduce memory footprint on SGI by putting modules before the kernel
14681 as opposed to after.
14683 * grub-core/Makefile.core.def (kernel): Increase linking address.
14684 (none_decompress): Likewise.
14685 (xz_decompress): Likewise.
14686 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
14688 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
14690 (grub_arch_modules_addr): New function.
14691 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
14692 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
14693 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
14695 * grub-core/kern/mips/startup.S (total_size): Rename to ...
14696 (grub_total_modules_size): ... this. Make global.
14697 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
14698 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
14700 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
14701 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
14702 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
14703 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
14704 * util/grub-mkimage.c (image_target_desc): New flag
14705 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
14706 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
14707 (generate_image): Handle images with modules before kernel.
14709 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14711 Prevent potential loss of memory map by overwrite on qemu-mips.
14713 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
14714 Save ram size in $s4.
14715 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
14716 All users changed to grub_arch_memsize.
14717 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
14719 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
14720 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
14721 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
14724 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14726 * .bzrignore: Remove grub-dumpbios.
14728 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14730 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
14731 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
14732 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
14733 existing options which append).
14734 * docs/grub.texi (Simple configuration): Document new options.
14735 Reported by: Ian Jackson. Fixes Debian bug #617538.
14737 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14739 * util/grub-fstest.c (cmd_cat): New function.
14740 (fstest): Handle CMD_CAT.
14741 (options): Add cat.
14742 (argp_parser): Handle cat.
14744 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14746 * Makefile.util.def (grub-bin2h): Don't install.
14747 * docs/man/grub-bin2h.h2m: Remove.
14749 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14751 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
14754 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14756 Reenable qemu-mips port.
14758 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
14759 Fix small arc bug while on it.
14760 * gentpl.py: Handle qemu_mips.
14761 * grub-core/Makefile.am: Likewise.
14762 * grub-core/Makefile.core.def: Likewise.
14763 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
14764 inappropriate includes.
14765 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
14766 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
14767 * grub-core/kern/main.c (grub_modules_get_end)
14768 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
14769 * grub-core/kern/mips/qemu-mips: Moved to ..
14770 * grub-core/kern/mips/qemu_mips: ... this.
14771 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
14772 (grub_machine_init): Call terminfo_init and serial_init.
14773 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
14774 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
14776 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
14778 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
14779 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
14780 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
14781 * include/grub/mips/qemu_mips/cmos.h: New file.
14782 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
14783 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
14785 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
14786 Use correct mips-style address.
14787 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
14788 (GRUB_TICKS_PER_SECOND): Removed.
14789 (grub_get_rtc): Likewise.
14790 (grub_cpu_idle): Likewise.
14791 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
14793 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
14794 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
14795 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
14796 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
14797 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14798 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14799 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
14800 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
14802 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14806 * Makefile.util.def (libgrubmods.a): Add dvh.c.
14807 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
14809 * configure.ac: New target mips-arc.
14810 * gentpl.py: Likewise.
14811 * grub-core/Makefile.am: Likewise.
14812 * grub-core/Makefile.core.def: Likewise.
14813 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
14814 (none_decompress): Likewise.
14815 (lsdev): New module.
14816 (datetime): Use lib/arc/datetime.c on ARC.
14817 (part_dvh): New module.
14818 * grub-core/commands/arc/lsdev.c: New file.
14819 * grub-core/disk/arc/arcdisk.c: Likewise.
14820 * grub-core/kern/mips/arc/init.c: Likewise.
14821 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
14823 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
14825 (grub_arch_dl_relocate_symbols): Likewise.
14826 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
14827 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
14828 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
14830 * grub-core/lib/arc/datetime.c: New file.
14831 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
14832 pci.h on non-loongson.
14833 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
14834 (grub_linux_boot): Set unused registers to 0.
14835 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
14836 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
14837 * grub-core/mmap/mips/uppermem.c: ...here.
14838 * grub-core/partmap/dvh.c: New file.
14839 * grub-core/term/arc/console.c: Likewise.
14840 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
14841 (grub_terminfo_set_current): Add terminal "arc".
14842 (grub_terminfo_readkey): Support ARC sequences.
14843 * include/grub/arc/arc.h: New file.
14844 * include/grub/arc/console.h: Likewise.
14845 * include/grub/disk.h (grub_disk_dev_id): Add
14846 GRUB_DISK_DEVICE_ARCDISK_ID.
14847 * include/grub/mips/arc/kernel.h: New file.
14848 * include/grub/mips/arc/memory.h: Likewise.
14849 * include/grub/mips/arc/time.h: Likewise.
14850 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
14851 * include/grub/mips/kernel.h (grub_halt): ... here.
14852 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
14854 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
14855 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
14856 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
14857 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
14859 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
14861 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
14862 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
14863 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
14864 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
14865 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
14866 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
14867 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
14868 (grub_phys_addr_t): Moved from here ...
14869 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
14870 (grub_vtop): Moved from here ...
14871 * include/grub/mips/memory.h (grub_vtop): ... here.
14872 (grub_map_memory): Moved from here ...
14873 * include/grub/mips/memory.h (grub_map_memory): ... here.
14874 (grub_unmap_memory): Moved from here ...
14875 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
14876 (grub_machine_mmap_iterate): Moved from here ...
14877 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
14878 (grub_mmap_get_lower): Moved from here ...
14879 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
14880 (grub_mmap_get_upper): Moved from here ...
14881 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
14882 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
14884 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
14885 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
14887 * include/grub/mips/time.h (grub_get_rtc): ... here.
14888 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
14890 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
14891 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
14893 * include/grub/mips/time.h (grub_cpu_idle): ... here.
14894 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
14896 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
14897 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
14898 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
14899 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
14900 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14901 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14902 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
14903 (GRUB_MACHINE_LINK_ADDR): Likewise.
14904 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
14906 * util/grub-install.in: Run dvhtool on ARC.
14907 * util/grub-mkimage.c (image_targets): Add mips-arc.
14908 (generate_image): Handle ECOFF output for mips-arc.
14910 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14912 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
14915 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14917 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
14918 after enabling port.
14920 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14922 Skip incorrect USB devices.
14924 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
14926 * include/grub/usb.h (grub_usb_err_t): New enum value
14927 GRUB_USB_ERR_BADDEVICE.
14929 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14931 Fuloong video init support.
14933 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
14935 (grub_vga_read_arx): New function.
14936 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
14938 (framebuffer): New members io, mmioptr and mmiobase.
14939 (read_sis_cmd): New function.
14940 (write_sis_cmd): Likewise.
14941 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
14942 rather than 640x400.
14943 * grub-core/video/sis315_init.c: New file.
14945 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14947 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
14949 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
14950 to grub_dl_register_symbol.
14952 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14954 Fix compilation errors.
14956 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
14957 potentially unused.
14958 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
14959 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
14960 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
14961 to loongson machines.
14963 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14965 Several FS mtime support.
14967 * grub-core/fs/affs.c (grub_affs_time): New struct.
14968 (grub_affs_file): New field mtime.
14969 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
14970 type. Removed 'size'. New field 'di'. All users updated.
14971 (grub_affs_mount): Simplify checsum checking.
14972 (grub_affs_iterate_dir): New helper grub_affs_create_node.
14973 (grub_affs_dir): Handle mtime.
14974 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
14975 (grub_cpio_dir): Likewise.
14976 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
14977 (grub_hfs_filerec): New field mtime.
14978 (grub_hfs_dir): Handle mtime.
14979 (grub_hfs_mtime): New function.
14980 (grub_hfs_fs): Register grub_hfs_mtime.
14981 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
14982 (grub_iso9660_dir): New field mtime.
14983 (grub_fshelp_node): New field dirent.
14984 (iso9660_to_unixtime): New function.
14985 (iso9660_to_unixtime2): Likewise.
14986 (grub_iso9660_read_symlink): Use node->dirent.
14987 (grub_iso9660_iterate_dir): Likewise.
14988 (grub_iso9660_dir): Set mtime.
14989 (grub_iso9660_mtime): New function.
14990 (grub_iso9660_fs): Register grub_iso9660_mtime.
14991 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
14992 (grub_jfs_inode): New fields atime, ctime and mtime.
14993 (grub_jfs_dir): Set mtime.
14994 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14995 * grub-core/fs/ntfs.c (list_file): Set mtime.
14996 (grub_ntfs_dir): Likewise.
14997 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
14998 (grub_reiserfs_iterate_dir): Set mtime.
14999 (grub_reiserfs_dir): Likewise.
15000 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
15001 (grub_fshelp_node): Likewise.
15002 (grub_sfs_iterate_dir): Set mtime.
15003 (grub_sfs_dir): Likewise.
15004 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
15005 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
15006 (grub_xfs_inode): New fields atime, mtime, ctime.
15007 (grub_xfs_dir): Set mtime.
15008 * include/grub/datetime.h (grub_datetime2unixtime): New function.
15009 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
15010 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
15012 Support UDF symlinks.
15014 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
15015 (grub_ufs_read_symlink): New function. All users updated.
15017 Check amiga partmap checksum.
15019 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
15020 (grub_amiga_partition): Likewise.
15021 (amiga_partition_map_checksum): New function.
15022 (amiga_partition_map_iterate): Check checksum.
15024 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15028 * Makefile.util.def (libgrubmods.a): Add romfs.
15029 * grub-core/Makefile.core.def (romfs): New module.
15030 * grub-core/fs/romfs.c: New file.
15032 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15034 Squashfs v4 support.
15036 * Makefile.util.def (libgrubmods.a): Add squash4.
15037 * grub-core/Makefile.core.def (squash4): New module.
15038 * grub-core/fs/squash4.c: New file.
15039 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
15040 disk_input_start, disk_input.
15041 (get_byte): Handle disk_input.
15042 (grub_zlib_disk_read): New function.
15043 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
15045 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15046 2011-05-15 Feiran Zheng <famcool@gmail.com>
15048 * Makefile.util.def (libgrubmods.a): Add minix3.
15049 * grub-core/Makefile.core.def (minix3): New module.
15050 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
15051 (GRUB_MINIX_BSIZE): Removed.
15052 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
15053 (grub_minix_ino_t): New type.
15054 (grub_minix_le_to_cpu_ino): New macro.
15055 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
15056 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
15057 (grub_minix_data): New field block_size.
15058 (grub_minix_read_file): Handle 64-bit correctly.
15059 * grub-core/fs/minix3.c: New file.
15061 2011-05-15 Tristan Gingold <gingold@free.fr>
15062 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
15063 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15067 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
15068 * configure.ac: Add ia64-efi target.
15069 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
15070 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
15071 * gentpl.py: Add ia64_efi platform.
15072 Rename x86_efi to efi and Add ia64-efi. All users updated.
15073 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
15074 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
15075 Remove kern/generic/rtc_get_time_ms.c on EFI.
15076 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
15077 kern/ia64/dl_helper.c on ia64-efi.
15078 Add kern/emu/cache.c on emu.
15079 (linux): Use on loader/ia64/efi/linux.c on ia64.
15080 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
15081 whether symbol is a function.
15082 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
15083 (grub_symbol): New field 'isfunc'.
15084 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
15085 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
15086 (grub_dl_load_segments): Place all sections into the same region.
15087 [__ia64__]: Create trampolines and got.
15088 [GRUB_MACHINE_EMU]: Call mprotect.
15089 (grub_dl_resolve_symbols): Resolve symbol type as well.
15090 [__ia64__]: Create function descriptors.
15091 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
15092 (grub_rtc_get_time_ms): ... this. Expressions simplified.
15093 (grub_get_rtc): New function.
15094 * grub-core/kern/emu/cache.c [__ia64__]: New file.
15095 * grub-core/kern/emu/cache.S: Renamed to ...
15096 * grub-core/kern/emu/cache_s.S: ... this.
15097 [__ia64__]: Add a nop.
15098 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
15099 [__ia64__]: New function.
15100 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
15101 * grub-core/kern/ia64/dl.c: New file.
15102 * grub-core/kern/ia64/dl_helper.c: Likewise.
15103 * grub-core/kern/ia64/efi/init.c: New file.
15104 * grub-core/kern/ia64/efi/startup.S: Likewise.
15105 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
15106 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
15107 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
15108 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
15109 * grub-core/loader/ia64/efi/linux.c: New file.
15110 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
15111 (GRUB_MOD_DEP): Likewise.
15112 (grub_dl) [__ia64__]: New fields got and tramp.
15113 (grub_dl): New field 'base'.
15114 (grub_dl_register_symbol): New argument isfunc. All users updated.
15115 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
15116 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
15117 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
15118 (grub_ia64_dl_get_tramp_got_size): New proto.
15119 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
15120 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
15121 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
15122 * include/grub/efi/api.h: Skip call wrappers on ia64.
15123 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
15124 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
15125 * include/grub/elf.h (ELF_ST_INFO): New definition.
15126 * include/grub/ia64/efi/kernel.h: New file.
15127 * include/grub/ia64/efi/memory.h: Likewise.
15128 * include/grub/ia64/efi/time.h: Likewise.
15129 * include/grub/ia64/kernel.h: Likewise.
15130 * include/grub/ia64/setjmp.h: Likewise (from glibc).
15131 * include/grub/ia64/time.h: New file.
15132 * include/grub/ia64/types.h: Likewise.
15133 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
15134 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
15136 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
15137 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
15138 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
15139 * util/grub-mkimage.c (image_target_desc): New field pe_target.
15141 (EFI64_HEADER_SIZE): New definition. All users updated.
15142 (image_targets): Add ia64-efi.
15143 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
15144 jumpers_addr. All users updated.
15145 Create function descriptors.
15146 (count_funcs): New function.
15147 (unaligned_uint32): New struct.
15148 (MASK20): New definition.
15149 (MASK19): Likewise.
15150 (MASKF21): Likewise.
15151 (add_value_to_slot_20b): New function.
15152 (add_value_to_slot_21_real): Likewise.
15153 (add_value_to_slot_21): Likewise.
15154 (ia64_kernel_trampoline): New struct.
15155 (nopm): New variable.
15157 (make_trampoline): New function.
15158 (relocate_addresses): Handle ia64.
15159 (make_reloc_section): Likewise.
15160 (load_image): Likewise.
15162 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15164 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
15165 warning. Move variables before code while on it.
15167 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15171 * configure.ac: Rename yeeloong platform to loongson. All users updated.
15172 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
15173 * grub-core/boot/mips/loongson/fuloong.S: New file.
15174 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
15175 Explicitly init CS5536.
15176 [FULOONG]: Don't use serial until CS5536 is available.
15177 Set GPIO based on dumps.
15178 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
15179 [FULOONG]: Handle GPIO and memory controller differences.
15180 Parse machine type in $a2.
15181 * grub-core/boot/mips/startup_raw.S: Determine and save the
15183 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
15184 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
15185 init on architecture type.
15186 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
15187 SIS315E. Don't init at_keyboard on fuloong.
15188 (grub_halt): Support Fuloong.
15189 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
15190 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
15191 (loongson_machtypes): New array.
15192 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
15194 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
15195 config. All users updated. Handle CS5536 serial.
15196 * grub-core/term/serial.c (grub_serial_register): Conditionalise
15197 default port on machine type. Register serial as inactive.
15198 * grub-core/video/sis315pro.c: New file.
15199 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
15201 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
15202 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
15203 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
15204 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
15205 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
15206 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
15208 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
15209 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
15211 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
15212 (grub_arch_machine): New extern var.
15213 * include/grub/mips/loongson/serial.h
15214 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
15215 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
15216 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
15217 (GRUB_MACHINE_SERIAL_PORT0): ... this.
15218 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
15219 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
15220 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
15221 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
15222 * include/grub/term.h (grub_term_register_input_inactive): New inline
15224 (grub_term_register_output_inactive): Likewise.
15225 * include/grub/video.h (grub_video_driver_id): New value
15226 GRUB_VIDEO_DRIVER_SIS315PRO.
15227 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
15228 New field "names". All users updated.
15229 New field value IMAGE_FULOONG_FLASH.
15230 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
15232 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
15234 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
15235 and add some clarification.
15237 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15239 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
15240 platforms if kernel is compressed.
15242 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15244 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
15245 unused modules since currently referrence counter isn't reliable and
15246 there isn't much memory to recover there anyway.
15248 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15250 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
15251 rather than resetting it to allow modules to reference themselves
15254 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15256 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
15257 counter on dependencies since grub_dl_unref already handles this.
15259 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15261 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
15262 on error if not already done.
15264 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15266 Fix few potential memory misusage.
15268 * grub-core/font/font.c (load_font_index): Don't free char_index to
15270 (grub_font_load): Zero-fill font at alloc for safety.
15271 Close file on error.
15272 (free_font): Free bmp_idx.
15274 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15276 * docs/grub.texi (Installation): Fix several outdated claims.
15278 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15280 Handle module_license on windows.
15282 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
15284 (insert_string): Make argument const char * instead of char *.
15285 (write_section_data): Handle long section names.
15286 Handle module_license.
15288 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15290 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
15291 handle class-free menuentries.
15292 (grub_normal_add_menu_entry): Add a check to be sure.
15294 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15296 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
15299 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15301 * configure.ac: Bump version to 1.99.
15303 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15305 Give ATA device a bit more time on first try in order to allow disks
15308 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
15309 if dev->present is 1. Reset dev->present on failure.
15310 (grub_ata_device_initialize): Set dev->present to 1.
15311 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
15312 (grub_ata_device): New member 'present'.
15314 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15316 * util/grub-mkimage.c (generate_image): Update hash.
15318 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15320 Flush caches on DMA memory.
15322 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
15323 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
15324 (grub_dma_free): Likewise.
15325 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
15327 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15329 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
15330 to avoid asm treating ld and sd as macros.
15332 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15334 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
15337 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15339 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
15340 grub_decompress_core since later would fail if grub_decompress_core
15343 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15345 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
15346 R_MIPS_JALR since it's used by newer compiler.
15348 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
15350 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
15352 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15354 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
15355 file_path to 0 for surety.
15356 (grub_chainloader_boot): Set exit_data to NULL.
15357 Unset the loader once done.
15358 (grub_cmd_chainloader): Fix confusing error message if file is empty.
15360 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15362 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
15363 unknown key into a dprintf.
15365 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15367 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
15368 on first non-existant partition.
15370 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15372 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
15374 Reported by: Mark Korenberg.
15376 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15378 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
15381 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15383 * util/grub-mkimage.c (main): Explicitely flush and sync the output
15384 before closing to ensure that it will be readable by grub-setup.
15386 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15388 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
15389 (devpath_1): Use MAKE_PIWG_PATH.
15390 (devpath_2): Likewise.
15391 (devpath_3): Likewise.
15392 (devpath_4): Likewise.
15393 (devpath_5): Likewise.
15394 (devpath_6): Likewise.
15396 The appleldr.mod was checked that to be binary identical to previous
15399 2011-05-05 Zach <mikezackles>
15401 Support 2010 Macbooks.
15403 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
15404 (devs): Add devpath_6.
15406 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15408 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
15409 /dev/random. /dev/urandom is good enough for our purposes (salting).
15411 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15413 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
15415 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15417 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
15420 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15422 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
15423 and not 0 on failure.
15425 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
15427 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
15428 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
15429 disk; otherwise grub_fs_probe will not fall back to the next
15431 (grub_pxefs_open): Likewise, for consistency.
15432 Reported and tested by: Ezekiel Grave.
15434 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
15436 * tests/partmap_test.in: Don't hardcode path to parted.
15437 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
15439 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
15441 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
15442 of `ls' to find out which devices are available.
15444 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15446 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
15447 than source address for efi mmap buffer.
15449 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15451 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
15452 wrong action on non-detecting the magic.
15454 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15456 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
15457 already supplied by another part of the module (fixes compilation on
15460 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15462 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
15463 match the one used by mdadm.
15465 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
15467 * po/README: Add instructions for creating po/LINGUAS.
15469 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
15471 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
15474 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
15475 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
15476 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
15477 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
15478 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
15479 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
15480 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
15481 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
15482 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
15483 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
15484 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
15485 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
15486 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
15487 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
15488 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
15489 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
15490 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
15491 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
15492 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
15493 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
15494 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
15495 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
15497 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
15499 * grub-core/kern/emu/getroot.c
15500 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
15501 test that was incorrectly reintroduced in r3214.
15502 Reported by: Ian Dall. Fixes Savannah bug #33133.
15504 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
15506 Fix stack pointer handling in 16-bit relocator.
15508 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
15509 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
15510 Fixes Ubuntu bug #683904.
15512 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
15514 * configure.ac: Bump version to 1.99~rc2.
15516 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
15518 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
15519 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
15520 * grub-core/lib/x86_64/setjmp.S: Likewise.
15521 * grub-core/lib/mips/setjmp.S: Likewise.
15522 * grub-core/lib/powerpc/setjmp.S: Likewise.
15523 * grub-core/lib/sparc64/setjmp.S: Likewise.
15525 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
15527 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
15528 * grub-core/lib/efi/datetime.c: Likewise.
15530 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
15532 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
15534 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
15535 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
15536 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
15538 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
15540 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
15542 (grub_gfxterm_term_init): Likewise.
15544 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
15546 Take into account the decorations the computing menu entry width.
15548 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
15549 (grub_gfxmenu_create_box): Register get_border_width.
15550 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
15552 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
15555 2011-04-18 Endres Puschner <code@e7p.de>
15557 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
15558 Don't skip first class.
15560 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15562 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
15564 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
15566 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15568 Complete 64-bit division support.
15570 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
15571 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
15572 * include/grub/misc.h (grub_divmod64): Rename to ...
15573 (grub_divmod64_full): ... this.
15574 (grub_divmod64): New inline function.
15576 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15578 * util/grub-mkimage.c (generate_image): Add forgotten comma.
15580 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15582 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
15583 performing the necessary test.
15585 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
15587 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
15588 (kfreebsd.elf): Likewise.
15589 (pc-chainloader.elf): Likewise.
15590 (ntldr.elf): Likewise.
15592 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
15594 Identify RAID by its UUID rather than (guessed) name.
15596 * grub-core/disk/raid.c (ascii2hex): New function.
15597 (grub_raid_open): Accept mduuid/%s specification.
15598 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
15599 (get_mdadm_uuid): ... this.
15600 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
15602 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
15604 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
15607 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
15609 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
15611 * util/grub.d/20_linux_xen.in: Likewise.
15613 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
15615 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
15616 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
15618 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
15619 Build a list of relevant visible mounts using the mnt_id and
15620 parent_mnt_id fields, and then scan that list at the end.
15622 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15624 * docs/grub.texi (normal): New section.
15625 (normal_exit): New section.
15626 (Embedded configuration): Add reference to normal.
15627 (GRUB only offers a rescue shell): Likewise.
15628 * docs/grub-dev.texi (Error Handling): Fix typo.
15630 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15632 * NEWS: Drop obsolete entry about probe-only btrfs support.
15634 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15636 * util/import_gcry.py: Fix typo.
15638 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15640 * NEWS: Add btrfs support.
15642 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15643 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
15645 BtrFS support. Written by me (Vladimir) with important bugfixes and
15646 even more important testing by Colin.
15648 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
15649 * grub-core/Makefile.core.def (btrfs): Add crc.c.
15650 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
15651 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
15652 mem_input_off and mem_input. All users updated to accept in-RAM input.
15653 (gzio_seek): New function.
15654 (test_zlib_header): Likewise.
15655 (grub_gzio_read): Likewise.
15656 (grub_zlib_decompress): Likewise.
15657 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
15658 Accept partial and non-virtual mounts.
15659 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
15660 avoid receiving /dev/dm-X as device.
15661 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
15662 Handle bind and partial mounts.
15663 * grub-core/lib/crc.c: New file.
15664 * include/grub/deflate.h: Likewise.
15665 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
15667 * include/grub/lib/crc.h: New file.
15669 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15671 Implement automatic module license checking according to new GNU
15674 * grub-core/kern/dl.c (grub_dl_check_license): New function.
15675 (grub_dl_load_core): Use grub_dl_check_license.
15676 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
15677 (GRUB_MOD_LICENSE): Likewise.
15678 (GRUB_MOD_DUAL_LICENSE): Likewise.
15679 All modules updated.
15681 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
15683 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
15684 reserved_first_sector to 1. btrfs reserves plenty of space for boot
15686 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
15688 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15690 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
15692 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15694 * util/grub-fstest.c (read_file): Report GRUB error if file opening
15697 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15699 * grub-core/kern/file.c (grub_file_open): Don't take into account the
15700 parenthesis in the middle of the filename.
15702 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15704 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
15705 rather than trying to put initrd way too high.
15706 Reported by: Ryan Lortie <desrt@desrt.ca>
15708 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15710 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
15711 improperly removed string.
15713 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15715 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
15717 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
15718 (open_device) Likewise.
15719 (grub_util_biosdisk_close): Likewise.
15720 Reported by: Mark Korenberg.
15722 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
15724 * util/grub-mkconfig_lib.in: Add missing quotes.
15726 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
15728 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
15731 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15733 Dynamically count the number of lines for the lower banner.
15735 * grub-core/normal/menu_entry.c (per_term_screen): New member
15737 (print_down): Use num_entries.
15738 (update_screen): Likewise.
15739 (grub_menu_entry_run): Set num_entries.
15740 * grub-core/normal/menu_text.c (menu_viewer_data): New member
15742 (grub_print_message_indented): Move real part to ...
15743 (grub_print_message_indented_real): ... here. Additional argument
15745 (draw_border): Additional argument num_entries.
15746 (print_message): Additional argument dry_run.
15747 (print_entries): Receive menu viewer data.
15748 (grub_menu_init_page): New argment num_entries.
15749 (menu_text_set_chosen_entry): Use num_entries.
15750 (grub_menu_try_text): Likewise.
15751 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
15753 (grub_ucs4_count_lines): New function.
15754 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
15755 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
15756 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
15757 (grub_term_border_height): Likewise.
15758 (grub_term_num_entries): Likewise.
15760 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15762 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
15763 Remove now unused string.
15765 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
15767 * docs/grub-dev.texi (Finding your way around): Update for 1.99
15769 (Getting started): GRUB is developed in Bazaar now, not Subversion.
15771 (Comment): Fix typo.
15772 (Getting started): General copy-editing.
15773 (Typical Development Experience): Likewise.
15774 (Error Handling): Likewise.
15775 (Video API): Likewise.
15777 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
15779 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
15782 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15784 * util/grub-mkimage.c (main): Handle special naming of yeeloong
15787 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
15789 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
15790 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
15793 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15795 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
15796 grub_strcpy since the lines aren't necessarily 0-terminated.
15798 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15800 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
15803 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15805 * grub-core/commands/probe.c (options): Argument to set isn't optional.
15806 (GRUB_MOD_INIT): DEVICE isn't optional.
15808 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15810 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
15811 word on new line if it's too long anyway. Fixes a hang.
15813 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15815 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
15817 * util/grub-setup.c (main): Reuse md device name if available.
15818 * util/raid.c (grub_util_raid_getmembers): Receive device name and
15819 not GRUB name as argument.
15820 Based on patch by: Florian Wagner <fwagner>.
15822 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15824 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15825 Place mbi on low memory for better compatibility.
15827 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15829 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
15831 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15832 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
15834 * autogen.sh: Ensure that collate and ctype locale is C.
15835 * conf/Makefile.common: Likewise.
15837 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15839 * grub-core/normal/menu.c: Add missing include.
15841 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15843 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
15845 2011-04-08 Martin Zuther <mzuther@mzuther.de>
15847 * util/grub-mkconfig.in: Ignore emacsen backup.
15849 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15851 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
15853 (grub_util_biosdisk_close): Likewise.
15855 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15857 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
15858 const attribute and use grub_isdigit.
15860 2011-04-06 Andrey <dev_null@ukr.net>
15862 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
15865 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15867 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
15868 useful grub_dprintf's.
15870 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15872 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
15874 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15876 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
15878 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15880 Output errors if theme loading failed.
15882 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
15883 grub_gfxterm_fullscreen on error paths to ...
15884 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
15885 theme loading error.
15887 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15889 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
15890 space for older compilers.
15891 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15893 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15895 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
15896 and report them as not RAID members since they are useless for GRUB.
15897 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15899 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15901 Increase LVM implementation robustness in order not to crash on
15902 configurations like pvmove. Previously code assumed that in some places
15903 only lvs or only pvs are used whereas it seems that they are used
15906 * grub-core/disk/lvm.c (read_node): New function.
15907 (read_lv): Use read_node.
15908 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
15909 Match volumes only at the end when all lvs are found. Take both
15910 pvs (first) and lvs (second) into account.
15911 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
15912 mirror_* into node_*. All users updated.
15913 (grub_lvm_stripe): Merge this ...
15914 (grub_lvm_mirror): ... and this ...
15915 (grub_lvm_node): ... into this. All users updated.
15917 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15919 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
15920 of function to allow further scanning for LVMs.
15922 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15924 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
15925 on failed seek as it breaks open fd reusage.
15927 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15929 * util/grub-install.in: Add a recommendation to use --recheck before
15932 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15934 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
15937 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15939 GRUB developper manual based on existing Internals section and
15940 contributions by the various authors with active copyright assignment.
15942 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
15943 * docs/font_char_metrics.png: New file.
15944 * docs/font_char_metrics.txt: Likewise.
15945 * docs/grub-dev.texi: Likewise.
15946 * docs/grub.texi (Internals): Move from here ...
15947 * docs/grub-dev.texi: ... here.
15949 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15951 Store the loopback device as data on loopback grub_disk structures,
15952 rather than the file it points to. This fixes use of freed memory
15953 if an existing loopback device is replaced.
15955 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
15956 disk->data, not dev->file.
15957 (grub_loopback_read): Adjust file assignment to match.
15958 Fixes Ubuntu bug #742967.
15960 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15962 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
15963 when replacing an existing device.
15965 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
15967 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
15968 memory corruptions.
15970 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
15972 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
15973 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
15974 (grub_jfs_read_inode): Likewise.
15975 (grub_jfs_opendir): Likewise. Remove now useless casts.
15976 (grub_jfs_getent): Likewise.
15977 Make ino a grub_uint32_t rather than int.
15978 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
15979 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
15980 division and module with bit operations.
15981 (grub_jfs_find_file): Make ino a grub_uint32_t.
15982 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
15984 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15986 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
15987 warning. (This was in fact always initialised before use, but GCC
15988 wasn't smart enough to prove that.)
15989 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
15991 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15993 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
15995 (efi_wrap_1): Likewise.
15996 (efi_wrap_2): Likewise.
15997 (efi_wrap_3): Likewise.
15998 (efi_wrap_4): Likewise.
15999 (efi_wrap_5): Likewise.
16000 (efi_wrap_6): Likewise.
16001 (efi_wrap_10): Likewise.
16002 Based on information by: Red Hat/Peter Jones.
16004 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
16006 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
16007 set-but-not-used variable.
16009 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
16011 * docs/grub.texi (Simple configuration): Be more explicit about
16012 GRUB_DEFAULT, and add an example.
16013 Reported by: Leslie Rhorer.
16015 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16017 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
16020 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
16022 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
16023 * util/grub.d/20_linux_xen.in: Likewise.
16025 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16027 * util/grub.d/10_linux.in: Try alternative config filenames where
16028 we parse config file.
16029 * util/grub.d/20_linux_xen.in: Likewise.
16031 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
16033 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
16034 * util/grub.d/20_linux_xen.in: Likewise.
16036 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16038 * grub-core/disk/raid.c (insert_array): Add few potentially
16039 useful grub_util_info.
16040 (grub_raid_register): Likewise.
16042 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16044 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
16045 Preserve partition number in mdadm code path.
16047 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16049 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
16050 few potentially useful grub_util_info.
16052 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16054 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
16056 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16058 * docs/grub.texi (default): Use @example rather than nested
16059 itemized lists to avoid breaking gendocs.
16061 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16063 * docs/grub.texi (Future): Update.
16065 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16067 * docs/grub.texi (Environment): New chapter.
16068 (Changes from GRUB Legacy): Link to "Environment block" section for
16069 details of limitations.
16070 (Simple configuration): Likewise. Link to documentation of gfxmode
16071 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
16073 (Shell-like scripting): Note that normal variables are stored in the
16075 (gettext): Link to documentation of lang and locale_dir.
16076 (list_env): New section.
16077 (load_env): New section.
16078 (save_env): New section.
16080 (Reporting bugs): Fix typo.
16082 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16084 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
16087 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16089 * grub-core/term/at_keyboard.c (set_scancodes)
16090 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
16092 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16094 * docs/grub.texi (Menu-specific commands): Remove some semantics
16095 that were true in GRUB Legacy but not in GRUB 2.
16096 (submenu): New section.
16097 (false): New section.
16098 (read): New section.
16099 (true): New section.
16101 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16103 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
16105 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16107 * docs/grub.texi (Simple configuration): Explain some of the
16108 current limitations of grub-mkconfig.
16109 Reported by: Leslie Rhorer.
16111 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16113 Old macs search for boot.efi rather than for bootia32.efi.
16115 * util/grub-install.in: Copy bootia32.efi to boot.efi.
16116 * util/grub-mkrescue.in: Likewise.
16117 Suggested by: Peter Jones.
16119 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16121 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
16123 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16125 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
16126 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
16127 (grub_lvm_mirror): New struct.
16128 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
16129 (grub_lvm_iterate): Iterate only visible volumes.
16130 (grub_lvm_read): Factor out to ..
16131 (read_lv): ... this. Support mirrors.
16132 (grub_lvm_read): New wrapper function.
16133 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
16134 stripped or mirrored.
16136 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16138 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
16140 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
16142 * docs/grub.texi (loopback): New section.
16144 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
16146 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
16149 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
16151 * docs/grub.texi (BIOS installation): New section, partly based on
16152 previous text in other sections.
16153 (Installing GRUB using grub-install): Replace BIOS discussion with a
16155 (Images): Likewise.
16157 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16159 * grub-core/kern/emu/hostdisk.c (find_partition_start)
16160 [HAVE_DIOCGDINFO]: Add safety checks.
16162 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16164 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
16165 per default compiled in kernel and prior to 8.0 isn't shipped at all.
16167 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
16169 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
16170 real_sb->size is zero (e.g. RAID-0), get the disk size from
16171 real_sb->data_size instead.
16172 Fixes Ubuntu bug #743136.
16174 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16176 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
16177 printf clauses for printing size and start.
16179 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16181 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
16182 Reported and tested by: Timothy Nikkel.
16184 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16186 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
16187 (dirty_region_add_real): ... this.
16188 (dirty_region_add): Don't discard margin refresh when performing
16191 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16193 * grub-core/lib/relocator.c (allocate_regstart)
16194 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
16195 terminals are capabple of malloc-free operation.
16196 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
16197 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
16199 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
16201 * util/grub-setup.c: Copy the partition table zone if floppy support
16202 is disabled, even if no partition table is found.
16204 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
16205 during POST if an invalid partition table is contained in the PBR
16206 of the active partition when GRUB is installed to a partition.
16208 2011-03-28 Colin Watson <cjwatson@debian.org>
16210 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
16213 2011-03-28 Colin Watson <cjwatson@debian.org>
16215 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
16216 to be specific about what kind of RAID device we're scanning for.
16218 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
16220 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
16221 return freed string.
16223 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16225 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
16227 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16229 Use libgeom on FreeBSD to detect partitions.
16231 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
16232 (grub-mkrelpath): Likewise.
16233 (grub-script-check): Likewise.
16234 (grub-editenv): Likewise.
16235 (grub-mkpasswd-pbkdf2): Likewise.
16236 (grub-fstest): Likewise.
16237 (grub-mkfont): Likewise.
16238 (grub-mkdevicemap): Likewise.
16239 (grub-probe): Likewise.
16240 (grub-setup): Likewise.
16241 (grub-ofpathname): Likewise.
16242 (grub-mklayout): Likewise.
16243 (example_unit_test): Likewise.
16244 (grub-menulst2cfg): Likewise.
16245 * grub-core/Makefile.core.def (grub-emu): Likewise.
16246 (grub-emu-lite): Likewise.
16247 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
16248 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
16249 define HAVE_DIOCGDINFO.
16250 (follow_geom_up) [FreeBSD]: New function.
16251 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
16252 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
16253 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
16254 unconditionally of HAVE_DIOCGDINFO.
16256 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16258 Fix FreeBSD compilation problem.
16260 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
16261 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
16263 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
16265 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
16266 Switch back to page zero before loading a kernel, since some kernel
16267 drivers expect that.
16268 Thanks to: Felix Kuehling.
16270 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16272 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
16273 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
16274 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
16276 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16278 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
16279 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
16281 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16283 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
16284 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
16285 malloc is disabled.
16287 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16289 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
16290 for modules headers when counting the needed allocation size.
16292 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16294 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
16295 if no ASCII character is found to prevent crash.
16297 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
16299 * grub-core/video/bitmap.c (match_extension): Ignore case.
16301 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16303 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
16305 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16307 * grub-core/script/parser.y: Declare "time" as valid argument.
16309 2011-03-23 Peter Jones <pjones@redhat.com>
16311 Fix incorrect assert failure reporting.
16313 * grub-core/tests/example_functional_test.c (example_test): Add
16315 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
16316 (failure_start): ...this. Check that malloc succeeded.
16317 Don't call xvasprintf. Return failure struct.
16318 (failure_append_vtext): New function.
16319 (failure_append_text): Likewise.
16320 (add_failure): Likewise.
16321 (grub_test_assert_helper): Likewise.
16322 * include/grub/test.h (grub_test_assert_helper): New declaration.
16323 (grub_test_assert): Macro rewritten.
16325 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16327 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
16329 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16331 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
16333 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16335 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
16336 into GRUB-style one.
16338 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16340 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
16341 error and not grub_errno.
16342 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
16344 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16346 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
16347 GRUB_USB_SPEED_NONE in case of failure and not the error code.
16349 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16351 * grub-core/efiemu/i386/pc/cfgtables.c
16352 (grub_machine_efiemu_init_tables): Make declaration a prototype.
16353 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
16354 (grub_xnu_unlock): Likewise.
16355 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
16357 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16359 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
16360 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
16361 * grub-core/commands/hashsum.c (aliases): Likewise.
16362 * grub-core/commands/setpci.c (pci_registers): Likewise.
16363 * grub-core/disk/usbms.c (attach_hook): Likewise.
16364 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
16365 (zio_checksum_table): Likewise.
16366 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
16367 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
16368 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
16369 * grub-core/lib/relocator.c (leftovers): Likewise.
16370 (extra_blocks): Likewise.
16371 * grub-core/loader/i386/bsd.c (relocator): Likewise.
16372 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
16373 (modules_last): Likewise.
16374 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
16375 (devices): Likewise.
16376 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
16377 (modules_last): Likewise.
16378 * grub-core/normal/auth.c (users): Likewise.
16379 * grub-core/normal/context.c (initial_menu): Likewise.
16380 (current_menu): Likewise.
16381 * grub-core/normal/crypto.c (crypto_specs): Likewise.
16382 * grub-core/term/serial.c (grub_serial_ports): Likewise.
16383 (grub_serial_terminfo_input_template): Likewise.
16384 (grub_serial_terminfo_output_template): Likewise.
16385 (grub_serial_terminfo_input): Likewise.
16386 (grub_serial_terminfo_output): Likewise.
16387 (registered): Likewise.
16388 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
16390 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16392 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
16393 grub_video_mode_type_t.
16394 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
16395 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
16396 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
16398 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16400 * util/grub-install.in: Correct the x86-64 name as x86_64.
16402 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
16404 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
16405 initial chunk read from the kernel always includes GRUB's multiboot
16406 header, which is now outside the first sector.
16408 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
16410 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
16411 cached mmap_size, so that this works correctly when called multiple
16413 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
16415 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
16417 * docs/grub.texi (Simple configuration): Tidy up formatting.
16419 2011-03-07 Szymon Janc <szymon@janc.net.pl>
16421 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
16422 Set-but-not-used variable removed.
16424 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
16426 Workaround yet another IEEE1275 bug.
16428 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
16429 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
16430 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
16431 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
16433 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16434 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
16436 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
16438 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
16441 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
16443 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
16444 empty, since in that case we can only generate either nothing or a
16445 syntactically invalid configuration file.
16446 Reported by: Michal Suchanek. Fixes Debian bug #612898.
16448 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
16450 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
16451 (Making a GRUB bootable CD-ROM): Likewise.
16452 (Invoking grub-mkrescue): New section.
16453 Reported by: Yann Dirson. Fixes Debian bug #612585.
16455 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
16457 * util/grub-install.in: Remove unnecessary brackets from tr
16459 * util/grub.d/10_hurd.in: Likewise.
16460 * util/grub.d/10_kfreebsd.in: Likewise.
16461 * util/grub.d/10_linux.in: Likewise.
16462 * util/grub.d/20_linux_xen.in: Likewise.
16463 Reported by: Jamie Heilman. Fixes Debian bug #612564.
16465 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
16467 * include/grub/file.h (not_easly_seekable): Rename to ...
16468 (not_easily_seekable): ... this. Update all users.
16470 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
16472 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
16475 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
16477 * util/grub-mkimage.c (generate_image): Refuse to create the images
16478 bigger than the actual flash (512K) in Loongson machines. 512K is also
16479 the biggest chip supported by them.
16481 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16483 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
16485 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
16487 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
16488 super_offset field.
16490 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16492 * util/grub-install.in: Ignore install device on platforms
16493 where it doesn't make sense. Always use UUIDs except on pc, efi and
16495 Reported by: Daniel Kahn Gillmor.
16497 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16499 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
16501 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16503 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
16504 (iterate_real): Don't rely on partition being non-NULL.
16506 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16508 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
16509 supported platforms. Put a compile time assert for this rather than
16510 generate a warning with 32-bit shift.
16512 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16514 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
16515 logical expression more readable.
16517 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16519 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
16520 even if some elements have a name.
16521 Reported by: Alexander GQ Gerasiov.
16523 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
16525 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
16526 path unreadable if `grub-probe -t abstraction' fails, for example if
16527 memberlist fails on an LVM volume group.
16528 Reported by: Darius Jahandarie.
16530 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
16532 * docs/grub.texi (Simple configuration): Document
16533 GRUB_PRELOAD_MODULES.
16535 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
16537 * .bzrignore: Remove nonexistent grub-pbkdf2.
16539 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
16541 * configure.ac: Bump version to 1.99~rc1.
16543 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16545 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
16548 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
16550 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
16553 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
16555 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
16557 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16559 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
16562 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16564 Fix compilation on cygwin.
16566 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
16567 -R .drectve on cygwin.
16568 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
16569 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
16570 (COND_CYGWIN): New condition.
16571 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
16572 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
16573 not @TARGET_OBJ2ELF@.
16574 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
16575 type to determine whether aux is to be used.
16577 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16579 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
16580 realpath'ed device string.
16581 Handle floppy (somewhat).
16582 Issue error in unknown case rather than garbage.
16583 Reported by: Axel Beckert.
16585 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16587 * util/grub.d/00_header.in (load_video): Handle the case when no video
16589 Thanks to: Axel Beckert.
16591 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16593 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
16594 variable. Fixes problem on big endian platforms.
16596 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16598 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
16599 It doesn't work well there.
16601 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16603 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
16605 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
16606 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
16609 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16611 Use alias->path rather than buggy "canon".
16613 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
16614 (ofdisk_hash_add): New argument curcan. All users updated.
16616 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
16618 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
16620 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16622 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
16623 loadmask before doing any calculations. Use correct type for offset.
16624 (grub_linux_load64): Likewise.
16626 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
16628 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
16630 (console_grub_equivalences_unshift): Likewise.
16631 Reported by: Daniel Dehennin.
16633 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16635 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
16636 (set_env_limn_ro): Likewise.
16637 (GRUB_MOD_INIT): Likewise.
16638 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
16639 ARRAY_SIZE while on it.
16640 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
16641 * grub-core/normal/context.c (grub_env_export): Move from here ...
16642 * grub-core/kern/env.c (grub_env_export): ... here.
16643 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
16645 * grub-core/kern/main.c (grub_main): Export root and prefix.
16646 * include/grub/env.h (grub_env_export): Export.
16647 Reported by: Seth Goldberg.
16649 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16651 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16652 Take into account space used by ELF sections and multiboot palette.
16653 Reported by: Grégoire Sutre.
16655 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16659 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16661 Pass more appropriate video id to Linux.
16663 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
16664 grub_video_get_driver_id and variable gfxpayloadforcelfb to
16666 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
16667 shift params->lfb_size.
16668 * include/grub/i386/linux.h: Make an enume out of have_vga values.
16670 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16672 * util/grub-menulst2cfg.c: Add missing include of misc.h.
16674 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16676 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
16677 separator and pass bootpath/devid even if only one of them is available.
16678 Reported by: Seth Goldberg.
16680 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16682 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
16683 implementations bug on them.
16685 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
16687 (filter_memory_map): Likewise.
16689 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16691 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
16692 Reported by: nebuchadnezzar.
16694 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16696 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
16697 Reported by: nebuchadnezzar.
16699 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16701 Submenu default support.
16703 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
16704 auto_boot. All users updated.
16706 Handle chosen and default with submenus.
16707 (grub_menu_execute_with_fallback): Declared static.
16708 Don't notify failure if autobooted. Upper level does it.
16709 (menuentry_eq): New function.
16710 (get_entry_number): Use menuentry_eq.
16711 (show_menu): New parameter "autobooted". All users updated.
16712 (grub_show_menu): Likewise.
16713 * include/grub/normal.h (grub_show_menu): Likewise.
16714 * include/grub/menu.h (grub_menu_execute_entry): Removed.
16715 (grub_menu_execute_with_fallback): Likewise.
16717 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16719 * util/grub-mklayout.c (usage): Update help text.
16721 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16723 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
16725 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16727 * util/grub-menulst2cfg.c (main): Trim the line.
16729 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16731 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
16732 (grub_machine_init): Don't check amount of low memory as reportedly
16733 INT 12h can be broken and if low memory is too low we wouldn't have
16734 gotten into grub_machine_init anyway.
16736 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16738 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
16739 (grub_machine_mmap_iterate): Take low memory into account
16741 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16743 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
16745 Reported by: TiCPU.
16747 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16749 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
16752 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
16754 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
16755 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
16757 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
16759 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
16760 openbsd and netbsd types being in part_bsd module.
16762 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16764 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
16765 (_FILE_OFFSET_BITS): Likewise.
16766 Reported by: Seth Goldberg.
16768 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16770 * configure.ac: Check for libdevmapper header.
16772 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16774 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
16776 (fzap_lookup): Likewise.
16777 (dnode_get): Likewise.
16778 (make_mdn): Likewise.
16779 (zfs_mount): Likewise.
16780 (fzap_iterate): Use temporary pointer to avoid aliasing.
16781 (grub_zfs_read): Likewise.
16782 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
16783 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
16784 pointers to avoid aliasing.
16785 (grub_cmd_xnu_kernel64): Likewise.
16786 (grub_xnu_load_driver): Likewise.
16788 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16790 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
16792 (grub_cmd_terminal_output): Likewise.
16793 Reported and tested by: Grégoire Sutre.
16795 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16797 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
16799 Reported and tested by: Grégoire Sutre.
16801 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16803 * configure.ac: Do CPU substitution even if it's specified explicitly.
16804 Reported and tested by: Alain Greppin.
16806 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16808 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
16809 Reported and tested by: Alain Greppin.
16811 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16813 Satisfy some bison versions need for inttypes.h.
16815 * grub-core/lib/posix_wrap/inttypes.h: New file.
16816 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
16817 (int16_t): Likewise.
16818 (int32_t): Likewise.
16819 (int64_t): Likewise.
16820 Reported and tested by: Alain Greppin.
16822 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16824 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
16825 Silence spurious warning.
16826 Reported and tested by: Alain Greppin.
16828 2011-01-07 Szymon Janc <szymon@janc.net.pl>
16830 * docs/grub.texi (Support automatic decompression): Update with xz
16831 decompression support.
16833 2011-01-07 Szymon Janc <szymon@janc.net.pl>
16835 Improve loaders' kernel command line handling.
16837 * grub-core/lib/cmdline.c: New file.
16838 * include/grub/lib/cmdline.h: Likewise.
16839 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
16840 grub_create_loader_cmdline to create kernel command line.
16841 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
16842 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
16843 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
16844 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
16845 (linux): Add lib/cmdline.c on common.
16847 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16849 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
16850 inopos might be unaligned.
16852 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16854 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
16855 endian transformations.
16856 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16857 Based on report by: Doug Nazar.
16859 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
16861 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
16862 array->members[i].start_sector.
16863 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
16865 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16867 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
16868 Reported and tested by: Grégoire Sutre.
16870 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
16872 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
16873 avoid causing test failures by clearing the screen.
16875 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
16877 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16878 Fix prefix check to handle the case where dir ends with a slash
16879 (most significantly, "/" itself).
16880 Reported by: Michael Vogt.
16882 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16884 Run terminfo_cls on initing terminfo output to clear the screen and
16885 move the cursor to (0,0).
16887 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
16888 Call grub_terminfo_output_init.
16889 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
16890 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
16891 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
16893 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16895 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
16898 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16900 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
16903 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16905 The E820 type 5 is BADRAM, not EXEC_CODE.
16907 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
16908 (GRUB_E820_BADRAM): New define.
16909 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
16910 into reserved. Propagate BADRAM.
16911 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
16912 (GRUB_E820_BADRAM): New define.
16914 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16916 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
16917 Ignore the memory post-4G.
16918 (grub_relocator_firmware_alloc_region): Additional debug statement.
16920 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16922 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
16924 Reported by: David Pravec.
16926 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16928 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
16931 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16933 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
16935 (grub_reed_solomon_recover): Likewise.
16937 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16939 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
16941 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16943 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
16946 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
16948 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
16949 descriptions of extract_legacy_entries_source and
16950 extract_legacy_entries_configfile.
16951 Reported by: Seung Soo, Ha.
16953 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
16955 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
16956 on devices that do not implement function 0.
16958 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
16960 * grub-core/fs/hfsplus.c: Make parent unsigned.
16961 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
16963 (grub_hfsplus_cmp_extkey): Likewise
16965 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
16967 * util/grub-install.in: Correctly use bootloader_id and not
16968 GRUB_DISTRIBUTOR on efibootmgr line.
16970 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
16972 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
16974 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
16976 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
16977 Xen and reorder menu item wording to make it clearer that this entry
16978 will launch Xen. Print separate messages when loading Xen and
16981 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16983 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
16984 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
16985 loop in case of incorrect amiga partmap.
16987 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16989 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
16990 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
16993 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16995 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
16997 Reported by: crocket
16999 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17001 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
17003 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
17005 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17007 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
17009 (grub_cmd_xnu_kextdir): Likewise.
17010 (grub_cmd_xnu_splash): Likewise.
17012 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17014 Avoid using Reed-Solomon with 0 redundancy.
17016 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
17017 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
17019 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
17020 (grub_reed_solomon_recover): Likewise.
17022 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17024 Don't use disk subsystem in freebsd_boot.
17026 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
17027 (freebsd_biosdev): Likewise.
17028 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
17029 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
17031 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
17033 Handling of files of unknown size is currently limited. They can't be
17034 used e.g. for initrd or modules. Moreover gzip handling of not
17035 easily seekable files is buggy. Disable unknown file size for now. May
17036 be inefficient but works.
17038 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
17039 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
17041 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
17043 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
17046 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
17048 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
17050 2010-12-25 Shea Levy <shlevy>
17052 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
17054 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17056 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
17057 Windows Server 2008.
17058 Reported by: Devin Giddings.
17060 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17062 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
17063 writing an error message because of async power management.
17064 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
17065 (grub_reboot): Likewise.
17067 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
17069 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
17070 keep unit tests from failing when they shouldn't.
17072 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
17074 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
17075 previous patch increased the size of the RS code by 20 bytes (at
17076 least with gcc-4.4), so increase this by 20 bytes to match.
17077 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17079 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
17081 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
17082 scratch area. Make sure to initialise chosen in standalone mode as
17083 well as non-standalone.
17084 Reported by: Robert Hooker and Andy Whitcroft.
17085 Tested by: Andy Whitcroft.
17087 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
17089 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
17090 constructing a new unescaped string and passing it to grub_xputs in
17091 one go, rather than passing characters to grub_printf one at a time.
17093 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
17095 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
17096 initialising utf16.
17098 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
17100 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
17101 comment. Add an extra layer of quotation, requiring the output of
17102 this function to be used in a printf format string.
17103 (gettext_printf): New function.
17104 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
17105 Extract translatable strings from here-documents and use a temporary
17106 variable instead, so that xgettext can find them.
17107 * util/grub.d/10_kfreebsd.in: Likewise.
17108 * util/grub.d/10_linux.in: Likewise.
17109 * util/grub.d/20_linux_xen.in: Likewise.
17111 * po/grub.d.sed: New file.
17112 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
17113 arguments. Set c-format flags on all strings extracted from
17114 util/grub.d/ (xgettext refuses to include these itself for strings
17115 it extracted from a shell file, but these really are c-format).
17117 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
17119 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
17120 Avoid next pointing to nowhere.
17122 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
17124 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
17125 rather than assuming than rootblock is exactly in the middle.
17126 (grub_affs_label): Likewise.
17128 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
17130 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
17131 reserved_first_sector to 0.
17132 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
17133 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
17134 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
17136 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
17138 Fix handling of UTF-16 UDF labels.
17140 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
17141 (read_string): .. here.
17142 (grub_udf_label): Use read_string.
17144 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
17146 * grub-core/normal/menu_entry.c (run): Execute commands from menu
17147 editor under argument scope.
17148 Reported by: Jordan Uggla
17150 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
17152 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
17154 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
17156 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
17157 line, and other keys scroll an entire page (previous handling was
17158 for \r and \n to scroll a page and other keys to scroll two lines).
17160 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
17162 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17163 Set ptrdest to correct get_physical_target_address rather than
17164 incorrect get_virtual_current_address.
17166 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
17168 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
17169 correct cat to grub_uint8_t * rather than grub_uint32_t *.
17171 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
17173 * .bzrignore: Ignore grub-core/rs_decoder.S.
17175 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
17177 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
17178 .mo/.mo.gz opening sequence to ...
17179 (grub_mofile_open_lang): ... here.
17180 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
17181 * util/grub.d/00_header.in (grub_lang): Include country part of
17183 Reported by: Mario Limonciello.
17185 2010-12-09 Robert Millan <rmh@gnu.org>
17187 * NEWS: Document addition of ZFS support.
17189 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
17191 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
17192 rather than `/ 2', as the latter requires -Wa,--divide which would
17193 require bumping our minimum binutils version.
17195 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
17197 * util/grub-script-check.c (main): Print script line number on
17200 2010-12-01 Robert Millan <rmh@gnu.org>
17202 * grub-core/fs/zfs/zfs.c: New file.
17203 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
17204 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
17205 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
17206 * grub-core/fs/zfs/zfsinfo.c: Likewise.
17208 * include/grub/zfs/dmu.h: Likewise.
17209 * include/grub/zfs/dmu_objset.h: Likewise.
17210 * include/grub/zfs/dnode.h: Likewise.
17211 * include/grub/zfs/dsl_dataset.h: Likewise.
17212 * include/grub/zfs/dsl_dir.h: Likewise.
17213 * include/grub/zfs/sa_impl.h: Likewise.
17214 * include/grub/zfs/spa.h: Likewise.
17215 * include/grub/zfs/uberblock_impl.h: Likewise.
17216 * include/grub/zfs/vdev_impl.h: Likewise.
17217 * include/grub/zfs/zap_impl.h: Likewise.
17218 * include/grub/zfs/zap_leaf.h: Likewise.
17219 * include/grub/zfs/zfs.h: Likewise.
17220 * include/grub/zfs/zfs_acl.h: Likewise.
17221 * include/grub/zfs/zfs_znode.h: Likewise.
17222 * include/grub/zfs/zil.h: Likewise.
17223 * include/grub/zfs/zio.h: Likewise.
17224 * include/grub/zfs/zio_checksum.h: Likewise.
17226 * Makefile.util.def: Build ZFS into libgrubmods.
17227 * grub-core/Makefile.core.def: Build zfs.mod.
17229 2010-11-30 Szymon Janc <szymon@janc.net.pl>
17231 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
17233 * grub-core/commands/wildcard.c (match_files): Likewise.
17235 2010-11-30 Robert Millan <rmh@gnu.org>
17237 * grub-core/loader/i386/bsd.c
17238 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
17239 whether kernel is loaded using grub_loader_is_loaded(), rather
17240 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
17241 certain error conditions.
17243 2010-11-30 Robert Millan <rmh@gnu.org>
17245 * grub-core/commands/echo.c: Include `<grub/term.h>'.
17246 (grub_cmd_echo): Call grub_refresh() after printing a message.
17248 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
17250 Avoid using tricks for initialising endian variables.
17252 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
17254 (GRUB_MOD_INIT): Don't byte-swap.
17255 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
17256 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
17257 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
17258 (grub_swap_bytes32_compile_time): Likewise.
17259 (grub_cpu_to_le32_compile_time): Likewise.
17260 (grub_cpu_to_le16_compile_time): Likewise.
17262 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
17264 * util/grub-setup.c (setup): Stop recommending --force. People who
17265 understand the dangers of blocklists are able to find this option
17266 anyway and the ones who don't shouldn't use it anyway.
17268 2010-11-26 Robert Millan <rmh@gnu.org>
17270 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
17273 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
17275 Fix LVM-on-RAID probing.
17277 * util/grub-probe.c (probe): Remember which disk was detected as
17278 RAID (perhaps an LVM physical volume). Use that disk's raidname
17279 rather than that of the top-level disk.
17281 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
17283 Fix cmdline argument quotes for setparams command of menuentry
17286 * grub-core/commands/menuentry.c (setparams_prefix): Use single
17287 quotes for arguments.
17288 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
17289 grub_strchrsub function instead.
17291 * include/grub/misc.h (grub_strchrsub): New function.
17293 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
17295 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
17296 effort by skipping "." and ".." entries up-front.
17297 Suggested by: Michael Lazarev.
17299 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
17301 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
17302 ldflags to ldadd, to fix link line ordering.
17303 (none_decompress): Likewise.
17305 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
17307 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
17309 (grub-emu-lite): Remove kern/emu/cache.S.
17311 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
17313 * util/deviceiter.c (compare_devices): If the by-id link for a
17314 device couldn't be resolved, fall back to sorting by the by-id link
17315 rather than segfaulting.
17316 Reported and tested by: Daniel Mierswa.
17318 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
17320 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
17321 ldflags, to fix link line ordering.
17323 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
17325 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
17326 linkers are picky about this.
17328 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
17330 * grub-core/Makefile.am (command.lst): Adjust sed expression
17331 ordering so that extended and priority commands aren't treated as
17334 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
17336 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
17337 Remove byte-swapping function calls, which are not valid in
17338 structure initialisers.
17339 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
17341 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
17342 grub_gpt_partition_type_bios_boot.
17344 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
17346 Fix test program build on GNU/kFreeBSD.
17348 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
17349 $(LIBNVPAIR)' library dependencies.
17351 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
17353 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
17355 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
17357 * util/grub-install.in: Remove excessive quoting that broke
17358 installations to RAID devices.
17360 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
17362 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
17363 bootloader version instead of 0.
17365 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
17367 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
17370 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
17372 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
17373 retrieve the metadat sector if size isn't known.
17374 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17376 2010-11-18 Robert Millan <rmh@gnu.org>
17378 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
17379 with grub_memcmp().
17381 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
17383 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
17385 Reported by: Jordan Uggla.
17387 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
17389 Make better UTF compliant.
17391 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
17392 sequences as incorrect.
17393 (grub_is_valid_utf8): Likewise.
17394 (grub_utf8_to_ucs4): Likewise.
17395 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
17396 (grub_ucs4_to_utf8_alloc): Likewise.
17397 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
17399 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
17401 Make legacy_source behave like source.
17403 * grub-core/commands/legacycfg.c (legacy_file): Don't call
17405 (grub_cmd_legacy_source): Call grub_show_menu if needed.
17407 2010-11-16 Colin Watson <cjwatson@debian.org>
17409 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
17410 (-Wunused implies -Wunused-parameter, but not vice versa).
17412 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
17414 * configure.ac: Make error messages less confusing by testing for
17415 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
17416 accepted, but produces a diagnostic if something else is wrong).
17418 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
17420 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
17421 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
17423 (grub_keyboard_controller_init)
17424 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
17425 read the initial state since controller isn't inited yet.
17427 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
17429 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
17430 allocate_regbeg may need to create new chunk header.
17432 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17434 Fix quoting in legacy parser.
17436 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
17438 (grub_legacy_parse): Likewise.
17439 Reported by: Jordan Uggla.
17440 Tested by: Jordan Uggla.
17442 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17444 Don't add -lgcc on i386 and x86_64.
17446 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
17447 * conf/Makefile.common (LDADD_KERNEL): Likewise.
17448 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
17450 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17452 * configure.ac: Add -Wno-trampolines when supported.
17454 2010-11-14 Modestas Vainius <modax@debian.org>
17456 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
17459 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
17461 Add generic logical block size support for UDF.
17463 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
17464 (GRUB_UDF_BLKSZ): Removed.
17465 (struct grub_udf_data): New field "lbshift" to hold the logical block
17466 size of the file system in log2 format. All users updated.
17467 (sblocklist): Change type to unsigned.
17468 (grub_udf_mount): Change type of "sblklist" to unsigned.
17469 Move AVDP search before VRS recognition, because the latter requires
17470 knowledge of the logical block size, which is detected during the
17472 Detect and validate logical block size during AVDP search, adding
17473 support for block sizes 512, 1024 and 4096.
17474 Make VRS recognition independent of block size.
17476 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
17478 Properly handle deleted files on UDF.
17480 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
17481 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
17484 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
17486 Support reading files larger than 2 GiB.
17488 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
17489 "offset" to grub_off_t.
17490 (grub_udf_read_file): Likewise for parameter "pos".
17492 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17494 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
17496 (Simple configuration): Refer to Changes from GRUB Legacy about
17497 save_env availability.
17499 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17501 * util/grub-install.in: Ignore empty partition table detection
17502 instead of trying to include part_ module.
17504 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17506 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
17507 LVM on RAID support.
17509 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17511 Properly define WORDS_BIGENDIAN in wrapped environments.
17513 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
17515 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
17517 Reported by: Manoel Rebelo Abranches.
17518 Tested by: Manoel Rebelo Abranches.
17520 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
17522 * util/grub-mkconfig.in: Fix quoting.
17524 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
17526 Support big ext2 files.
17528 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
17529 (grub_ext2_read_block): Support triple indirect blocks.
17530 (grub_ext2_read_file): Use 64-bit types and read size_high.
17531 (grub_ext2_open): Read size_high.
17532 Reported by: Ximin Luo.
17533 Tested by: Manoel Rebelo Abranches.
17535 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
17537 * util/grub-install.in: Handle filenames containing spaces.
17538 Reported by: Jordan Uggla.
17539 Tested by: Jordan Uggla.
17541 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
17543 * util/grub-mkconfig.in (grub_script_check): New variable.
17544 Use grub_script_check instead of grub-script-check.
17545 Reported by: Barry Jackson.
17547 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
17549 * docs/grub.texi (menu): Correct the order.
17550 Reported by: D. Hugh Redelmeier.
17552 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
17554 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
17557 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
17559 * include/grub/elfload.h (grub_elf32_size): New parameter.
17561 Return maximum segments alignment.
17562 (grub_elf64_size): Likewise.
17563 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
17564 Return maximum segments alignment.
17565 (grub_elf64_size): Likewise.
17566 * grub-core/loader/powerpc/ieee1275/linux.c:
17567 (grub_linux_claimmap_iterate): New function. Uses the
17568 "available" property in the "memory" node for memory allocation
17569 for kernel in the PowerPC loader.
17570 (grub_linux_load32): Correctly find linux entry point offset.
17571 (grub_linux_load64): Likewise.
17573 2010-11-07 Robert Millan <rmh@gnu.org>
17575 On mips-yeeloong, build with -march=loongson2f when this flag is
17576 available (GCC >= 4.4).
17577 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
17579 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
17580 or otherwise add -march=mips3.
17582 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
17584 Suppress shell expansion on echo '*' and echo "*" like cases.
17585 Reported by: Jordan Uggla.
17587 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
17588 string arguments before shell expansion.
17589 * tests/grub_cmd_echo.in: New testcases.
17591 2010-11-07 Robert Millan <rmh@gnu.org>
17593 * conf/mips-qemu-mips.rmk: Remove stale file from previous
17596 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
17598 * grub-core/kern/emu/hostdisk.c
17599 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
17601 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17603 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
17604 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
17605 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
17607 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17609 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
17611 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17613 * util/grub-install.in: Replace useless recomendation to pass
17614 --modules with a recomendation to report a bug.
17616 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17618 Properly register serial terminfo.
17619 Reported by: Jordan Uggla
17621 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
17623 (grub_serial_terminfo_output_template): Likewise.
17624 (grub_cmd_serial): Register "serial" with terminfo.
17625 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
17626 grub_serial_terminfo_output.
17628 2010-11-05 Robert Millan <rmh@gnu.org>
17630 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
17633 2010-11-05 Robert Millan <rmh@gnu.org>
17635 On Yeeloong, pass machine type information to Linux.
17637 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
17638 (LOONGSON_MACHTYPE): New macro, set to
17639 "machtype=lemote-yeeloong-2f-8.9inches".
17640 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
17641 additional argument to Linux.
17643 2010-11-04 Robert Millan <rmh@gnu.org>
17645 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
17646 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
17647 (its SATA disks are detected as slaveless IDE master drives on
17649 Reported by Carsten Aulbert.
17651 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
17653 * util/bin2h.c (main): Fix spelling error in generated output.
17655 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
17657 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
17659 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17661 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
17662 vga= option is supplied.
17664 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17666 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
17667 * util/grub.d/10_kfreebsd.in: Likewise.
17668 * util/grub.d/10_linux.in: Likewise.
17669 * util/grub.d/20_linux_xen.in: Likewise.
17671 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17673 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
17674 argument as an argument to no-argument option.
17676 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17678 * util/grub.d/10_linux.in: Add missing load_video with explicit
17679 GRUB_GFXPAYLOAD_LINUX.
17681 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17683 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
17685 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17687 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
17688 elements with invlid index.
17689 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17690 * grub-core/disk/raid.c (insert_array): Automatically reallocate
17692 * include/grub/raid.h (grub_raid_member): New struct.
17693 (grub_raid_array): Transform devices and start_sector into usage of
17694 grub_raid_member. All users updated
17695 (allocated_devs): New member.
17697 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17699 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
17702 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
17704 NetBSD build fix for getline function conflict from gnulib.
17706 * Makefile.util.def (libgrubkern.a): New library for grub kernel
17707 components that depend on gnulib headers.
17708 (libgrubmods.a): Renamed from earlier libgrub.a.
17709 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
17711 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17713 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
17714 install rather than creating a broken install.
17716 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17718 * util/grub-setup.c (argp): Remove misleading example of installing to
17721 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17723 * util/grub-setup.c (setup): Clarify the error message.
17725 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17727 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
17729 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17731 * grub-core/kern/emu/misc.c
17732 (grub_make_system_path_relative_to_its_root)
17733 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
17735 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17737 * grub-core/kern/emu/misc.c
17738 (grub_make_system_path_relative_to_its_root): Revert r2882.
17740 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
17742 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
17743 useless field head. All users updated.
17744 (free_subchunk): Correct handling of IN_REGION subchunk.
17746 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
17748 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
17749 (Supported kernels): Likewise.
17751 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
17753 Make mktemp invocations portable.
17755 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
17756 exit if mktemp fails.
17757 * tests/grub_script_blockarg.in: Likewise.
17758 * tests/partmap_test.in: Likewise.
17759 * tests/util/grub-shell-tester.in: Likewise.
17760 * tests/util/grub-shell.in: Likewise.
17761 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
17762 * Makefile.am: Likewise, and chain shell commands with `&&'
17764 * util/grub-mkrescue.in: Use the same explicit template as above, and
17765 exit if mktemp fails.
17767 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
17769 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
17770 Linux kernel, reported by Dennis Schridde.
17772 2010-10-17 Szymon Janc <szymon@janc.net.pl>
17774 * grub-core/normal/auth.c (grub_auth_check_authentication):
17775 Set-but-not-used variable removed.
17777 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17779 * docs/grub.texi (GNU/Linux): Document APM unavailability with
17780 32-bit linux protocol.
17782 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17784 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
17785 cursor shape for sanity.
17787 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17789 * docs/grub.texi (Installation): Document buggy BIOS install.
17791 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17793 * docs/grub.texi (Installation): Indent.
17795 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17797 * util/grub-setup.c (setup): New parameter allow_floppy.
17798 (arguments): New member allow_floppy.
17799 (argp_parser): Handle --allow-floppy.
17800 (main): Pass allow_floppy.
17801 * util/grub-install.in: New option --allow-floppy passed though to
17804 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17806 * util/grub-install.in: Handle partitionless disks.
17808 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17810 * util/grub-setup.c (setup): Don't clean blocklists before readability
17813 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17815 * docs/grub.texi (Installation): Document embedding zone. Remove
17816 obsolete grub-install example.
17818 2010-10-16 Szymon Janc <szymon@janc.net.pl>
17820 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
17821 Set-but-not-used variable ifdef'ed.
17822 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
17823 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
17825 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
17826 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
17827 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
17828 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
17829 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
17830 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
17831 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
17832 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
17833 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
17834 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
17835 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
17838 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17840 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
17841 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
17844 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17846 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
17847 synonym to _S5_. Needed for some DSDTs.
17849 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17851 Userspace ACPI parser debugging.
17853 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
17854 headers and add relevant defines. Don't include standard headers.
17855 (main) [GRUB_DSDT_TEST]: New function.
17856 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
17857 Don't declare functions.
17859 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17861 Remove dead grub_efi_mm_fini.
17863 * grub-core/kern/efi/mm.c (allocated_page): Removed.
17864 (ALLOCATED_PAGES_SIZE): Likewise.
17865 (MAX_ALLOCATED_PAGES): Likewise.
17866 (allocated_pages): Likewise.
17867 (grub_efi_allocate_pages): Don't record allocated pages.
17868 (grub_efi_free_pages): Likewise.
17869 (grub_efi_mm_init): Likewise.
17870 (grub_efi_mm_fini): Removed.
17872 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17874 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
17875 (grub_efi_mm_init): Take into account the memory map size increase.
17877 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17879 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
17880 (serial_hw_put): Wait based on real time rather than port reads. Don't
17882 * include/grub/serial.h (grub_serial_port): New field broken.
17884 2010-10-16 Robert Millan <rmh@gnu.org>
17886 * grub-core/kern/emu/misc.c
17887 (grub_make_system_path_relative_to_its_root): Fix premature return
17888 when processing non-root ZFS filesystems.
17889 Reported by Sergio Talens-Oliag.
17891 2010-10-15 Robert Millan <rmh@gnu.org>
17893 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
17894 guarantee compressed ones are processed first.
17896 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17898 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
17899 grub_efiemu_autocore.
17901 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17903 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
17905 (grub_console_getkey): Use correct jae opcode rather than ja.
17907 2010-10-12 Robert Millan <rmh@gnu.org>
17909 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
17910 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
17911 variable. All references updated.
17913 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
17915 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
17917 Correctly distinguish mdraid flavours.
17919 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
17920 (insert_array): New argument raid.
17921 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
17922 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
17923 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
17925 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
17927 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
17928 handling of special keys.
17930 2010-10-02 Aleš Nesrsta <starous@volny.cz>
17932 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
17933 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
17935 2010-10-02 Aleš Nesrsta <starous@volny.cz>
17937 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
17938 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
17940 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
17941 Use right endpoint when querying descriptor.
17943 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
17945 Clear out 0x80 color bit on EFI.
17947 Reported by: decoder and meta tech.
17949 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
17950 (grub_console_setcolorstate): Clear out 0x80 bit.
17951 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
17952 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
17953 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
17955 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
17957 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
17960 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17962 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
17963 mo_file after freeing.
17965 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17967 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
17969 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17971 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
17974 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17976 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
17979 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17981 Put terminfo into core on ieee1275 and yeeloong (needed for console).
17983 * gentpl.py: New groups terminfoinkernel and terminfomodule.
17984 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
17985 and terminfo.h when needed.
17986 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
17987 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
17988 (terminfo): Enable only on terminfokernel.
17989 (extcmd): Likewise.
17990 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
17991 * include/grub/lib/arg.h: Likewise.
17992 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
17993 incorrect usage of ->.
17995 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17997 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
17998 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
18000 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18002 Fix coreboot compilation.
18004 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18005 Take VBE info into account even if only text is supported.
18006 (fill_vbe_info): Take into account the case when only VGA text
18008 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
18009 on coreboot, multiboot and qemu.
18011 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18013 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
18015 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
18017 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18019 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
18022 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18024 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
18025 if they were BSD-style.
18027 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18029 * grub-core/boot/i386/pc/lnxboot.S: Replace
18030 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
18031 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
18033 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18035 Write embedding zone using Reed-Solomon.
18037 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
18038 * grub-core/Makefile.am (rs_decoder.S): New target.
18039 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
18040 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
18041 (multiboot): Move to RS part.
18042 (post_reed_solomon): New label.
18043 (grub_boot_drive): Move to non-RS part since it's modified in memory
18045 Include rs_decoder.S.
18046 * grub-core/lib/reed_solomon.c: New file.
18047 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
18049 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
18050 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
18051 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
18052 * include/grub/partition.h (grub_partition_map): Change prototype of
18053 embed to allow returning additional sectors.
18054 * include/grub/reed_solomon.h: New file.
18055 * util/grub-setup.c (setup): Handle Reed-Solomon.
18057 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
18059 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
18060 i386 and x86-64 definedness tests.
18062 2010-09-27 Yves Blusseau <blusseau@zetam.org>
18064 Fix generation of kernel_syms.lst
18066 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
18069 2010-09-26 Robert Millan <rmh@gnu.org>
18071 Support degraded ZFS arrays in "grub-probe -t device" resolution.
18073 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
18074 the pool is an array of devices, iterate through it and return the
18075 first device that passes a stat() test (instead of blindly returning
18078 2010-09-26 Robert Millan <rmh@gnu.org>
18080 Build fixes for GNU/kFreeBSD.
18082 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
18083 to programs that require ZFS conversion.
18084 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
18085 kernels that don't have FLOPPY_MAJOR.
18087 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
18089 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
18091 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
18093 Fix grub-emu build.
18095 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
18096 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
18097 mdraid09 and mdraid1x.
18099 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
18101 Re-enable grub-extras.
18103 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
18104 avoid confusing Automake. Run autogen only twice, once for the top
18105 level and once for grub-core. Add Makefile.util.def and
18106 Makefile.core.def from extra modules to the appropriate autogen
18107 invocations. If Makefile.common exists in an extra module, include
18108 it in both Makefile.util.am and grub-core/Makefile.core.am;
18109 similarly, include any Makefile.util.common file in Makefile.util.am
18110 and any Makefile.core.common file in grub-core/Makefile.core.am.
18111 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
18112 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
18113 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
18114 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
18116 * gentpl.py (gvar_add): Turn GVARS into a set.
18117 (global_variable_initializers): Sort global variables on output.
18118 (vars_init): New function.
18119 (first_time): Likewise.
18120 (library): Ensure that non-global variable initialisations are
18121 emitted before the first time we emit code for a library block.
18122 Append to variables rather than setting them. Only emit
18123 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
18124 each conditional path.
18125 (program): installdir() emits an Autogen macro, so must be passed to
18126 var_add rather than gvar_add.
18128 (script): Likewise.
18129 (rules): New function, centralising handling for different target
18130 types. Set up Guile association lists for first_time and vars_init,
18131 and send most output to a diversion so that variable initialisations
18132 can be emitted first.
18133 (module_rules): Use new rules function.
18134 (kernel_rules): Likewise.
18135 (image_rules): Likewise.
18136 (library_rules): Likewise.
18137 (program_rules): Likewise.
18138 (script_rules): Likewise.
18139 (data_rules): Likewise.
18141 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
18143 * .bzrignore: Add contrib and grub-core/contrib. Remove
18144 grub-core/Makefile.gcry.am.
18146 2010-09-24 Yves Blusseau <blusseau@zetam.org>
18148 * grub-core/lib/LzFind.c: Add missing include.
18149 * grub-core/lib/LzmaEnc.c: Likewise.
18150 * grub-core/script/lexer.c: Likewise.
18151 * grub-core/script/yylex.l: Likewise.
18152 * util/grub-macho2img.c: Likewise.
18153 * util/grub-menulst2cfg.c: Likewise.
18154 * util/grub-mklayout.c: Likewise.
18155 * util/grub-mkpasswd-pbkdf2.c
18156 * util/grub-mkrelpath.c: Likewise.
18157 * util/resolve.c: Likewise.
18159 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
18161 * Makefile.util.def (example_unit_test): Add
18162 grub-core/gnulib/libgnu.a.
18164 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
18166 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
18168 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
18170 Support xz compression on yeeloong.
18172 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
18173 * configure.ac: Check for LZMA.
18174 * grub-core/Makefile.core.def (xz_decompress): New target.
18175 (none_decompress): Likewise.
18176 * grub-core/boot/decompressor/minilib.c: New file.
18177 * grub-core/boot/decompressor/none.c: Likewise.
18178 * grub-core/boot/decompressor/xz.c: Likewise.
18179 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
18180 * grub-core/kern/mips/cache_flush.S: Likewise.
18181 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
18182 * grub-core/kern/mips/startup.S: Move first stage to ...
18183 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
18185 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
18186 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
18187 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
18188 Allocate statically.
18189 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
18190 Allocate statically or use scratch. Don't check CRC32.
18191 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
18192 Allocate statically. Don't check CRC32.
18193 * include/grub/decompressor.h: New file.
18194 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
18196 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
18197 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
18198 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
18199 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
18200 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
18201 * util/grub-mkimage.c (grub_compression_t): New type.
18202 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
18203 (image_target_desc): New field default_compression.
18204 (image_targets): Adjust yeeloong targets.
18205 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
18206 (compress_kernel): New parameter comp.
18207 (generate_image): Likewise. Handle new compression case.
18208 (options): New option --compression
18210 (main): Handle new option.
18212 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
18214 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
18216 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
18218 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
18219 typo in __i386__ conditional.
18221 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
18223 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
18226 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
18228 Implement EFI and ACPI multiboot2 extensions.
18230 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
18231 new tags as supported.
18232 (acpiv2_size): New function.
18233 (grub_multiboot_get_mbi_size): Take new tags into account.
18234 (grub_multiboot_make_mbi): Add new tags.
18235 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
18237 2010-09-21 Aleš Nesrsta <starous@volny.cz>
18239 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
18240 Added missing configuration of USB device.
18242 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18244 * grub-core/normal/menu_entry.c (run): Make sure we always return
18247 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18249 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
18250 NumberOfPages is UINT64 according to the UEFI specification, not
18251 UINTN. Fix printf format.
18253 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18255 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
18256 `err' to grub_usb_err_t.
18257 Reported and tested by: KESHAV P.R.
18259 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18261 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
18262 tpart non-const, so that we can assign to it. (Since this is a
18263 typedef, the constness refers to the pointer rather than what it
18266 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18268 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
18269 $(top_srcdir)/grub-core/gnulib as well as
18270 $(top_builddir)/grub-core/gnulib.
18271 Reported by: KESHAV P.R.
18273 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18275 * util/grub-install.in: Fix the bootloader ID option to be
18276 consistently --bootloader-id, not --bootloader_id.
18277 Reported by: KESHAV P.R.
18279 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18281 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
18282 check hash checksum." consistently translatable.
18284 2010-09-21 Yves Blusseau <blusseau@zetam.org>
18286 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
18289 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18291 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
18292 (GRUB_MOD_INIT): Register sha1sum command.
18293 (GRUB_MOD_FINI): Unregister sha1sum command.
18295 2010-09-21 Yves Blusseau <blusseau@zetam.org>
18297 Keep boot and grub directory names in sync with utils scripts
18299 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
18300 * config.h.in: Add previous macros.
18301 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
18302 * util/grub-install.in: Use $bootdir and $grubdir variables.
18304 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18306 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
18307 convert partition names to disk names if the new `convert' parameter
18309 (grub_util_biosdisk_get_grub_dev): If opening the disk device
18310 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
18311 disk in its own right. This can happen with Xen disk images.
18313 2010-09-21 Yves Blusseau <blusseau@zetam.org>
18315 * util/grub-editenv.c: Update strings to avoid warnings when generating
18317 * util/grub-setup.c: Likewise.
18319 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
18321 * configure.ac: Change version to 1.99~beta0.
18323 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
18325 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
18327 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
18329 * include/multiboot.h: Resynced with specification.
18330 * include/multiboot2.h: Likewise.
18332 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18334 Fix po directory handling.
18336 * configure.ac: Create po/Makefile.in rather than po/Makefile.
18337 * grub-core/gnulib/Makefile.am: Import gettext module.
18338 * m4/gnulib-cache.m4: Likewise.
18339 * m4/gnulib-comp.m4: Likewise.
18340 * m4/gettext.m4: New file, from gnulib.
18341 * m4/glibc2.m4: Likewise.
18342 * m4/iconv.m4: Likewise.
18343 * m4/intdiv0.m4: Likewise.
18344 * m4/intl.m4: Likewise.
18345 * m4/intldir.m4: Likewise.
18346 * m4/intlmacosx.m4: Likewise.
18347 * m4/intmax.m4: Likewise.
18348 * m4/inttypes-pri.m4: Likewise.
18349 * m4/lcmessage.m4: Likewise.
18350 * m4/lib-ld.m4: Likewise.
18351 * m4/lib-link.m4: Likewise.
18352 * m4/lib-prefix.m4: Likewise.
18353 * m4/lock.m4: Likewise.
18354 * m4/nls.m4: Likewise.
18355 * m4/po.m4: Likewise.
18356 * m4/printf-posix.m4: Likewise.
18357 * m4/progtest.m4: Likewise.
18358 * m4/threadlib.m4: Likewise.
18359 * m4/uintmax_t.m4: Likewise.
18360 * m4/visibility.m4: Likewise.
18361 * po/Makefile.am: Remove.
18362 * po/Makefile.in.in: New file, from gettext.
18363 ($(DOMAIN).pot-update): Support POTFILES-shell.
18364 * po/Makevars: New file.
18365 * po/POTFILES-shell: Rename to ...
18366 * po/POTFILES-shell.in: ... this. Update.
18367 * po/POTFILES: Rename to ...
18368 * po/POTFILES.in: ... this. Update.
18369 * po/Rules-quot: New file, from gettext.
18370 * po/boldquot.sed: Likewise.
18371 * po/en@boldquot.header: Likewise.
18372 * po/en@quot.header: Likewise.
18373 * po/insert-header.sin: Likewise.
18374 * po/quot.sed: Likewise.
18375 * po/remove-potcdate.sin: Likewise.
18377 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18379 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
18381 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18383 * util/grub.d/20_linux_xen.in: Use submenus.
18385 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18389 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
18390 parameter submenu. All users updated.
18391 * grub-core/normal/main.c (free_menu): Rename to ...
18392 (grub_normal_free_menu): ... this. Made global.
18393 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
18395 * grub-core/normal/menu_entry.c (screen): New field submenu.
18396 (make_screen): Set submenu.
18397 (run): Open new context if requested.
18398 * include/grub/menu.h (grub_menu_entry): New field submenu.
18399 * include/grub/normal.h (grub_normal_free_menu): New proto.
18401 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18403 Menu entries extractor.
18405 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
18407 (GRUB_MOD_INIT): Register new variants.
18408 (GRUB_MOD_FINI): Unregister new variants.
18409 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
18410 into grub_cmd_legacy_source.
18411 (grub_cmd_legacy_source): Implement extractor variants.
18412 (GRUB_MOD_INIT): Register new variants.
18413 (GRUB_MOD_FINI): Unregister new variants.
18414 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
18416 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
18417 search as an extractor.
18418 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
18419 test as an extractor.
18420 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
18422 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
18423 (grub_env_new_context): New function.
18424 (grub_env_context_open): Likewise.
18425 (grub_env_extractor_open): Likewise.
18426 (grub_env_extractor_close): Likewise.
18427 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
18428 grub_extractor_level.
18429 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
18430 * include/grub/env.h (grub_env_extractor_open): New proto.
18431 (grub_env_extractor_close): Likewise.
18432 * include/grub/normal.h (grub_extractor_level): New external variable.
18434 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18436 Make cutmem accept a region specification.
18437 Suggested by: Samuel Thibault
18439 * grub-core/mmap/mmap.c (parsemem): New function.
18440 (grub_cmd_cutmem): Handle new arguments.
18442 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18444 New command cutmem.
18446 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
18447 (GRUB_MOD_INIT): Register new command.
18448 (GRUB_MOD_FINI): Unregister new command.
18450 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18452 Support some annoying BSD and Minix subpartitions.
18454 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
18455 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
18456 Properly handle concatenation.
18457 * grub-core/kern/device.c (grub_device_iterate): Likewise.
18458 * grub-core/normal/completion.c (iterate_partition): Likewise.
18459 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
18460 contain partition. All users updated.
18461 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
18463 (grub_openbsdlabel_partition_map): Likewise.
18464 (bsdlabel_partition_map_iterate): Rename to ..
18465 (iterate_real): ... this. New arguments sector, freebsd and pmap.
18466 (bsdlabel_partition_map_iterate): New function.
18467 (netopenbsdlabel_partition_map_iterate): Likewise.
18468 (netbsdlabel_partition_map_iterate): Likewise.
18469 (openbsdlabel_partition_map_iterate): Likewise.
18470 (GRUB_MOD_INIT): Register new partmaps.
18471 (GRUB_MOD_FINI): Unregister new partmaps.
18472 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
18473 (grub_partition_msdos_iterate): ... this. All users updated.
18474 Don't support embedding other than in a minix partition.
18475 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
18477 * include/grub/partition.h (grub_partition): New field msdostype.
18478 * util/grub-install.in: Handle openbsd and netbsd types being in
18481 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18483 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
18485 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
18486 * grub-core/Makefile.core.def (mdraid): Renamed to ...
18487 (mdraid09): ... this.
18488 (mdraid1x): New module.
18489 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
18490 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
18492 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18494 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
18497 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18499 * grub-core/commands/efi/lsefimmap.c: Correct header.
18502 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18504 * util/grub-editenv.c (argp_parser): Don't pass translated strings
18505 as printf format strings; the translations might contain '%' which
18506 could cause a crash.
18508 * util/grub-fstest.c (argp_parser): Likewise.
18509 * util/grub-setup.c (argp_parser): Likewise.
18512 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18514 Use argp in grub-fstest.
18516 * util/grub-fstest.c: Don't include getopt.h.
18518 (root): New variable.
18519 (args_count): Likewise.
18521 (num_disks): Likewise.
18522 (images): Likewise.
18524 (debug_str): Likewise.
18526 (options): Transformed to argp.
18528 (main): Split argument parsing into ...
18529 (argp_parser): ... this. Changed to argp format.
18530 (argp): New variable.
18531 (main): Use argp_parse.
18533 2010-09-20 Tristan Gingold <gingold@free.fr>
18534 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
18535 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18537 * grub-core/commands/efi/lsefimmap.c: New file.
18538 * grub-core/Makefile.core.def (lsefimmap): New module.
18539 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
18541 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18543 Pause the execution (10s max) if any errors are displayed so the user
18544 has a chance to see them.
18546 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
18547 (grub_print_error): Increment grub_err_printed_errors.
18548 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
18549 execution if any errors were displayed.
18550 (show_menu): Remove old code for pause.
18551 * grub-core/normal/menu_entry.c (run): Likewise.
18552 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
18554 (grub_normal_get_char_counter): Likewise.
18555 * include/grub/err.h (grub_err_printed_errors): New external variable.
18556 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
18558 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18560 Support multiboot VBE info.
18562 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18563 Take VBE info into account.
18564 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
18565 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
18566 Call fill_vbe_info when appropriate.
18567 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
18568 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
18570 (grub_multiboot_get_mbi_size): Take new tags into account.
18571 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
18572 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
18573 Call fill_vbe_tag when appropriate.
18574 (grub_multiboot_make_mbi): Properly align tags.
18575 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
18577 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
18579 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
18581 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18583 Suport manual terminal geometry specification.
18585 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
18586 Save state in grub_ofconsole_terminfo_output.
18587 (grub_ofconsole_term): Use grub_terminfo_getwh.
18588 (grub_ofconsole_getwh): Removed.
18589 * grub-core/term/serial.c (grub_serial_getwh): Removed.
18590 (grub_serial_term): Use grub_terminfo_getwh.
18591 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
18592 (options): New struct.
18593 (OPTION_*): New enum.
18594 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
18595 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
18597 (grub_terminfo_getwh): New proto.
18598 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
18600 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18602 Handle legacy "terminal" command.
18604 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
18606 (legacy_commands): Add terminal and title.
18607 (grub_legacy_parse): Handle terminal. Simplify title handling.
18609 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18611 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
18612 parameters overflow.
18614 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18616 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
18619 * docs/grub.texi (Shell-like scripting): Document `!'.
18620 (Network): Simplify using new i386-pc-pxe format. Mention
18625 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18627 * Makefile.am (SUBDIRS): Restore "."; it's important to force
18628 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
18631 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18633 * grub-core/commands/efi/lsefisystab.c: Correct header.
18634 * grub-core/commands/efi/lssal.c: Likewise.
18635 * grub-core/commands/testload.c: Likewise.
18637 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18639 * util/grub-mkrescue.in: Add explicit root argument to --set to
18640 prevent the UUID being interpreted as an argument to --set (matches
18641 previous change to prepare_grub_to_access_device).
18643 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18645 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
18646 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
18647 the verbosity of later #ifs.
18648 (find_partition_start): Define this function on FreeBSD too.
18649 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
18651 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
18654 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18656 * util/grub-editenv.c: Use argp instead of getopt.
18658 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18660 * util/grub-setup.c: Use argp instead of getopt.
18662 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18664 Use gnulib-tool to create gnulib source files.
18666 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
18667 grub-core/gnulib directories
18668 * .bzignore: Add **/.deps and autogenerated gnulib files
18669 * configure.ac: Assign auxiliary directory to build-aux, add invocation
18670 of gnulib macros, add grub-core/gnulib/Makefile
18671 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
18672 include m4 directory to aclocal.
18673 * Makefile.util.def: Remove direct compilation of gnulib source files
18674 and use the new grub-core/gnulib/libgnu.a.
18675 * build-aux/config.rpath: move config.rpath from top directory to
18677 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
18679 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
18680 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
18681 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
18683 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
18686 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18688 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
18689 grub-core/genmod.sh and grub-core/gensyminfo.sh
18691 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
18693 Add a test for echo command options.
18695 * tests/grub_cmd_echo.in: New test.
18696 * Makefile.util.def: Rules for new test.
18698 2010-09-20 Szymon Janc <szymon@janc.net.pl>
18700 Remove crc.mod and move crc command to hashsum.mod.
18701 Remove lib/crc.c - users updated to use gcrypt implementation.
18703 * grub-core/commands/crc.c: Removed.
18704 * grub-core/Makefile.core.def (crc): Module removed.
18705 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
18706 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
18707 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
18708 * grub-core/lib/crc.c: Removed.
18709 * include/grub/lib/crc.h: Removed.
18710 * Makefile.util.def (crc): Remove lib/crc.c
18711 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
18712 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
18713 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
18714 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
18715 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
18716 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
18718 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18720 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
18722 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18724 Split config.h for util and core.
18726 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
18727 (ADDR32): Likewise.
18728 (DATA32): Likewise.
18729 (BSS_START_SYMBOL): Likewise.
18730 (END_SYMBOL): Likewise.
18731 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
18732 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
18733 * config.h.in: New file.
18734 * configure.ac: Use config-util.h as config define file.
18735 Rename MACHINE into GRUB_MACHINE. All users updated.
18736 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
18738 (NESTED_FUNC_ATTR): Likewise.
18739 Substitue new variables.
18740 (COND_HAVE_ASM_USCORE): New conditional.
18741 * grub-core/Makefile.am (ASM_PREFIX): New variable.
18742 (kernel_syms.lst): Use ASM_PREFIX.
18743 * grub-core/kern/emu/console.c: Include config-util.h.
18744 * grub-core/kern/emu/misc.c: Likewise.
18745 * grub-core/kern/emu/mm.c: Likewise.
18746 * include/grub/emu/misc.h: Likewise.
18747 * include/grub/libgcc.h: Likewise.
18749 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18751 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
18753 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
18754 Fix GRUB_TERM_KEY_* constants usage.
18755 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
18757 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18759 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
18761 * grub-core/bus/usb/uhci.c: Remove empty define.
18762 (grub_uhci_check_transfer): Add missing cast.
18763 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
18765 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
18767 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
18769 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18771 * grub-core/Makefile.core.def (legacycfg): Add
18772 lib/i386/pc/vesa_modes_table.c on emu.
18774 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
18776 Reduce number of temporary files generated by build system.
18778 * grub-core/gencmdlist.sh: Removed.
18779 * grub-core/genfslist.sh: Removed.
18780 * grub-core/genhandlerlist.sh: Removed.
18781 * grub-core/genmodsrc.sh: Removed.
18782 * grub-core/genpartmaplist.sh: Removed.
18783 * grub-core/genparttoollist.sh: Removed.
18784 * grub-core/gentermiinallist.sh: Removed.
18785 * grub-core/genvideolist.sh: Removed.
18787 * grub-core/genmod.sh.in: New file.
18788 * grub-core/gensyminfo.sh.in: New file.
18790 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
18791 * conf/Makefile.extra-dist: Update with new files.
18792 * gentpl.py: Remove rules related to unnecessary temporary files.
18793 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
18795 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
18797 * grub-core/bus/usb/uhci.c: Remove empty #define.
18798 * grub-core/genmoddep.awk: Updated with new syminfo format.
18799 * util/bash-completion.d/Makefile.am: Add config.log to
18802 2010-09-19 Yves Blusseau <blusseau@zetam.org>
18804 * Makefile.util.def: Add forgotten $(LIBINTL) library.
18806 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
18808 * util/grub-mkconfig.in: Check the config script for syntax errors
18811 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
18812 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18814 * Makefile.util.def (grub-install): Use util/grub-install.in on all
18816 * util/grub-install.in: Add EFI and IEEE1275 support.
18817 * util/i386/efi/grub-install.in: Removed.
18818 * util/ieee1275/grub-install.in: Likewise.
18820 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18822 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
18823 (grub_cmd_cmosclean): Likewise.
18824 (GRUB_MOD_INIT): Register command cmosclean.
18825 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
18826 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
18828 2010-09-18 Carles Pina i Estany <carles@pina.cat>
18829 2010-09-18 Aleš Nesrsta <starous@volny.cz>
18830 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18832 Add keyboard layouts support.
18834 * Makefile.util.def (grub-mklayout): New file.
18835 (grub-kbdcomp): New script.
18836 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
18837 Add keyboard_layouts.h.
18838 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
18839 commands/boot.c on yeeloong.
18840 (keylayouts): New module.
18841 * grub-core/bus/usb/ohci.c
18842 * grub-core/bus/usb/uhci.c
18843 * grub-core/bus/usb/usbhub.c (rescan): New variable.
18844 (grub_usb_add_hub): Poll interrupt pipe for device handling.
18845 (attach_root_port): Likewise.
18846 (poll_nonroot_hub): Likewise.
18847 (grub_usb_poll_devices): Likewise.
18848 (detach_device): Close transfer.
18849 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
18851 (grub_usb_bulk_setup_readwrite): Likewise.
18852 (grub_usb_bulk_finish_readwrite): Likewise.
18853 * grub-core/commands/keylayouts.c: New file.
18854 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
18855 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
18857 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
18858 support scancode 2.
18859 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
18860 * include/grub/keyboard_layouts.h: New file.
18861 * util/grub-mklayout.c: New file.
18862 * util/grub-kbdcomp.in: Likewise.
18864 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18866 Unify memory types.
18868 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
18869 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
18871 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
18872 (grub_upper_mem): Likewise.
18873 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
18874 * include/grub/memory.h (grub_memory_type_t): New enum.
18877 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18879 * grub-core/Makefile.core.def (lsapm): New module.
18880 * grub-core/commands/i386/pc/lsapm.c: New file.
18881 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
18882 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
18884 * include/grub/i386/pc/apm.h: New file.
18885 * include/multiboot.h (multiboot_apm_info): New struct.
18887 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18889 GRUB-legacy configuration file support.
18891 * Makefile.util.def (grub-menulst2cfg): New util.
18892 * docs/man/grub-menulst2cfg.h2m: New file.
18893 * grub-core/Makefile.core.def (legacycfg): New module.
18894 * grub-core/commands/legacycfg.c: New file.
18895 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
18896 (grub_normal_add_menu_entry): ... this.
18897 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
18898 (grub_normal_set_password): ...this.
18899 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
18900 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
18901 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
18902 * grub-core/lib/legacy_parse.c: New file.
18903 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
18904 * include/grub/i386/pc/vesa_modes_table.h: New file.
18905 * include/grub/legacy_parse.h: Likewise.
18906 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
18907 * util/grub-menulst2cfg.c: New file.
18909 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18911 * grub-core/kern/emu/hostdisk.c
18912 (convert_system_partition_to_system_disk): Initialise node.
18914 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18916 * grub-core/kern/emu/hostdisk.c
18917 (convert_system_partition_to_system_disk): Fix devmapper memory pool
18919 Reported and based on patch by: Modestas Vainius.
18921 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18923 Fix DM-RAID probing with recent versions of device-mapper udev
18926 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
18927 canonicalise device paths under /dev/mapper/.
18928 (convert_system_partition_to_system_disk): Compare the
18929 uncanonicalised path to /dev/mapper/ rather than the canonicalised
18930 path, since device nodes under /dev/mapper/ are often symlinks.
18932 2010-09-17 Yves Blusseau <blusseau@zetam.org>
18934 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
18936 2010-09-16 Yves Blusseau <blusseau@zetam.org>
18938 * configure.ac: Avoid some annoying error messages if freetype-config
18939 program is not found.
18941 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18943 Support RAID on virtio devices, and others.
18945 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
18947 [__MINGW32__] (grub_find_device): ... this.
18948 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
18949 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
18950 reasonable default if dir is NULL.
18951 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
18953 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
18954 (grub_guess_root_device): Update callers.
18955 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
18957 * util/raid.c (grub_util_getdiskname): Remove.
18958 (grub_util_raid_getmembers): Use grub_find_device rather than
18959 grub_util_getdiskname.
18961 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18963 * docs/grub.texi (serial): Remove obsolete comment about GRUB
18964 needing to be compiled with serial support.
18965 (ls): Indicate that multiple files are accepted.
18966 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
18967 indicate that multiple files are accepted.
18969 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18971 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
18972 libgrub_a_init.c, and util/bash-completion.d/grub.
18974 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18976 * util/grub-setup.c (setup): Fix incorrect container semantics.
18978 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18980 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
18982 Reported by: J. Nick Terry
18984 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18986 Move embedding routines to partmap sources files.
18988 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
18989 [GRUB_UTIL]: New variable.
18990 (gpt_partition_map_iterate): Set part.parent.
18991 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
18992 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
18993 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
18995 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
18996 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
18997 (grub_partition_map) [GRUB_UTIL]: New field embed.
18998 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
18999 (setup): Use ->embed.
19001 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19003 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
19005 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
19006 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
19008 2010-09-15 Yves Blusseau <blusseau@zetam.org>
19010 Add function to get completions from usage.
19012 * util/bash-completion.d/grub-completion.bash.in: Add function to get
19013 completions from usage. Use LC_ALL=C to get options properly.
19015 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19017 * grub-core/gnulib/basename-lgpl.c: Imported.
19018 * grub-core/gnulib/basename.c: Likewise.
19019 * grub-core/gnulib/dirname-lgpl.c: Likewise.
19020 * grub-core/gnulib/dirname.c: Likewise.
19021 * grub-core/gnulib/dirname.h: Likewise.
19022 * grub-core/gnulib/stripslash.c: Likewise.
19024 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19026 * grub-core/gnulib/error.c: Resynced.
19027 * grub-core/gnulib/getopt.c: Likewise.
19028 * grub-core/gnulib/getopt_int.h: Likewise.
19029 * grub-core/gnulib/regex.h: Likewise.
19030 * grub-core/gnulib/regex_internal.c: Likewise.
19031 * grub-core/gnulib/regex_internal.h: Likewise.
19033 2010-09-15 Szymon Janc <szymon@janc.net.pl>
19035 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
19036 CRC calculations and validity checks.
19037 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
19040 2010-09-15 Szymon Janc <szymon@janc.net.pl>
19042 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
19044 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19046 Fix incorrect echo options handling.
19047 Reported by: Yves Blusseau.
19049 * include/grub/command.h (grub_command_flags_t): New flags
19050 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
19051 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
19052 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
19054 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19056 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
19058 (GRUB_COMMAND_FLAG_MENU): Likewise.
19059 (GRUB_COMMAND_FLAG_BOTH): Likewise.
19060 (GRUB_COMMAND_FLAG_TITLE): Removed.
19061 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
19062 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
19063 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
19064 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
19065 (grub_command_flags_t): New enum. All users updated.
19067 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
19069 Fix solaris compilation.
19071 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
19072 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
19073 (grub-emu-list): Likewise.
19075 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19077 Remove deprecated root command.
19079 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
19082 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19084 * util/i386/pc/grub-setup.c: Merge this ...
19085 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
19086 * util/grub-setup.c: ... into this.
19087 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
19090 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19092 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
19095 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19097 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
19100 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19102 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
19103 explicit root argument to set to prevent UUID to be interpreted as
19106 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19108 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
19110 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19112 Don't export grub_gate_a20.
19114 * grub-core/kern/i386/pc/init.c: Remove leftovers.
19115 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
19117 (grub_gate_a20): ... this. All users updated.
19118 * include/grub/i386/pc/init.h: Removed. All users updated.
19120 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19122 Create euro.pf2 which supports most European languages.
19124 * Makefile.am (grubdata_DATA): Add euro.pf2.
19125 (euro.pf2): New target.
19126 (CLEANFILES): Add euro.pf2.
19128 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19130 * configure.ac: Disable emu-usb by default to prevent inadvertent
19133 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19135 Disable usbserial on grub-emu since our libusb code isn't good enough
19138 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
19139 (usbserial_pl2303): Likewise.
19140 (usbserial_ftdi): Likewise.
19142 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19144 * include/grub/disk.h (grub_disk): Remove has_partitions.
19146 * disk/loopback.c (grub_loopback): Remove has_partitions.
19148 (options): Remove partitions. All users updated.
19149 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
19150 * util/i386/pc/grub-setup.c (setup): copy partition table only when
19151 actual partition table is found.
19153 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19155 Remove readability checks (too many false negatives).
19157 * util/grub-install.in: Remove readability checks.
19158 * util/grub-mkconfig.in: Likewise.
19159 * util/grub.d/10_hurd.in: Likewise.
19160 * util/grub.d/10_kfreebsd.in: Likewise.
19161 * util/grub.d/10_linux.in: Likewise.
19162 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
19165 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19167 Enable acpi shutdown on all ACPI platforms.
19169 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
19170 on coreboo, multiboot and EFI.
19171 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
19172 (grub_acpi_halt): Likewise.
19173 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
19174 (grub_cmd_halt): Don't call grub_acpi_halt directly.
19175 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
19176 * grub-core/lib/i386/halt.c (grub_halt)
19177 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
19179 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19181 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
19184 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19186 * grub-core/video/efi_gop.c: Fix over-80-chars line.
19187 * grub-core/video/efi_uga.c: Likewise.
19189 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19191 Filter devaliases and never open same device twice.
19193 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
19194 (last_ihandle): Likewise.
19195 (ofdisk_hash_ent): New member shortest.
19196 (ofdisk_hash_add): Add canonical path too.
19197 (scan): New function.
19198 (grub_ofdisk_iterate): Iterate over hashed entries.
19199 (compute_dev_path): Don't add :0.
19200 (grub_ofdisk_open): Don't really open the disk.
19201 (grub_ofdisk_close): Avoid closing unrelated disk.
19202 (grub_ofdisk_read): Implement reopen logic.
19203 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
19205 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
19208 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19212 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
19213 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
19214 right address. Add sparc64_ieee1275_ldflags.
19215 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
19216 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
19217 to grub_host_to_target_addr
19218 (load_image): Likewise.
19220 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19222 * grub-core/normal/completion.c (complete_file): Handle device
19224 Fix based on patch by Doug Nazar.
19226 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19228 grub-mknetdir script.
19230 * Makefile.util.def (grub-mknetdir): New module.
19231 * tests/util/grub-shell.in: Support boot=net
19232 * util/grub-mknetdir.in: New file.
19234 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19236 videoinfo on non-vbe.
19238 * grub-core/Makefile.core.def (vbeinfo): Removed.
19239 (vbetest): Removed.
19240 (videoinfo): New module.
19241 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
19242 * grub-core/commands/i386/pc/vbetest.c: Removed.
19243 * grub-core/commands/videoinfo.c: New file.
19244 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
19246 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
19248 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
19249 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
19250 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
19251 mode_number. New parameter mode. All users updated.
19252 (grub_video_gop_iterate): New function.
19253 (grub_video_efi_gop): New member iterate.
19254 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
19255 (grub_vbe_set_video_mode): Remove setting useless fields.
19256 (vbe2videoinfo): New function.
19257 (grub_video_vbe_iterate): Likewise.
19258 (grub_video_vbe_setup): Use vbe2videoinfo.
19259 (grub_video_vbe_print_adapter_specific_info): New function.
19260 (grub_video_vbe_adapter): New fields iterate and
19261 print_adapter_specific_info.
19262 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
19264 (grub_video_mode_info): New field mode_number.
19265 (grub_video_adapter): New fields iterate and
19266 print_adapter_specific_info.
19268 2010-09-13 Tristan Gingold <gingold@free.fr>
19269 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
19270 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19272 * grub-core/commands/efi/lsefisystab.c: New file.
19273 * grub-core/commands/efi/lssal.c: Likewise.
19274 * grub-core/Makefile.core.def (lsacpi): New module.
19275 (lsefisystab): Likewise.
19276 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
19277 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
19278 (grub_efi_sal_system_table): New struct.
19279 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
19280 (grub_efi_sal_system_table_memory_descriptor): Likewise.
19281 (grub_efi_sal_system_table_platform_features): Likewise.
19282 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
19283 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
19284 (grub_efi_sal_system_table_ap_wakeup): Likewise.
19285 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
19287 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19289 Support explicit user claim that a device is BIOS-visible.
19291 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
19292 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
19293 * grub-core/kern/emu/hostdisk.c
19294 (convert_system_partition_to_system_disk): Support mdX.
19295 (find_system_device): New parameter add. All users updated.
19296 (grub_util_biosdisk_is_present): New function.
19297 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
19300 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19302 Search hints support.
19304 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
19307 2010-09-13 Yves Blusseau <blusseau@zetam.org>
19309 Bash completion script for util commands
19311 * Makefile.am: Add util/bash-completion.d directory
19312 * configure.ac: Likewise.
19313 * util/bash-completion.d/Makefile.am: New file.
19314 * util/bash-completion.d/grub-completion.bash.in: Likewise.
19316 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19318 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
19319 (print_backlog): set backlog_ucs4 and backlog_glyphs.
19320 Reported by: Yves Blusseau.
19322 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19324 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
19325 partition size and offset.
19327 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19329 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
19331 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19333 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
19335 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19337 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
19338 (grub_xvasprintf): Likewise.
19340 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19342 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
19344 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19346 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
19347 args ending with NULL.
19349 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19351 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
19354 2010-09-11 Szymon Janc <szymon@janc.net.pl>
19356 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
19358 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19360 Shutdown using ACPI.
19362 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
19363 * grub-core/commands/acpihalt.c: New file.
19364 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
19365 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
19366 (grub_acpi_halt): New proto.
19367 (GRUB_ACPI_SLP_EN): New const.
19368 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
19369 (GRUB_ACPI_OPCODE_*): New enum.
19370 (GRUB_ACPI_EXTOPCODE_*): Likewise.
19372 2010-09-11 Tristan Gingold <gingold@free.fr>
19373 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
19374 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19376 * commands/lsacpi.c: New file.
19377 * grub-core/Makefile.core.def (lsacpi): New module.
19378 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
19379 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
19380 (grub_acpi_madt_entry_header): New struct.
19381 (grub_acpi_madt): Likewise.
19382 (grub_acpi_madt_entry_interrupt_override): Likewise.
19383 (grub_acpi_madt_entry_sapic): Likewise.
19384 (grub_acpi_madt_entry_lsapic): Likewise.
19385 (grub_acpi_madt_entry_platform_int_source): Likewise.
19386 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
19387 (PRIuGRUB_UINT32_T): Likewise.
19388 (PRIxGRUB_UINT64_T): Likewise.
19390 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19392 Implement loading palette on ieee1275_fb.
19394 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
19395 (have_setcolors): Likewise.
19396 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
19397 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
19398 (grub_video_ieee1275_set_palette): Implement.
19400 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19401 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
19403 * util/grub-install.in (grub_partition): New variable.
19404 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
19405 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
19406 Fixes a bug reported by Yves Blusseau.
19408 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19412 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
19413 =grub_cpu_flush_cache on all mips and not only yeeloong.
19414 * configure.ac (COND_mips): New conditional.
19415 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
19417 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
19418 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
19419 [GRUB_LINKER_HAVE_INIT]: New function.
19420 (grub_emu_post_init): Likewise.
19421 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
19422 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
19423 * include/grub/cache.h (_mips): Include mips/cache.h.
19424 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
19425 LVM and RAID prototypes.
19426 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
19427 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
19430 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
19432 * util/grub-install.in: Don't try to verify core.img until after
19433 running grub-mkimage to create it.
19435 2010-09-10 Robert Millan <rmh@gnu.org>
19437 * util/grub.d/10_hurd.in: Add misc readability checks.
19438 * util/grub.d/10_kfreebsd.in: Likewise.
19439 * util/grub.d/10_linux.in: Likewise.
19441 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
19443 * util/grub-install.in: ${imgext} won't be defined here until the
19444 install branch is merged. For the meantime, only verify core.img on
19445 i386-pc and sparc64-ieee1275 platforms.
19447 2010-09-10 Robert Millan <rmh@gnu.org>
19449 Solaris support in grub_find_zpool_from_dir(). Thanks
19450 Seth Goldberg for referring to getextmntent() facility.
19452 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
19454 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
19456 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
19457 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
19458 method for finding zpool name.
19460 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
19462 grub-fstest needs the host and hostfs modules while other utilities
19463 actively require those modules to be absent, so grub-fstest needs
19464 its own initialisation and finalisation code.
19466 * Makefile.am (grub_fstest.pp): New target.
19467 (grub_fstest_init.lst): Likewise.
19468 (grub_fstest_init.c): Likewise.
19469 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
19471 2010-09-10 Robert Millan <rmh@gnu.org>
19473 * configure.ac: Check for `struct statfs.f_fstypename' and
19474 `struct statfs.f_mntfromname'.
19476 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
19477 kFreeBSD-specific code.
19479 2010-09-10 Robert Millan <rmh@gnu.org>
19481 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
19482 on ZFS. Now non-main filesystems are supported as / too.
19484 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
19486 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
19487 and grub-core/disk/host.c to ...
19488 (grub-fstest): ... here. Having the host disk implementation
19489 present confuses grub-probe and other utility programs.
19491 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
19492 when writing to a file, not when writing to stdout.
19494 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
19496 * tests/partmap_test.in: New test for partitions.
19497 * Makefile.util.def: Rules for new test.
19499 2010-09-09 Robert Millan <rmh@gnu.org>
19501 * util/grub-probe.c (probe): Fix a pair of unhandled error
19504 2010-09-09 Robert Millan <rmh@gnu.org>
19506 Basic Btrfs support (detection and UUID).
19508 * grub-core/fs/btrfs.c: New file.
19509 * Makefile.util.def (library): Register btrfs.c.
19510 * grub-core/Makefile.core.def: Likewise.
19512 2010-09-08 Robert Millan <rmh@gnu.org>
19514 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
19515 with (optional) parameters to specify device and relative path.
19516 * util/grub-install.in: Use is_path_readable_by_grub() to
19517 verify readability of a few critical files.
19518 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
19519 verify readability of grub.cfg.new.
19521 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
19523 Split minix.mod into minix.mod and minix2.mod.
19525 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
19526 * grub-core/Makefile.core.def (minix2): New module.
19527 * grub-core/fs/minix.c: Use definitions instead of runtime version
19529 * grub-core/fs/minix2.c: New file.
19531 2010-09-08 Yves Blusseau <blusseau@zetam.org>
19533 Add new --boot-directory option to replace --root-directory
19535 * util/grub-install.in: Add new --boot-directory option
19536 * util/grub-reboot.in: Likewise.
19537 * util/grub-set-default.in: Likewise.
19539 2010-09-08 Yves Blusseau <blusseau@zetam.org>
19541 * util/grub-mkconfig.in: Use new variable.
19543 2010-09-08 Yves Blusseau <blusseau@zetam.org>
19545 * configure.ac: Define some useful variables.
19547 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
19549 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
19550 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
19551 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
19552 Use terminfo and don't use cursor-on/cursor-off unless it's known
19554 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
19555 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
19557 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
19559 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
19560 starts with "(,", fill the drive containing the loaded image in
19561 between those two characters, but expect that a full partition
19562 specification including partition map names will follow.
19564 2010-09-08 Robert Millan <rmh@gnu.org>
19566 * configure.ac: Remove `--enable-grub-fstest' option.
19567 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
19569 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
19570 `grub-fstest' instead of `grub-probe' for readability verification.
19571 * util/grub-probe.c (probe): Remove readability verification kludge.
19573 2010-09-08 Robert Millan <rmh@gnu.org>
19575 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
19576 initializing `GRUB_FS'.
19578 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
19580 Not command (!) support to GRUB script.
19582 * tests/grub_script_not.in: New test.
19583 * Makefile.util.def: Rules for new test.
19585 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
19586 ! command as a special case.
19587 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
19589 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19591 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
19594 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19596 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
19598 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19600 * docs/grub.texi (Shell-like scripting): Documentation for break,
19601 continue, shift and return commands.
19603 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
19605 Rename CD-ROM to cd on BIOS.
19607 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
19609 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
19611 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19613 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
19614 * util/grub-probe.c (main): Likewise.
19615 * util/i386/pc/grub-setup.c (main): Likewise.
19616 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
19617 Reported and debugged by: alexxy
19619 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19621 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
19624 2010-09-05 Jo Shields <directhex@apebox.org>
19626 * util/grub.d/30_os-prober.in: Add missing classes.
19628 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19630 * docs/grub.texi (Theme file format): Document new position format.
19632 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19634 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
19635 a table. Use @code instead of @verbatim.
19637 2010-09-05 Colin D Bennett <colin@gibibit.com>
19639 Gfxmenu documentation.
19641 * docs/grub.texi (Theme file format): New chapter.
19643 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19645 * grub-core/Makefile.core.def (xzio): New module.
19646 * grub-core/io/xzio.c: New file.
19647 * grub-core/lib/xzembed/xz.h: New file (from xembed).
19648 * grub-core/lib/xzembed/xz_config.h: Likewise.
19649 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
19650 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
19651 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
19652 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
19653 * grub-core/lib/xzembed/xz_private.h: Likewise.
19654 * grub-core/lib/xzembed/xz_stream.h: Likewise.
19655 * include/grub/file.h (grub_file_filter_id): New compression filter
19656 GRUB_FILE_FILTER_XZIO.
19658 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19660 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
19661 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
19664 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19666 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
19667 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
19669 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19671 Uncompressed checksum support.
19673 * grub-core/commands/hashsum.c (options): Add option --uncompress.
19674 (check_list): New parameter uncompress.
19675 (grub_cmd_hashsum): Handle --uncompress.
19677 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19679 Reintroduce testload.
19681 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
19683 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
19684 (GRUB_MOD_INIT): New function.
19685 (GRUB_MOD_FINI): Likewise.
19686 * grub-core/Makefile.core.def (testload): New module.
19688 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19690 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
19691 (uint8_t): New type.
19692 (uint16_t): Likewise.
19693 (uint32_t): Likewise.
19694 (uint64_t): Likewise.
19696 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19698 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
19700 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19702 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
19704 (grub_gzfile_open): Removed. All users updated.
19705 (GRUB_MOD_INIT): New function.
19706 (GRUB_MOD_FINI): Likewise.
19707 * grub-core/kern/file.c (grub_file_filters_all): New variable.
19708 (grub_file_filters_enabled): Likewise.
19709 (grub_file_open): Handle filters.
19710 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
19711 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
19712 * include/grub/file.h (grub_file_filter_id_t): New type.
19713 (grub_file_filter_t): Likewise.
19714 (grub_file_filters_all): New extern variable.
19715 (grub_file_filters_enabled): Likewise.
19716 (grub_file_filter_register): New inline function.
19717 (grub_file_filter_unregister): Likewise.
19718 (grub_file_filter_disable): Likewise.
19719 (grub_file_filter_disable_compression): Likewise.
19720 * include/grub/gzio.h: Removed.
19722 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19724 Filename expansion support for wildcards in GRUB script.
19726 * tests/grub_script_expansion.in: New test.
19727 * Makefile.util.def: Rule for new test.
19729 * grub-core/commands/wildcard.c: New file, implements filename
19730 expansion support for GRUB script.
19731 * grub-core/Makefile.core.def: Rule update for regexp.mod.
19732 * grub-core/script/argv.c: Cosmetic changes.
19733 * grub-core/script/execute.c (grub_script_arglist_to_argv):
19734 Refactored to perform wildcard expansion on arguments.
19735 * include/grub/script_sh.h (grub_script_wildcard_translator): New
19738 * tests/util/grub-shell.in: Fix quoting for read input.
19740 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19742 Support for updating environment variables with matched substrings
19745 * tests/grub_cmd_regexp.in: New test.
19746 * Makefile.util.def: Rule for new test.
19748 * grub-core/commands/regexp.c: New option -s to update environment
19749 variables with regexp matches.
19751 2010-09-04 Szymon Janc <szymon@janc.net.pl>
19753 * include/grub/file.h (grub_file): New member not_easly_seekable.
19754 (grub_file_seekable): New inline function.
19755 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
19757 (grub_gzio_open): Set not_easly_seekable.
19758 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
19759 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
19761 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19763 Support for options to appear multiple times on cmdline.
19765 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
19766 * grub-core/commands/extcmd.c: Support for repeatable option.
19767 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
19768 repeatable option support.
19770 Refactor menuentry into a regular command.
19772 * grub-core/commands/menuentry.c: New file, menuentry command
19774 * grub-core/Makefile.core.def: Rule update for normal.mod.
19775 * grub-core/normal/main.c: Moved menuentry creation to
19776 grub-core/commands/menuentry.c.
19777 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
19778 (grub_menu_execute_entry_real): Removed.
19779 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
19781 (grub_script_execute_menuentry): Removed.
19782 * grub-core/script/parser.y (menuentry): Removed.
19783 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
19784 * grub-core/script/yylex.l (menuentry): Removed.
19785 * include/grub/menu.h (grub_menu_init): New prototype.
19786 (grub_menu_fini): New prototype.
19787 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
19788 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
19789 (grub_script_execute_sourcecode): New prototype.
19791 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19793 "return" command for GRUB script functions.
19795 * tests/grub_script_return.in: New test.
19796 * Makefile.util.def: Rules for new test.
19798 * grub-core/script/execute.c (grub_script_return): New function.
19799 * grub-core/script/main.c: Register/unregister return commaond.
19800 * include/grub/script_sh.h (grub_script_return): New prototype.
19802 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19804 "setparams" command to update positional parameters.
19806 * tests/grub_script_setparams.in: New test.
19807 * Makefile.util.def: Rules for new test.
19809 * grub-core/script/argv.c (grub_script_argv_make): New function.
19810 * grub-core/script/execute.c (replace_scope): New function.
19811 (grub_script_setparams): New function.
19812 * grub-core/script/lexer.c: Remove unused variables.
19813 * grub-core/script/main.c: Register/unregister setparams command.
19814 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
19815 (grub_script_setparams): New prototype.
19817 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19819 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
19822 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19824 Support for passing block of commands as an argument to extcmds.
19826 * Makefile.util.def: Rules for new test.
19827 * tests/grub_script_blockarg.in: New test.
19828 * grub-core/tests/test_blockarg.c: New file, block argument
19829 command used in the test.
19831 * include/grub/extcmd.h (grub_extcmd_context): New struct.
19832 (grub_register_extcmd_prio): New function prototype.
19833 (grub_extcmd_dispatcher): New function prototype.
19834 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
19836 * include/grub/script_sh.h (struct grub_script): New members
19837 `children', `next_siblings' and `refcnt' for block arguments and
19838 reference counting.
19839 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
19840 (grub_script_arg): New member `script' for block argument.
19841 (grub_script_argv): New member `script' for block argument.
19842 (grub_parser_param): New member `scripts' for block argument.
19843 (grub_script_mem_free): New extern function prototype.
19844 (grub_script_ref): New function prototype.
19845 (grub_script_unref): New function prototype.
19847 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
19848 extcmd form to support block arguments.
19849 * grub-core/script/argv.c: Block arguments support.
19850 * grub-core/script/execute.c: Likewise.
19851 * grub-core/script/lexer.c: Likewise.
19852 * grub-core/script/main.c: Likewise.
19853 * grub-core/script/script.c: Likewise.
19854 * grub-core/script/parser.y: Likewise. New `block' and `block0'
19857 * grub-core/commands/acpi.c: Update extcmd implementations with
19858 grub_extcmd_context_t.
19859 * grub-core/commands/cat.c: Likewise.
19860 * grub-core/commands/echo.c: Likewise.
19861 * grub-core/commands/extcmd.c: Likewise.
19862 * grub-core/commands/hashsum.c: Likewise.
19863 * grub-core/commands/hdparm.c: Likewise.
19864 * grub-core/commands/help.c: Likewise.
19865 * grub-core/commands/hexdump.c: Likewise.
19866 * grub-core/commands/i386/cpuid.c: Likewise.
19867 * grub-core/commands/i386/pc/drivemap.c: Likewise.
19868 * grub-core/commands/i386/pc/halt.c: Likewise.
19869 * grub-core/commands/i386/pc/sendkey.c: Likewise.
19870 * grub-core/commands/iorw.c: Likewise.
19871 * grub-core/commands/keystatus.c: Likewise.
19872 * grub-core/commands/loadenv.c: Likewise.
19873 * grub-core/commands/ls.c: Likewise.
19874 * grub-core/commands/lspci.c: Likewise.
19875 * grub-core/commands/memrw.c: Likewise.
19876 * grub-core/commands/probe.c: Likewise.
19877 * grub-core/commands/search_wrap.c: Likewise.
19878 * grub-core/commands/setpci.c: Likewise.
19879 * grub-core/commands/sleep.c: Likewise.
19880 * grub-core/disk/loopback.c: Likewise.
19881 * grub-core/hello/hello.c: Likewise.
19882 * grub-core/loader/i386/bsd.c: Likewise.
19883 * grub-core/loader/xnu.c: Likewise.
19884 * grub-core/term/gfxterm.c: Likewise.
19885 * grub-core/term/serial.c: Likewise.
19886 * grub-core/tests/lib/functional_test.c: Likewise.
19888 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19890 Multi-line quoted strings support.
19892 * grub-core/script/lexer.c (append_newline): Removed.
19893 (grub_script_lexer_yywrap): Refactored.
19894 (grub_script_lexer_init): Refactored.
19895 * grub-core/script/yylex.l (yywrap): New function.
19896 (grub_lexer_resplit): New function.
19897 (grub_lexer_unput): New function.
19898 * include/grub/script_sh.h (grub_lexer_param): New members, unput
19900 * tests/grub_script_echo1.in: Added few more testcases.
19902 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
19904 * grub-core/kern/misc.c: Don't add abort alias in utils.
19905 Reported by: echoline.
19907 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
19909 Add missing files into "make dist" tarball for other platforms.
19911 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
19912 * conf/Makefile.common (dist_noinst_DATA): New variable.
19913 * conf/Makefile.extra-dist: Added missing make dist files.
19914 * grub-core/Makefile.core.def: Likewise.
19916 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
19918 Compress grub_prefix.
19920 * grub-core/boot/i386/pc/lnxboot.S: Use
19921 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
19922 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
19923 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
19924 GRUB_MACHINE_PREFIX_END. All users updated.
19925 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
19926 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
19928 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
19929 * util/grub-mkimage.c (image_target_desc): Change data_end to
19930 prefix_end. All users updated.
19932 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
19934 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
19936 (grub_openbsd_boot): Likewise.
19937 (grub_netbsd_boot): Likewise.
19938 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
19939 (grub_xnu_boot): Likewise.
19941 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19943 * configure.ac: Clean LIBS variable after tests.
19945 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19947 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
19949 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19951 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
19952 echo if libdevmapper will be used.
19954 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
19956 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
19957 constant for the same file.
19959 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19961 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
19963 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19965 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
19968 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19970 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
19971 required by the boot protocol.
19973 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
19974 ebp and edi members.
19975 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
19976 state.ebp and state.edi.
19977 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
19978 %ebp and %edi according to grub_relocator32_ebp and
19979 grub_relocator32_edi respectively.
19980 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
19983 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19985 Add i386-pc-pxe image target.
19987 * util/grub-mkimage.c (image_target_desc): New enum value
19989 (image_targets): New target i386-pc-pxe.
19990 (generate_image): Handle i386-pc-pxe image.
19992 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19996 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
19997 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
19999 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
20000 (grub_pxe_pxenv): Correct type.
20002 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
20004 * NEWS: Document most of the important changes since 1.98.
20006 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
20008 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
20009 generated manual page) a little.
20011 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
20013 * docs/grub.texi: Add myself as an author.
20015 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
20017 * Makefile.util.def (libgrub.a): Add missing sunpc.
20018 Reported by: Seth Goldberg.
20020 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20022 Interrupt wrapping and code simplifications.
20024 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
20025 x86_noieee1275 which are functionaly equivalent in this case.
20026 (grub-install): Make source on each platform explicit. Enable on
20028 * gentpl.py (x86_efi_pc): Removed group.
20029 (x86_noefi): Likewise.
20030 (i386_noefi): Likewise.
20031 (x86_noieee1275): Likewise.
20032 (i386_noieee1275): Likewise.
20033 (i386_noefi_noieee1275): Likewise.
20034 (i386_pc_qemu_coreboot): Likewise.
20035 (i386_coreboot_multiboot): Likewise.
20036 (i386_pc_coreboot_multiboot_qemu): Likewise.
20037 (x86_noefi_mips): Likewise.
20038 (noieee1275): Likewise.
20039 (ieee1275_mips): Likewise.
20040 (noemu_noieee1275): Likewise.
20043 (videoinkernel): Likewise.
20044 (videomodules): Likewise.
20045 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
20046 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
20047 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
20048 include/grub/loader.h, include/grub/msdos_partition.h,
20049 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
20050 include/grub/machine/console.h, include/grub/machine/vga.h,
20051 include/grub/machine/vbe.h, include/grub/machine/init.h,
20052 include/grub/machine/kernel.h, include/grub/cpu/time.h,
20053 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
20054 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
20055 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
20056 * grub-core/Makefile.core.def (kernel): Explicit the source for
20057 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
20058 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
20059 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
20060 Use videoinkernel tag.
20061 (usb): Enable on all usb.
20062 (usbserial_common): Likewise.
20063 (usbserial_pl2303): Likewise.
20064 (usbserial_ftdi): Likewise.
20065 (uhci): Enable on all x86.
20066 (ohci): Enable on all pci.
20067 (cmostest): Enable on all CMOS.
20068 (acpi): Include commands/acpi.c on all platforms.
20069 (halt): Add relevant lib/*/halt.c.
20070 (hdparm): Enable on all pci.
20072 (usbtest): Enable on all usb.
20073 (ata): Enable on all pci.
20074 (ata_pthru): Likewise.
20075 (usbms): Enable on all usb.
20076 (usb_keyboard): Likewise.
20077 (font): Use tag videomodules.
20079 (datetime): Use tag cmos. Enable on all noemu.
20080 (mmap): Use tags common and x86.
20081 (gfxterm): Use tag videomodules.
20082 (bitmap): Likewise.
20083 (bitmap_scale): Likewise.
20084 (video_fb): Likewise.
20086 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
20087 adjust padding accordingly. All users updated.
20088 (grub_ohci_transaction): Fix bad format specification.
20089 (GRUB_MOD_INIT): Add asserts for struct size.
20090 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
20091 (grub_alloc_td): Likewise.
20092 (grub_free_queue): Likewise.
20093 (grub_uhci_transfer): Likewise.
20094 (grub_uhci_transaction): Fix bad format specification.
20095 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20096 (grub_usb_bulk_readwrite): Likewise.
20097 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
20098 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
20100 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
20102 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
20103 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
20104 Transformed into C.
20105 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
20106 Moved from here ...
20107 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
20108 ... here. Transformed into C. Made static.
20109 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
20110 Moved from here ...
20111 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
20112 ... here. Transformed into C. Made static.
20113 * grub-core/kern/i386/pc/startup.S
20114 (grub_biosdisk_check_int13_extensions): Moved from here ...
20115 * grub-core/disk/i386/pc/biosdisk.c
20116 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
20118 * grub-core/kern/i386/pc/startup.S
20119 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
20120 * grub-core/disk/i386/pc/biosdisk.c
20121 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
20122 Transformed into C. Made static.
20123 * grub-core/kern/i386/pc/startup.S
20124 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
20125 * grub-core/disk/i386/pc/biosdisk.c
20126 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
20127 Transformed into C. Made static.
20128 * grub-core/kern/i386/pc/startup.S
20129 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
20130 * grub-core/disk/i386/pc/biosdisk.c
20131 (grub_biosdisk_get_diskinfo_standard): ... here.
20132 Transformed into C. Made static.
20133 * grub-core/kern/i386/pc/startup.S
20134 (grub_biosdisk_get_num_floppies): Moved from here ...
20135 * grub-core/disk/i386/pc/biosdisk.c
20136 (grub_biosdisk_get_num_floppies): ... here.
20137 Transformed into C. Made static.
20138 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
20140 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
20141 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
20142 Transformed into C. Made static.
20143 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
20144 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
20145 Transformed into C. Made static.
20146 * grub-core/kern/i386/ieee1275/init.c: Removed.
20147 * grub-core/kern/i386/misc.S: Likewise.
20148 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
20149 Splitted from here ...
20150 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
20151 Transformed into C. Made static. All users updated.
20152 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
20153 Transformed into C. Made static. All users updated.
20154 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
20156 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
20157 Transformed into C. Made static. All users updated.
20158 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
20160 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
20161 Transformed into C. Made static. All users updated.
20162 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
20163 Removed (replaced by C version).
20164 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
20166 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
20167 Transformed into C. Made static.
20168 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
20170 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
20171 ... here. Transformed into C.
20172 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
20174 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
20175 ... here. Transformed into C.
20176 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
20178 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
20179 ... here. Transformed into C. Made static.
20180 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
20182 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
20183 ... here. Transformed into C.
20184 * grub-core/kern/i386/pc/startup.S
20185 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
20186 * grub-core/video/i386/pc/vbe.c
20187 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
20188 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
20190 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
20191 ... here. Transformed into C.
20192 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
20194 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
20195 ... here. Transformed into C.
20196 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
20198 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
20199 ... here. Transformed into C.
20200 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
20202 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
20203 ... here. Transformed into C.
20204 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
20206 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
20207 ... here. Transformed into C. Made static.
20208 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
20210 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
20211 ... here. Transformed into C. Made static.
20212 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
20214 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
20215 ... here. Transformed into C. Made static.
20216 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
20217 pxe_rm_entry as third argument.
20218 (grub_bios_interrupt): New function.
20219 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
20220 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
20221 of calling grub_stop.
20222 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
20223 * grub-core/lib/efi/halt.c (grub_halt): ...here.
20224 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
20225 * grub-core/lib/emu/halt.c (grub_halt): ... here.
20226 * grub-core/lib/i386/halt.c: Moved from here ...
20227 * grub-core/lib/i386/halt.c: ... here.
20228 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
20229 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
20230 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
20232 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
20233 * include/grub/i386/coreboot/init.h: Removed.
20234 * include/grub/i386/multiboot/init.h: Likewise.
20235 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
20236 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
20237 * include/grub/i386/pc/int.h: New file.
20238 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
20239 (grub_pxe_scan): Removed.
20240 (grub_pxe_call): Update prototype.
20241 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
20243 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
20244 * include/grub/i386/qemu/init.h: Removed.
20245 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
20247 (grub_halt): Likewise.
20248 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
20249 (grub_reboot): Likewise.
20250 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
20251 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
20252 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
20254 2010-08-30 Robert Millan <rmh@gnu.org>
20256 * NEWS: Document addition of ZFS support in `grub-install' and
20259 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
20261 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
20264 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20266 Remove leftover embedding of font objects.
20268 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
20269 * util/grub-install.in (font): Removed.
20270 * util/grub-mkimage.c (generate_image): Remove font support. All users
20273 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20275 Remove leftover embedding of font objects.
20277 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
20278 * util/grub-install.in (font): Removed.
20279 * util/grub-mkimage.c (generate_image): Remove font support. All users
20282 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20284 * docs/grub.texi (Network): Fix reference to pxe_blksize.
20285 Reported by: Ian Turner
20287 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20289 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
20290 timeout to avoid indefinite boot stalling.
20292 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20294 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
20295 (grub_env_write_color_highlight): Likewise.
20297 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20299 * grub-core/normal/term.c (print_more): Return to normal and not
20300 to standard state after printing "---MORE---".
20302 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20304 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
20305 Mask out the bit 0x80 since it has other meaning that specifiing color.
20307 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20309 New relocator. Allows for more kernel support and more straightforward
20312 * Makefile.am (BOOTTARGET): New variable.
20313 (QEMU32): Likewise.
20314 (linux.init.x86_64): New target.
20315 (linux.init.i386): Likewise.
20316 (multiboot.elf): Likewise.
20317 (kfreebsd.elf): Likewise.
20318 (kfreebsd.aout): Likewise.
20319 (pc-chainloader.elf): Likewise.
20320 (pc-chainloader.bin): Likewise.
20321 (ntldr.elf): Likewise.
20322 (ntldr.bin): Likewise.
20323 (multiboot2.elf): Likewise.
20324 (kfreebsd.init.x86_64): Likewise.
20325 (kfreebsd.init.i386): Likewise.
20326 (knetbsd.init.i386): Likewise.
20327 (kopenbsd.init.i386): Likewise.
20328 (knetbsd.init.x86_64): Likewise.
20329 (kopenbsd.init.x86_64): Likewise.
20330 (linux-initramfs.i386): Likewise.
20331 (linux-initramfs.x86_64): Likewise.
20332 (kfreebsd-mfsroot.i386.img): Likewise.
20333 (knetbsd.image.i386): Likewise.
20334 (kopenbsd.image.i386): Likewise.
20335 (kopenbsd.image.x86_64): Likewise.
20336 (knetbsd.miniroot-image.i386.img): Likewise.
20337 (kfreebsd-mfsroot.x86_64.img): Likewise.
20338 (knetbsd.image.x86_64): Likewise.
20339 (knetbsd.miniroot-image.x86_64.img): Likewise.
20340 (kfreebsd-mfsroot.i386.gz): Likewise.
20341 (bootcheck-kfreebsd-i386): Likewise.
20342 (kfreebsd-mfsroot.x86_64.gz): Likewise.
20343 (bootcheck-kfreebsd-x86_64): Likewise.
20344 (knetbsd.miniroot-image.i386.gz): Likewise.
20345 (bootcheck-knetbsd-i386): Likewise.
20346 (bootcheck-kopenbsd-i386): Likewise.
20347 (bootcheck-kopenbsd-x86_64): Likewise.
20348 (knetbsd.miniroot-image.x86_64.gz): Likewise.
20349 (bootcheck-knetbsd-x86_64): Likewise.
20350 (bootcheck-linux-i386): Likewise.
20351 (bootcheck-linux-x86_64): Likewise.
20352 (bootcheck-linux16-i386): Likewise.
20353 (bootcheck-linux16-x86_64): Likewise.
20354 (bootcheck-multiboot): Likewise.
20355 (bootcheck-multiboot2): Likewise.
20356 (bootcheck-kfreebsd-aout): Likewise.
20357 (bootcheck-pc-chainloader): Likewise.
20358 (bootcheck-ntldr): Likewise.
20359 (CLEANFILES): Add new targets.
20360 (BOOTCHECKS): New variable.
20361 (.PHONY): Add bootchecks.
20362 (SUCCESSFUL_BOOT_STRING): New variable.
20363 (BOOTCHECK_TIMEOUT): Likewise.
20364 (bootcheck): New target
20365 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
20366 * configure.ac: Correct efiemu excuse.
20367 * docs/grub.texi (Supported kernels): New chapter.
20368 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
20369 include/grub/mm_private.h. Simplify inclusion of
20370 include/grub/boot.h, include/grub/loader.h
20371 and include/grub/msdos_partition.h
20372 (KERNEL_HEADER_FILES) [i386_coreboot]:
20373 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
20374 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
20375 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
20376 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
20377 include/grub/machine/loader.h.
20378 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
20379 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
20381 (pci.mod): Enable on i386-multiboot.
20382 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
20383 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
20385 (relocator.mod): Rewritten.
20386 (aout.mod): Enable on all x86.
20387 (bsd.mod): Likewise.
20388 (ntldr.mod): New module.
20389 (linux.mod): Use loader/i386/linux.c on all x86.
20390 (xnu.mod): Enable on all x86.
20391 (vga_text.mod): disable on EFI and QEMU.
20392 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
20393 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
20394 * grub-core/efiemu/loadcore.c: Likewise.
20395 * grub-core/efiemu/main.c: Likewise.
20396 (grub_efiemu_exit_boot_services): Removed.
20397 (grub_efiemu_finish_boot_services): Likewise.
20398 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
20400 * grub-core/efiemu/i386/nocfgtables.c: New file.
20401 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
20402 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
20403 (grub_efi_finish_boot_services): Moved from here ...
20404 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
20405 Fille finish memory map and related data.
20406 (finish_mmap_buf): New variable.
20407 (grub_efi_uintn_t finish_mmap_size): Likewise.
20408 (grub_efi_uintn_t finish_key): Likewise.
20409 (grub_efi_uintn_t finish_desc_size): Likewise.
20410 (grub_efi_uint32_t finish_desc_version): Likewise.
20411 (grub_efi_is_finished): Likewise.
20412 (grub_efi_get_memory_map): Use saved memory map if EFI is already
20414 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
20415 (grub_elf64_phdr_iterate): Likewise.
20416 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
20417 (grub_os_area_size): Likewise.
20418 (grub_machine_init): Don't reserve os area.
20419 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
20420 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
20421 * grub-core/kern/i386/loader.S: Removed.
20422 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
20423 (grub_os_area_size): Likewise.
20424 (grub_machine_init): Don't reserve os area.
20425 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
20426 Don't call grub_dl_unload_all.
20427 Don't include loader.S.
20428 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
20429 Declare the memory after _end as available.
20430 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
20431 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
20432 (GRUB_MM_ALLOC_MAGIC): Moved from here...
20433 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
20434 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
20435 * include/grub/mm_private.h (grub_mm_header): ... here.
20436 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
20437 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
20438 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
20439 (grub_mm_region): ..here. Removed addr. Added pre_size.
20441 * grub-core/kern/mm.c (base): Renamed to ...
20442 (grub_mm_base): ... this. Made global.
20443 (grub_real_malloc): Alloc from end of region.
20444 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
20445 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
20446 * grub-core/kern/powerpc/cache_flush.S: ... here.
20447 * grub-core/lib/efi/relocator.c: New file.
20448 * grub-core/lib/i386/relocator.c: Rewritten.
20449 * grub-core/lib/i386/relocator16.S: New file.
20450 * grub-core/lib/i386/relocator32.S: Likewise.
20451 * grub-core/lib/i386/relocator64.S: Likewise.
20452 * grub-core/lib/i386/relocator_asm.S: Rewritten.
20453 * grub-core/lib/i386/relocator_common.S: New file.
20454 * grub-core/lib/ieee1275/relocator.c: Likewise.
20455 * grub-core/lib/mips/relocator.c: Rewritten.
20456 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
20457 stylistic adjustments.
20458 * grub-core/lib/powerpc/relocator.c: New file.
20459 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
20460 * grub-core/lib/relocator.c: Rewritten.
20461 * grub-core/lib/x86_64/relocator_asm.S: New file.
20462 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
20463 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
20464 (bsd_tag): New struct.
20465 (tags): New variable.
20466 (tags_last): Likewise.
20467 (netbsd_module): New struct.
20468 (netbsd_mods): New variable.
20469 (netbsd_mods_last): Likewise.
20470 (openbsd_opts): New parameter "serial".
20471 (OPENBSD_SERIAL_ARG): New definition.
20472 (netbsd_opts): New parameter "serial".
20473 (NETBSD_SERIAL_ARG): New definition.
20474 (grub_freebsd_add_meta): Reorganised into ...
20475 (grub_bsd_add_meta): ...this. All users updated.
20476 (grub_freebsd_add_mmap): Reorganised into ...
20477 (generate_e820_mmap): ...this...
20478 (grub_bsd_add_mmap): ...and this. All users updated.
20479 (grub_freebsd_list_modules): Use tags.
20480 (grub_netbsd_add_meta_module): New function.
20481 (grub_netbsd_list_modules): Likewise.
20482 (grub_freebsd_boot): Use relocator and finish EFI.
20483 (grub_openbsd_boot): Likewise.
20484 (grub_netbsd_setup_video): New function.
20485 (grub_netbsd_add_modules): Likewise.
20486 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
20488 (grub_bsd_unload): Unload tags.
20489 (grub_bsd_load_aout): Use relocator.
20490 (grub_bsd_elf32_size_hook): New function.
20491 (grub_bsd_elf32_hook): Use relocator.
20492 (grub_bsd_elf64_size_hook): New function.
20493 (grub_bsd_elf64_hook): Use relocator.
20494 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
20495 (grub_bsd_load): Zero-out openbsd_ramdisk.
20496 (grub_bsd_load): Use relocator.
20497 (grub_cmd_openbsd): Support serial.
20498 (grub_cmd_netbsd): Support modules.
20499 (grub_cmd_freebsd_module): Use relocator.
20500 (grub_netbsd_module_load): New function.
20501 (grub_cmd_netbsd_module): Likewise.
20502 (grub_cmd_openbsd_ramdisk): Likewise.
20503 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
20505 (GRUB_MOD_FINI): Unregister new commands.
20506 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
20507 (grub_freebsd_load_elfmodule_obj): Use relocator.
20508 (grub_freebsd_load_elfmodule): Likewise.
20509 (grub_freebsd_load_elf_meta): Likewise.
20510 (grub_netbsd_load_elf_meta): New function.
20511 (grub_openbsd_find_ramdisk): Likewise.
20512 * grub-core/loader/i386/bsd_helper.S: Removed.
20513 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
20514 * grub-core/loader/i386/bsd_trampoline.S: Removed.
20515 * grub-core/loader/i386/efi/linux.c: Likewise.
20516 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
20517 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
20518 (DEFAULT_VIDEO_MODE): Likewise.
20519 (real_mode_target): New variable.
20520 (prot_mode_target): Likewise.
20521 (initrd_mem_target): Likewise.
20522 (relocator): Likewise.
20523 (efi_mmap_buf): Likewise.
20524 (efi_mmap_size): Likewise.
20525 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
20526 (free_pages): Use relocator.
20527 (allocate_pages): Account for efi_mmap and use relocator. Return error.
20528 (grub_linux_setup_video): Return error.
20529 (grub_linux_trampoline_start): Removed.
20530 (grub_linux_trampoline_end): Likewise.
20531 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
20532 andd video parameters depending on firmware.
20533 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
20534 [GRUB_MACHINE_EFI]: Pass EFI parameters.
20535 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
20536 (grub_cmd_initrd): Use relocator.
20537 * grub-core/loader/i386/linux_trampoline.S: Removed.
20538 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
20539 (elf_sec_entsize): Likewise.
20540 (elf_sec_shstrndx): Likewise.
20541 (elf_sections): Likewise.
20542 (grub_multiboot_load): Use relocator.
20543 (grub_multiboot_get_mbi_size): Account for sections.
20544 (grub_multiboot_make_mbi): Use relocator and support sections.
20545 (grub_multiboot_add_elfsyms): New function.
20546 (grub_multiboot_free_mbi): Free sections.
20547 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
20548 (grub_linux_real_target): Likewise.
20549 (grub_linux_real_chunk): Likewise.
20550 (grub_linux16_prot_size): Likewise.
20551 (grub_linux16_boot): Use relocator.
20552 (grub_linux_unload): Unload relocator.
20553 (grub_cmd_linux): Use relocator.
20554 (grub_cmd_initrd): Likewise.
20555 * grub-core/loader/i386/pc/ntldr.c: New file.
20556 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
20557 Don't try to guess CPU frequency.
20558 (grub_xnu_set_video): Stretch bitmap.
20559 (grub_xnu_boot): Use relocator.
20560 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
20561 (grub_linux_unload): Free relocator.
20562 (grub_linux_load32): Use relocator.
20563 (grub_linux_load64): Likewise.
20564 (grub_cmd_initrd): Likewise.
20565 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
20566 (grub_multiboot_unload): Unload relocator.
20567 (grub_cmd_multiboot): Use relocator.
20568 (grub_cmd_module): Likewise.
20569 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
20570 Use relocator and support sections.
20571 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
20572 (elf_sec_entsize): Likewise.
20573 (elf_sec_shstrndx): Likewise.
20574 (elf_sections): Likewise.
20575 (grub_multiboot_load): Use relocator.
20576 (grub_multiboot_get_mbi_size): Account for sections.
20577 (grub_multiboot_make_mbi): Use relocator and support sections.
20578 (grub_multiboot_add_elfsyms): New function.
20579 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
20580 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
20581 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
20582 Prototype changed. All users updated.
20583 (grub_xnu_align_heap): Simplified.
20584 (grub_xnu_writetree_toheap): Likewise.
20585 (grub_xnu_unload): Unload relocator.
20586 (grub_cmd_xnu_kernel): Use relocator.
20587 (grub_cmd_xnu_kernel64): Likewise.
20588 (grub_xnu_register_memory): Simplified.
20589 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
20590 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
20592 (grub_console_checkkey): Likewise.
20593 (grub_console_getkey): Likewise.
20594 (grub_console_getwh): Likewise.
20595 (grub_console_getxy): Likewise.
20596 (grub_console_gotoxy): Likewise.
20597 (grub_console_cls): Likewise.
20598 (grub_console_setcolorstate): Likewise.
20599 (grub_console_setcursor): Likewise.
20600 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
20601 * grub-core/tests/boot/kbsd.init-i386.S: New file.
20602 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
20603 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
20604 * grub-core/tests/boot/kernel-8086.S: Likewise.
20605 * grub-core/tests/boot/kernel-i386.S: Likewise.
20606 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
20607 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
20608 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
20609 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
20610 * grub-core/tests/boot/knetbsd.cfg: Likewise.
20611 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
20612 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
20613 * grub-core/tests/boot/linux.cfg: Likewise.
20614 * grub-core/tests/boot/linux.init-i386.S: Likewise.
20615 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
20616 * grub-core/tests/boot/linux16.cfg: Likewise.
20617 * grub-core/tests/boot/multiboot.cfg: Likewise.
20618 * grub-core/tests/boot/multiboot2.cfg: Likewise.
20619 * grub-core/tests/boot/ntldr.cfg: Likewise.
20620 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
20621 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
20622 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
20624 * include/grub/dl.h (grub_dl_unload_all): Removed.
20625 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
20626 (grub_efi_finish_boot_services): Change prototype.
20627 (grub_efi_is_finished): New variable.
20628 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
20630 (grub_efiemu_finish_boot_services): Removed.
20631 (grub_machine_efiemu_init_tables): New prototype.
20632 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
20633 (grub_elf64_phdr_iterate): Likewise.
20634 * include/grub/i386/bsd.h: Include relocator.h.
20635 (freebsd_tag_header): New struct.
20636 (grub_openbsd_bios_mmap): Removed.
20637 (grub_unix_real_boot): Removed.
20638 (grub_freebsd_load_elfmodule32): Changed prototype.
20639 (grub_freebsd_load_elfmodule_obj64): Likewise.
20640 (grub_freebsd_load_elf_meta32): Likewise.
20641 (grub_freebsd_load_elf_meta64): Likewise.
20642 (grub_freebsd_add_meta): Removed.
20643 (grub_netbsd_load_elf_meta32): New prototype.
20644 (grub_netbsd_load_elf_meta64): Likewise.
20645 (grub_bsd_add_meta): Likewise.
20646 (grub_openbsd_ramdisk_descriptor): New struct.
20647 (grub_openbsd_find_ramdisk32): New prototype.
20648 (grub_openbsd_find_ramdisk64): Likewise.
20649 * include/grub/i386/coreboot/loader.h: Removed.
20650 * include/grub/i386/efi/loader.h: Likewise.
20651 * include/grub/i386/ieee1275/loader.h: Likewise.
20652 * include/grub/i386/linux.h (linux_kernel_header): Change void *
20654 * include/grub/i386/loader.h: Removed.
20655 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
20657 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
20658 (grub_phys_addr_t): New type.
20659 (grub_vtop): New inline function.
20660 (grub_map_memory): Likewise.
20661 (grub_unmap_memory): Likewise.
20662 * include/grub/i386/multiboot/loader.h: Removed.
20663 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
20664 (NETBSD_BTINFO_CONSOLE): New definition.
20665 (NETBSD_BTINFO_SYMTAB): Likewise.
20666 (NETBSD_BTINFO_MODULES): Likewise.
20667 (NETBSD_BTINFO_FRAMEBUF): Likewise.
20668 (grub_netbsd_bootinfo): New struct.
20669 (grub_netbsd_btinfo_common): Use explicit bitsize.
20670 (grub_netbsd_btinfo_mmap_entry): Removed.
20671 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
20672 (grub_netbsd_btinfo_bootdisk): New struct.
20673 (grub_netbsd_btinfo_symtab): Likewise.
20674 (grub_netbsd_btinfo_serial): Likewise.
20675 (grub_netbsd_btinfo_modules): Likewise.
20676 (grub_netbsd_btinfo_framebuf): Likewise.
20677 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
20678 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
20680 (grub_openbsd_bootargs): Use explicit bitsize.
20681 (grub_openbsd_bootarg_console): New struct.
20682 (GRUB_OPENBSD_COM_MAJOR): New definition.
20683 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
20684 * include/grub/i386/pc/efiemu.h: Removed.
20685 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
20686 * include/grub/i386/qemu/loader.h: Removed.
20687 * include/grub/i386/relocator.h: Rewritten.
20688 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
20689 * include/grub/mips/memory.h: New file.
20690 * include/grub/mips/multiboot.h: Rewritten.
20691 * include/grub/mips/relocator.h: Rewritten.
20692 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
20693 (grub_vtop): New function.
20694 (grub_map_memory): Likewise.
20695 (grub_unmap_memory): Likewise.
20696 * include/grub/misc.h (ALIGN_DOWN): New definition.
20697 * include/grub/mm.h (grub_mm_check_real): New proto.
20698 (GRUB_MM_CHECK): New definition.
20699 * include/grub/mm_private.h: New file.
20700 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
20701 (grub_multiboot_get_mbi_size): Removed.
20702 (grub_multiboot_make_mbi): Change prottype.
20703 (grub_multiboot_set_accepts_video): New proto.
20704 (grub_multiboot_add_elfsyms): Likewise.
20705 (grub_multiboot_payload_eip): New variable.
20706 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
20708 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
20710 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
20711 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
20712 * include/grub/powerpc/ieee1275/loader.h: Removed.
20713 * include/grub/powerpc/memory.h: New file.
20714 * include/grub/powerpc/relocator.h: Likewise.
20715 * include/grub/relocator.h: Likewise.
20716 * include/grub/relocator_private.h: Likewise.
20717 * include/grub/sparc64/ieee1275/loader.h: Removed.
20718 * include/grub/x86_64/memory.h: New file.
20719 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
20720 (grub_xnu_heap_malloc): Likewise.
20721 (grub_xnu_heap_real_start): Removed.
20722 (grub_xnu_heap_start): Likewise.
20723 (grub_xnu_relocator): New variable.
20724 (grub_xnu_heap_target_start): Likewise.
20725 * tests/util/grub-shell.in: Support non-pc.
20726 * util/grub-mkimage.c (image_targets): Fix multiboot target.
20728 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20730 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
20732 (grub_bidi_logical_to_visual): Check that malloc succeded.
20733 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
20735 (grub_xputs_normal): Likewise.
20737 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20739 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
20742 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20744 * grub-core/efiemu/runtime/efiemu.sh: Removed.
20746 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20748 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
20750 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20752 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
20755 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
20757 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
20759 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20761 * grub-core/normal/term.c (print_more): Fix a memory leak.
20762 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
20763 (grub_xputs_normal): Likewise.
20765 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20767 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
20768 the begining of the string
20770 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20772 * grub-core/script/script.c (grub_script_parse): Free parsed on
20775 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20777 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
20780 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20782 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
20785 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20787 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
20788 (scroll_up): Fix a memory leak.
20790 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20792 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
20795 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
20797 Handle USB pendrives exposed as floppies.
20799 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
20801 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
20802 Check for partitions on all devices.
20804 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20806 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
20807 (readkey): Likewise.
20809 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
20811 Multiple variable names support to "export" command.
20813 * normal/context.c (grub_cmd_export): "export" command supports
20814 multiple variable names.
20816 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
20818 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
20819 --target=drive output to Mach device name.
20821 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
20823 New Automake based build system for GRUB.
20825 * ABOUT-NLS: New file.
20826 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
20827 in Makefile.util.def file.
20828 * Makefile.util.def: New file. Autogen build definitions file for
20830 * conf/Makefile.common: New file. Common variables for GRUB host
20831 utils and target modules.
20832 * conf/Makefile.extra-dist: New file. Extra files for make dist.
20833 * docs/Makefile.am: New file. Automake file for docs.
20834 * gentpl.py: New file. Python script to generate Autogen
20836 * grub-core/Makefile.am: New file. GRUB target modules' rules
20837 that doesn't fit in Makefile.core.def file.
20838 * grub-core/Makefile.core.def: New file. Autogen build
20839 definitions file for GRUB target modules.
20840 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
20841 specific setjmp.S file.
20842 * po/Makefile.am: New file.
20844 * .bzrignore: New ignores.
20845 * INSTALL: New requirements, without Ruby.
20846 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
20847 * autogen.sh: Updated to invoke autogen as necessary.
20848 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
20849 and defines for Automake conditionals.
20850 * geninit.sh: Refactoring.
20852 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
20854 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
20857 * include/grub/test.h: Fix functional test modules' naming.
20858 * grub-core/tests/example_functional_test.c: Fix test module name.
20860 * util/misc.c: Hosted versions' of grub functions for libgrub.a
20861 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
20862 * util/grub-editenv.c: Likewise.
20863 * util/grub-fstest.c: Likewise.
20864 * util/grub-mkdevicemap.c: Likewise.
20865 * util/grub-mkfont.c: Likewise.
20866 * util/grub-mkimage.c: Likewise.
20867 * util/grub-mkpasswd-pbkdf2.c: Likewise.
20868 * util/grub-probe.c: Likewise.
20869 * util/grub-script-check.c: Likewise.
20870 * util/i386/pc/grub-setup.c: Likewise.
20871 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20873 * tests/util/grub-shell.in: Fix override directory path.
20874 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
20875 * util/import_gcry.py: Create Makefile.gcry.def file instead.
20877 * util/lvm.c: Update #includes.
20878 * util/raid.c: Likewise.
20879 * util/resolve.c: Likewise.
20880 * grub-core/bus/emu/pci.c: Likewise.
20881 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
20882 * grub-core/lib/posix_wrap/string.h: Likewise.
20883 * grub-core/kern/emu/main.c: Likewise.
20885 * grub-core/gensymlist.sh: New file. Script for generating kernel
20887 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
20889 * grub-core/gentrigtables.c: Fix unused variable warnings.
20891 * Makefile.in: Removed.
20892 * conf/any-emu.rmk: Removed.
20893 * conf/common.rmk: Removed.
20894 * conf/i386-coreboot.rmk: Removed.
20895 * conf/i386-efi.rmk: Removed.
20896 * conf/i386-ieee1275.rmk: Removed.
20897 * conf/i386-multiboot.rmk: Removed.
20898 * conf/i386-pc.rmk: Removed.
20899 * conf/i386-qemu.rmk: Removed.
20900 * conf/i386.rmk: Removed.
20901 * conf/mips-yeeloong.rmk: Removed.
20902 * conf/mips.rmk: Removed.
20903 * conf/powerpc-ieee1275.rmk: Removed.
20904 * conf/sparc64-ieee1275.rmk: Removed.
20905 * conf/tests.rmk: Removed.
20906 * conf/x86-efi.rmk: Removed.
20907 * conf/x86_64-efi.rmk: Removed.
20908 * gendistlist.sh: Removed.
20909 * geninitheader.sh: Removed.
20910 * genkernsyms.sh.in: Removed.
20911 * genmk.rb: Removed.
20912 * gensymlist.sh.in: Removed.
20913 * mkinstalldirs: Removed.
20915 * grub-core/boot: ... to here.
20917 * grub-core/bus: ... to here.
20918 * commands: Moved ...
20919 * grub-core/commands: ... to here.
20921 * grub-core/disk: ... to here.
20922 * efiemu: Moved ...
20923 * grub-core/efiemu: ... to here.
20925 * grub-core/font: ... to here.
20927 * grub-core/fs: ... to here.
20928 * gencmdlist.sh: Moved ...
20929 * grub-core/gencmdlist.sh: ... to here.
20930 * genemuinit.sh: Moved ...
20931 * grub-core/genemuinit.sh: ... to here.
20932 * genemuinitheader.sh: Moved ...
20933 * grub-core/genemuinitheader.sh: ... to here.
20934 * genfslist.sh: Moved ...
20935 * grub-core/genfslist.sh: ... to here.
20936 * genhandlerlist.sh: Moved ...
20937 * grub-core/genhandlerlist.sh: ... to here.
20938 * genmoddep.awk: Moved ...
20939 * grub-core/genmoddep.awk: ... to here.
20940 * genmodsrc.sh: Moved ...
20941 * grub-core/genmodsrc.sh: ... to here.
20942 * genpartmaplist.sh: Moved ...
20943 * grub-core/genpartmaplist.sh: ... to here.
20944 * genparttoollist.sh: Moved ...
20945 * grub-core/genparttoollist.sh: ... to here.
20946 * genterminallist.sh: Moved ...
20947 * grub-core/genterminallist.sh: ... to here.
20948 * gentrigtables.c: Moved ...
20949 * grub-core/gentrigtables.c: ... to here.
20950 * genvideolist.sh: Moved ...
20951 * grub-core/genvideolist.sh: ... to here.
20952 * gettext: Moved ...
20953 * grub-core/gettext: ... to here.
20954 * gfxmenu: Moved ...
20955 * grub-core/gfxmenu: ... to here.
20956 * gnulib: Moved ...
20957 * grub-core/gnulib: ... to here.
20959 * grub-core/hello: ... to here.
20961 * grub-core/hook: ... to here.
20963 * grub-core/io: ... to here.
20965 * grub-core/kern: ... to here.
20967 * grub-core/lib: ... to here.
20968 * loader: Moved ...
20969 * grub-core/loader: ... to here.
20971 * grub-core/mmap: ... to here.
20972 * normal: Moved ...
20973 * grub-core/normal: ... to here.
20974 * partmap: Moved ...
20975 * grub-core/partmap: ... to here.
20976 * parttool: Moved ...
20977 * grub-core/parttool: ... to here.
20978 * script: Moved ...
20979 * grub-core/script: ... to here.
20981 * grub-core/term: ... to here
20982 * tests/example_functional_test.c: Moved ...
20983 * grub-core/tests/example_functional_test.c: ... to here.
20984 * tests/lib/functional_test.c: Moved ...
20985 * grub-core/tests/lib/functional_test.c: ... to here.
20986 * tests/lib/test.c: Moved ...
20987 * grub-core/tests/lib/test.c: ... to here.
20989 * grub-core/video: ... to here.
20991 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
20993 Replace --enable-grub-emu-modules with grub-emu-lite.
20995 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
20998 * include/grub/emu/misc.h (grub_emu_init): New prototype.
20999 * kern/emu/full.c: New file. For grub-emu specific initialization.
21000 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
21001 * kern/emu/main.c: Call initialization function grub_emu_init.
21003 * Makefile.in: Include grub-emu-lite in install.
21004 * commands/parttool.c: Use grub_no_autoload to differentiate
21005 between grub-emu and grub-emu-lite.
21006 * include/grub/misc.h: New variable grub_no_autoload.
21008 * conf/any-emu.rmk: New rules for grub-emu-lite.
21009 * configure.ac: Remove --enable-grub-emu-modules.
21010 * genmk.rb: Cleanup unnecessary rules.
21011 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
21013 * normal/main.c: Don't load list files on grub-emu-lite.
21014 * util/misc.c (grub_arch_sync_caches): Removed.
21016 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
21018 * kern/mips/startup.S (grub_prefix): Update comment to refer to
21019 grub-mkimage rather than grub-mkelfimage.
21020 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
21022 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21024 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
21025 a key after CapsLock or NumLock. It's just a qemu bug.
21027 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
21029 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
21030 needed by libusb wrapper.
21032 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21034 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
21036 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
21038 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
21039 --nounzip is passed.
21041 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
21043 USB hotunplugging and USB serial support.
21045 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
21046 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
21047 (grub_uhci_transfer): Respect timeout and set *actual.
21048 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
21049 non-standard length.
21050 (grub_usb_device_attach): Autoload modules.
21051 (GRUB_MOD_INIT): Set grub_term_poll_usb.
21052 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
21053 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
21055 (grub_usb_add_hub): Fill nports and children.
21056 (attach_root_port): Receive hub instead of controller.
21057 All users updated. Fill hub->devices.
21058 (grub_usb_root_hub): Allocate hub->devices.
21059 (detach_device): New function.
21060 (poll_nonroot_hub): Fill children and detach devices.
21061 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
21062 actual arguments. All users updated.
21063 (grub_usb_bulk_read_extended): New function.
21064 * bus/usb/serial/common.c: New file.
21065 * bus/usb/serial/ftdi.c: Likewise.
21066 * bus/usb/serial/pl2303.c: Likewise.
21067 * commands/terminal.c (handle_command): Support wildcard.
21068 * commands/usbtest.c: Output "Unknown" instead of empty string.
21069 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
21070 (usbserial_common_mod_SOURCES): New variable.
21071 (usbserial_common_mod_CFLAGS): Likewise.
21072 (usbserial_common_mod_LDFLAGS): Likewise.
21073 (pkglib_MODULES): Add usbserial_pl2303.mod.
21074 (usbserial_pl2303_mod_SOURCES): New variable.
21075 (usbserial_pl2303_mod_CFLAGS): Likewise.
21076 (usbserial_pl2303_mod_LDFLAGS): Likewise.
21077 (pkglib_MODULES): Add usbserial_ftdi.mod.
21078 (usbserial_ftdi_mod_SOURCES): New variable.
21079 (usbserial_ftdi_mod_CFLAGS): Likewise.
21080 (usbserial_ftdi_mod_LDFLAGS): Likewise.
21081 (pkglib_MODULES): Add serial.mod.
21082 (serial_mod_SOURCES): New variable.
21083 (serial_mod_CFLAGS): Likewise.
21084 (serial_mod_LDFLAGS): Likewise.
21085 * conf/i386-pc.rmk: Likewise.
21086 * conf/mips-yeeloong.rmk: Likewise.
21087 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
21088 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
21089 * disk/usbms.c (first_available_slot): New variable.
21090 (grub_usbms_attach): Don't reuse free slots due to potential cache
21092 * include/grub/serial.h: Moved to ..
21093 * include/grub/ns8250.h: ...this.
21094 * include/grub/serial.h: New file.
21095 * include/grub/term.h (grub_term_poll_usb): New variable.
21096 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
21097 readkey. All users updated.
21098 (grub_terminfo_output_state): Pass term to put.
21099 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
21100 (grub_usb_controller_dev): Add timeout and actual arguments to
21101 transfer. All users updated.
21102 (grub_usb_interface): New field detach_data.
21103 (grub_usb_device): New fields children and nports.
21104 (grub_usb_ep_type_t): New type.
21105 (grub_usb_get_ep_type): New function.
21106 (grub_usb_bulk_read_extended): Likewise.
21107 * include/grub/usbdesc.h (grub_usb_desc): New type.
21108 * include/grub/usbserial.h: New file.
21109 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
21110 * kern/term.c (grub_term_poll_usb): New variable.
21111 (grub_getkey): Call grub_term_poll_usb if set.
21112 (grub_checkkey): Likewise.
21113 (grub_getkeystatus): Likewise.
21114 * term/serial.c: Moved controller-specific parts to ...
21115 * term/ns8250.c: ... here.
21116 * term/serial.c: Mostly rewritten.
21117 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
21120 2010-08-20 Robert Millan <rmh@gnu.org>
21122 Make kFreeBSD code more generic to support ext2fs as root, ufs as
21123 a separate module and maybe other interesting combinations.
21125 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
21126 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
21127 (kfreebsd_entry): Add generic filesystem module load routine.
21128 Map GRUB `ext2' to kFreeBSD `ext2fs'.
21130 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
21132 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
21133 "numcenter" (I misunderstood the purpose of this entry).
21134 * docs/grub.texi (sendkey): Likewise.
21136 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
21138 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
21139 status flag options; simply omitting the option is equivalent and
21140 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
21141 (keysym_table): Rename "num5numlock" to "numlock".
21142 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
21143 can uniformly say that only the last of multiple `sendkey'
21144 invocations has any effect.
21145 * docs/grub.texi (sendkey): New section.
21147 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
21149 * commands/i386/pc/sendkey.c (options): Fix three typos.
21151 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
21153 Implement sendkey support.
21155 * commands/i386/pc/sendkey.c: New file.
21156 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
21157 (sendkey_mod_SOURCES): New variable.
21158 (sendkey_mod_CFLAGS): Likewise.
21159 (sendkey_mod_LDFLAGS): Likewise.
21161 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
21163 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
21164 fix warnings from Autoconf.
21166 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
21168 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
21169 to avoid false positives with some assemblers that output things
21170 like "someprefix_func" as part of their output.
21172 2010-08-15 Robert Millan <rmh@gnu.org>
21174 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
21176 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
21177 grub_get_libzfs_handle() errors.
21179 2010-08-14 Robert Millan <rmh@gnu.org>
21181 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
21182 filesystem is not ZFS.
21184 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21186 Fix for misspelled color names defaulting to black/black (bug
21187 reported by Doug Nazar)
21189 * include/grub/normal.h (grub_parse_color_name_pair): Add return
21190 status to prototype.
21191 * normal/color.c (grub_parse_color_name_pair): Return failure
21193 (grub_env_write_color_normal): Ignore bad color names.
21194 (grub_env_write_color_highlight): Likewise.
21195 * normal/main.c (GRUB_MOD_INIT): Set default color names.
21197 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21199 "shift" command support to GRUB script.
21201 * include/grub/script_sh.h (grub_script_shift): New prototype.
21202 * script/execute.c (grub_script_shift): New function.
21203 * script/main.c (grub_script_init): Register shift command.
21204 (grub_script_fini): Unregister shift command.
21205 * util/grub-script-check.c (grub_script_cmd_shift): New function.
21207 * tests/grub_script_shift.in: New testcase.
21208 * conf/tests.rmk: Rules for new testcase.
21210 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21212 "continue" command support to GRUB script.
21214 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
21215 (grub_script_break): Continue support.
21216 * script/main.c (grub_script_init): Register continue command.
21217 (grub_script_fini): Unregister continue command.
21219 * tests/grub_script_continue.in: New testcase.
21220 * conf/tests.rmk: Rules for new testcase.
21222 2010-08-12 BVK Chaitanya <bvk@dbook>
21224 "break" command support to GRUB script.
21226 * conf/common.rmk: Rule updates to grub-script-check.
21227 * include/grub/misc.h (grub_min): New function.
21228 * include/grub/script_sh.h (grub_script_init): New prototype.
21229 (grub_script_fini): New prototype.
21230 (grub_script_break): New prototype.
21231 * script/main.c (grub_script_init): New function.
21232 (grub_script_fini): New function.
21233 * script/execute.c (grub_script_break): New function.
21234 * normal/main.c: Calls to grub_script_{init,fini}.
21235 * util/grub-script-check.c (grub_script_break): New function.
21237 * tests/grub_script_break.in: New testcase.
21238 * conf/tests.rmk: Rules for new test case.
21240 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21242 Function parameters support to GRUB script.
21244 * script/yylex.l (VARIABLE): Regular expression update.
21245 * script/function.c (grub_script_function_call): Moved ...
21246 * script/execute.c (grub_script_function_call): ... to here.
21247 (grub_script_execute_arglist_to_argv): Removed.
21248 (grub_script_arglist_to_argv): New function.
21249 * script/argv.c: New file.
21250 (grub_script_argv_free): New function.
21251 (grub_script_argv_next): Likewise.
21252 (grub_script_argv_append): Likewise.
21253 (grub_script_argv_split_append): Likewise.
21254 * include/grub/script_sh.h (grub_script_argv): New struct.
21255 (grub_script_argv_free): New function.
21256 (grub_script_argv_next): Likewise.
21257 (grub_script_argv_append): Likewise.
21258 (grub_script_argv_split_append): Likewise.
21260 * conf/common.rmk (normal.mod): New source script/argv.c.
21262 * tests/grub_script_echo1.in: More tests.
21263 * tests/grub_script_vars1.in: Likewise.
21264 * tests/grub_script_functions.in: New test case.
21265 * conf/tests.rmk: Rules for new testcase.
21267 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21269 Remove grub_script_cmdblock struct.
21271 * include/grub/script_sh.h: Remove grub_script_cmdblock.
21272 * script/parser.y: Likewise.
21273 * script/execute.c: Rename cmdblock suffix to cmdlist.
21274 * script/script.c: Likewise.
21275 * util/grub-script-check.c: Likewise.
21277 2010-08-11 Yves Blusseau <blusseau@zetam.org>
21279 * .bzrignore: add grub-macho2img
21281 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
21283 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
21285 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
21287 Remove the dump of sm712 initialisation sequence.
21289 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
21290 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
21291 (GRUB_VGA_IO_MISC_WRITE): Likewise.
21292 (GRUB_VGA_CR_*): Added many registers.
21293 (GRUB_VGA_SR_*): Likewise.
21294 (GRUB_VGA_GR_*): Likewise.
21295 (grub_vga_write_arx): New function.
21296 (grub_video_hw_config): New struct.
21297 (grub_vga_set_geometry): New function.
21298 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
21299 GRUB_PCI_CLASS_SUBCLASS_VGA.
21300 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
21301 * video/sm712.c (grub_sm712_write_reg): New function
21302 (grub_sm712_read_reg): Likewise.
21303 (grub_sm712_sr_write): Likewise.
21304 (grub_sm712_gr_write): Likewise.
21305 (grub_sm712_cr_write): Likewise.
21306 (grub_sm712_write_arx): Likewise.
21307 (grub_sm712_cr_shadow_write): Likewise.
21308 (grub_sm712_write_dda_lookup): Likewise.
21309 (grub_video_sm712_setup): Initialise the video rather then
21310 blindly replay the dump.
21311 (main) [TEST]: Add a routine to be able to compile as standalone for
21313 * video/sm712_init.c (sm712_init): Removed.
21314 (sm712_sr_seq1): New array.
21315 (sm712_sr_seq2): Likewise.
21317 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
21319 * include/grub/vga.h: Add missing grub/pci.h include.
21321 2010-08-10 Yves Blusseau <blusseau@zetam.org>
21323 * util/grub-macho2img.c (main): fix typo
21325 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
21327 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
21328 (grub_vga_gr_read): Likewise.
21329 (grub_vga_cr_write): Likewise.
21330 (grub_vga_cr_read): Likewise.
21331 (grub_vga_sr_write): Likewise.
21332 (grub_vga_sr_read): Likewise.
21333 (grub_vga_palette_read): Likewise.
21334 (grub_vga_palette_write): Likewise.
21335 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
21336 (grub_sm712_sr_read): New function.
21337 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
21338 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
21340 2010-08-09 Robert Millan <rmh@gnu.org>
21342 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
21343 out unused variables on non-ZFS build.
21345 2010-08-08 Robert Millan <rmh@gnu.org>
21347 Fix path generation for sub-filesystems in ZFS.
21349 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
21352 2010-08-08 Robert Millan <rmh@gnu.org>
21354 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
21356 2010-08-08 Robert Millan <rmh@gnu.org>
21358 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
21359 exist, issue a proper error message (rely on `ls' for translated
21362 2010-08-08 Robert Millan <rmh@gnu.org>
21364 Fix grub-probe invocation.
21366 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
21368 2010-08-04 Robert Millan <rmh@gnu.org>
21370 * configure.ac: Remove checks for getfsstat() and getmntany().
21371 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
21372 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
21373 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
21374 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
21375 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
21377 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
21378 via find_mount_point_from_dir() and getfsstat() / getmntany().
21380 2010-08-04 Robert Millan <rmh@gnu.org>
21382 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
21383 (grub_find_zpool_from_mount_point): Merge into ...
21384 (grub_find_zpool_from_dir): ... this.
21385 * kern/emu/misc.c: Likewise.
21388 (grub_make_system_path_relative_to_its_root): Replace
21389 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
21390 with grub_find_zpool_from_dir().
21391 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
21393 2010-08-04 Robert Millan <rmh@gnu.org>
21395 Support OpenSolaris in ZFS device resolution.
21397 * configure.ac: Check for getmntany().
21398 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
21399 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
21402 2010-08-03 Robert Millan <rmh@gnu.org>
21404 Fix grub-emu build.
21406 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
21407 * include/grub/emu/misc.h: ... here.
21409 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
21410 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
21412 * util/misc.c: Remove `<grub/util/libzfs.h>'.
21413 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
21414 (grub_get_libzfs_handle): Move to ...
21415 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
21416 (grub_get_libzfs_handle): ... here.
21418 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
21420 * script/execute.c (grub_script_execute_cmdline): Check for NULL
21421 as command name case.
21423 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
21425 * disk/raid.c (insert_array): Select unique numbers for named arrays
21426 as well, for use as keys in the disk cache.
21428 2010-08-01 Robert Millan <rmh@gnu.org>
21430 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
21431 kFreeBSD device name, except on ZFS where the filesystem label is
21433 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
21434 `/boot/zfs/zpool.cache'.
21435 Set mountfrom kernel variable using ${kfreebsd_device}.
21437 2010-08-01 Robert Millan <rmh@gnu.org>
21439 Make it even harder to use uninitialized `libzfs_handle' (and
21440 make the interface a bit simpler).
21442 * include/grub/util/misc.h (grub_util_init_libzfs)
21443 (libzfs_handle): Remove.
21444 (grub_get_libzfs_handle): New prototype.
21446 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
21448 (grub_util_init_libzfs): Remove.
21449 (grub_get_libzfs_handle): New function.
21451 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
21452 grub_get_libzfs_handle() to obtain a libzfs handle instead of
21453 accessing `libzfs_handle' directly.
21455 2010-08-01 Robert Millan <rmh@gnu.org>
21457 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
21458 (grub_find_zpool_from_mount_point): New function prototypes.
21460 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
21461 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
21463 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
21464 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
21465 `static' attribute.
21467 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
21468 finding zpool from mount point into ...
21469 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
21471 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
21472 requested path is part of a ZFS pool, use
21473 grub_find_zpool_from_mount_point() to detect its filesystem name,
21474 and generate a path with `/fsname@path' syntax.
21476 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21478 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
21479 (void) rather than () so that this is a proper prototype.
21481 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21483 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
21485 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21487 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
21488 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
21490 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21492 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
21494 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21496 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
21498 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21500 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
21501 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
21502 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
21503 disable gfxpayload.
21504 (Shell-like scripting): Add real content.
21505 (Serial terminal): Suggest `terminal_input serial; terminal_output
21506 serial' rather than putting the two commands on separate lines,
21507 since console input will be inoperative after the first command.
21508 (menuentry): Document --class, --users, and --hotkey options.
21509 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
21510 Vladimir Serbinenko).
21512 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21513 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21515 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
21517 2010-08-01 Robert Millan <rmh@gnu.org>
21519 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
21520 (grub_find_zpool_from_mount_point): New function prototypes.
21522 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
21523 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
21525 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
21526 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
21527 `static' attribute.
21529 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
21530 finding zpool from mount point into ...
21531 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
21533 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
21534 requested path is part of a ZFS pool, use
21535 grub_find_zpool_from_mount_point() to detect its filesystem name,
21536 and generate a path with `/fsname@path' syntax.
21538 2010-08-01 Robert Millan <rmh@gnu.org>
21540 Prevent accidental use of uninitialized libzfs_handle.
21542 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
21543 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
21544 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
21546 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21548 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
21549 util/grub.d/10_linux.in). Fixes Debian bug #591093.
21551 2010-08-01 Robert Millan <rmh@gnu.org>
21553 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
21555 2010-07-31 Robert Millan <rmh@gnu.org>
21557 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
21559 2010-07-31 Robert Millan <rmh@gnu.org>
21561 * kern/emu/misc.c: Add missing license header.
21563 2010-07-31 Robert Millan <rmh@gnu.org>
21565 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
21567 * include/grub/util/libnvpair.h: Include `<config.h>'.
21568 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
21569 declaring libnvpair prototypes ourselves.
21570 * include/grub/util/libzfs.h: Include `<config.h>'.
21571 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
21572 declaring libzfs prototypes ourselves.
21574 (libzfs_handle): Moved to ...
21575 * include/grub/util/misc.h (libzfs_handle): ... here.
21576 Include `<grub/util/libzfs.h>'.
21578 2010-07-30 Robert Millan <rmh@gnu.org>
21580 * include/grub/emu/misc.h: Add missing license header.
21582 2010-07-30 Robert Millan <rmh@gnu.org>
21584 Enable `grub-probe -t device' resolution on ZFS.
21586 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
21587 * include/grub/util/libnvpair.h: New file.
21588 * include/grub/util/libzfs.h: New file.
21590 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
21591 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
21592 `<grub/util/libnvpair.h>'.
21593 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
21595 (find_mount_point_from_dir): New static function.
21596 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
21598 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
21599 find_root_device_from_libzfs() before ressorting to find_root_device().
21601 * include/grub/util/misc.h (grub_util_init_libzfs): New function
21603 * util/misc.c: Include `<grub/util/libzfs.h>'.
21604 (grub_util_init_libzfs): New function.
21605 [HAVE_LIBZFS] (libzfs_handle): New global variable.
21606 [HAVE_LIBZFS] (fini_libzfs): New static function.
21607 (grub_util_init_libzfs): New function.
21608 * util/grub-probe.c (main): Call grub_util_init_libzfs().
21610 2010-07-30 Robert Millan <rmh@gnu.org>
21612 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
21613 (xmalloc, xrealloc, xstrdup, xasprintf): Add
21614 `warn_unused_result' attribute.
21615 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
21616 (grub_xasprintf, grub_xvasprintf): Likewise.
21617 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
21619 2010-07-29 Robert Millan <rmh@gnu.org>
21621 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
21622 (probe): Handle `PRINT_FS_LABEL'.
21623 (main): Handle `-t fs_label'.
21625 2010-07-29 Robert Millan <rmh@gnu.org>
21627 * configure.ac: Remove grub-mkisofs checks.
21629 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
21631 * util/ieee1275/grub-install.in: Don't use empty grub_device.
21632 Reported by: Lennart Sorensen.
21634 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21636 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
21637 prior to terminal_input/terminal_output separation. It's been over 1.5
21638 years and those versions weren't widely deployed.
21640 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
21642 * disk/raid.c (insert_array): Don't count named arrays when looking
21643 for unused array numbers.
21644 Reported and tested by: Michael Guntsche.
21646 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21648 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
21649 implementation of this so that grub-emu links again, with a note
21650 that this should support hotplugging in the future.
21652 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21654 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
21656 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21658 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
21660 (grub_loopback_close): Remove empty function.
21661 (grub_loopback_dev): Remove close method.
21663 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21665 Disable EFI cursor when the EFI console becomes inactive.
21667 * term/efi/console.c (grub_efi_console_init): New function.
21668 (grub_efi_console_fini): New function.
21669 (grub_console_term_output): Register init and fini methods.
21671 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21673 * tests/util/grub-shell-tester.in: Remove bashism and declare as
21676 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21678 * disk/loopback.c (grub_loopback): Replace filename with file.
21679 (delete_loopback): Handle new semantics.
21680 (grub_cmd_loopback): Likewise.
21681 (grub_loopback_iterate): Likewise.
21682 (grub_loopback_close): Likewise.
21684 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21686 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
21688 Reported by: Tito Keitel.
21690 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21692 * docs/grub.texi (Naming convention): Document new naming convention.
21694 2010-07-20 Vadim Solomin <vadic052@gmail.com>
21695 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21697 Generate device.map in something closer to the old ordering.
21699 * util/deviceiter.c (struct device): New declaration.
21700 (compare_file_names): Rename to ...
21701 (compare_devices): ... this. Sort by kernel name in preference to
21702 the stable by-id name, but keep the latter as a fallback comparison.
21703 Update header comment.
21704 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
21705 of `struct device' rather than of plain file names.
21707 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
21709 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
21712 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21714 * commands/acpi.c (setup_common_tables): Use sizeof instead of
21716 (setv1table): Likewise.
21718 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21720 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
21721 removing the homehost if present.
21722 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
21723 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
21724 removing the homehost if present.
21725 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
21727 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
21729 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
21730 parameter. Set its pointer target to 0.
21731 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
21732 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
21733 `data_offset' value from the superblock for 1.x metadata.
21734 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
21735 data on the device.
21736 (insert_array): Record the start sector of data on the device.
21737 (grub_raid_register): Pass start_sector parameters to
21738 grub_raid_list->detect and insert_array.
21739 * include/grub/raid.h (struct grub_raid_array): Add start_sector
21741 (struct grub_raid): Add start_sector parameter to `detect'.
21743 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
21744 __attribute__ ((packed)), leaving a comment.
21745 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
21746 (grub_mdraid_detect_09): ... here and ...
21747 (grub_mdraid_detect_1x): ... here.
21749 2010-07-20 Peter Henn <peter.henn@web.de>
21751 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
21752 chunk size and disk size, which are already given as sector counts
21753 as distinct from the 0.90 units. Fetch the correct device number
21754 from the role table instead of using the table index.
21756 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
21758 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
21759 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
21760 (WriteMostly1): New macro.
21761 Set array->name to NULL for metadata format 0.90. Add support for
21762 metadata 1.x. Fix some comments.
21763 * disk/raid.c (): Add support for name based RAID arrays. Fix a
21765 * util/getroot.c (grub_util_get_grub_dev): Add support for
21766 /dev/md/name style devices.
21768 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21770 * .bzrignore: Ignore 20_linux_xen.
21772 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
21774 * util/import_unicode.py: Remove unnecessary imports.
21776 2010-07-17 Aleš Nesrsta <starous@volny.cz>
21778 Hotplugging and USB hub support.
21780 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
21781 (grub_ohci): Likewise.
21782 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
21783 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
21784 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
21785 (GRUB_OHCI_CTRL_EDS): Likewise.
21786 (GRUB_OHCI_BULK_EDS): Likewise.
21787 (GRUB_OHCI_TDS): Likewise.
21788 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
21789 (grub_ohci_ed_phys2virt): New function.
21790 (grub_ohci_virt_to_phys): Likewise.
21791 (grub_ohci_td_phys2virt): Likewise.
21792 (grub_ohci_td_virt2phys): Likewise.
21793 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
21795 (grub_ohci_find_ed): New function.
21796 (grub_ohci_alloc_td): Likewise.
21797 (grub_ohci_free_td): Likewise.
21798 (grub_ohci_free_tds): Likewise.
21799 (grub_ohci_transfer): Use previously allocated memory.
21800 (grub_ohci_portstatus): Reset status changed bit.
21801 (grub_ohci_detect_dev): Supply status changed.
21802 (grub_ohci_fini_hw): Free memory.
21803 (grub_ohci_restore_hw): Reallocate memory.
21804 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
21805 Reset status change.
21806 (grub_uhci_detect_dev): Supply status_change.
21807 * bus/usb/usb.c (attach_hooks): New var.
21808 (grub_usb_device_attach): New function.
21809 (grub_usb_register_attach_hook_class): Likewise.
21810 (grub_usb_unregister_attach_hook_class): Likewise.
21811 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
21812 (grub_usb_add_hub): Reset connection changed bit.
21813 (attach_root_port): New function.
21814 (grub_usb_root_hub): Likewise.
21815 (poll_nonroot_hub): Likewise.
21816 (grub_usb_poll_devices): Likewise.
21817 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
21818 * disk/usbms.c (grub_usbms_open): Use device hooks.
21819 (grub_usbms_iterate) :Poll devices.
21820 (grub_usbms_finddevs): Split into ...
21821 (grub_usbms_attach): ... this ...
21822 (grub_usbms_attach): ... and this.
21823 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
21825 (grub_usb_interface): New fields attached and detach_hook.
21826 (grub_usb_attach_hook_class): New type.
21827 (grub_usb_attach_desc): New struct.
21828 (grub_usb_register_attach_hook_class): New function.
21829 (grub_usb_unregister_attach_hook_class): Likewise.
21830 (grub_usb_poll_devices): Likewise.
21831 (grub_usb_device_attach): Likewise.
21832 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
21833 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
21835 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21837 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
21838 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
21839 delta determination style. Works with most NetBSD partitions too.
21841 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21843 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
21844 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
21846 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21848 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
21850 2010-07-14 Anton Blanchard <anton@samba.org>
21852 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
21855 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21857 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
21859 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21861 * kern/partition.c (grub_partition_check_containment): New function to
21862 check that a partition is physically contained in a parent. Since
21863 offsets are relative (and non-negative), this reduces to checking that
21864 the partition ends before its parent.
21865 (grub_partition_map_probe): Discard out-of-range sub-partitions.
21866 (grub_partition_iterate): Likewise.
21867 * include/grub/partition.h (grub_partition_map): Slightly more detailed
21869 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
21870 partitions that start before their parent, and add debug printfs.
21872 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
21874 * Makefile.in (.SUFFIX): Spell correctly, as ...
21875 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
21876 bare module name without `.mod', e.g. `test') tried to invoke a
21879 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
21881 * README: Point to the Info manual.
21883 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
21885 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
21886 2nd superblock position from partition size.
21888 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
21890 * Makefile.in (MAINTAINER_CLEANFILES): Remove
21891 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
21892 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
21895 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21897 Restructure SCSI .id handling.
21898 Reported and tested by: Aleš Nesrsta.
21900 * disk/ata.c (grub_atapi_close): Removed. All users updated.
21901 (grub_atapi_dev): Changed .name to "ata". New field .id.
21902 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
21903 (grub_usbms_dev): New field .id.
21904 * disk/scsi.c (grub_scsi_iterate): Generate name.
21905 (grub_scsi_open): Parse name.
21906 * include/grub/scsi.h (grub_make_scsi_id): New function.
21907 (grub_scsi_dev): Change iterate and open to number instead of naming
21908 busses. All users updated.
21909 (grub_scsi): Remove name. Add .bus.
21911 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21913 * commands/help.c (grub_cmd_help): Fix a typo.
21915 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21917 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
21918 Reported and tested by: Colin Watson.
21920 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21922 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
21925 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
21927 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
21929 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
21931 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
21934 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21936 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
21937 and disk/raid6_recover.c.
21938 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21939 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
21941 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21943 * term/gfxterm.c (repaint_schedulded): Rename to ...
21944 (repaint_scheduled): ... this. Update all callers.
21945 (repaint_was_schedulded): Rename to ...
21946 (repaint_was_scheduled): ... this. Update all callers.
21948 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21950 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
21951 which we expect to be handled by upper layers.
21953 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
21955 * bus/usb/usbhub.c: #include time.h header.
21957 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21959 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
21960 entry_name also for entries without stat blocks (e.g. ".."); fixes
21961 corruption of the first entry in a directory.
21963 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21965 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
21966 after setting gfxterm as the active terminal. GRUB_BACKGROUND
21967 doesn't work otherwise.
21969 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21971 * docs/grub.texi (Features): Update list of supported file systems.
21972 (GNU/Linux): Update for GRUB 2.
21973 (Serial terminal): Remove mention of --disable-serial, which was a
21974 GRUB Legacy configure option. Update instructions to use
21975 `terminal_input' and `terminal_output' rather than `terminal'.
21976 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
21977 configuration' and `Installing GRUB using grub-install'.
21978 (Menu entry editor): Update for GRUB 2.
21979 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
21980 Document new -a, -u, and -v options.
21981 (initrd): New section.
21982 (initrd16): New section.
21983 (linux): New section.
21984 (linux16): New section.
21985 (search): The `var' argument to `--set' is optional.
21986 (GRUB only offers a rescue shell): Go into a little more detail on
21989 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21991 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
21993 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21995 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
21996 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
21998 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
22000 * util/i386/pc/grub-setup.c (setup): Rename prefix to
22001 install_prefix, in line with install_dos_part and install_bsd_part.
22002 Add new prefix variable, which is copied to install_prefix after
22003 comparing core.img in memory with the one read from disk in the
22004 no-embedding case, and use that rather than overwriting
22005 install_prefix immediately when installing to a partition.
22006 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
22009 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
22011 * configure.ac: Avoid == in test command, it's not portable.
22012 * util/grub.d/30_os-prober.in: Likewise.
22014 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
22016 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
22018 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
22020 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
22021 multiple (top-level) partmaps.
22023 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22025 * util/i386/efi/grub-install.in: Don't use empty grub_device.
22026 Reported by: Tino Keitel.
22028 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22030 Bidi and diacritics support.
22032 * Makefile.in (widthspec.bin): New target.
22033 (widthspec.h): Likewise.
22034 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
22035 * autogen.sh: Generate unidata.c.
22036 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
22037 * commands/ls.c (grub_ls_list_devices): Likewise.
22038 (grub_ls_list_files): Likewise.
22039 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
22040 (grub_mini_cmd_lsmod): Likewise.
22041 * commands/read.c: Likewise.
22042 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
22043 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
22044 * lib/arg.c (grub_arg_show_help): Likewise.
22045 * lib/crypto.c (grub_password_get): Likewise.
22046 * normal/auth.c (grub_username_get): Likewise.
22047 * normal/misc.c (grub_normal_print_device_info): Likewise.
22048 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
22049 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
22050 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
22051 (normal/charset.c_DEPENDENCIES): New variable.
22052 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
22053 (pkglib_MODULES): Remove charset.mod.
22054 (charset_mod_SOURCES): Removed.
22055 (charset_mod_CFLAGS): Likewise.
22056 (charset_mod_LDFLAGS): Likewise.
22057 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
22058 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
22060 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22061 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22062 (kernel_img_HEADERS): Add terminfo.h.
22063 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
22064 Fill ->font. Reverse ascii bitmaps.
22065 (grub_font_get_xheight): New function.
22066 * font/font.c (grub_font_get_string_width): Moved from here ...
22067 * gfxmenu/font.c (grub_font_get_string_width): ... here.
22068 * font/font.c (grub_font_draw_string): Moved from here ...
22069 * gfxmenu/font.c (grub_font_draw_string): ... here.
22070 * font/font.c (grub_font_dup_glyph): New function.
22071 (grub_font_blit_glyph): Likewise.
22072 (grub_font_blit_glyph_mirror): Likewise.
22073 (blit_comb): Likewise.
22074 (grub_font_construct_dry_run): Likewise.
22075 (grub_font_get_constructed_device_width): Likewise.
22076 (grub_font_construct_glyph): Likewise.
22077 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
22078 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
22079 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
22080 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
22081 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
22082 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
22083 (grub_font_get_xheight): New proto.
22084 (grub_font_get_constructed_device_width): Likewise.
22085 (grub_font_construct_glyph): Likewise.
22086 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
22087 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
22088 * include/grub/font.h (grub_font_draw_string): Moved from here ...
22089 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
22090 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
22091 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
22092 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
22093 (grub_console_getcharwidth): Likewise.
22094 * include/grub/misc.h (grub_xputs): New proto.
22095 (grub_puts): Inlined.
22096 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
22097 (grub_normal_get_line_counter): Removed.
22098 (grub_install_newline_hook): Likewise.
22099 (grub_normal_get_char_counter): New proto.
22100 (grub_normal_reset_more): Likewise.
22101 (grub_xputs_normal): Likewise.
22102 * include/grub/powerpc/ieee1275/console.h: Removed.
22103 * include/grub/sparc64/ieee1275/console.h: Likewise.
22104 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
22105 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
22106 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
22107 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
22108 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
22109 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
22110 (grub_term_input): Pass reference to self. All users updated.
22111 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
22112 Pass reference to self. New fields normal_color, highlight_color and
22113 data. All users updated.
22114 (grub_putchar): Removed.
22115 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
22116 (grub_unicode_estimate_width): New function.
22117 (grub_term_getcharwidth): Add defaults.
22118 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
22119 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
22120 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
22121 (grub_cls): Remove EXPORT_FUNC.
22122 (grub_setcolorstate): Inline.
22123 (grub_newline_hook): Removed.
22124 * include/grub/terminfo.h: Rewritten. All users updated.
22125 * include/grub/unicode.h: New file.
22126 * include/grub/video.h (grub_video_signed_rect): New type.
22127 * kern/emu/console.c (grub_console_highlight_color): Removed.
22128 (grub_console_normal_color): Likewise.
22129 (grub_console_standard_color): Made static.
22130 (grub_ncurses_putchar): Remove mapping.
22131 (grub_ncurses_getcharwidth): Removed.
22132 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
22133 (grub_ncurses_setcolor): Removed.
22134 (grub_ncurses_getcolor): Likewise.
22135 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
22136 (grub_console_putchar): ... this.
22137 (grub_console_putchar): Handle argument difference.
22138 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
22139 console_init_early and console_init_lately.
22140 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
22141 * kern/misc.c (grub_puts): Removed.
22142 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
22143 (grub_vsnprintf_real): Remove str = NULL support.
22144 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
22145 * normal/charset.c (grub_utf8_to_ucs4): ... here.
22146 * kern/term.c (grub_putcode): Renamed to ...
22147 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
22148 (grub_putchar): Removed.
22149 (grub_xputs_dumb): New function.
22150 (grub_xputs): New variable.
22151 * lib/charset.c: Move from here ...
22152 * normal/charset.c: ... to here.
22153 (grub_ucs4_to_utf8): New function.
22154 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
22155 (join_types): New variable.
22156 (unpack_join): New function.
22157 (bidi_types): New variable.
22158 (unpack_bidi): New function.
22159 (get_bidi_type): Likewise.
22160 (get_join_type): Likewise.
22161 (is_mirrored): Likewise.
22162 (grub_unicode_get_comb_type): Likewise.
22163 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
22164 (is_type_after): Likewise.
22165 (grub_unicode_aglomerate_comb): Likewise.
22166 (bidi_line_wrap): Likewise.
22167 (grub_bidi_line_logical_to_visual): Likewise.
22168 (grub_bidi_logical_to_visual): Likewise.
22169 (grub_unicode_mirror_code): Likewise.
22170 (grub_unicode_shape_code): Likewise.
22171 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
22172 Don't use grub_putchar.
22173 * normal/main.c (grub_normal_init_page): Use grub_putcode.
22174 (grub_normal_reader_init): Likewise.
22175 (grub_xputs_saved): New variable.
22176 (GRUB_MOD_INIT): Set grub_xputs.
22177 (GRUB_MOD_FINI): Restore grub_xputs.
22178 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
22179 (menu_init): Avoid printing gfxmenu error.
22180 (show_menu): Use grub_normal_get_char_counter.
22181 * normal/menu_entry.c (update_screen): Fix out-of-array.
22182 (complete): Avoid NULL dereferencing.
22183 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
22184 * normal/menu_text.c (print_spaces): Removed.
22185 (grub_print_ucs4): Likewise.
22186 (grub_print_message_indented): Use grub_print_ucs4.
22187 (print_message): Use grub_putcode.
22188 (print_entry): Hanlde diacritics.
22189 * normal/term.c (term_state): New type.
22190 (grub_more_lines): Removed.
22191 (term_states): New variable.
22192 (grub_normal_line_counter): Renamed to ..
22193 (grub_normal_char_counter): ...this. All users updated.
22194 (grub_normal_get_line_counter): Renamed to ...
22195 (grub_normal_get_char_counter): ... this.
22196 (grub_normal_reset_more): New function.
22197 (process_newline): Removed.
22198 (print_more): New function.
22199 (grub_install_newline_hook): Removed.
22200 (map_code): New function.
22201 (grub_puts_terminal): Use grub_print_ucs4.
22202 (putglyph): New function.
22203 (putcode_real): Likewise.
22204 (grub_putcode): Use putcode_real.
22205 (get_maxwidth): New function.
22206 (get_startwidth): Likewise.
22207 (print_ucs4_terminal): Likewise.
22208 (find_term_state): Likewise.
22209 (put_glyphs_terminal): Likewise.
22210 (print_backlog): Likewise.
22211 (print_ucs4_real): Likewise.
22212 (grub_print_ucs4): Likewise.
22213 (grub_xputs_normal): Likewise.
22214 * term/efi/console.c (grub_console_putchar): Output diacritics.
22215 (grub_console_getcharwidth): Removed.
22216 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
22217 * term/gfxterm.c (clear_char): Free chars.
22218 (scroll_up): Avoid leaking memory.
22219 (grub_gfxterm_putchar): Support diacritics.
22220 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
22221 * term/i386/pc/console.c (grub_console_term_output): Declare as
22222 GRUB_TERM_CODE_TYPE_VGA.
22223 * term/i386/pc/vga.c (grub_vga_term): Declare as
22224 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
22225 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
22226 GRUB_TERM_CODE_TYPE_VGA.
22227 * term/i386/vga_common.c (map_char): Removed.
22228 (grub_console_putchar): Likewise.
22229 (grub_console_getcharwidth): Likewise.
22230 * term/ieee1275/ofconsole.c: Simplify using terminfo.
22231 (colors): Reordered to match terminfo.
22232 (grub_ofconsole_normal_color): Removed.
22233 (grub_ofconsole_writeesc): Likewise.
22234 (grub_ofconsole_highlight_color): Likewise.
22235 (grub_ofconsole_getcharwidth): Likewise.
22236 (grub_ofconsole_setcolorstate): Likewise.
22237 (grub_ofconsole_setcolor): Likewise.
22238 (grub_ofconsole_getcolor): Likewise.
22239 (grub_ofconsole_readkey): Renamed to ...
22240 (readkey): ... this. Remove escape sequence handling. Return -1 on no
22242 (grub_ofconsole_checkkey): Removed.
22243 (grub_ofconsole_getkey): Likewise.
22244 (grub_ofconsole_getxy): Likewise.
22245 (grub_ofconsole_gotoxy): Likewise.
22246 (grub_ofconsole_cls): Likewise.
22247 (grub_ofconsole_refresh): Likewise.
22248 (grub_ofconsole_terminfo_input): New struct.
22249 (grub_ofconsole_terminfo_output): Likewise.
22250 (grub_ofconsole_term_input): Use terminfo.
22251 (grub_ofconsole_term_output): Likewise.
22252 (grub_console_init): Split into ...
22253 (grub_console_init_early): ...this and ...
22254 (grub_console_init_lately): ...this. Use terminfo.
22255 (grub_ofconsole_putchar): Renamed to ...
22256 (put): ... this. Remove mapping.
22257 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
22258 * term/serial.c: Simplify using terminfo.
22261 (keep_track): Likewise.
22262 (registered): Likewise.
22263 (input_buf): Likewise.
22264 (npending): Likewise.
22265 (serial_translate_key_sequence): Likewise.
22266 (fill_input_buf): Likewise.
22267 (grub_serial_checkkey): Likewise.
22268 (grub_serial_getkey): Likewise.
22269 (grub_serial_getxy): Likewise.
22270 (grub_serial_gotoxy): Likewise.
22271 (grub_serial_putchar): Likewise.
22272 (grub_serial_cls): Likewise.
22273 (grub_serial_setcolorstate): Likewise.
22274 (grub_serial_setcursor): Likewise.
22275 (serial_hw_init): Use serial_hw_fetch.
22276 (grub_serial_terminfo_input): New variable.
22277 (grub_serial_terminfo_output): Likewise.
22278 (grub_serial_term_input): Use terminfo.
22279 (grub_serial_term_output): Likewise.
22280 * term/terminfo.c (putstr): Use put.
22281 (grub_terminfo_all_free): New function
22282 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
22283 (grub_terminfo_output_register): New function.
22284 (grub_terminfo_output_unregister): Likewise.
22285 (grub_terminfo_getxy): Likewise.
22286 (grub_terminfo_readkey): Likewise.
22287 (grub_terminfo_checkkey): Likewise.
22288 (grub_terminfo_getkey): Likewise.
22289 (grub_terminfo_input_init): Likewise.
22290 (print_terminfo): Likewise.
22291 (grub_cmd_terminfo): Handle encoding.
22292 (grub_terminfo_gotoxy): Track position.
22293 (grub_terminfo_cls): Likewise.
22294 (grub_terminfo_putchar): Likewise.
22295 (grub_terminfo_setcolorstate): Handle colors
22296 (grub_terminfo_cursor_on): This ...
22297 (grub_terminfo_cursor_off): ... and this merged into ...
22298 (grub_terminfo_setcursor): ... this.
22299 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
22300 * unicode/ArabicShaping.txt: New file (imported from Unicode).
22301 * unicode/BidiMirroring.txt: Likewise.
22302 * unicode/UnicodeData.txt: Likewise.
22303 * unicode/COPYING: Likewise.
22304 * util/grub-editenv.c (grub_putchar): Removed.
22305 (grub_xputs_real): New function.
22306 (grub_xputs): New variable.
22307 * util/grub-fstest.c (grub_putchar): Removed.
22308 (grub_xputs_real): New function.
22309 (grub_xputs): New variable.
22310 * util/grub-mkdevicemap.c (grub_putchar): Removed.
22311 (grub_xputs_real): New function.
22312 (grub_xputs): New variable.
22313 * util/grub-probe.c (grub_putchar): Removed.
22314 (grub_xputs_real): New function.
22315 (grub_xputs): New variable.
22316 * util/grub-script-check.c (grub_putchar): Removed.
22317 (grub_xputs_real): New function.
22318 (grub_xputs): New variable.
22319 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
22320 (grub_xputs_real): New function.
22321 (grub_xputs): New variable.
22322 * util/import_unicode.py: New file.
22323 * util/grub-mkfont.c (ft_errmsgs): New array.
22324 (grub_glyph_info): Make bitmap a pointer.
22325 (file_formats): New type WIDTH_SPEC.
22326 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
22327 (options): Add width-spec.
22329 (add_char): Renamed to ...
22330 (add_glyph): ... this.
22331 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
22332 (glyph_replace): New type.
22333 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
22334 (add_char): New function.
22335 (add_subst): Likewise.
22336 (process_cursive): Likewise.
22337 (add_font): Handle GSUB.
22338 (write_font_width_spec): New function.
22339 (main): Sort glyphs.
22340 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
22341 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
22342 * kern/term.c (grub_cls): Moved from here...
22343 * normal/term.c (grub_cls): ... here.
22345 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22347 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
22348 suitable for using within the format argument of printf when
22349 converting grub_size_t.
22350 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
22351 "x" to convert grub_size_t arguments.
22353 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22355 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
22357 (list_get_minimal_size): Take selection box into account.
22359 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22361 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
22364 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22366 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
22367 devices when iterating over /dev/disk/by-id; they will be handled
22368 later if appropriate, which they aren't always (e.g. LVM).
22370 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22372 * include/grub/misc.h (grub_reboot): Declare as noreturn.
22373 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
22375 (grub_halt): Likewise.
22376 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
22378 (grub_halt): Don't return, even if all of shut-down, power-off, and
22381 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22383 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
22384 arguments, not three.
22386 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22388 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
22389 * util/grub.d/10_linux.in: Use it to check for LVM, so that
22390 LVM-on-RAID is handled correctly.
22392 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22394 * docs/grub.texi (Changes from GRUB Legacy): New section.
22395 (Future): Fix typo.
22397 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22399 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
22400 grub.d/README accidentally ends up executable for one reason or
22401 another. Ignore it.
22403 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22405 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
22406 (gpt_partition_map_iterate): Support non-512B sectors.
22408 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22410 * kern/efi/init.c (grub_efi_init): Disable watchdog.
22411 Tested by: Seth Goldberg.
22413 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22415 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
22416 Properly align mbi.
22417 Reported by: Seth Goldberg.
22419 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
22421 * util/grub-mkrescue.in: Avoid module duplication.
22423 2010-07-01 Sean Finney <seanius@seanius.net>
22425 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
22427 2010-07-01 Sean Finney <seanius@seanius.net>
22429 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
22431 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
22433 * disk/lvm.c (grub_lvm_checkvalue): New function.
22434 (grub_lvm_check_flag): Likewise.
22436 2010-07-01 Robert Millan <rmh@gnu.org>
22438 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
22439 Support 'p' as partition separator on kernel of FreeBSD (used
22441 (grub_util_biosdisk_get_grub_dev): Likewise.
22443 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
22445 Yeeloong firmware port.
22447 * boot/mips/yeeloong/fwstart.S: New file.
22448 * bus/cs5536.c (gpiodump): New const.
22449 (set_io_space): New function.
22450 (set_iod): Likewise.
22451 (set_p2d): Likewise.
22452 (grub_cs5536_init_geode): Likewise.
22453 * commands/mips/yeeloong/lsspd.c: New file.
22454 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
22455 (serial_mod_SOURCES): New variable.
22456 (serial_mod_CFLAGS): Likewise.
22457 (serial_mod_LDFLAGS): Likewise.
22458 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
22459 term/terminfo.c and term/tparm.c.
22460 (pkglib_IMAGES): Add fwstart.img.
22461 (fwstart_img_SOURCES): New variable.
22462 (fwstart_img_CFLAGS): Likewise.
22463 (fwstart_img_ASFLAGS): Likewise.
22464 (fwstart_img_LDFLAGS): Likewise.
22465 (fwstart_img_FORMAT): Likewise.
22466 (pkglib_MODULES): Add lsspd.mod.
22467 (lsspd_mod_SOURCES): New variable.
22468 (lsspd_mod_CFLAGS): Likewise.
22469 (lsspd_mod_LDFLAGS): Likewise.
22470 (pkglib_MODULES): Add halt.mod.
22471 (halt_mod_SOURCES): New variable.
22472 (halt_mod_CFLAGS): Likewise.
22473 (halt_mod_LDFLAGS): Likewise.
22474 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
22475 (serial_mod_SOURCES): Removed.
22476 (serial_mod_CFLAGS): Likewise.
22477 (serial_mod_LDFLAGS): Likewise.
22478 * disk/ata.c (check_device): New function.
22479 (grub_ata_device_initialize): Use check_device.
22480 (grub_ata_iterate): Recheck devices.
22481 (grub_ata_open): Likewise.
22482 (grub_atapi_iterate): Likewise.
22483 (grub_atapi_open): Likewise.
22484 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
22485 (GRUB_ATA_CH1_PORT1): Likewise.
22486 (GRUB_ATA_CH0_PORT2): Likewise.
22487 (GRUB_ATA_CH1_PORT2): Likewise.
22488 * include/grub/mips/loongson.h: New file.
22489 * include/grub/mips/yeeloong/ec.h: Likewise.
22490 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
22491 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
22492 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
22493 * include/grub/misc.h (grub_halt): Declare as noreturn.
22494 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
22495 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
22496 (UART_ENABLE_FIFO_TRIGGER1): New definition.
22497 (UART_ENABLE_DTRRTS): Likewise.
22498 (UART_ENABLE_MODEM): Removed.
22499 (UART_ENABLE_OUT2): New const.
22500 * include/grub/term.h (grub_term_register_input_active): New function.
22501 (grub_term_register_output_active): Likewise.
22502 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
22504 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
22505 (init_pci): New function.
22506 (grub_machine_init): Execute platform init when firmware. Init serial.
22507 (grub_halt): Implement.
22508 (grub_exit): Likewise.
22509 (grub_reboot): Likewise.
22510 * term/serial.c (serial_hw_init): Update macros.
22511 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
22512 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
22513 (image_targets): New target mipsel-yeeloong-flash.
22514 (generate_image): Support IMAGE_YEELOONG_FLASH.
22515 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
22516 (grub_video_sm712_setup): Init card.
22517 (grub_video_sm712_set_palette): Removed.
22518 * video/sm712_init.c: New file.
22520 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
22522 * Makefile.in (install-local): Temporarily prepend $(builddir) to
22523 PATH when running help2man and then run it on the unadorned
22524 executable names, rather than passing $(builddir)/* paths to
22525 help2man. This avoids the build directory ending up in generated
22528 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
22530 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
22531 to avoid accidents when debugging with 'sh -x'.
22532 * util/grub-mkrescue.in: Likewise.
22533 * util/grub.d/00_header.in: Likewise.
22534 * util/grub.d/10_hurd.in: Likewise.
22535 * util/grub.d/10_kfreebsd.in: Likewise.
22536 * util/grub.d/10_linux.in: Likewise.
22537 * util/grub.d/10_netbsd.in: Likewise.
22538 * util/grub.d/10_windows.in: Likewise.
22539 * util/grub.d/20_linux_xen.in: Likewise.
22540 * util/grub.d/30_os-prober.in: Likewise.
22541 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22543 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
22545 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
22546 last character in the buffer.
22547 Reported by: Vladimir Serbinenko.
22549 2010-06-29 Robert Millan <rmh@gnu.org>
22551 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
22552 (Command-line and menu entry commands): Document `badram' command.
22554 2010-06-28 Robert Millan <rmh@gnu.org>
22556 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
22557 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
22558 command using ${GRUB_BADRAM} as parameter.
22560 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22562 * docs/grub.texi (Device map): New section.
22563 (Themes): New section (stub).
22564 * Makefile.in (docs/grub.info): The info documentation now builds
22565 without errors. Make sure it stays that way.
22567 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22569 Use normal parser for menu entries.
22570 Reported by: Thomas Frauendorfer
22572 * include/grub/parser.h (grub_parser_execute): Don't export.
22573 * normal/menu.c (grub_menu_execute_entry_real): New function.
22574 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
22576 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22578 * docs/grub.texi (Embedded configuration): New section (replacing
22579 old "Preset Menu" stub).
22580 (Images): New section.
22581 (configfile): Note that any menu entries defined in `file' are shown
22584 2010-06-28 Josh Triplett <josh@joshtriplett.org>
22586 * mmap/i386/pc/mmap_helper.S: Set CF on return.
22588 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22590 * util/grub-install.in: Add --debug-image= option.
22592 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22594 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
22597 * util/deviceiter.c (check_device): Rename to ...
22598 (check_device_readable_unique): ... this. Update all callers.
22599 Maintain and check a list of which devices (by canonicalized name)
22600 have already been seen.
22601 (clear_seen_devices): New function.
22602 (compare_file_names) [__linux__]: New function.
22603 (grub_util_iterate_devices): Clear the list of seen devices on exit
22604 and (just in case) on entry.
22605 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
22606 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
22607 seen-devices list, superseded by general code in check_device.
22609 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22611 * commands/cat.c (options): New variable.
22612 (grub_cmd_cat): Parse options. If the --dos option is given, print
22613 DOS-style "\r\n" line endings as simple newlines (Debian bug
22615 (GRUB_MOD_INIT): Use extcmd.
22616 (GRUB_MOD_FINI): Likewise.
22617 * docs/grub.texi (cat): Document --dos.
22619 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22621 XEN with Linux grub-mkconfig support.
22623 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
22624 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
22625 GRUB_CMDLINE_XEN_DEFAULT.
22626 * util/grub.d/20_linux_xen.in: New file.
22628 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22630 Initialise VGA video on qemu ourselves.
22632 * boot/i386/qemu/boot.S: Don't call 0xc000.
22633 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
22634 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
22635 (kernel_img_HEADERS): Add pci.h.
22636 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
22637 * configure.ac: Force unifont on qemu and yeeloong.
22638 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
22639 (grub_vga_palette_write): Use correct register.
22640 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
22641 Call grub_qemu_init_cirrus.
22642 * kern/i386/qemu/init.c: New file.
22643 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
22645 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
22647 2010-06-26 Pavel Roskin <proski@gnu.org>
22649 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
22652 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
22654 * docs/grub.texi (Simple configuration): Explain that
22655 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
22656 set to `true' to disable their respective recovery entries, not
22659 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
22661 Make the `source' command slightly faster.
22663 * normal/main.c (grub_normal_execute): Don't re-read list files when
22666 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
22668 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
22669 field position and mask size to red fields from mode_info, not
22671 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
22672 Remove redundant tag->common.framebuffer_type assignment.
22673 Reported by: Seth Goldberg.
22675 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
22677 Sync up other versions of the Linux loader with Robert Millan's
22678 change of 2010-01-09, "Make loader output a bit more user-friendly".
22680 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
22682 (grub_cmd_linux): Likewise.
22683 (grub_cmd_initrd): Likewise.
22684 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
22685 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22687 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
22689 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
22690 larger than MEMORY_MAP_SIZE.
22692 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
22694 Fix parallel build.
22696 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
22698 * script/parser.y: #include grub_script.tab.h header.
22700 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22702 Support >3GiB and <16MiB RAM in i386-qemu.
22704 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
22705 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
22706 (grub_lower_mem): Removed.
22707 (grub_upper_mem): Likewise.
22708 (mem_size): Made static.
22709 (above_4g): New variable.
22710 (grub_machine_mmap_init): Detect small mem_size and above_4g.
22711 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
22714 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22716 Cirrus 5446 and Bochs video cards support.
22718 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
22720 (video_cirrus_mod_SOURCES): New variable.
22721 (video_cirrus_mod_CFLAGS): Likewise.
22722 (video_cirrus_mod_LDFLAGS): Likewise.
22723 (video_bochs_mod_SOURCES): Likewise.
22724 (video_bochs_mod_CFLAGS): Likewise.
22725 (video_bochs_mod_LDFLAGS): Likewise.
22726 * include/grub/vga.h: New file.
22727 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
22728 (grub_video_fb_set_page_t): New type.
22729 (grub_video_fb_setup): New prototype.
22730 (grub_video_fb_swap_buffers): Likewise.
22731 (grub_video_fb_get_info_and_fini): Likewise.
22732 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
22733 (CRTC_DATA_PORT): Likewise.
22734 (CRTC_CURSOR): Likewise.
22735 (CRTC_CURSOR_ADDR_HIGH): Likewise.
22736 (CRTC_CURSOR_ADDR_LOW): Likewise.
22737 (CRTC_CURSOR_DISABLE): Likewise.
22738 (update_cursor): Use grub_vga_cr_write.
22739 (grub_vga_text_setcursor): Likewise.
22740 * video/bochs.c: New file.
22741 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
22742 (palette): Likewise.
22743 (palette_size): Likewise.
22744 (framebuffer): New variable.
22745 (grub_video_fb_init): Use 'framebuffer'.
22746 (grub_video_fb_fini): Likewise.
22747 (grub_video_fb_get_info): Likewise.
22748 (grub_video_fb_get_palette): Likewise.
22749 (grub_video_fb_set_palette): Likewise.
22750 (grub_video_fb_set_viewport): Likewise.
22751 (grub_video_fb_get_viewport): Likewise.
22752 (grub_video_fb_map_color): Likewise.
22753 (grub_video_fb_map_rgb): Likewise.
22754 (grub_video_fb_map_rgba): Likewise.
22755 (grub_video_fb_unmap_color): Likewise.
22756 (grub_video_fb_unmap_color_int): Likewise.
22757 (grub_video_fb_fill_rect): Likewise.
22758 (grub_video_fb_blit_bitmap): Likewise.
22759 (grub_video_fb_blit_render_target): Likewise.
22760 (grub_video_fb_scroll): Likewise.
22761 (grub_video_fb_create_render_target): Likewise.
22762 (grub_video_fb_doublebuf_blit_init): Likewise.
22763 (grub_video_fb_set_active_render_target): Handle doublebuffering.
22764 (doublebuf_pageflipping_update_screen): New function.
22765 (doublebuf_pageflipping_init): Likewise.
22766 (grub_video_fb_setup): Likewise.
22767 (grub_video_fb_swap_buffers): Likewise.
22768 (grub_video_fb_get_info_and_fini): Likewise.
22769 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
22771 (doublebuf_pageflipping_commit): Restructured into ...
22772 (doublebuf_pageflipping_set_page): ... this.
22773 (doublebuf_pageflipping_update_screen): Removed.
22774 (doublebuf_pageflipping_init): Likewise.
22775 (double_buffering_init): Likewise.
22776 (grub_video_vbe_setup): Use grub_video_fb_setup.
22777 (grub_video_vbe_swap_buffers): Removed.
22778 (grub_video_vbe_set_active_render_target): Likewise.
22779 (grub_video_vbe_get_active_render_target): Likewise.
22780 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
22781 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
22782 grub_video_fb_set_active_render_target and
22783 grub_video_fb_get_active_render_target.
22784 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
22785 (SEQUENCER_DATA_PORT): Likewise.
22786 (MAP_MASK_REGISTER): Likewise.
22787 (CRTC_ADDR_PORT): Likewise.
22788 (CRTC_DATA_PORT): Likewise.
22789 (START_ADDR_HIGH_REGISTER): Likewise.
22790 (START_ADDR_LOW_REGISTER): Likewise.
22791 (GRAPHICS_ADDR_PORT): Likewise.
22792 (GRAPHICS_DATA_PORT): Likewise.
22793 (READ_MAP_REGISTER): Likewise.
22794 (INPUT_STATUS1_REGISTER): Likewise.
22795 (INPUT_STATUS1_VERTR_BIT): Likewise.
22796 (get_map_mask): Use grub_vga_sr_read.
22797 (set_map_mask): Use grub_vga_sr_write.
22798 (set_read_map): Use grub_vga_gr_write.
22799 (set_start_address): Use grub_vga_cr_write.
22800 * video/sm712.c (framebuffer): Remove leftover fields.
22802 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
22804 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
22805 setting GRUB_VIDEO_BACKEND. Make it available as a user override
22806 instead. Replace the gfxterm backend check with a check that
22807 ${GRUB_PREFIX}/video.lst is non-empty.
22808 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
22810 (load_video): New generated function. Call it before loading
22811 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
22812 * util/grub.d/10_linux.in (linux_entry): Call load_video.
22813 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
22814 * docs/grub.texi (Simple configuration): Document
22815 GRUB_VIDEO_BACKEND.
22817 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22819 Use video functions in linux and xnu loaders.
22821 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
22822 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
22823 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
22824 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
22825 loader/i386/pc/linux.c.
22826 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
22827 (find_line_len): Removed.
22828 (find_framebuf): Likewise.
22829 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
22830 * loader/i386/efi/xnu.c: Removed.
22831 * loader/i386/pc/xnu.c: Moved from here...
22832 * loader/i386/xnu.c: ...here.
22834 Enable priorities in video drivers.
22836 * include/grub/video.h (grub_video_adapter_prio_t): New type.
22837 (grub_video_adapter): New field prio.
22838 (grub_video_register): Respect prio when inserting.
22839 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
22840 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
22841 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
22842 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
22843 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
22844 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
22845 * video/sm712.c (grub_video_sm712_adapter): Likewise.
22849 * include/grub/video.h (grub_video_driver_id_t): New value
22850 GRUB_VIDEO_DRIVER_SDL.
22851 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
22853 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22855 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
22856 argument to printf.
22857 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22859 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22861 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
22862 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22864 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22866 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
22867 directly, and recommend grub-install instead.
22868 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22870 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22872 Fix i386-pc prefix handling with nested partitions (Debian bug
22873 #585068). Note that the case where the core image is booted using
22874 multiboot and relocated from its original location still requires
22877 * kern/i386/pc/init.c (make_install_device): If the prefix starts
22878 with "(,", fill the boot drive in between those two characters, but
22879 expect that a full partition specification including partition map
22881 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
22882 specified, write a prefix without the drive name but including a
22883 full partition specification.
22885 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
22887 * util/grub-mkconfig.in: Ignore non-option arguments, for
22888 compatibility with older versions (before 2010-06-12) which did the
22889 same. In particular, this makes it easier to ship an update-grub
22890 wrapper which is compatible with that used with GRUB Legacy (Debian
22893 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22895 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
22896 for manual page generation.
22898 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22900 * po/POTFILES: Remove leftover commands/handler.c.
22902 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
22904 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
22905 left this script non-functional.
22907 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
22909 * docs/man/grub-emu.h2m: New file.
22911 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
22913 * docs/grub.texi (Commands): Document reduced command set in rescue
22915 (cpuid): New section.
22917 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
22919 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
22920 new partition naming style.
22921 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
22923 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
22925 Add "-o grub.iso" like cmdline options support.
22927 * util/grub-install.in: Improve cmdline option parsing.
22928 * util/grub-mkconfig.in: Likewise.
22929 * util/grub-mkrescue.in: Likewise.
22930 * util/grub-reboot.in: Likewise.
22931 * util/grub-set-default.in: Likewise.
22932 * util/i386/efi/grub-install.in: Likewise.
22933 * util/ieee1275/grub-install.in: Likewise.
22934 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22936 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22938 * .bzrignore: Ignore 41_custom.
22940 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
22942 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
22944 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22946 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
22947 prototype declarations.
22949 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
22950 generating fs, partmap, and video lists.
22951 * include/grub/fs.h (grub_fs_register): Omit prototype if
22952 GRUB_LST_GENERATOR is defined.
22953 * include/grub/partition.h (grub_partition_map_register): Likewise.
22954 * include/grub/video.h (grub_video_register): Likewise.
22956 2010-06-12 Javier Martín <lordhabbit@gmail.com>
22958 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
22960 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
22962 * util/grub-mkrescue.in: Support --xorriso argument.
22964 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22966 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
22967 Suggested by: Thomas Schmitt.
22969 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22971 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
22972 Suggested by: Thomas Schmitt.
22974 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22976 custom.cfg support.
22978 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
22979 * util/grub.d/41_custom.in: New file.
22981 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22983 * util/grub-mkrescue.in (make_image): Remove sh module, which has
22984 been merged back into normal.
22986 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
22988 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
22989 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
22991 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
22993 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
22994 when generating manual pages.
22995 * docs/man/grub-bin2h.h2m: New file.
22996 * docs/man/grub-editenv.h2m: New file.
22997 * docs/man/grub-fstest.h2m: New file.
22998 * docs/man/grub-install.h2m: New file.
22999 * docs/man/grub-macho2img.h2m: New file.
23000 * docs/man/grub-mkconfig.h2m: New file.
23001 * docs/man/grub-mkdevicemap.h2m: New file.
23002 * docs/man/grub-mkfont.h2m: New file.
23003 * docs/man/grub-mkimage.h2m: New file.
23004 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
23005 * docs/man/grub-mkrelpath.h2m: New file.
23006 * docs/man/grub-mkrescue.h2m: New file.
23007 * docs/man/grub-ofpathname.h2m: New file.
23008 * docs/man/grub-pe2elf.h2m: New file.
23009 * docs/man/grub-probe.h2m: New file.
23010 * docs/man/grub-reboot.h2m: New file.
23011 * docs/man/grub-script-check.h2m: New file.
23012 * docs/man/grub-set-default.h2m: New file.
23013 * docs/man/grub-setup.h2m: New file.
23015 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
23017 Use FOR_* macros instead of *_iterate whenever possible.
23019 * commands/handler.c: Removed.
23020 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
23021 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
23022 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23023 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
23024 (grub_probe_SOURCES): Remove kern/parser.c.
23025 (util/grub-script-check.c_DEPENDENCIES): Removed.
23026 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
23027 and grub_script_check_init.c.
23028 (grub_script_check_init.lst): Removed.
23029 (grub_script_check_init.h): Likewise.
23030 (grub_script_check_init.c): Likewise.
23031 (pkglib_MODULES): Remove handler.mod and sh.mod.
23032 (handler_mod_SOURCES): Removed.
23033 (handler_mod_CFLAGS): Likewise.
23034 (handler_mod_LDFLAGS): Likewise.
23035 (normal_mod_SOURCES): Remove normal/handler.c.
23036 Add script/main.c, script/script.c, script/execute.c,
23037 script/function.c, script/lexer.c, grub_script.tab.c
23038 and grub_script.yy.c.
23039 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23040 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23041 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
23042 (grub_setup_SOURCES): Remove kern/parser.c.
23043 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23044 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
23045 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
23046 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23047 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23048 (grub_setup_SOURCES): Remove kern/parser.c.
23049 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23050 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
23051 * include/grub/command.h (grub_command_iterate): Removed.
23052 (FOR_COMMANDS): New macro.
23053 * include/grub/dl.h (grub_dl): New member next.
23054 (grub_dl_iterate): Removed.
23055 (grub_dl_head): New variable declaration.
23056 (FOR_DL_MODULES): New macro.
23057 * include/grub/fs.h: Include list.h.
23058 (grub_fs): Make next first element.
23059 (grub_fs_list): New variable declaration.
23060 (grub_fs_register): Make inline.
23061 (grub_fs_unregister): Likewise.
23062 (grub_fs_iterate): Removed.
23063 (FOR_FILESYSTEMS): New macro.
23064 * include/grub/handler.h: Removed.
23065 * include/grub/list.h (grub_list_hook_t): Removed.
23066 (grub_list_test_t): Likewise.
23067 (grub_list_pop): Likewise.
23068 (grub_list_iterate): Likewise.
23069 (grub_list_insert): Likewise.
23070 (FOR_LIST_ELEMENTS): New macro.
23071 * include/grub/parser.h (grub_parser_class): Removed.
23072 (grub_parser_register): Likewise.
23073 (grub_parser_unregister): Likewise.
23074 (grub_parser_get_current): Likewise.
23075 (grub_parser_set_current): Likewise.
23076 (grub_register_rescue_parser): Likewise.
23077 (grub_rescue_parse_line): New function.
23078 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
23079 * include/grub/script_sh.h (grub_script_function_list): New variable
23081 (FOR_SCRIPT_FUNCTIONS): New macro.
23082 (grub_script_function_iterate): Removed.
23083 (grub_normal_parse_line): New prototype.
23084 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
23085 (FOR_DISABLED_TERM_INPUTS): Likewise.
23086 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
23087 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
23088 * include/grub/video.h (grub_video_adapter): Move 'next' to first
23090 (grub_video_register): Inline.
23091 (grub_video_unregister): Likewise.
23092 (grub_video_adapter_list): New variable declaration.
23093 (grub_video_iterate): Removed.
23094 (FOR_VIDEO_ADAPTERS): New macro.
23095 * kern/dl.c (grub_dl_list): Removed. All users updated.
23096 (grub_dl_iterate): Removed.
23097 * kern/fs.c (grub_fs_list): Make global.
23098 (grub_fs_register): Removed.
23099 (grub_fs_unregister): Likewise.
23100 (grub_fs_iterate): Likewise.
23101 * kern/handler.c: Removed.
23102 * kern/list.c (grub_list_pop): Removed.
23103 (grub_list_iterate): Likewise.
23104 (grub_list_insert): Likewise.
23105 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
23106 (grub_prio_list_insert): Don't use grub_list_insert.
23107 * kern/main.c (grub_register_rescue_parser): Don't call
23108 grub_register_rescue_parser.
23109 * kern/parser.c (grub_parser_class): Removed.
23110 (grub_parser_execute): Use grub_rescue_parse_line.
23111 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
23112 (grub_rescue_parser): Removed.
23113 (grub_register_rescue_parser): Likewise.
23114 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
23115 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
23116 (grub_auth_check_authentication): Likewise.
23117 * normal/completion.c (iterate_command): Removed.
23118 (grub_normal_do_completion): Use FOR_COMMANDS.
23119 * normal/handler.c: Removed.
23120 * normal/main.c (read_config_file): Remove parser changing.
23121 (grub_normal_execute): Don't call read_handler_list.
23122 (grub_normal_read_line_real): Statically allocate prompt.
23123 (grub_cmdline_run): Use grub_normal_parse_line.
23124 (GRUB_MOD_FINI): Don't call free_handler_list.
23125 * normal/menu_entry.c (run): Likewise.
23126 * script/function.c (grub_script_function_list): Make global.
23127 (grub_script_function_iterate): Removed.
23128 * script/main.c (grub_normal_parse_line): Make global.
23129 (grub_sh_parser): Removed.
23130 (GRUB_MOD_INIT): Likewise.
23131 (GRUB_MOD_FINI): Likewise.
23132 * tests/lib/functional_test.c (grub_functional_test): Use
23134 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
23135 (grub_test_run): Use FOR_LIST_ELEMENTS.
23136 * tests/lib/unit_test.c (main): Likewise.
23137 * util/deviceiter.c (grub_util_iterate_devices): Don't use
23139 * util/grub-fstest.c (grub_term_input_class): Removed.
23140 (grub_term_output_class): Likewise.
23141 * util/grub-probe.c: Likewise.
23142 * util/i386/pc/grub-setup.c: Likewise.
23143 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23144 * util/grub-script-check.c (main): Don't call grub_init_all and
23146 * video/video.c (grub_video_adapter_list): Make global.
23147 (grub_video_register): Removed.
23148 (grub_video_unregister): Likewise.
23149 (grub_video_iterate): Likewise.
23151 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
23153 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
23154 reported by Henrique Ferreiro.
23156 2010-06-09 Robert Millan <rmh@gnu.org>
23158 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
23159 ones, when both are available.
23161 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
23163 Make --version uniform and avoid hard-coded program name.
23165 * util/grub-mkimage.c (main): Use `program_name' instead of
23167 * util/i386/pc/grub-setup.c (main): Likewise.
23168 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
23169 * util/grub-install.in: Save the basename of $0 in $self, and use the
23170 latter in informational messages. Use the same format for --version
23171 as the binary programs.
23172 * util/grub-mkconfig.in: Likewise.
23173 * util/grub-mkrescue.in: Likewise.
23174 * util/grub-reboot.in: Likewise.
23175 * util/grub-set-default.in: Likewise.
23176 * util/i386/efi/grub-install.in: Likewise.
23177 * util/ieee1275/grub-install.in: Likewise.
23178 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23180 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
23182 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
23183 embedding area. Use <= instead of == when checking for non-emptiness.
23185 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
23187 * configure.ac: Add `.' to the directories searched for unifont.
23189 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
23191 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
23194 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
23196 * docs/grub.texi (History): Expand to cover GRUB 2.
23197 (Serial terminal): Refer to `terminal_input' and `terminal_output'
23198 commands, not `terminal'.
23199 (serial): Likewise.
23200 (terminal_input): New section.
23201 (terminal_output): New section.
23202 (uppermem): New section (stub).
23203 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
23205 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
23207 * docs/grub.texi (Security): Menu entries are unrestricted by
23208 default, not restricted to superusers as I had previously thought.
23209 Reword to account for this.
23211 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23213 * kern/emu/misc.c (device_mapper_null_log): New function.
23214 (grub_device_mapper_supported): New function.
23215 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
23217 * kern/emu/hostdisk.c (find_partition_start): Check whether
23218 device-mapper is supported before trying to use it.
23219 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
23221 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23223 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
23224 (File name syntax): Likewise.
23225 (help): --all is no longer supported in GRUB 2. Be more precise
23226 about pattern matching.
23228 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23230 * normal/completion.c (grub_normal_do_completion): When completing
23231 arguments to "set" and the current word contains an equals sign,
23232 skip to after the equals sign before starting completion.
23234 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23236 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
23238 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23240 * docs/grub.texi (Network): New section.
23241 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
23242 `(nd)' as in GRUB Legacy.
23243 (pxe_unload): New section.
23245 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23247 * docs/grub.texi (Troubleshooting): `echo' is not usually available
23248 in the rescue shell, so recommend using `set' instead. Thanks,
23251 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23253 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
23254 (password): New section.
23255 (password_pbkdf2): New section.
23256 (search): New section.
23257 (Security): New section.
23258 (Troubleshooting): New section, currently very incomplete.
23259 (Invoking grub-mkpasswd-pbkdf2): New section.
23260 (Internals): New section, currently very incomplete.
23262 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23264 * util/grub.d/00_header.in: Add some more quoting (of
23265 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
23267 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
23269 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23271 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
23272 to `count', fixing variable shadowing that broke the -c option.
23274 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
23276 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
23277 in case they contain spaces.
23279 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
23281 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
23282 "part_" to partmap module names, in line with grub-install.
23283 Reported by: Jindřich Makovička (Debian bug #584426).
23285 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
23287 * util/grub-mkimage.c: Make target-related error messages slightly
23288 more helpful; -O talks about "format". Explicitly point to the use
23289 of -O if no target is specified.
23290 Reported by: Didier Raboud (Debian bug #584415).
23292 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
23294 * INSTALL: Document several build requirements for optional features
23295 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
23297 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
23299 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
23300 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
23301 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
23303 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23305 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
23306 Thanks to Jordan Uggla for spotting this.
23308 2010-06-02 Aleš Nesrsta <starous@volny.cz>
23310 Finally make USB usable.
23312 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
23313 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
23314 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
23315 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
23316 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
23317 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
23318 (GRUB_OHCI_FSMPS): Likewise.
23319 (GRUB_OHCI_PERIODIC_START): Likewise.
23320 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
23321 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
23322 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
23323 (GRUB_OHCI_SET_PORT_RESET): Likewise.
23324 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
23325 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
23326 (grub_ohci_transaction): Likewise.
23327 (grub_ohci_transfer): Improve condition detection algorithms.
23328 Handle toggle property. Program the transactions correctly.
23329 Improve error handling. Various important fixups.
23330 (grub_ohci_portstatus): Put register writes in right order.
23331 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
23332 (grub_uhci_transfer): Don't show "failed" message on success.
23333 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
23335 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
23336 determine its size.
23337 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
23338 before initialization is completed. Use IN direction for empty
23339 transfers. Use last_trans and compute toggle.
23340 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
23341 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
23342 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
23343 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
23344 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
23345 (grub_usb_device): Increase toggle to 256.
23346 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
23347 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
23348 GRUB_USBMS_SUBCLASS_SFF8070.
23349 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
23350 (grub_scsi_inquiry): New member page and alloc_length.
23351 (grub_scsi_request_sense): New structure.
23352 (grub_scsi_request_sense_data): Likewise.
23353 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
23355 * disk/scsi.c (grub_scsi_request_sense): New function.
23356 (grub_scsi_test_unit_ready): Likewise.
23357 (grub_scsi_inquiry): Fill new fields.
23358 (grub_scsi_read_capacity): Likewise.
23359 (grub_scsi_read10): Add request sense at the end.
23360 (grub_scsi_read12): Likewise.
23361 (grub_scsi_write10): Likewise.
23362 (grub_scsi_write12): Likewise.
23363 (grub_scsi_open): Add Test Unit Ready.
23364 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
23365 Support additional subclasses. Con't clear halt yet. Activate the
23366 proper config. Calculate LUNs correctly.
23367 (grub_usbms_transfer): Various important fixups.
23369 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
23371 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
23372 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
23373 (grub_ohci_fini_hw): New function.
23374 (grub_ohci_restore_hw): Likewise.
23375 (GRUB_MOD_INIT(ohci)): Register preboot hook.
23376 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
23377 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
23379 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
23381 Dedicated DMA allocations.
23383 * bus/pci.c (grub_memalign_dma32): New function
23384 (grub_dma_free): Likewise.
23385 (grub_dma_get_virt): Likewise.
23386 (grub_dma_get_phys): Likewise.
23387 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
23388 (grub_ohci_pci_iter): Use dma32_alloc.
23389 (grub_ohci_transfer): Likewise.
23390 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
23391 (grub_usb_bulk_readwrite): Likewise.
23392 * include/grub/pci.h: Add declarations.
23394 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
23398 * bus/cs5536.c: New file.
23399 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
23400 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
23401 (cs5536_mod_SOURCES): New variable.
23402 (cs5536_mod_CFLAGS): Likewise.
23403 (cs5536_mod_LDFLAGS): Likewise.
23404 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
23406 (kernel_img_SOURCES): Add bus/cs5536.c.
23407 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
23409 (usb_mod_SOURCES): New variable.
23410 (usb_mod_CFLAGS): New variable.
23411 (usb_mod_LDFLAGS): New variable.
23412 (usbtest_mod_SOURCES): New variable.
23413 (usbtest_mod_CFLAGS): New variable.
23414 (usbtest_mod_LDFLAGS): New variable.
23415 (ohci_mod_SOURCES): New variable.
23416 (ohci_mod_CFLAGS): New variable.
23417 (ohci_mod_LDFLAGS): New variable.
23418 (usbms_mod_SOURCES): New variable.
23419 (usbms_mod_CFLAGS): New variable.
23420 (usbms_mod_LDFLAGS): New variable.
23421 (usb_keyboard_mod_SOURCES): New variable.
23422 (usb_keyboard_mod_CFLAGS): New variable.
23423 (usb_keyboard_mod_LDFLAGS): New variable.
23424 * include/grub/smbus.h: New file.
23425 * include/grub/cs5536.h: New file.
23427 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23429 * util/grub.d/00_header.in: Add safety check to make sure that
23430 ${locale_dir} exists before trying to probe it.
23432 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23434 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
23435 per the GNU Coding Standards; this is now too obscure to be worth
23438 (chainloader): Remove cross-reference to `SCO UnixWare'.
23440 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23442 * docs/grub.texi (Chain-loading): New section.
23443 (DOS/Windows): New section, borrowed from GRUB Legacy with details
23444 adjusted for GRUB 2.
23445 (SCO UnixWare): Likewise.
23447 (chainloader): Add reference to `Block list syntax'.
23448 (drivemap): New section.
23449 (parttool): New section.
23451 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23453 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
23455 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
23456 (Installing GRUB using grub-install): Remove reference to the grub
23457 shell; mention `grub-mkimage' and `grub-setup' instead.
23458 (Invoking grub-install): Likewise.
23459 (Interface): Add reference to `Menu entry editor'.
23460 (serial): Remove `--device' option.
23462 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23464 * docs/grub.texi (Configuration): New section, documenting
23465 configuration file generation using grub-mkconfig. I've left a slot
23466 for documenting the full shell scripting format but have not yet
23467 started on writing that up.
23468 (Invoking grub-mkconfig): New section.
23470 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23472 * docs/grub.texi (direntry): Remove grub-terminfo reference.
23473 (GNU GRUB manual): Likewise.
23474 (General commands): Update description of `terminfo' for GRUB 2.
23476 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23478 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
23479 (GRUB_MOD_INIT): Fix capitalisation.
23480 * docs/grub.texi (Command-line and menu entry commands): Document
23481 gettext and gptsync commands.
23483 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23485 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
23486 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
23488 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
23490 Add btrfs probing support, currently only in the single-device case.
23492 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
23494 (grub_guess_root_device): Call find_root_device_from_mountinfo
23495 before looking in /dev.
23497 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
23499 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
23500 GRUB_DISK_SIZE_UNKNOWN.
23501 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
23503 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
23505 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
23506 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
23507 corrupted or not synced properly.
23509 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
23511 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
23512 Reported by: Seth Goldberg.
23514 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
23516 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
23518 Reported by: Seth Goldberg.
23520 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
23522 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
23523 Reported by: Seth Goldberg.
23525 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
23527 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
23528 64-bit address as signed on MIPS.
23530 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
23532 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
23533 to the empty string.
23535 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
23537 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
23539 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
23540 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
23541 * kern/misc.c (__enable_execute_stack): Disable on
23544 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
23546 Make grub-probe work with symbolic links under /dev/mapper as well
23547 as with real block devices. The Linux world seems to be (at best)
23548 in transition here, and GRUB shouldn't get caught in the middle.
23550 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
23553 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23555 * util/grub-script-check.c (main): Ensure defined behaviour on empty
23556 input files (in which case exit zero).
23558 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23560 * kern/emu/misc.c (canonicalize_file_name): realpath can still
23561 return NULL for various reasons even if it has a maximum-length
23562 buffer: for example, there might be a symlink loop, or the path
23563 might exceed PATH_MAX. If this happens, return NULL.
23565 2010-05-27 Robert Millan <rmh@gnu.org>
23567 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
23568 partmap module to handle cross-partmap setups.
23569 Reported by Orestes Mas. Gràcies!
23571 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23573 * util/grub-mkrescue.in: Initialise override_dir rather than
23574 assuming that it's unset or empty in the environment.
23576 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
23578 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
23579 variable index into p_index to suppress a warning with -Wshadow.
23581 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
23583 * INSTALL: Added flex >= 2.5.35 requirement.
23585 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23587 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
23589 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23593 * commands/i386/cmostest.c: New file.
23594 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
23595 (cmostest_mod_SOURCES): New variable.
23596 (cmostest_mod_CFLAGS): Likewise.
23597 (cmostest_mod_LDFLAGS): Likewise.
23598 * conf/i386-pc.rmk: Likewise.
23599 * docs/grub.texi (Vendor power-on keys): New section.
23600 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
23601 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
23602 and GRUB_BUTTON_CMOS_ADDRESS.
23603 * util/grub.d/00_header.in: Handle powering-on by separate button.
23605 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23607 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
23608 Removed drawing_scrollbar argument. All users updated
23610 Reported by Jo Shields
23612 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23614 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
23615 buffer since gfxterm handles double repaint.
23617 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23619 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
23620 * term/gfxterm.c (real_scroll): Likewise.
23622 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23624 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
23625 before calling BIOS.
23627 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23629 * include/grub/i18n.h: Always enable grub_gettext.
23631 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23633 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
23634 partition naming style.
23636 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
23638 * util/grub-mkconfig.in: Fix handling of -o so that it works when
23639 not the first option.
23641 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
23643 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
23645 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
23647 * util/misc.c: Move inclusion of <limits.h> to ...
23648 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
23650 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
23652 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
23653 Fix merge error in NetBSD code.
23654 (find_partition_start) [__NetBSD__]: Likewise.
23656 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
23658 Fix grub-mkrescue usage unit testing.
23660 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
23662 2010-05-18 Christian Franke <franke@computer.org>
23664 * util/grub.d/10_windows.in: Use path names instead of
23665 drive letters to prevent warning from Cygwin 1.7.
23666 Add drivemap command to menuentry if needed.
23668 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
23670 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
23671 gnumach and gnumach.gz.
23673 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23675 * include/grub/i18n.h (gettext): Inline instead of using #define.
23676 (grub_gettext): Likewise.
23679 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23681 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
23682 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
23683 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
23684 (main): Add a slash after pkglibdirroot.
23686 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23688 * util/grub-install.in: Add missing "in" keyword.
23690 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23692 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
23693 Reported by: Seth Goldberg.
23695 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23697 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
23699 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23701 * configure.ac: Check for Linux device-mapper support.
23703 * util/hostdisk.c (device_is_mapped): New function.
23704 (find_partition_start): New function, partly broken out from
23705 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
23706 device-mapper support added.
23707 (linux_find_partition): Use find_partition_start.
23708 (convert_system_partition_to_system_disk): Add `st' argument.
23709 Support Linux /dev/mapper/* devices if device-mapper support is
23710 available; only DM-RAID devices are understood at present.
23711 (find_system_device): Add `st' argument. Pass it to
23712 convert_system_partition_to_system_disk.
23713 (grub_util_biosdisk_get_grub_dev): Pass stat result to
23714 find_system_device and convert_system_partition_to_system_disk. Use
23715 find_partition_start.
23717 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
23718 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
23719 * util/deviceiter.c [__linux__]: Define MINOR.
23720 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
23721 * util/mkdevicemap.c (grub_putchar): New function.
23722 (grub_getkey): New function.
23723 (grub_refresh): New function.
23724 (main): Set debug=all if -v -v is used.
23726 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23728 Fix build with non-GNU libcs.
23730 * util/misc.c (canonicalize_file_name): Move to ...
23731 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
23732 grub_make_system_path_relative_to_its_root.
23734 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23736 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
23737 we handle finding grub-mkimage. Default to finding grub-mkimage in
23738 ${bindir} with program_transform_name applied, and provide a
23739 --grub-mkimage option to override this.
23741 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23743 Remove grub-mkisofs.
23745 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
23746 (grub_mkisofs_SOURCES): Removed.
23747 (grub_mkisofs_CFLAGS): Removed.
23748 * util/mkisofs/defaults.h: Removed.
23749 * util/mkisofs/eltorito.c: Likewise.
23750 * util/mkisofs/exclude.h: Likewise.
23751 * util/mkisofs/hash.c: Likewise.
23752 * util/mkisofs/include/: Likewise.
23753 * util/mkisofs/include/fctldefs.h: Likewise.
23754 * util/mkisofs/include/mconfig.h: Likewise.
23755 * util/mkisofs/include/prototyp.h: Likewise.
23756 * util/mkisofs/include/statdefs.h: Likewise.
23757 * util/mkisofs/iso9660.h: Likewise.
23758 * util/mkisofs/joliet.c: Likewise.
23759 * util/mkisofs/match.c: Likewise.
23760 * util/mkisofs/match.h: Likewise.
23761 * util/mkisofs/mkisofs.c: Likewise.
23762 * util/mkisofs/mkisofs.h: Likewise.
23763 * util/mkisofs/msdos_partition.h: Likewise.
23764 * util/mkisofs/multi.c: Likewise.
23765 * util/mkisofs/name.c: Likewise.
23766 * util/mkisofs/rock.c: Likewise.
23767 * util/mkisofs/tree.c: Likewise.
23768 * util/mkisofs/write.c: Likewise.
23770 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23772 Unify grub-mkimage accross platforms.
23774 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
23775 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
23776 (grub_mkelfimage_SOURCES): Removed.
23777 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
23778 (util/grub-mkimage.c_DEPENDENCIES): .. this.
23779 (bin_UTILITIES): Add grub-mkimage.
23780 (grub_mkimage_SOURCES): New variable.
23781 (kernel_img_HEADERS): Remove machine/kernel.h.
23782 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
23783 (pkglib_PROGRAMS): Add kernel.img.
23784 (kernel_img_HEADERS): Add machine/kernel.h.
23785 (kernel_img_FORMAT): Removed.
23786 (bin_UTILITIES): Remove grub-mkimage.
23787 (grub_mkimage_SOURCES): Removed.
23788 (grub_mkimage_CFLAGS): Likewise.
23789 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23790 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
23791 (pkglib_PROGRAMS): Add kernel.img.
23792 (bin_UTILITIES): Remove grub-mkimage.
23793 (grub_mkimage_SOURCES): Removed.
23794 (grub_mkimage_CFLAGS): Likewise.
23795 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23796 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
23797 (pkglib_PROGRAMS): Add kernel.img.
23798 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
23799 (pkglib_PROGRAMS): Add kernel.img.
23800 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
23801 (grub_mkimage_SOURCES): Removed.
23802 (grub_mkimage_CFLAGS): Likewise.
23803 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23804 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
23805 (pkglib_PROGRAMS): Add kernel.img.
23806 (bin_UTILITIES): Remove grub-mkimage.
23807 (grub_mkimage_SOURCES): Removed.
23808 (grub_mkimage_CFLAGS): Likewise.
23809 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23810 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
23811 (grub_mkimage_SOURCES): Removed.
23812 (grub_mkimage_CFLAGS): Likewise.
23813 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23814 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
23815 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
23816 (grub_pe32_optional_header): ... this.
23817 (grub_pe64_optional_header): ... and this. All users updated.
23818 (GRUB_PE32_PE32_MAGIC): Split into ..
23819 (GRUB_PE32_PE32_MAGIC): .. this.
23820 (GRUB_PE32_PE64_MAGIC): .. and this.
23821 (GRUB_PE32_SIGNATURE_SIZE): New definition.
23822 * include/grub/elf.h (PT_GNU_STACK): New definition.
23823 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
23824 * include/grub/i386/efi/kernel.h: Likewise.
23825 * include/grub/i386/kernel.h: Likewise.
23826 * include/grub/i386/pc/kernel.h: Likewise.
23827 * include/grub/i386/qemu/boot.h: Likewise.
23828 * include/grub/mips/kernel.h: Likewise.
23829 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23830 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
23831 * include/grub/powerpc/kernel.h: Likewise.
23832 * include/grub/sparc64/ieee1275/boot.h: Likewise.
23833 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
23834 * include/grub/sparc64/kernel.h: Likewise.
23835 * include/grub/x86_64/efi/kernel.h: Likewise.
23836 * include/grub/x86_64/kernel.h: Likewise.
23837 * include/grub/offsets.h: New file.
23838 * include/grub/kernel.h (grub_module_info): Split into ...
23839 (grub_module_info32): ... this.
23840 (grub_module_info64): ... and this.
23841 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
23842 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
23843 (grub_boot_blocklist): Moved from here ...
23844 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
23845 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
23846 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
23847 * include/grub/types.h (grub_target_to_host16): Removed.
23848 (grub_target_to_host32): Likewise.
23849 (grub_target_to_host64): Likewise.
23850 (grub_host_to_target16): Likewise.
23851 (grub_host_to_target32): Likewise.
23852 (grub_host_to_target64): Likewise.
23853 (grub_host_to_target_addr): Likewise.
23855 Support grub-mkrescue for efi, coreboot and qemu.
23857 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
23858 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
23859 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
23860 * util/grub-mkrawimage.c: Moved from here ...
23861 * util/grub-mkimage.c: ... here. All users updated.
23862 (ALIGN_ADDR): Use image_target.
23863 (TARGET_NO_FIELD): New const.
23864 (image_target_desc): New type.
23865 (image_targets): New array.
23866 (grub_target_to_host64): Use image_target.
23867 (grub_target_to_host32): Likewise.
23868 (grub_target_to_host16): Likewise.
23869 (grub_host_to_target64): Likewise.
23870 (grub_host_to_target32): Likewise.
23871 (grub_host_to_target16): Likewise.
23872 (grub_host_to_target_addr): Likewise.
23873 (generate_image): Handle multiimage.
23874 (main): Require -O parameter. All users updated.
23875 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
23876 util/efi/grub-mkimage.c
23877 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
23878 New option --rom-directory.
23880 * util/i386/efi/grub-mkimage.c: Removed.
23881 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
23882 (grub_target_to_host32): Likewise.
23883 (grub_target_to_host64): Likewise.
23884 (grub_host_to_target16): Likewise.
23885 (grub_host_to_target32): Likewise.
23886 (grub_host_to_target64): Likewise.
23887 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
23888 (grub_target_to_host32): Likewise.
23889 (grub_target_to_host64): Likewise.
23890 (grub_host_to_target16): Likewise.
23891 (grub_host_to_target32): Likewise.
23892 (grub_host_to_target64): Likewise.
23894 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
23896 Source tree is reorganized for emu build.
23898 * include/grub/util/console.h: Move from here...
23899 * include/grub/emu/console.h: ...to here.
23900 * include/grub/util/getroot.h: Move from here...
23901 * include/grub/emu/getroot.h: ...to here.
23902 * include/grub/util/hostdisk.h: Move from here...
23903 * include/grub/emu/hostdisk.h: ...to here.
23904 * util/console.c: Move from here...
23905 * kern/emu/console.c: ...to here.
23906 * util/getroot.c: Move from here...
23907 * kern/emu/getroot.c: ...to here.
23908 * util/grub-emu.c: Move from here...
23909 * kern/emu/main.c: ...to here.
23910 * util/hostdisk.c: Move from here...
23911 * kern/emu/hostdisk.c: ...to here.
23912 * util/hostfs.c: Move from here...
23913 * kern/emu/hostfs.c: ...to here.
23914 * util/mm.c: Move from here...
23915 * kern/emu/mm.c: ...to here.
23916 * util/pci.c: Move from here...
23917 * bus/emu/pci.c: ...to here.
23918 * util/sdl.c: Move from here...
23919 * video/emu/sdl.c: ...to here.
23920 * util/time.c: Move from here...
23921 * kern/emu/time.c: ...to here.
23922 * util/usb.c: Move from here...
23923 * bus/usb/emu/usb.c: ...to here.
23925 * include/grub/emu/misc.h: New header for grub-emu functions.
23926 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
23928 * conf/any-emu.rmk: Rule updates for above renames.
23929 * conf/common.rmk: Likewise.
23930 * conf/i386-pc.rmk: Likewise.
23931 * conf/i386-qemu.rmk: Likewise.
23932 * conf/mips.rmk: Likewise.
23933 * conf/sparc64-ieee1275.rmk: Likewise.
23934 * conf/x86-efi.rmk: Likewise.
23936 * disk/lvm.h: #include updates for above renames.
23937 * util/grub-mkrelpath.c: Likewise.
23938 * util/grub-probe.c: Likewise.
23939 * util/i386/pc/grub-setup.c: Likewise.
23940 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23941 * kern/emu/console.c: Likewise.
23942 * kern/emu/getroot.c: Likewise.
23943 * kern/emu/hostdisk.c: Likewise.
23944 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
23946 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
23947 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
23948 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
23949 * util/misc.c: Remove grub-emu functions.
23951 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
23954 Reported by: Thorsten Grützmacher.
23956 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
23958 (circprog_set_property): Register and unregister timeout hook.
23959 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
23960 (label_destroy): Free template. and unregister hook.
23961 (label_set_state): New function.
23962 (label_set_property): Handle templates and hooks.
23963 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
23965 (progress_bar_set_property): Register and unregister timeout hook.
23966 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
23967 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
23968 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
23969 (update_timeout_visit): Removed.
23970 (update_timeouts): New function.
23971 (redraw_timeouts): Likewise.
23972 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
23973 (grub_gfxmenu_clear_timeout): Likewise.
23974 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
23975 (grub_gfxmenu_timeout_notify): Likewise.
23976 (grub_gfxmenu_timeout_notifications): New external variable.
23977 (grub_gfxmenu_timeout_register): New function.
23978 (grub_gfxmenu_timeout_unregister): Likewise.
23980 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23982 Transform (broken) vga terminal into (working) vga video driver.
23984 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
23985 video/i386/pc/vga.c.
23986 * include/grub/video.h (grub_video_driver_id):
23987 Add GRUB_VIDEO_DRIVER_VGA.
23988 * term/i386/pc/vga.c: Renamed to ...
23989 * video/i386/pc/vga.c: ...this
23990 (DEBUG_VGA): Removed.
23991 (CHAR_WIDTH): Likewise.
23992 (CHAR_HEIGHT): Likewise.
23993 (TEXT_WIDTH): Likewise.
23994 (TEXT_HEIGHT): Likewise.
23995 (DEFAULT_FG_COLOR): Likewise.
23996 (DEFAULT_BG_COLOR): Likewise.
23997 (colored_char): Likewise.
24000 (cursor_state): Likewise.
24001 (fg_color): Likewise.
24002 (bg_color): Likewise.
24003 (text_buf): Likewise.
24006 (framebuffer): New variable.
24007 (set_read_map): Disabled.
24008 (setup): New variable.
24009 (is_target): Likewise.
24010 (grub_vga_mod_init): Likewise.
24011 (grub_vga_mod_fini): Likewise.
24012 (check_vga_mem): Likewise.
24013 (write_char): Likewise.
24014 (write_cursor): Likewise.
24015 (scroll_up): Likewise.
24016 (grub_vga_putchar): Likewise.
24017 (grub_vga_getcharwidth): Likewise.
24018 (grub_vga_getwh): Likewise.
24019 (grub_vga_getxy): Likewise.
24020 (grub_vga_gotoxy): Likewise.
24021 (grub_vga_cls): Likewise.
24022 (grub_vga_setcolorstate): Likewise.
24023 (grub_vga_setcursor): Likewise.
24024 (grub_video_vga_init): New function.
24025 (grub_video_vga_setup): Likewise.
24026 (grub_video_vga_fini): Likewise.
24027 (update_target): Likewise.
24028 (grub_video_vga_blit_bitmap): Likewise.
24029 (grub_video_vga_blit_render_target): Likewise.
24030 (grub_video_vga_set_active_render_target): Likewise.
24031 (grub_video_vga_get_active_render_target): Likewise.
24032 (grub_video_vga_swap_buffers): Likewise.
24033 (grub_video_vga_set_palette): Likewise.
24034 (grub_video_vga_get_info_and_fini): Likewise.
24035 (grub_vga_term): Removed.
24036 (grub_video_vga_adapter): New variable.
24037 (GRUB_MOD_INIT): Register a video driver instead of terminal.
24038 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
24040 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24042 * video/readers/jpeg.c: Indented.
24044 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24046 Various jpeg cleanups.
24048 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
24049 (grub_jpeg_decode_quan_table): Use sizeof.
24050 (grub_jpeg_decode_du): Use ARRAY_SIZE.
24052 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
24054 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
24055 tables. Ignore non-last ac bit.
24056 (grub_jpeg_decode_quan_table): Likewise.
24058 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24060 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
24061 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
24062 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24063 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
24064 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
24065 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
24067 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24069 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
24072 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24074 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
24076 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24078 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
24081 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24083 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
24086 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24088 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
24091 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24093 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
24095 2010-05-01 Christian Franke <franke@computer.org>
24097 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
24098 Remove broken Cygwin path conversion.
24099 * util/misc.c: [__CYGWIN__] Add include and define.
24100 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
24102 (make_system_path_relative_to_its_root): Simplify loop, replace early
24104 [__CYGWIN__] Add conversion to win32 path.
24105 Include "/" case in trailing slash removal.
24107 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24109 * kern/main.c (grub_load_config): Fix copy-pasted comment.
24110 Reported by: Seth Goldberg
24112 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24114 * commands/help.c (grub_cmd_help): Fix a typo.
24115 Reported by: Seth Goldberg
24117 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24119 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
24121 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
24122 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
24123 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
24124 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
24125 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
24126 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
24127 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
24128 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
24129 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
24130 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24131 * normal/context.c (GRUB_MOD_INIT): Likewise.
24132 * normal/main.c (GRUB_MOD_INIT): Likewise.
24133 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
24134 * term/serial.c (GRUB_MOD_INIT): Likewise.
24135 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
24137 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24139 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
24142 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24144 * commands/iorw.c: New file.
24145 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
24146 (iorw_mod_SOURCES): New variable.
24147 (iorw_mod_CFLAGS): Likewise.
24148 (iorw_mod_LDFLAGS): Likewise.
24150 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24154 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
24155 * normal/main.c (hotkey_aliases): New variable.
24156 (grub_normal_add_menu_entry): Parse "--hotkey".
24157 * normal/menu_text.c (run_menu): Handle hotkeys.
24159 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24161 * kern/i386/coreboot/init.c (grub_machine_init): Call
24162 grub_machine_mmap_init on qemu.
24164 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24166 * boot/i386/qemu/boot.S: Add a missing .code16.
24168 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24170 Use LBIO on coreboot.
24172 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
24173 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
24174 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
24176 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
24177 grub_machine_mmap_init on coreboot.
24178 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
24179 GRUB_LINUXBIOS_MEMBER_LINK.
24180 (grub_machine_mmap_iterate): Fix declaration.
24181 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
24183 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24185 Split coreboot and multiboot ports.
24187 * conf/i386-multiboot.rmk: New file.
24188 * configure.ac: Add multiboot port.
24189 * include/grub/i386/multiboot/boot.h: New file.
24190 * include/grub/i386/multiboot/console.h: Likewise.
24191 * include/grub/i386/multiboot/init.h: Likewise.
24192 * include/grub/i386/multiboot/kernel.h: Likewise.
24193 * include/grub/i386/multiboot/loader.h: Likewise.
24194 * include/grub/i386/multiboot/memory.h: Likewise.
24195 * include/grub/i386/multiboot/serial.h: Likewise.
24196 * include/grub/i386/multiboot/time.h: Likewise.
24197 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
24198 * loader/multiboot.c: Likewise.
24199 * loader/multiboot_mbi2.c: Likewise.
24200 * util/grub-mkrescue.in: Generate multiboot rescue.
24202 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24204 * kern/parser.c (grub_parser_execute): Cope with read-only config.
24206 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24208 Merge handling of input and output terminals. Fix a hang.
24210 * commands/terminal.c (abstract_terminal): New struct.
24211 (handle_command): New function. Based on grub_cmd_terminal_input.
24212 (grub_cmd_terminal_input): Use handle_command.
24213 (grub_cmd_terminal_output): Use handle_command.
24215 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
24217 Fix comment handling.
24219 * tests/grub_script_comments.in: New testcase.
24220 * conf/tests.rmk: Rules for new testcase.
24221 * script/yylex.l: Updated flex rules.
24223 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
24225 * docs/grub.texi (play): Document that zero pitches produce rests.
24226 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
24229 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24231 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
24234 2010-04-26 Christian Franke <franke@computer.org>
24236 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
24237 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
24238 (grub_get_prefix): Remove function.
24239 * util/grub-emu.c (main): Replace grub_get_prefix () call by
24240 make_system_path_relative_to_its_root ().
24241 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24243 2010-04-24 Christian Franke <franke@computer.org>
24245 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
24246 (kernel_img_LDFLAGS): Remove -static-libgcc.
24248 2010-04-24 Christian Franke <franke@computer.org>
24250 * configure.ac: Do not CHECK_BSS_START_SYMBOL
24251 and CHECK_END_SYMBOL if grub-emu is built.
24252 Unset TARGET_OBJ2ELF if grub-emu is built
24253 without module support.
24255 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
24259 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
24260 (grub_fstest_SOURCES): Likewise.
24261 (pkglib_MODULES): Add nilfs2.mod.
24262 (nilfs2_mod_SOURCES): New variable.
24263 (nilfs2_mod_CFLAGS): Likewise.
24264 (nilfs2_mod_LDFLAGS): Likewise.
24265 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
24266 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
24267 * fs/nilfs2.c: New file.
24269 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
24271 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
24274 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
24276 Add grub-mkconfig support for NetBSD.
24278 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
24279 * util/grub-mkconfig.in: export new NetBSD specific variables.
24280 * po/POTFILES-shell: added 10_netbsd.in.
24281 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
24283 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
24285 Fix emu build with grub-emu-pci and grub-emu-modules.
24287 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
24289 * include/grub/libpciaccess.h: New file.
24290 * conf/any-emu.rmk: Update kernel headers for emu build.
24292 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24294 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
24296 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24298 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
24300 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
24302 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
24303 Retrieve chosen/bootpath if bootpath isn't hardcoded.
24304 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
24305 util/ieee1275/ofpath.c.
24306 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
24307 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
24308 * include/grub/sparc64/ieee1275/boot.h
24309 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
24310 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
24311 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
24312 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
24314 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
24315 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
24316 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
24319 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
24321 * util/grub-mkconfig.in: Corrected two == equality tests.
24322 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
24323 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
24324 expect a number appended to it.
24325 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
24326 expects a number appended to it.
24328 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
24330 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
24332 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
24334 * util/hostdisk.c (make_device_name): Change to new partition naming.
24336 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
24338 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
24340 2010-04-17 Christian Franke <franke@computer.org>
24342 * Makefile.in: Add missing localedir setting.
24344 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
24346 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
24347 mistake in r2156. Noticed by Anthony Fok.
24349 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
24351 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
24353 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
24355 Fix a spurious, uninitialized variable warning.
24357 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
24358 Initialize variable, shdr.
24359 (grub_freebsd_load_elfmodule): Likewise.
24360 (grub_freebsd_load_elf_meta): Likewise.
24362 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
24364 Fix for escaped dollar in double quoted strings.
24366 * script/yylex.l: Updated flex rules.
24367 * conf/tests.rmk: Rule for new testcase.
24368 * tests/grub_script_dollar.in: New testcase.
24370 2010-04-13 Carles Pina i Estany <carles@pina.cat>
24371 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
24373 Enclose all translated strings in grub.cfg in single quotes, and
24374 escape them appropriately (Ubuntu bug #552921).
24376 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
24377 * util/grub.d/10_hurd.in: Use it.
24378 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
24379 * util/grub.d/10_linux.in (linux_entry): Likewise.
24381 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
24383 Fix cygwin compilation.
24385 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
24386 * include/grub/misc.h (__register_frame_info)
24387 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
24388 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
24389 * kern/misc.c (__register_frame_info)
24390 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
24391 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
24393 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
24395 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
24397 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
24399 Unify libgcc processing.
24401 * Makefile.in (kernel_img_LDFLAGS): New variable.
24402 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
24403 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
24405 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
24406 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
24407 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
24408 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
24409 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
24410 overwriting. Remove -lgcc and -static-libgcc
24411 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
24412 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
24413 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
24414 (kernel_img_LDFLAGS): Append instead of overwriting.
24415 Remove -lgcc and -static-libgcc
24416 * conf/sparc64-ieee1275.rmk: Likewise.
24417 * include/grub/powerpc/libgcc.h: Move to ...
24418 * include/grub/libgcc.h: .. this.
24419 * include/grub/libgcc.h: Don't export most of the function on x86.
24420 (__bswapsi2): New export.
24421 (__bswapdi2): Likewise.
24422 * include/grub/mips/libgcc.h: Removed.
24423 * include/grub/sparc64/libgcc.h: Likewise.
24425 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24427 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
24428 disk_info_msg (conflicts with gettexting into languages with cases).
24430 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
24432 Add grub-probe support for NetBSD.
24434 * util/getroot.c (find_root_device): Convert block device to
24435 character device on NetBSD.
24436 * util/probe.c (probe): Require character device on NetBSD.
24437 * util/hostdisk.c: NetBSD specific headers.
24438 (configure_device_driver): new function to tune device driver
24439 parameters (currently only for NetBSD floppy driver).
24440 (grub_util_biosdisk_open): NetBSD specific code (get disk size
24441 via disklabel ioctl).
24442 (open_device): call configure_device_driver on NetBSD.
24443 (convert_system_partition_to_system_disk): NetBSD specific code.
24444 (device_is_wholedisk): Likewise.
24445 (grub_util_biosdisk_get_grub_dev): Likewise.
24446 (make_device_name): Fixed a typo in bsd_part_str.
24447 * configure.ac: check for opendisk() and getrawpartition() on
24448 NetBSD and set LIBUTIL.
24449 * Makefile.in: add LIBUTIL to LIBS.
24451 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
24455 * util/grub-script-check.c: Better help message.
24457 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
24461 * configure.ac: Flex version check.
24462 * conf/common.rmk: Add -Wno-error to sh.mod.
24463 * script/yylex.l: Remove all #pragma.
24465 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24467 * include/grub/util/misc.h (canonicalise_file_name): Add missing
24469 Reported by: Seth Goldberg.
24471 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24473 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
24474 Rename "module" to "module2".
24475 Reported by: Seth Goldberg.
24477 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24479 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
24481 Reported by: Seth Goldberg.
24483 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24485 * lib/posix_wrap/locale.h: Add missing file.
24486 Reported by: Seth Goldberg.
24488 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24490 grub-emu module load support.
24492 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
24493 NO_DYNAMIC_MODULES switched to this.
24494 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
24495 (CFLAGS): Likewise.
24496 * conf/any-emu.rmk: Generate symlist.
24497 (kernel_img_HEADERS): Add util/datetime.h.
24498 (kernel_img_HEADERS) [sdl]: Add sdl.h.
24499 (kernel_img_HEADERS) [libusb]: Add libusb.h.
24500 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
24501 kern/$(target_cpu)/cache.S.
24502 * configure.ac (grub-emu-modules): New option.
24503 * genmk.rb: Handle multiple source lists.
24504 * include/grub/sdl.h: New file.
24505 * include/grub/libusb.h: Likewise.
24506 * util/grub-emu.c (main): Hanle (host) root.
24507 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
24508 GRUB_ERR_UNKNOWN_DEVICE.
24509 * util/misc.c: Move mm functions to ...
24510 * util/mm.c: ... here. All users updated.
24512 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24514 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
24515 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
24517 (maintainer-clean): Remove libgcrypt-grub.
24519 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24521 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
24523 2010-04-09 EFI Coder <eficoder@hotmail.com>
24525 * normal/menu_text.c (print_message): Clean up the message and show
24526 the Fn information when on EFI
24527 * term/efi/console.c (grub_console_checkkey): Add F4 support.
24529 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24531 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
24533 * normal/crypto.c (read_crypto_list): Likewise.
24534 * normal/dyncmd.c (read_command_list): Likewise.
24535 * normal/term.c (read_terminal_list): Likewise.
24536 * normal/main.c (read_lists): Use explicit prefix.
24537 (read_lists_hook): Use read_lists.
24538 (grub_normal_execute): Likewise.
24540 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24542 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
24543 Reported by: Thomas Schmitt.
24544 Add -no-emul-boot to grub-mkisofs parameters.
24546 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24548 * font/font.c: Indented.
24550 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
24552 Elif support to GRUB script (by Deepak Vankadaru).
24554 * tests/grub_script_if.in: New testcase.
24555 * conf/tests.rmk: Rule for new testcase.
24556 * script/parser.y: Grammar rules for elif.
24558 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
24560 While and until loops support to GRUB script.
24562 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
24563 (grub_script_create_cmdwhile): New function prototype.
24564 (grub_script_execute_cmdwhile): New function prototype.
24565 * script/execute.c (grub_script_execute_cmdwhile): New function.
24566 * script/parser.y (command): New commands.
24567 (whilecmd): New grammar rule.
24568 (untilcmd): New grammar rule.
24569 * script/script.c (grub_script_create_cmdwhile): New function.
24570 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
24573 * tests/grub_script_while1.in: New testcase.
24574 * conf/tests.rmk: Rule for new testcase.
24576 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24578 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
24581 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
24583 GRUB_BACKGROUND support.
24585 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
24586 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
24588 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24590 Load fonts and modules for gfxmenu in grub-mkconfig.
24591 Idea by: Mario Vazquez
24593 * util/grub.d/00_header.in: Load pf2 and image modules.
24595 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24597 grub-mkconfig multiple terminal support.
24599 * util/grub-mkconfig.in: Handle multiple terminals correctly.
24600 * util/grub.d/00_header.in: Likewise.
24602 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24604 * Makefile.in: Specify files explicitly instead of using $< and $@ since
24605 we use cd $(srcdir).
24607 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
24609 * util/grub.d/10_linux.in: Only use the first word of
24610 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
24611 spaces in GRUB_DISTRIBUTOR.
24612 * util/grub.d/10_kfreebsd.in: Likewise.
24613 * util/grub.d/10_hurd.in: Likewise.
24615 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
24617 Fix unit testing framework for Qemu 0.12.
24619 * tests/util/grub-shell.in: Remove -serial stdio option.
24621 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
24623 POSIX header file wrappers.
24625 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
24627 * lib/posix_wrap/ctype.h: Likewise.
24628 * lib/posix_wrap/errno.h: Likewise.
24629 * lib/posix_wrap/langinfo.h: Likewise.
24630 * lib/posix_wrap/limits.h: Likewise.
24631 * lib/posix_wrap/localcharset.h: Likewise.
24632 * lib/posix_wrap/stdint.h: Likewise.
24633 * lib/posix_wrap/stdio.h: Likewise.
24634 * lib/posix_wrap/stdlib.h: Likewise.
24635 * lib/posix_wrap/string.h: Likewise.
24636 * lib/posix_wrap/sys/types.h: Likewise.
24637 * lib/posix_wrap/unistd.h: Likewise.
24638 * lib/posix_wrap/wchar.h: Likewise.
24639 * lib/posix_wrap/wctype.h: Likewise.
24640 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
24641 (grub_script.yy.h): Likewise.
24642 * script/yylex.l: Remove POSIX emulation #defines.
24643 * Makefile.in (POSIX_CFLAGS): New variable.
24644 (GNULIB_UTIL_CFLAGS): Likewise.
24648 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
24649 (regexp_mod_SOURCES): New variable.
24650 (regexp_mod_CFLAGS): Likewise.
24651 (regexp_mod_LDFLAGS): Likewise.
24652 * commands/regexp.c: New file.
24653 * gnulib/regcomp.c: New file. Imported from gnulib.
24654 * gnulib/regex.c: Likewise.
24655 * gnulib/regex_internal.c: Likewise.
24656 * gnulib/regex_internal.h: Likewise.
24657 * gnulib/regexec.c: Likewise.
24658 * gnulib/regex.h: Likewise.
24660 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24662 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
24663 unsupported video mode types.
24665 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24667 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
24669 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24671 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
24672 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
24674 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
24676 Remove unused grub_vga_get_font.
24678 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
24679 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
24681 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24683 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
24684 * include/grub/misc.h: Likewise.
24686 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24688 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
24689 for which failure is fatal.
24691 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24693 * util/grub-install.in: Use mkdir -p to create grub directory.
24694 * util/i386/efi/grub-install.in: Likewise.
24695 * util/ieee1275/grub-install.in: Likewise.
24697 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24699 * Makefile.in (LEX): new variable.
24701 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24703 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
24704 `=' and added double quotes on operands of this equality test.
24706 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
24708 * Makefile.in (uninstall): Remove a leftover debug echo.
24709 Reported by: Grégoire Sutre
24711 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
24713 MIPS multiboot2 support.
24715 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
24716 (multiboot2_mod_SOURCES): New variable.
24717 (multiboot2_mod_CFLAGS): Likewise.
24718 (multiboot2_mod_LDFLAGS): Likewise.
24719 (multiboot2_mod_ASFLAGS): Likewise.
24720 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
24722 (MULTIBOOT_ENTRY_REGISTER): Likewise.
24723 (MULTIBOOT_MBI_REGISTER): Likewise.
24724 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
24725 (MULTIBOOT_ELF32_MACHINE): Likewise.
24726 (MULTIBOOT_ELF64_MACHINE): Likewise.
24727 * include/grub/mips/multiboot.h: New file.
24728 * include/grub/video.h (grub_video_driver_id): New type
24729 GRUB_VIDEO_DRIVER_SM712.
24730 (grub_video_get_info_and_fini): Export.
24731 (grub_video_get_palette): Likewise.
24732 (grub_video_get_driver_id): Likewise.
24733 * include/multiboot2.h: Resynced with spec.
24734 * loader/i386/multiboot.c: Moved from here ...
24735 * loader/multiboot.c: ... here. All users updated.
24736 (grub_multiboot_boot): Use platform-specific macros.
24737 * loader/i386/multiboot_elfxx.c: Moved from here ...
24738 * loader/multiboot_elfxx.c: ... here. All users updated.
24739 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
24740 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
24741 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
24743 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
24745 Import gnulib argp module.
24747 * gnulib/argp-ba.c: New file.
24748 * gnulib/argp-eexst.c: Likewise.
24749 * gnulib/argp-fmtstream.c: Likewise.
24750 * gnulib/argp-fmtstream.h: Likewise.
24751 * gnulib/argp-fs-xinl.c: Likewise.
24752 * gnulib/argp-help.c: Likewise.
24753 * gnulib/argp-namefrob.h: Likewise.
24754 * gnulib/argp-parse.c: Likewise.
24755 * gnulib/argp-pin.c: Likewise.
24756 * gnulib/argp-pv.c: Likewise.
24757 * gnulib/argp-pvh.c: Likewise.
24758 * gnulib/argp-version-etc.c: Likewise.
24759 * gnulib/argp-version-etc.h: Likewise.
24760 * gnulib/argp-xinl.c: Likewise.
24761 * gnulib/argp.h: Likewise.
24763 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
24765 * kern/device.c (grub_device_iterate): Clear errors after failed
24768 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
24770 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
24771 returned by firmware.
24773 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
24775 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
24776 compilation on coreboot and qemu
24778 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
24780 * include/multiboot2.h: Resync with spec.
24782 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
24784 Multiboot2 tag support
24786 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
24787 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
24788 Remove loader/multiboot_loader.c.
24789 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
24790 (grub_multiboot2_real_boot): Likewise.
24791 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
24792 (grub_get_multiboot_mmap_count): New proto.
24793 (grub_fill_multiboot_mmap): Likewise.
24794 (grub_multiboot_set_video_mode): Likewise.
24795 (grub_multiboot_set_console): Likewise.
24796 (grub_multiboot_load): Likewise.
24797 (grub_multiboot_load_elf): Likewise.
24798 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
24799 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
24800 * include/multiboot.h: Resynced with specification.
24801 * include/multiboot2.h: Resynced with specification.
24802 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
24803 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
24804 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
24805 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
24807 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
24808 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
24809 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
24811 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
24813 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
24814 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
24816 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
24817 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
24818 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
24820 * loader/i386/multiboot_mbi2.c: New file.
24822 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
24824 Resync with gnulib.
24826 * Makefile.in (GNULIB_CFLAGS): New variable.
24827 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
24828 (grub_script_check_CFLAGS): New variable.
24829 * gnulib/alloca.h: Resync with gnulib.
24830 * gnulib/error.c: Likewise.
24831 * gnulib/error.h: Likewise.
24832 * gnulib/fnmatch.c: Likewise.
24833 * gnulib/fnmatch_loop.c: Likewise.
24834 * gnulib/getdelim.c: Likewise.
24835 * gnulib/getline.c: Likewise.
24836 * gnulib/getopt.c: Likewise.
24837 * gnulib/getopt1.c: Likewise.
24838 * gnulib/getopt_int.h: Likewise.
24839 * gnulib/gettext.h: Likewise.
24840 * gnulib/progname.c: Likewise.
24841 * gnulib/progname.h: Likewise.
24843 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
24845 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
24846 which is the case with --disabled-nls.
24848 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
24849 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
24850 * util/misc.c: Likewise.
24851 * util/mkisofs/mkisofs.c: Likewise.
24852 * util/mkisofs/mkisofs.h: Likewise.
24854 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
24856 Simplify Apple CC support.
24858 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
24859 Add 0 byte at the end not to have a symbol with empty target.
24860 * mmap/i386/pc/mmap_helper.S: Likewise.
24861 * genmk.rb: Ignore errors 2030 and 2050.
24862 * kern/i386/pc/startup.S: Use LOCAL when possible.
24864 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
24866 Testcase and the fix for final semicolon on cmdline.
24868 * tests/grub_script_final_semicolon.in: New testcase.
24869 * conf/tests.rmk: Rules for the new testcase.
24870 * script/parser.y: Grammar fix.
24872 2010-03-26 BVK Chaitanya <bvk@localhost>
24874 Blank lines testcase for GRUB script.
24876 * tests/grub_script_blanklines.in: New testcase.
24877 * conf/tests.rmk: Rules for the new testcase.
24879 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24881 Don't use __FILE__.
24883 * genmk.rb: Add -DGRUB_FILE to all C targets.
24884 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
24885 * include/grub/list.h: Likewise.
24886 * include/grub/misc.h: Likewise.
24887 * include/grub/mm.h: Likewise.
24888 * include/grub/test.h: Likewise.
24889 * kern/mm.c: Likewise.
24890 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24892 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24894 Sunpc partitions support.
24896 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
24897 (grub_fstest_SOURCES): Likewise.
24898 (pkglib_MODULES): Add part_sunpc.mod.
24899 (part_sunpc_mod_SOURCES): New variable.
24900 (part_sunpc_mod_CFLAGS): Likewise.
24901 (part_sunpc_mod_LDFLAGS): Likewise.
24902 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
24903 * partmap/sunpc.c: New file.
24905 2010-03-26 BVK Chaitanya <bvk@localhost>
24907 For loop support to GRUB script.
24909 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
24910 (grub_script_create_cmdfor): New function prototype.
24911 (grub_script_execute_cmdfor): New function prototype.
24912 * script/execute.c (grub_script_execute_cmdfor): New function.
24913 * script/parser.y (command): New for command.
24914 (forcmd): New grammar rule.
24915 * script/script.c (grub_script_create_cmdfor): New function.
24916 * util/grub-script-check.c (grub_script_execute_cmdfor): New
24918 * tests/grub_script_for1.in: New testcase.
24919 * conf/tests.rmk: Rules for new testcase.
24921 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24925 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
24926 'partition' is NULL, grub_partition_get_start already does that.
24927 * commands/loadenv.c (check_blocklists): Likewise.
24928 (write_blocklists): Likewise.
24929 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
24930 (grub_fstest_SOURCES): Likewise.
24931 (pkglib_MODULES): Add part_bsd.mod.
24932 (part_bsd_mod_SOURCES): New variable.
24933 (part_bsd_mod_CFLAGS): Likewise.
24934 (part_bsd_mod_LDFLAGS): Likewise.
24935 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
24936 (grub_emu_SOURCES): Likewise.
24937 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24938 * include/grub/bsdlabel.h: New file.
24939 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
24941 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
24942 (grub_partition_map_list): New variable.
24943 (grub_partition_map_register): Inline.
24944 (grub_partition_map_unregister): Likewise.
24945 (FOR_PARTITION_MAPS): New macro.
24946 (grub_partition_map_iterate): Removed.
24947 (grub_partition_get_start): Handle nested partitions.
24948 * include/grub/msdos_partition.h: Remove bsd-related entries.
24949 (grub_pc_partition): Remove.
24950 * kern/disk.c (grub_disk_close): Free partition data.
24951 (grub_disk_adjust_range): Handle nested partitions.
24952 * kern/partition.c (grub_partition_map_probe): New function.
24953 (grub_partition_probe): Parse name to number, handle subpartitions.
24954 (get_partmap): New function.
24955 (grub_partition_iterate): Handle subpartitions.
24956 (grub_partition_get_name): Likewise.
24957 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
24958 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
24959 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
24960 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
24962 (acorn_partition_map_probe): Remove.
24963 (acorn_partition_map_get_name): Likewise.
24964 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
24966 Set 'index' to 0 since there can be only one partition entry per sector.
24967 (amiga_partition_map_probe): Remove.
24968 (amiga_partition_map_get_name): Likewise.
24969 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
24971 Set 'offset' and 'index' to real positions of partitions.
24972 (apple_partition_map_probe): Remove.
24973 (apple_partition_map_get_name): Likewise.
24974 * partmap/bsdlabel.c: New file.
24975 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
24977 Allocate 'data' so it can be correctly freed.
24978 Set 'index' to offset inside sector.
24979 (gpt_partition_map_probe): Remove.
24980 (gpt_partition_map_get_name): Likewise.
24981 * partmap/msdos.c (grub_partition_parse): Remove.
24982 (pc_partition_map_iterate): Don't force raw access.
24984 Make 'ext_offset' a local variable.
24985 (pc_partition_map_probe): Remove.
24986 (pc_partition_map_get_name): Remove.
24987 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
24989 (sun_partition_map_probe): Remove.
24990 (sun_partition_map_get_name): Likewise.
24991 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
24992 (grub_pcpart_type): Likewise.
24993 * util/hostdisk.c (open_device): Handle new numbering scheme.
24994 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
24995 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
24996 * util/grub-probe.c (probe_partmap): Handle nested paritions.
24997 * util/grub-install.in: Insert all subpartition modules.
24998 * util/ieee1275/grub-install.in: Likewise.
25000 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
25002 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
25005 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
25007 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
25009 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
25011 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
25012 match where 'make install' puts them.
25013 * util/i386/efi/grub-install.in: Likewise.
25015 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
25017 * .bzrignore: Add gentrigtables, grub-script-check,
25018 grub_script_check_init.c, grub_script_check_init.h, and
25021 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
25023 * kern/parser.c: Indented.
25025 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
25027 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
25029 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
25031 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
25032 alpha_mask_size == 0 case.
25034 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
25036 GRUB shell lexer and parser improvements.
25038 * conf/any-emu.rmk: Build rule updates.
25039 * conf/common.rmk: Likewise.
25040 * conf/i386-coreboot.rmk: Likewise.
25041 * conf/i386-efi.rmk: Likewise.
25042 * conf/i386-ieee1275.rmk: Likewise.
25043 * conf/i386-pc.rmk: Likewise.
25044 * conf/powerpc-ieee1275.rmk: Likewise.
25045 * conf/x86_64-efi.rmk: Likewise.
25047 * configure.ac: Configure check for flex.
25049 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
25051 (grub_lexer_param): Struct member updates.
25052 (grub_parser_param): Likewise.
25053 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
25054 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
25055 (grub_script_lexer_init): Prototype update.
25056 (grub_script_lexer_record_start): Likewise.
25057 (grub_script_lexer_record_stop): Likewise.
25058 (grub_script_lexer_yywrap): New function prototype.
25059 (grub_script_lexer_fini): Likewise.
25060 (grub_script_execute_argument_to_string): Removed by...
25061 (grub_script_execute_argument_to_argv): ...better version.
25063 * script/execute.c (ROUND_UPTO): New macro.
25064 (grub_script_execute_cmdline): Out of memory fixes.
25065 (grub_script_execute_menuentry): Likewise.
25066 (grub_script_execute_argument_to_string): Removed. Update all
25068 (grub_script_execute_argument_to_argv): ...better version.
25069 * script/function.c (grub_script_function_create): Use
25070 grub_script_execute_argument_to_argv instead of
25071 grub_script_execute_argument_to_string.
25073 * script/lexer.c (check_varstate): Removed.
25074 (check_textstate): Removed.
25075 (grub_script_lexer_record_start): Likewise.
25076 (grub_script_lexer_record_stop): Likewise.
25077 (recordchar): Replaced with...
25078 (grub_script_lexer_record): ...new function.
25079 (nextchar): Removed.
25080 (grub_script_lexer_init): Rewritten.
25081 (grub_script_yylex): Rewritten.
25082 (append_newline): New function.
25083 (grub_script_lexer_yywrap): New function.
25084 (grub_script_lexer_fini): New function.
25085 (grub_script_yyerror): Sets error flag.
25087 * script/yylex.l: New file.
25088 (grub_lexer_yyfree): Wrapper for flex yyffre.
25089 (grub_lexer_yyalloc): Likewise.
25090 (grub_lexer_yyrealloc): Likewise.
25091 * script/parser.y: Refactored.
25093 * script/script.c (grub_script_arg_add): Out of memory fixes.
25094 (grub_script_add_arglist): Likewise.
25095 (grub_script_create_cmdline): Likewise.
25096 (grub_script_create_cmdmenu): Likewise.
25097 (grub_script_add_cmd): Likewise.
25098 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
25099 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
25102 * tests/grub_script_echo1.in: New testcase.
25103 * tests/grub_script_vars1.in: New testcase.
25104 * tests/grub_script_echo_keywords.in: New testcase.
25106 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25108 Remove some redundancy in build system.
25110 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
25111 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
25112 (TARGET_LDFLAGS): Add -nostdlib.
25113 (TARGET_IMG_LDFLAGS): Likewise.
25114 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
25115 anything since mmap isn't available.
25116 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
25118 (pkglib_MODULES): Remove reboot.mod.
25119 (reboot_mod_SOURCES): Removed.
25120 (reboot_mod_CFLAGS): Likewise.
25121 (reboot_mod_LDFLAGS): Likewise.
25122 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
25123 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
25124 (DEFSYMFILES): Add kernel_syms.lst.
25125 (kernel_img_HEADERS): Add common headers.
25126 (symlist.c): New target.
25127 (kernel_syms.lst): Likewise.
25128 (pkglib_MODULES): Add memdisk.mod.
25129 (memdisk_mod_SOURCES): New variable.
25130 (memdisk_mod_CFLAGS): Likewise.
25131 (memdisk_mod_LDFLAGS): Likewise.
25132 (pkglib_MODULES): Add reboot.mod.
25133 (reboot_mod_SOURCES): New variable.
25134 (reboot_mod_CFLAGS): Likewise.
25135 (reboot_mod_LDFLAGS): Likewise.
25136 (pkglib_MODULES): Add date.mod.
25137 (date_mod_SOURCES): New variable.
25138 (date_mod_CFLAGS): Likewise.
25139 (date_mod_LDFLAGS): Likewise.
25140 (pkglib_MODULES): Add datehook.mod.
25141 (datehook_mod_SOURCES): New variable.
25142 (datehook_mod_CFLAGS): Likewise.
25143 (datehook_mod_LDFLAGS): Likewise.
25144 (pkglib_MODULES): Add lsmmap.mod.
25145 (lsmmap_mod_SOURCES): New variable.
25146 (lsmmap_mod_CFLAGS): Likewise.
25147 (lsmmap_mod_LDFLAGS): Likewise.
25148 (pkglib_MODULES): Add boot.mod.
25149 (boot_mod_SOURCES): New variable.
25150 (boot_mod_CFLAGS): Likewise.
25151 (boot_mod_LDFLAGS): Likewise.
25152 * conf/i386-coreboot.rmk: Removed redundant parts.
25153 * conf/i386-ieee1275.rmk: Likewise.
25154 * conf/i386-pc.rmk: Likewise.
25155 * conf/mips-yeeloong.rmk: Likewise.
25156 * conf/mips.rmk: Likewise.
25157 * conf/powerpc-ieee1275.rmk: Likewise.
25158 * conf/sparc64-ieee1275.rmk: Likewise.
25159 * conf/x86_64-efi.rmk: Likewise.
25160 * conf/i386-coreboot.rmk: Moved qemu parts ..
25161 * conf/i386-qemu.rmk: ... here
25162 * conf/i386-efi.rmk: Moved common parts to...
25163 * conf/x86-efi.rmk: ... here.
25164 * conf/i386.rmk: Added modules common to all x86 variants.
25165 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
25166 * disk/memdisk.c: Remove grub/machine/kernel.h.
25167 * gensymlist.sh.in: Include symbol.h.
25168 * hook/datehook.c: Correct module name.
25169 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
25170 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
25171 * include/grub/i386/efi/serial.h: New file.
25172 * include/grub/x86_64/efi/serial.h: Likewise.
25173 * util/time.c: Likewise.
25174 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
25176 2010-03-14 Colin King <colin.king@ubuntu.com>
25177 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
25179 Shrink the pre-partition-table part of boot.img by eight bytes.
25181 * boot/i386/pc/boot.S (ERR): New macro.
25182 (chs_mode): Use ERR.
25183 (geometry_error): Likewise.
25184 (hd_probe_error): Remove. This is only used once, so we wrwite
25186 (read_error): Instead of printing read_error_string, just set up
25187 %si and fall through to ...
25188 (error_message): ... this new function, also used by ERR.
25190 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
25192 Speed up consecutive hostdisk operations on the same device.
25194 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
25195 (grub_util_biosdisk_open): Initialise disk->data.
25196 (struct linux_partition_cache): New structure.
25197 (linux_find_partition): Cache partition start positions; these are
25198 expensive to compute on every read and write.
25199 (open_device): Cache open file descriptor in disk->data, so that we
25200 don't have to reopen it and flush the buffer cache for consecutive
25201 operations on the same device.
25202 (grub_util_biosdisk_close): New function.
25203 (grub_util_biosdisk_dev): Set `close' member.
25205 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
25206 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
25207 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25208 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
25209 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
25211 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25213 Compile parts of grub-emu as modules.
25215 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
25216 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
25217 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
25218 (all-local): Add $(GRUB_EMU).
25219 (install-local): Install $(GRUB_EMU).
25220 (uninstall): Uninstall $(GRUB_EMU).
25221 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
25222 * kern/dl.c: Likewise.
25223 * commands/sleep.c: Not include machine/time.h.
25224 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
25225 (COMMON_CFLAGS): Likewise.
25226 (sbin_UTILITIES): Remove grub-emu.
25227 (grub_emu_SOURCES): Removed.
25228 (kernel_img_RELOCATABLE): New variable.
25229 (pkglib_PROGRAMS): Add kernel.img.
25230 (kernel_img_SOURCES): New variable
25231 (kernel_img_CFLAGS): Likewise.
25232 (kernel_img_LDFLAGS): Likewise.
25233 (TARGET_NO_STRIP): Likewise.
25234 (TARGET_NO_DYNAMIC_MODULES): Likewise.
25235 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
25236 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
25237 (grub-emu): New target.
25238 (GRUB_EMU): New variable.
25239 * configure.ac: Whitelist -emu as possible x86_64 architecture.
25240 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
25241 * loader/xnu.c: Likewise.
25242 * include/grub/pci.h: Likewise.
25243 * genemuinit.sh: New file.
25244 * genemuinitheader.sh: Likewise.
25245 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
25246 Support TARGET_NO_DYNAMIC_MODULES.
25247 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
25248 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
25249 * disk/loopback.c: Likewise.
25250 * font/font_cmd.c: Likewise.
25251 * partmap/acorn.c: Likewise.
25252 * partmap/amiga.c: Likewise.
25253 * partmap/apple.c: Likewise.
25254 * partmap/gpt.c: Likewise.
25255 * partmap/msdos.c: Likewise.
25256 * partmap/sun.c: Likewise.
25257 * parttool/msdospart.c: Likewise.
25258 * term/gfxterm.c: Likewise.
25259 * video/bitmap.c: Likewise.
25260 * video/readers/jpeg.c: Likewise.
25261 * video/readers/png.c: Likewise.
25262 * video/readers/tga.c: Likewise.
25263 * video/video.c: Likewise.
25264 * util/grub-emu.c (read_command_list): Removed.
25265 (main): Don't call util_init_nls.
25266 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
25267 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
25269 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25271 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
25272 date.mod, datehook.mod.
25273 (datetime_mod_SOURCES): New variable.
25274 (datetime_mod_CFLAGS): Likewise.
25275 (datetime_mod_LDFLAGS): Likewise.
25276 (date_mod_SOURCES): Likewise.
25277 (date_mod_CFLAGS): Likewise.
25278 (date_mod_LDFLAGS): Likewise.
25279 (datehook_mod_SOURCES): Likewise.
25280 (datehook_mod_CFLAGS): Likewise.
25281 (datehook_mod_LDFLAGS): Likewise.
25282 * conf/sparc64-ieee1275.rmk: Likewise.
25283 * lib/ieee1275/datetime.c: New file.
25285 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25287 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
25288 (ieee1275_fb_mod_SOURCES): New variable.
25289 (ieee1275_fb_mod_CFLAGS): Likewise.
25290 (ieee1275_fb_mod_LDFLAGS): Likewise.
25291 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
25293 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
25294 (HEAP_MAX_ADDR): Likewise.
25295 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
25297 Correct stop condition.
25298 (grub_ieee1275_devices_iterate): New function.
25299 * video/ieee1275.c: New file.
25301 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25303 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
25305 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
25307 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
25308 SCRATCH_PAD_DISKBOOT as scratch.
25309 (bootit): Pass Openfirmware pointer in %o4.
25310 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
25312 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
25313 with util/grub-mkrawimage.c.
25314 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
25315 * include/grub/aout.h (AOUT_MID_SUN): New definition.
25316 (grub_aout_get_type) [GRUB_UTIL]: Removed.
25317 (grub_aout_load) [GRUB_UTIL]: Likewise.
25318 * include/grub/kernel.h (grub_modules_get_end): New proto.
25319 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
25320 (SCRATCH_PAD_BOOT): New definition.
25321 (SCRATCH_PAD_DISKBOOT): Likewise.
25322 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
25323 * include/grub/sparc64/ieee1275/ieee1275.h
25324 (grub_ieee1275_original_stack): New variable
25325 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25327 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
25328 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
25329 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
25330 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
25331 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
25332 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
25333 (grub_platform_image_format_t): New type.
25334 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
25335 * kern/main.c (grub_modules_get_end)
25336 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
25337 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
25338 (codestart): Switch stacks.
25339 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
25341 (grub_heap_init): Use grub_modules_get_end.
25342 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
25344 * util/grub-mkrawimage.c (generate_image): Support sparc64.
25346 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
25348 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
25350 * util/grub-mkrescue.in: Base ISO UUID on UTC.
25352 2010-03-08 Matt Kraai <kraai@ftbfs.org>
25354 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
25357 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
25359 * genmoddep.awk: Output all missing symbols and not only first.
25361 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25363 * NEWS: Put the date of 1.98 release.
25365 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25367 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
25370 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25372 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
25373 completition in the middle of string.
25375 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25377 * util/grub-mkrescue.in: Use mktemp with explicit template.
25379 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25381 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
25383 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25385 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
25388 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
25390 Fix FreeBSD compilation.
25392 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
25393 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
25395 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
25397 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
25399 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25401 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
25403 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25405 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
25407 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
25409 Support relative image path in theme file.
25411 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
25412 (image_set_property): Handle theme_dir and relative path.
25414 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25416 * configure.ac: Alias amd64 to x86_64.
25418 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25420 * NEWS: mention multiboot on EFI.
25422 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25424 * kern/main.c (grub_load_modules): Handle errors from init functions of
25427 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25429 * normal/autofs.c (autoload_fs_module): Handle errors.
25431 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25433 Disable linux.mod on qemu-mips since it's not functional and leads
25434 to compilation failure.
25436 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
25437 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
25438 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
25439 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
25440 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
25441 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
25442 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
25443 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
25444 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
25445 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
25446 Reported by: BVK Chaitanya
25448 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
25450 * INSTALL: Add gettext as a dependency and add qemu to a new section
25451 "Prerequisites for make-check".
25453 2010-03-04 Christian Franke <franke@computer.org>
25455 * util/grub-pe2elf.c: Add missing include "progname.h".
25457 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25459 * normal/crypto.c (read_crypto_list): Fix a typo.
25460 Reported by: Seth Goldberg.
25462 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25464 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
25465 Reported by: Seth Goldberg.
25467 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25469 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
25472 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25474 * genmk.rb: Remove terminal*.lst in make clean.
25475 Reported by: Seth Goldberg.
25477 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25479 * util/i386/efi/grub-install.in: Copy gettext files.
25481 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
25483 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
25485 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
25487 Wait for user entry basing on presence of output rather than on errors.
25489 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
25490 (grub_install_newline_hook): Likewise.
25491 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
25492 * normal/menu.c (show_menu): Check line_counter to determine presence
25494 * normal/term.c (grub_normal_line_counter): New variable.
25495 (grub_normal_get_line_counter): New function.
25496 (grub_install_newline_hook): Likewise.
25498 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
25500 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
25502 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
25504 * configure.ac: Update version to 1.98.
25506 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
25508 * util/grub.d/10_linux.in (linux_entry): Don't default to
25509 gfxpayload=keep if Linux doesn't support video handover.
25511 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
25513 Don't compile video modules on yeeloong since video subsystem is part
25516 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
25517 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
25518 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
25519 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
25520 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
25521 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
25522 * include/grub/bitmap_scale.h: Likewise.
25523 * include/grub/bufio.h: Likewise.
25524 * include/grub/font.h: Likewise.
25525 * include/grub/gfxterm.h: Likewise.
25526 * include/grub/video.h: Likewise.
25527 * include/grub/vbe.h: Don't include video_fb.h.
25528 * video/i386/pc/vbe.c: Include video_fb.h.
25529 * commands/i386/pc/vbetest.c: Include video.h.
25531 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
25533 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
25534 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
25535 default entry if GRUB_SAVEDEFAULT=true. This allows using
25536 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
25537 saving a new default on every boot.
25539 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
25541 * normal/crypto.c (read_crypto_list): Fix a memory leak.
25542 * normal/term.c (read_terminal_list): Likewise.
25543 * normal/main.c (grub_normal_init_page): Likewise.
25544 (grub_normal_read_line_real): Likewise.
25546 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
25548 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
25550 Reported by: Seth Goldberg.
25552 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
25554 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
25555 duplicate declaration of `start'.
25557 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
25559 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
25561 Reported by: Georgy Buranov
25563 2010-02-20 Carles Pina i Estany <carles@pina.cat>
25565 * util/grub-mkrawimage.c (usage): Change string formatting to
25568 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
25570 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
25573 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
25575 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
25576 Reported by: Michael Suchanek.
25578 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
25580 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
25581 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
25583 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
25585 Remove any reference to non-free fonts.
25587 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
25588 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
25589 uses non-free components.
25590 * font/font.c (grub_font_get_name): Remove example name.
25591 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
25592 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
25593 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
25594 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
25596 2010-02-16 Georgy Buranov <gburanov@gmail.com>
25598 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
25600 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
25602 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
25604 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
25606 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
25608 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
25610 * gensymlist.sh.in: Use TARGET_CC instead of CC.
25612 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25614 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
25615 * docs/grub.texi (Command-line and menu entry commands): Document play
25618 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25620 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
25621 parse arguments as inline tempo and notes. Move code for playing notes
25623 (play): ... new function.
25625 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25627 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
25628 grub_uint16_t instead of short.
25629 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
25630 disk from little endian to cpu endianness.
25632 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
25634 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
25635 GRUB_TICKS_PER_SECOND instead of 120.
25637 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25639 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
25640 escape sequence after \e.
25642 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25644 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
25645 non-ASCII characters.
25647 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25649 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
25650 set root in single quotes to prevent \, from being unescaped.
25652 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25654 Prevent unknown commands from stopping menuentry execution.
25656 * script/execute.c (grub_script_execute_cmdline): Print error after
25659 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25661 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
25662 Reported by: Pavel Pisa.
25664 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25666 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
25668 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25670 Merge grub_ieee1275_map_physical into grub_map and rename to
25673 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
25674 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
25676 * kern/ieee1275/openfw.c (grub_map): Rename to ...
25677 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
25679 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
25681 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25683 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
25684 opening and not after.
25686 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25688 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
25691 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25693 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
25694 (alloc_phys): Use ALIGN_UP instead of align_addr.
25696 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25698 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
25700 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25702 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
25704 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25706 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
25709 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25711 Fix over-4GiB seek on sparc64.
25713 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
25714 Replace pos_i and pos_lo with pos. All users updated.
25715 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
25717 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
25719 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
25722 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25724 * util/grub-mkrawimage.c (main): Call set_program_name.
25726 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25728 Properly align 64-bit targets.
25730 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
25731 (generate_image): Use ALIGN_ADDR.
25733 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25735 Properly create cross-endian images.
25737 * include/grub/types.h (grub_host_to_target_addr): New macro
25738 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
25740 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25742 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
25744 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25746 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
25748 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
25749 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
25750 (grub_linux_boot): Divide by 64K when on VESA.
25752 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25754 Support GRUB_GFXPAYLOAD_LINUX.
25756 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
25757 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
25759 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25761 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
25762 to show messages instead of discarding them.
25763 Process errors after executing command and not before. Keep old method
25766 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
25768 * configure.ac: Check for ft2build.h.
25770 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25772 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
25774 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25776 * genkernsyms.sh.in: Use TARGET_CC.
25778 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
25782 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25784 * include/grub/multiboot2.h: Remove leftover file.
25785 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
25786 * include/grub/partition.h [GRUB_UTIL]: Likewise.
25788 2010-02-07 Yves Blusseau <blusseau@zetam.org>
25790 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
25792 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25794 Fix warnings in grub-emu when compiling with maximum warning options.
25796 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
25797 (grub_arch_modules_addr): Return 0 and not NULL.
25798 * util/misc.c (ENABLE_RELOCATABLE): New definition.
25799 (xstrdup): Use newstr instead of dup.
25800 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
25801 of disk to dsk to avoid shadowing.
25802 (find_free_slot): Fix prototype.
25803 * util/getroot.c (grub_util_is_dmraid): Make static.
25804 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
25805 Add missing prototype.
25806 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
25808 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25810 * loader/i386/linux.c (grub_linux_setup_video): Handle error
25813 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25815 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
25818 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25820 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
25821 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
25822 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
25823 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
25824 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
25825 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
25827 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25829 * include/grub/err.h (grub_err_printf): Don't export.
25831 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25833 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
25835 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25837 * include/grub/i18n.h (grub_gettext_dummy): Removed.
25838 * kern/misc.c (grub_gettext_dummy): Make static.
25840 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25842 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
25844 * kern/term.c (grub_putchar): Likewise.
25846 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25848 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
25849 buggy hook call and memory leak.
25851 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25853 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
25855 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25857 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
25859 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25861 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
25863 Return grub_errno on allocation error.
25865 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25867 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
25869 2010-02-06 Yves Blusseau <blusseau@zetam.org>
25871 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
25872 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
25874 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25876 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
25878 (grub_pxefs_open): Likewise.
25880 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25882 * util/grub.d/10_hurd.in: Add --class information to menuentries.
25883 * util/grub.d/10_kfreebsd.in: Likewise.
25884 * util/grub.d/10_linux.in: Likewise.
25886 2010-02-06 Colin D Bennett <colin@gibibit.com>
25888 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
25889 (gfxmenu_mod_SOURCES): New variable.
25890 (gfxmenu_mod_CFLAGS): Likewise.
25891 (gfxmenu_mod_LDFLAGS): Likewise.
25892 * include/grub/term.h (grub_term_set_current_output): Declare
25894 * docs/gfxmenu-theme-example.txt: New file.
25895 * gfxmenu/gfxmenu.c: Likewise.
25896 * gfxmenu/gui_box.c: Likewise.
25897 * gfxmenu/gui_canvas.c: Likewise.
25898 * gfxmenu/gui_circular_progress.c: Likewise.
25899 * gfxmenu/gui_image.c: Likewise.
25900 * gfxmenu/gui_label.c: Likewise.
25901 * gfxmenu/gui_list.c: Likewise.
25902 * gfxmenu/gui_progress_bar.c: Likewise.
25903 * gfxmenu/gui_string_util.c: Likewise.
25904 * gfxmenu/gui_util.c: Likewise.
25905 * gfxmenu/icon_manager.c: Likewise.
25906 * gfxmenu/model.c: Likewise.
25907 * gfxmenu/named_colors.c: Likewise.
25908 * gfxmenu/theme_loader.c: Likewise.
25909 * gfxmenu/view.c: Likewise.
25910 * gfxmenu/widget-box.c: Likewise.
25911 * include/grub/gfxmenu_model.h: Likewise.
25912 * include/grub/gfxmenu_view.h: Likewise.
25913 * include/grub/gfxwidgets.h: Likewise.
25914 * include/grub/gui.h: Likewise.
25915 * include/grub/gui_string_util.h: Likewise.
25916 * include/grub/icon_manager.h: Likewise.
25918 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25920 Agglomerate scrolling in gfxterm.
25922 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
25923 (grub_virtual_screen_setup): Initialise 'total_screen'.
25924 (write_char): Split to ...
25925 (paint_char): ... this ...
25926 (write_char): ... and this.
25927 (paint_char): Handle delayed scrolling.
25928 (draw_cursor): Likewise.
25929 (scroll_up): Split to ...
25930 (real_scroll): ... this ...
25931 (scroll_up): ... and this.
25932 (real_scroll): Handle multi-line scroll and draw below-the-bottom
25934 (grub_gfxterm_refresh): Call real_scroll.
25936 2010-02-06 Colin D Bennett <colin@gibibit.com>
25938 * include/grub/misc.h (grub_iscntrl): New inline function.
25939 (grub_isalnum): Likewise.
25940 (grub_strtol): Likewise.
25942 2010-02-06 Colin D Bennett <colin@gibibit.com>
25944 * normal/menu_text.c (get_entry_number): Move from here ...
25945 * normal/menu.c (get_entry_number): ... moved here.
25946 * include/grub/menu.h (grub_menu_get_default_entry_index):
25948 * normal/menu.c (grub_menu_get_default_entry_index): New function.
25949 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
25950 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
25951 (grub_menu_viewer_should_return): Likewise.
25952 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
25953 * normal/menu_text.c (run_menu): Enable menu switching.
25954 * normal/menu_viewer.c (should_return): New variable.
25955 (menu_viewer_changed): Likewise.
25956 (grub_menu_viewer_show_menu): Handle menu viewer changes.
25957 (grub_menu_viewer_should_return): New function.
25958 (menuviewer_write_hook): Likewise.
25959 (grub_menu_viewer_init): Likewise.
25961 2010-02-06 Colin D Bennet <colin@gibibit.com>
25962 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25964 Support for gfxterm in a window.
25966 * include/grub/gfxterm.h: New file.
25967 * include/grub/video.h (struct grub_video_rect): New declaration.
25968 (grub_video_rect_t): Likewise.
25969 * term/gfxterm.c (struct grub_gfxterm_window): New type.
25970 (refcount): New variable.
25971 (render_target): Likewise.
25972 (window): Likewise.
25973 (repaint_callback): Likewise.
25974 (grub_virtual_screen_setup): Use 'render_target'.
25975 (init_window): New function.
25976 (grub_gfxterm_init_window): Likewise.
25977 (grub_gfxterm_init): Check reference counter.
25979 (destroy_window): New function.
25980 (grub_gfxterm_destroy_window): Likewise.
25981 (grub_gfxterm_fini): Check reference counter.
25982 Use destroy_window.
25983 (redraw_screen_rect): Restore viewport.
25984 Use 'render_target' and 'window'.
25985 Call 'repaint_callback'.
25986 (write_char): Use 'render_target'.
25987 (draw_cursor): Likewise.
25988 (scroll_up): Restore viewport.
25989 Use 'render_target' and 'window'.
25990 Call 'repaint_callback'.
25991 (grub_gfxterm_cls): Likewise.
25992 (grub_gfxterm_refresh): Use 'window'.
25993 (grub_gfxterm_set_repaint_callback): New function.
25994 (grub_gfxterm_background_image_cmd): Use 'window'.
25995 (grub_gfxterm_get_term): New function.
25996 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
25998 2010-02-06 Colin D Bennett <colin@gibibit.com>
26000 Bitmap scaling support.
26002 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
26003 (bitmap_scale_mod_SOURCES): New variable.
26004 (bitmap_scale_mod_CFLAGS): Likewise.
26005 (bitmap_scale_mod_LDFLAGS): Likewise.
26006 * include/grub/bitmap_scale.h: New file.
26007 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
26008 (background_image_cmd_options): New variable.
26009 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
26010 (cmd): Rename and change type to ...
26011 (background_image_cmd_handle): ... this. All users updated.
26012 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
26013 * video/bitmap_scale.c: New file.
26015 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26019 * Makefile.in (LIBSDL): New variable.
26020 (enable_grub_emu_sdl): Likewise.
26021 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
26022 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
26023 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
26024 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
26025 * util/sdl.c: New file.
26027 2010-02-06 Colin D Bennett <colin@gibibit.com>
26028 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26030 Double buffering support.
26032 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
26033 * include/grub/video.h: Update comment.
26034 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
26036 (grub_video_fb_doublebuf_blit_init): New prototype.
26037 * term/gfxterm.c (scroll_up): Support double buffering.
26038 (grub_gfxterm_refresh): Likewise.
26039 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
26040 (grub_video_fb_doublebuf_blit_init): Likewise.
26041 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
26042 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
26043 'displayed_page', 'render_page' and 'update_screen'.
26044 (grub_video_vbe_fini): Free offscreen buffer.
26045 (doublebuf_pageflipping_commit): New function.
26046 (doublebuf_pageflipping_update_screen): Likewise.
26047 (doublebuf_pageflipping_init): Likewise.
26048 (double_buffering_init): Likewise.
26049 (grub_video_vbe_setup): Enable doublebuffering.
26050 (grub_video_vbe_swap_buffers): Implement.
26051 (grub_video_vbe_set_active_render_target): Handle double buffering.
26052 (grub_video_vbe_get_active_render_target): Likewise.
26053 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
26054 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
26055 (grub_video_vbe_enable_double_buffering): Likewise.
26056 (grub_video_vbe_swap_buffers): Use update_screen.
26057 (grub_video_set_mode): Use double buffering.
26059 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26061 * maintainance/gentrigtables.py: Remove.
26062 * lib/trig.c: Likewise.
26064 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
26066 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
26068 (trigtables.c): New rule.
26069 (gentrigtables): Likewise.
26070 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
26072 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26074 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
26077 2010-02-06 Colin D Bennet <colin@gibibit.com>
26079 Trigonometry support.
26081 * include/grub/trig.h: New file.
26082 * lib/trig.c: Likewise.
26083 * maintainance/gentrigtables.py: Likewise.
26084 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
26085 (trig_mod_SOURCES): New variable.
26086 (trig_mod_CFLAGS): Likewise.
26087 (trig_mod_LDFLAGS): Likewise.
26089 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26091 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
26094 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26096 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
26099 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
26101 * util/hostdisk.c (open_device): Don't use partition device when reading
26102 before the partition.
26103 (grub_util_biosdisk_read): Don't read from partition and before the
26104 partition in single operation.
26105 (grub_util_biosdisk_write): Don't write to partition and before the
26106 partition in single operation.
26108 2010-02-03 Torsten Landschoff <torsten@debian.org>
26110 * kern/disk.c (grub_disk_read): Fix offset computation when reading
26113 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
26115 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
26117 (grub_biosdisk_write): Refuse to write to CDROM.
26119 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
26121 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
26123 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
26125 * font/font.c (find_glyph): Check that bmp_idx is available before
26127 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
26128 with (font == NULL).
26130 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
26132 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
26134 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
26136 * include/grub/script_sh.h (sourcecode): Add const qualifier.
26137 * util/grub-script-check.c (getline): Fix empty lines case.
26139 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
26141 * Makefile.in (check): Exit with fail status when one of the tests
26143 * tests/example_functional_test.c (example_test): Fix reversed assert.
26144 * tests/example_unit_test.c (example_test): Likewise.
26146 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
26148 * util/grub.d/10_linux.in: This script does not use any of the
26149 contents of gettext.sh, only the external command `gettext', so stop
26150 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
26151 the same prefix as GRUB.)
26152 * util/grub.d/10_kfreebsd.in: Likewise.
26154 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
26156 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
26159 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
26161 * kern/disk.c (grub_disk_read): Fix offset computation when reading
26164 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
26166 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
26167 having a 4KiB and not 32KiB buffer size.
26169 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26171 * util/hostfs.c: Include `<errno.h>'.
26172 (grub_hostfs_read): Handle errors from fseeko() and fread().
26174 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26176 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
26177 loop when using read hooks on files whose size isn't sector-aligned.
26179 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26181 Remove unused parameter.
26183 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
26184 (grub_iso9660_open): Remove initialization of `data->length'.
26186 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26188 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
26189 memleak conditions.
26191 2010-01-27 Carles Pina i Estany <carles@pina.cat>
26193 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
26194 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
26196 2010-01-26 Carles Pina i Estany <carles@pina.cat>
26198 * util/bin2h.c (usage): Fix warning (space after backslash).
26200 2010-01-26 Carles Pina i Estany <carles@pina.cat>
26202 * font/font.c: Include `grub/fontformat.h.
26203 Remove font file format constants.
26204 (grub_font_load): Use the new macros.
26205 * include/grub/fontformat.h: New file.
26206 * util/grub-mkfont.c: Include `grub/fontformat.c'.
26207 (write_font_pf2): Use the new macros.
26209 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
26211 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
26214 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
26216 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
26218 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
26219 (_start): Macroify `0x7F'.
26221 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
26222 (make_install_device): Use "(pxe)" as fallback prefix when booting
26225 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
26227 * configure.ac: Reset LIBS after check for libgcc symbols.
26229 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
26231 * util/hostdisk.c (open_device): Add trailing newline to debug
26234 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
26236 * configure.ac: Check for `limits.h'.
26237 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
26239 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
26241 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
26242 capitalize error strings.
26244 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26246 * util/grub.d/10_hurd.in: Add a recovery mode.
26248 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
26250 * configure.ac: Check for libgcc symbols with -nostdlib.
26252 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
26254 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
26256 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
26258 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
26259 stack since heap may be unavailable at that point.
26260 (grub_ofconsole_gotoxy): Likewise.
26262 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
26264 * configure.ac: Check for _restgpr_14_x.
26265 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
26266 and _savegpr_* prototypes.
26268 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
26270 Use generic grub_reboot() for i386-efi.
26272 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
26273 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
26274 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
26276 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
26278 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
26279 presence of "prefix" variable as it breaks when normal.mod is
26282 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
26284 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
26285 stack since heap is unavailable at that point.
26287 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
26289 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
26290 (grub_freebsd_bootinfo): Rewritten.
26291 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
26293 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
26295 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
26297 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
26299 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
26302 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
26304 * util/misc.c (make_system_path_relative_to_its_root): Change the work
26305 around for handling "/" to the correct fix. Fix a memory leak. Use
26306 xstrdup instead of strdup.
26308 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26310 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
26312 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26314 Optimise glyph lookup by Basic Multilingual Plane lookup array.
26316 * font/font.c (struct grub_font): New member 'bmp_idx'.
26317 (font_init): Initialise 'bmp_idx'.
26318 (load_font_index): Fill 'bmp_idx'.
26319 (find_glyph): Make inline. Use bmp_idx for BMP characters.
26321 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26323 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
26326 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26328 Move context handling out of the kernel.
26330 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
26331 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
26332 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
26333 * conf/i386-efi.rmk: Likewise.
26334 * conf/i386-ieee1275.rmk: Likewise.
26335 * conf/i386-pc.rmk: Likewise.
26336 * conf/powerpc-ieee1275.rmk: Likewise.
26337 * conf/sparc64-ieee1275.rmk: Likewise.
26338 * conf/x86_64-efi.rmk: Likewise.
26339 * include/grub/env.h: Include grub/menu.h.
26340 (grub_env_var_type): Removed.
26341 (grub_env_var): Replaced field 'type' with 'global'.
26342 (grub_env_find): New prototype.
26343 (grub_env_context_open): Remove EXPORT_FUNC.
26344 (grub_env_context_close): Likewise.
26345 (grub_env_export): Likewise.
26346 (grub_env_set_data_slot): Removed.
26347 (grub_env_get_data_slot): Likewise.
26348 (grub_env_unset_data_slot): Likewise.
26349 (grub_env_unset_menu): New prototype.
26350 (grub_env_set_menu): Likewise.
26351 (grub_env_get_menu): Likewise.
26352 * include/grub/env_private.h: New file.
26353 * include/grub/normal.h (grub_context_init): New prototype.
26354 (grub_context_fini): Likewise.
26355 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
26356 * normal/context.c (grub_cmd_export): ... to here.
26357 * kern/env.c: Include env_private.h.
26358 (HASHSZ): Moved to include/grub/env_private.h.
26359 (grub_env_context): Likewise.
26360 (grub_env_sorted_var): Likewise.
26361 (current_context): Renamed from this ...
26362 (grub_current_context): ...to this. 'static' removed. All users updated.
26363 (grub_env_find): Removed 'static'.
26364 (grub_env_context_open): Moved to normal/context.c.
26365 (grub_env_context_close): Likewise.
26366 (grub_env_export): Likewise.
26367 (mangle_data_slot_name): Removed.
26368 (grub_env_set_data_slot): Likewise.
26369 (grub_env_get_data_slot): Likewise.
26370 (grub_env_unset_data_slot): Likewise.
26371 * kern/main.c (grub_set_root_dev): Don't export root.
26372 It will be done later.
26373 (grub_main): Don't export prefix.
26374 It will be done later.
26375 * normal/context.c: New file.
26376 * normal/main.c (free_menu): Use grub_env_unset_menu.
26377 (grub_normal_add_menu_entry): Use grub_env_get_menu.
26378 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
26379 (GRUB_MOD_INIT(normal)): Call grub_context_init.
26380 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
26382 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26386 * commands/setpci.c: New file.
26387 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
26388 (setpci_mod_SOURCES): New variable.
26389 (setpci_mod_CFLAGS): Likewise.
26390 (setpci_mod_LDFLAGS): Likewise.
26392 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26394 Byte-addressable PCI configuration space.
26396 * bus/pci.c (grub_pci_make_address): Use byte address instead of
26398 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
26399 GRUB_PCI_REG_CACHELINE.
26400 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
26401 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
26402 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
26403 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
26404 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
26405 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
26406 grub_pci_make_address.
26407 (lock_rom_area): Likewise.
26408 * commands/lspci.c (grub_lspci_iter): Use macroses
26409 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
26410 of grub_pci_make_address.
26411 * disk/ata.c (grub_ata_pciinit): Likewise.
26412 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
26413 (GRUB_PCI_REG_VENDOR): Likewise.
26414 (GRUB_PCI_REG_DEVICE): Likewise.
26415 (GRUB_PCI_REG_COMMAND): Likewise.
26416 (GRUB_PCI_REG_STATUS): Likewise.
26417 (GRUB_PCI_REG_REVISION): Likewise.
26418 (GRUB_PCI_REG_CLASS): Likewise.
26419 (GRUB_PCI_REG_CACHELINE): Likewise.
26420 (GRUB_PCI_REG_LAT_TIMER): Likewise.
26421 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
26422 (GRUB_PCI_REG_BIST): Likewise.
26423 (GRUB_PCI_REG_ADDRESSES): Likewise.
26424 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26425 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26426 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26427 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26428 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26429 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26430 (GRUB_PCI_REG_CIS_POINTER): Likewise.
26431 (GRUB_PCI_REG_SUBVENDOR): Likewise.
26432 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
26433 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
26434 (GRUB_PCI_REG_CAP_POINTER): Likewise.
26435 (GRUB_PCI_REG_IRQ_LINE): Likewise.
26436 (GRUB_PCI_REG_IRQ_PIN): Likewise.
26437 (GRUB_PCI_REG_MIN_GNT): Likewise.
26438 (GRUB_PCI_REG_MAX_LAT): Likewise.
26439 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
26440 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
26441 * video/efi_uga.c (find_framebuf): Likewise.
26442 * video/sm712.c (grub_video_sm712_setup): Likewise.
26443 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
26446 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
26448 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
26449 can be reliably determined to be supported.
26451 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
26453 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
26454 that VESA is supported.
26455 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
26458 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26460 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
26462 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
26464 * util/misc.c (make_system_path_relative_to_its_root): Work around
26465 special-casing of "/", as previous incarnation of this routine did.
26467 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26469 Fix any-emu compilation.
26471 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
26472 * grub_bin2h_SOURCES: New variable.
26474 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
26476 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
26478 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
26480 * util/grub.d/00_header.in: Fix handling of locale_dir.
26482 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26484 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
26485 as possible unifont location (Gentoo).
26486 Reported by: Alexander Brüning
26488 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26490 Don't try to generate lists for kernel.img.
26492 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
26493 (pkglib_MODULES): Remove kernel.img.
26494 (kernel_img_EXPORTS): Removed.
26495 (kernel_img_RELOCATABLE): New variable.
26496 * conf/x86_64-efi.rmk: Likewise.
26497 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
26499 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26501 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
26502 grub_xasprintf or grub_snprintf.
26503 (grub_vsprintf): Likewise.
26504 (grub_snprintf): New proto.
26505 (grub_vsnprintf): Likewise.
26506 (grub_xasprintf): Likewise.
26507 (grub_xvasprintf): Likewise.
26508 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
26509 (grub_sprintf): Removed.
26510 (grub_vsnprintf): New function.
26511 (grub_snprintf): Likewise.
26512 (grub_xvasprintf): Likewise.
26513 (grub_xasprintf): Likewise.
26514 (grub_vsprintf): Renamed to ...
26515 (grub_vsnprintf_real): ...this. New argument max_len.
26517 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
26519 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
26520 fix grub-script-check warning.
26522 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26524 * include/grub/font.h (grub_font_load): Fix prototype.
26526 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26528 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
26530 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26532 * include/grub/x86_64/at_keyboard.h: New file.
26534 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26536 * loader/mips/linux.c: Include missing grub/i18n.h.
26538 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26540 * normal/menu.c (notify_execution_failure): Clarify error message.
26542 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26544 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
26545 return value (and revert all return statements). Update users.
26547 2010-01-20 Dan Merillat <debian@dan.merillat.org>
26549 * kern/device.c (grub_device_iterate): Allocate new part_ent
26550 structure based on sizeof (*p) rather than sizeof (p->next), to
26551 account for structure padding.
26553 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
26554 disk is NULL, which might happen for LVM physical volumes with no
26557 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26559 * loader/mips/linux.c (grub_cmd_initrd)
26560 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
26562 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26564 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
26565 (grub_video_video_init, grub_video_bitmap_init)
26566 (grub_font_manager_init, grub_term_gfxterm_init)
26567 (grub_at_keyboard_init): New extern declarations.
26568 (grub_machine_init): Initialize gfxterm and at_keyboard.
26570 * kern/main.c (grub_main): Revert grub_printf delay kludge.
26572 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
26573 `gfxterm.mod' into core image.
26575 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26576 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26577 (kernel_img_FORMAT): Copy to ...
26579 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26580 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26581 (kernel_img_FORMAT): ... here, and ...
26583 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26584 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26585 (kernel_img_FORMAT): ... here.
26587 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
26588 and input (at_keyboard) terminals in kernel.
26589 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
26591 (pkglib_MODULES): Remove `pci.mod'.
26592 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
26593 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
26594 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
26595 (at_keyboard_mod_LDFLAGS): Remove variables.
26597 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
26599 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
26601 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
26603 * include/grub/mips/libgcc.h: Only export symbols for functions
26604 that libgcc provides.
26606 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
26610 * bus/bonito.c: New file.
26611 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
26612 GRUB_PCI_NUM_DEVICES.
26613 * term/i386/pc/serial.c: Move to ...
26614 * term/serial.c: ... here. All users updated.
26615 * util/i386/pc/grub-mkimage.c: Move to ...
26616 * util/grub-mkrawimage.c: ... here. All users updated.
26617 * term/i386/pc/at_keyboard.c: Move to ...
26618 * term/at_keyboard.c: ... here. All users updated.
26619 * conf/mips-qemu-mips.rmk: New file.
26620 * conf/mips-yeeloong.rmk: Likewise.
26621 * conf/mips.rmk: Likewise.
26622 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
26624 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
26626 (grub_ata_pciinit): Support CS5536.
26627 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
26628 * font/font_cmd.c (loadfont_command): Open file before passing it to
26630 (pseudo_file_read): New function.
26631 (pseudo_file_close): Likewise.
26632 (pseudo_fs): New structure.
26633 (load_font_module): New function.
26634 (GRUB_MOD_INIT(font_manager)): Load embedded font.
26635 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
26636 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
26637 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
26638 * include/grub/i386/at_keyboard.h: Split into ...
26639 * include/grub/at_keyboard.h: ... this ...
26640 * include/grub/i386/at_keyboard.h: ... and this.
26641 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
26643 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
26645 (grub_elf64_size): Likewise.
26646 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
26648 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
26649 * include/grub/i386/coreboot/serial.h: Rewritten.
26650 * include/grub/i386/ieee1275/serial.h: Include
26651 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
26652 * include/grub/i386/pc/serial.h: Moved from here ...
26653 * include/grub/serial.h: ... to here. All users updated.
26654 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
26655 (GRUB_PCI_NUM_BUS): Likewise.
26656 (GRUB_PCI_NUM_DEVICES): Likewise.
26657 (grub_pci_device_map_range): Add missing volatile keyword.
26658 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
26659 * include/grub/mips/at_keyboard.h: New file.
26660 * include/grub/mips/cache.h: Likewise.
26661 * include/grub/mips/io.h: Likewise.
26662 * include/grub/mips/kernel.h: Likewise.
26663 * include/grub/mips/libgcc.h: Likewise.
26664 * include/grub/mips/pci.h: Likewise.
26665 * include/grub/mips/qemu-mips/boot.h: Likewise.
26666 * include/grub/mips/qemu-mips/kernel.h: Likewise.
26667 * include/grub/mips/qemu-mips/loader.h: Likewise.
26668 * include/grub/mips/qemu-mips/memory.h: Likewise.
26669 * include/grub/mips/qemu-mips/serial.h: Likewise.
26670 * include/grub/mips/qemu-mips/time.h: Likewise.
26671 * include/grub/mips/relocator.h: Likewise.
26672 * include/grub/mips/time.h: Likewise.
26673 * include/grub/mips/types.h: Likewise.
26674 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
26675 * include/grub/mips/yeeloong/boot.h: Likewise.
26676 * include/grub/mips/yeeloong/kernel.h: Likewise.
26677 * include/grub/mips/yeeloong/loader.h: Likewise.
26678 * include/grub/mips/yeeloong/memory.h: Likewise.
26679 * include/grub/mips/yeeloong/pci.h: Likewise.
26680 * include/grub/mips/yeeloong/serial.h: Likewise.
26681 * include/grub/mips/yeeloong/time.h: Likewise.
26682 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
26683 * kern/elf.c (grub_elf32_size): New parameter. All users
26685 (grub_elf64_size): Likewise.
26686 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
26687 Load modules before saying "Welcome to GRUB!".
26688 Call grub_refresh after saying "Welcome to GRUB!".
26689 * kern/mips/cache.S: New file.
26690 * kern/mips/cache_flush.S: Likewise.
26691 * kern/mips/dl.c: Likewise.
26692 * kern/mips/init.c: Likewise.
26693 * kern/mips/qemu-mips/init.c: Likewise.
26694 * kern/mips/startup.S: Likewise.
26695 * kern/mips/yeeloong/init.c: Likewise.
26696 * kern/term.c (grub_putcode): Handle NULL terminal.
26697 (grub_getcharwidth): Likewise.
26698 (grub_getkey): Likewise.
26699 (grub_checkkey): Likewise.
26700 (grub_getkeystatus): Likewise.
26701 (grub_getxy): Likewise.
26702 (grub_getwh): Likewise.
26703 (grub_gotoxy): Likewise.
26704 (grub_cls): Likewise.
26705 (grub_setcolorstate): Likewise.
26706 (grub_setcolor): Likewise.
26707 (grub_getcolor): Likewise.
26708 (grub_refresh): Likewise.
26709 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
26710 (write_jump): Add hatch nop.
26711 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
26712 * lib/mips/setjmp.S: New file.
26713 * loader/mips/linux.c: Likewise.
26714 * term/i386/pc/at_keyboard.c: Move from here ...
26715 * term/at_keyboard.c: ... to here.
26716 * term/i386/pc/serial.c: Moved from here ...
26717 * term/serial.c: ... to here. All users updated.
26718 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
26719 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
26720 (serial_translate_key_sequence): Avoid deadlock.
26721 (grub_serial_getkey): Handle backspace.
26722 (grub_serial_putchar): Fix newline handling.
26723 * util/i386/pc/grub-mkimage.c: Move from here ...
26724 * util/grub-mkrawimage.c: ... to here. All users updated.
26725 (generate_image): New parameters 'font_path' and 'format'.
26726 Support embedding font.
26727 Use grub_host_to_target* instead of grub_cpu_to_le*.
26728 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
26729 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
26730 (options): New option "--font".
26732 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
26733 (main): Handle "--font".
26734 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
26735 (grub_virtual_screen_setup): Set bg_color_display.
26736 (redraw_screen_rect): Use bg_color_display instead of incorrect
26738 (grub_gfxterm_cls): Likewise.
26739 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
26740 Support embedding config file.
26741 (add_segments): Likewise.
26742 (options): New option "--config".
26743 (main): Handle "--config".
26744 * video/sm712.c: New file.
26746 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26748 Fix parallel builds.
26750 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
26751 font.c depend on ascii.h).
26753 2010-01-12 Carles Pina i Estany <carles@pina.cat>
26755 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
26757 2010-01-11 Carles Pina i Estany <carles@pina.cat>
26759 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
26760 By default: disabled.
26761 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
26764 2010-01-10 Carles Pina i Estany <carles@pina.cat>
26766 * font/font.c: Update copyright years.
26767 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
26769 2010-01-10 Carles Pina i Estany <carles@pina.cat>
26771 * font/font.c: Include `ascii.h'.
26772 (ASCII_BITMAP_SIZE): New macro.
26773 (ascii_font_glyph): Define.
26774 (ascii_glyph_lookup): New function.
26775 (grub_font_get_string_width): Change comment. If glyph not found, use
26776 ascii_glyph_lookup.
26777 (grub_font_get_glyph_with_fallback): If glyph not available returns
26778 ascii_glyph_lookup.
26779 * util/grub-mkfont.c (file_formats): New enum.
26780 (options): Add `ascii-bitmaps' new option.
26781 (usage): Add `asii-bitmaps' new option.
26782 (write_font_ascii_bitmap): New function.
26783 (write_font): Rename to ...
26784 (write_font_p2): ... this. Remove print_glyphs call.
26785 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
26786 used. Call print_glyphs.
26787 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
26789 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
26791 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
26792 (grub_bin2h_SOURCES): New variable.
26793 * util/bin2h.c: New file.
26795 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26797 * include/multiboot.h: Resynced with spec.
26798 * include/multiboot2.h: Likewise.
26799 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
26800 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
26802 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26804 * include/grub/term.h (grub_term_register_input,
26805 grub_term_register_output): Check return of terminal init()
26806 routines, and abort if errors are raised.
26808 * commands/terminal.c: Update copyright year.
26810 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26812 * commands/terminal.c (grub_cmd_terminal_input)
26813 (grub_cmd_terminal_output): Check return of terminal init()
26814 routines, and abort if errors are raised.
26816 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
26818 * include/grub/i386/bsd.h: Fix include pathes.
26820 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
26822 Add missing *BSD copyright headers.
26824 * include/grub/aout.h: Add BSD licence.
26825 * include/grub/i386/bsd.h: Parts under different licences moved to ...
26826 * include/grub/i386/freebsd_linker.h: ... here,
26827 * include/grub/i386/freebsd_reboot.h: ... here,
26828 * include/grub/i386/netbsd_bootinfo.h: ... here,
26829 * include/grub/i386/netbsd_reboot.h: ... here,
26830 * include/grub/i386/openbsd_bootarg.h: ... here,
26831 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
26832 licence to each file.
26834 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26836 * acinclude.m4: Remove `nop' assembly instruction; it's not
26837 implemented by all architectures.
26839 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26841 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
26842 ELILO. This is no longer necessary.
26844 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
26846 Added new tool, grub-scrit-check to verify grub.cfg syntax.
26848 * util/grub-script-check.c: grub-script-check tool.
26849 * conf/common.rmk: Make rules for grub-script-check.
26851 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26853 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
26854 spotting it back in 2008. Shame on me for forgetting he did.
26856 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
26858 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26860 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
26861 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
26862 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
26863 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
26864 (GRUB_VIDEO_TYPE_EFI): Rename to ...
26865 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
26867 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
26869 * include/grub/test.h: Add license header.
26870 * tests/example_functional_test.c: Likewise.
26871 * tests/example_unit_test.c: Likewise.
26872 * tests/lib/functional_test.c: Likewise.
26873 * tests/lib/test.c: Likewise.
26874 * tests/lib/unit_test.c: Likewise.
26876 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
26878 Use flag-based instead of hook-based video mode selection and "auto"
26881 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
26882 (grub_video_set_mode): Changed prototype. All users updated.
26883 (grub_video_check_mode_flag): New inline function.
26884 * video/video.c (parse_modespec): New function.
26885 (grub_video_set_mode): Parse flags and keywords.
26887 2010-01-17 Carles Pina i Estany <carles@pina.cat>
26889 * util/misc.c (grub_util_info): Fix the order of the parameters in a
26892 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
26894 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
26896 2010-01-16 Carles Pina i Estany <carles@pina.cat>
26898 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
26900 * util/grub-emu.c (usage): Likewise.
26901 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
26902 * util/i386/efi/grub-mkimage.c (usage): Likewise.
26903 * util/i386/pc/grub-mkimage.c (usage): Likewise.
26904 * util/i386/pc/grub-setup.c (usage): Likewise.
26906 2010-01-16 Carles Pina i Estany <carles@pina.cat>
26908 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
26910 (grub_util_info): Likewise.
26911 (grub_util_error): Likewise.
26912 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
26913 and/or new lines in `grub_util_warna', `grub_util_info',
26914 `grub_util_error' calls.
26915 * util/getroot.c: Likewise.
26916 * util/grub-editenv.c: Likewise.
26917 * util/grub-emu.c: Likewise.
26918 * util/grub-fstest.c: Likewise.
26919 * util/grub-mkdevicemap.c: Likewise.
26920 * util/grub-mkfont.c: Likewise.
26921 * util/grub-mkpasswd-pbkdf2.c: Likewise.
26922 * util/grub-mkrelpath.c: Likewise.
26923 * util/grub-pe2elf.c: Likewise.
26924 * util/grub-probe.c: Likewise.
26925 * util/hostdisk.c: Likewise.
26926 * util/i386/efi/grub-mkimage.c: Likewise.
26927 * util/i386/pc/grub-mkimage.c: Likewise.
26928 * util/i386/pc/grub-setup.c: Likewise.
26929 * util/ieee1275/ofpath.c: Likewise.
26930 * util/mkisofs/eltorito.c: Likewise.
26931 * util/mkisofs/rock.c: Likewise.
26932 * util/mkisofs/write.c: Likewise.
26933 * util/raid.c: Likewise.
26934 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26935 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26937 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26939 Enable multiboot on non-pc.
26941 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
26942 multiboot.mod and multiboot2.mod to ...
26943 * conf/i386.rmk (pkglib_MODULES): ... here.
26944 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
26946 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
26947 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
26949 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
26950 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
26952 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
26953 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
26955 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
26956 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
26958 (ata_mod_SOURCES): Removed.
26959 (ata_mod_CFLAGS): Likewise.
26960 (ata_mod_LDFLAGS): Likewise.
26961 (relocator_mod_SOURCES): Removed.
26962 (relocator_mod_CFLAGS): Likewise.
26963 (relocator_mod_ASFLAGS): Likewise.
26964 (relocator_mod_LDFLAGS): Likewise.
26966 * include/grub/x86_64/multiboot.h: New file.
26967 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
26970 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26972 Video multiboot support.
26974 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
26976 * include/multiboot.h: Resynced with multiboot specification.
26977 * include/multiboot2.h: Likewise.
26978 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
26979 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
26980 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
26981 (HAS_VGA_TEXT): Likewise.
26982 (accepts_video): New variable.
26983 (grub_multiboot_set_accepts_video): New function.
26984 (grub_multiboot_get_mbi_size): Account for video structures.
26985 (set_video_mode): New function.
26986 (retrieve_video_parameters): Likewise.
26987 (grub_multiboot_make_mbi): Fill video fields.
26989 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26993 * include/grub/video.h (grub_video_driver_id): New type.
26994 (grub_video_adapter): New member 'id'. All users updated.
26995 (grub_video_get_driver_id): New proto.
26996 * video/video.c (grub_video_get_driver_id): New function.
26998 2010-01-14 Carles Pina i Estany <carles@pina.cat>
27000 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
27003 2010-01-14 Carles Pina i Estany <carles@pina.cat>
27005 * normal/cmdline.c (print_completion): Gettextizze.
27007 2001-01-14 Carles Pina i Estany <carles@pina.cat>
27009 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
27011 2010-01-14 Carles Pina i Estany <carles@pina.cat>
27013 * gettext/gettext.c (grub_gettext_translate): Push and pop
27015 (grub_gettext_delete_list): Change comment style.
27016 * kern/err.c (grub_error): Gettextizze.
27017 (grub_fatal): Gettextizze.
27019 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
27021 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
27022 (grub_linux16_real_boot): ... this.
27023 * kern/i386/loader.S: Likewise.
27024 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
27025 (grub_linux16_boot): New function. Switches to text mode and calls
27026 grub_linux16_real_boot().
27028 * loader/i386/bsd.c: Include `<grub/video.h>'.
27029 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
27030 text mode before calling grub_unix_real_boot().
27032 * loader/i386/multiboot.c: Include `<grub/video.h>'.
27033 (grub_multiboot_boot): Switch to text mode before calling
27034 grub_relocator32_boot().
27036 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
27037 (grub_chainloader_boot): Switch to text mode before calling
27038 grub_chainloader_real_boot().
27040 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
27041 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27043 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
27046 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
27047 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27049 * util/grub.d/00_header.in: Define a "savedefault" function for use
27051 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
27053 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
27054 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27056 * util/grub-mkconfig_lib.in (save_default_entry): Only set
27057 saved_entry if boot_once is unset.
27058 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
27059 previous saved entry (i.e. grub-reboot).
27061 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27063 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
27065 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27067 * util/grub.d/00_header.in: Use `set var=val' rather than plain
27069 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
27071 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27073 * util/grub-reboot.in: Fix --version output.
27074 * util/grub-set-default.in: Likewise.
27076 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27078 * util/grub.d/00_header.in: Silently ignore zero-sized environment
27081 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27083 * util/grub.d/00_header.in: Quote the value assigned to `default',
27084 in case it contains spaces.
27086 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27088 * util/grub.d/30_os-prober.in: Fix merge error that moved a
27089 `save_default_entry' call from the macosx case to the linux case.
27091 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
27092 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
27094 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
27095 in `chosen' environment variable.
27096 * normal/menu_text.c (get_entry_number): Check if the variable
27097 matches the title of a menu entry.
27098 (run_menu): Pass menu to get_entry_number.
27100 * util/grub-reboot.in: New file.
27101 * util/grub-set-default.in: New file.
27102 * conf/common.rmk (grub-reboot): New utility.
27103 (grub-set-default): New utility.
27105 * util/grub-mkconfig_lib.in (save_default_entry): New function.
27106 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
27107 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
27108 move it to `saved_entry' for the next boot. Load environment on
27110 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
27111 * util/grub.d/10_hurd.in: Likewise.
27112 * util/grub.d/10_linux.in (linux_entry): Likewise.
27113 * util/grub.d/10_windows.in: Likewise.
27114 * util/grub.d/30_os-prober.in: Likewise.
27116 * util/grub-install.in: Create environment block.
27117 * util/i386/efi/grub-install.in: Likewise.
27118 * util/ieee1275/grub-install.in: Likewise.
27119 * util/sparc64/ieee1275/grub-install.in: Likewise.
27121 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
27123 Unit testing framework for GRUB.
27125 * Makefile.in: Test framework build rules for 'make check'.
27126 * conf/tests.rmk: Build rules for individual tests and framework.
27128 * include/grub/test.h: Header file for whitebox tests.
27129 * tests/lib/functional_test.c: Framework support for whitebox
27131 * tests/lib/test.c: Common whitebox testing code for unit and
27133 * tests/lib/unit_test.c: Framework support for whitebox unit
27136 * tests/util/grub-shell-tester.in: Support utility for grub-script
27138 * tests/util/grub-shell.in: Utility to execute grub-script
27139 commands in a Qemu instance.
27141 * tests/example_functional_test.c: Example whitebox functional
27143 * tests/example_grub_script_test.in: Example grub-script test.
27144 * tests/example_scripted_test.in: Example scripted test.
27145 * tests/example_unit_test.c: Example whitebox unit test.
27147 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
27149 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
27150 Add loader/i386/multiboot_mbi.c.
27151 (multiboot2_mod_SOURCES): Likewise.
27152 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
27153 (multiboot2_mod_SOURCES): Likewise.
27154 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
27155 (grub_multiboot_make_mbi): Likewise.
27156 (grub_multiboot_free_mbi): Likewise.
27157 (grub_multiboot_init_mbi): Likewise.
27158 (grub_multiboot_add_module): Likewise.
27159 (grub_multiboot_set_bootdev): Likewise.
27160 * loader/i386/multiboot.c (mbi): Removed.
27161 (mbi_dest): Likewise.
27162 (alloc_mbi): New variable.
27163 (grub_multiboot_payload_size): Removed. All users updated.
27164 (grub_multiboot_pure_size): New variable.
27165 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
27166 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
27167 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
27168 (grub_fill_multiboot_mmap): Likewise.
27169 (grub_multiboot_get_bootdev): Likewise.
27170 (grub_multiboot): Use multiboot_mbi functions.
27171 * loader/i386/multiboot_mbi.c: New file.
27173 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
27175 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
27176 it would result in module crash.
27178 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
27180 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
27181 (grub_ofconsole_getwh): Split to ...
27182 (grub_ofconsole_getwh): ... this.
27183 (grub_ofconsole_dimensions): ...and this.
27184 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
27186 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
27188 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
27190 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
27192 * loader/i386/pc/multiboot2.c: Removed stalled file.
27194 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
27196 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
27197 Reported by: Grégoire Sutre
27199 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
27201 * util/misc.c (canonicalize_file_name): New function.
27202 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
27203 instead of realpath().
27205 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
27207 * util/grub-install.in (usage): Clarify meaning of --root-directory,
27208 and make it clearer that it's optional. Based on confusion
27211 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
27213 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
27214 in premature implicit newline.
27216 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
27218 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
27219 which resulted in garbled command line at the end of screen.
27221 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
27223 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
27224 initialization with similar approach as with other Linux loaders.
27226 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
27228 Fix i386-ieee1275 build.
27230 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
27231 and grub_term_height() for video_{width,height} initialization.
27233 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
27235 Fix grub-emu build.
27237 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
27239 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
27240 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
27242 Support for multiple terminals.
27244 * Makefile.in (pkglib_DATA): terminal.lst.
27245 (terminal.lst): New target.
27246 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
27247 (GRUB_MOD_INIT(handler)): Likewise.
27248 (GRUB_MOD_FINI(handler)): Likewise.
27249 * commands/help.c (grub_cmd_help): Handle multiple terminals.
27250 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
27251 * commands/sleep.c (do_print): Use grub_term_restore_pos.
27252 (grub_cmd_sleep): Use grub_term_save_pos.
27253 * commands/terminal.c: New file.
27254 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
27255 commands/terminal.c and lib/charset.c.
27256 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
27257 (pkglib_MODULES): Add terminal.mod.
27258 (terminal_mod_SOURCES): New variable.
27259 (terminal_mod_CFLAGS): Likewise.
27260 (terminal_mod_LDFLAGS): Likewise.
27261 * genhandlerlist.sh: Don't handle terminals.
27262 * genmk.rb: Generate terminal-*.lst.
27263 * genterminallist.sh: New file.
27264 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
27265 (grub_is_valid_utf8): Likewise.
27266 (grub_utf8_to_ucs4_alloc): Likewise.
27267 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
27268 (grub_menu_register_viewer): Changed argument.
27269 (grub_menu_try_text): New proto.
27270 (grub_gfxmenu_try_hook): New declaration.
27271 * include/grub/normal.h (grub_normal_exit_level): New declaration.
27272 (grub_menu_init_page): Additional argument term.
27273 (grub_normal_init_page): Likewise.
27274 (grub_cmdline_get): Arguments simplified.
27275 (grub_utf8_to_ucs4_alloc): Removed.
27276 (grub_print_ucs4): Additional argument term.
27277 (grub_getstringwidth): Likewise.
27278 (grub_print_message_indented): Likewise.
27279 (grub_menu_text_register_instances): New proto.
27280 (grub_show_menu): Likewise.
27281 (read_terminal_list): Likewise.
27282 (grub_set_more): Likewise.
27283 * include/grub/parser.h: Include handler.h.
27284 * include/grub/reader.h: Rewritten.
27285 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
27286 (GRUB_TERM_WIDTH): Changed to function.
27287 (GRUB_TERM_HEIGHT): Likewise.
27288 (GRUB_TERM_BORDER_WIDTH): Likewise.
27289 (GRUB_TERM_BORDER_HEIGHT): Likewise.
27290 (GRUB_TERM_NUM_ENTRIES): Likewise.
27291 (GRUB_TERM_ENTRY_WIDTH): Likewise.
27292 (GRUB_TERM_CURSOR_X): Likewise.
27293 (grub_term_input_class): Likewise.
27294 (grub_term_output_class): Likewise.
27295 (grub_term_outputs_disabled): New declaration.
27296 (grub_term_inputs_disabled): Likewise.
27297 (grub_term_outputs): Likewise.
27298 (grub_term_inputs): Likewise.
27299 (grub_term_register_input): Rewritten.
27300 (grub_term_register_output): Likewise.
27301 (grub_term_unregister_input): Likewise.
27302 (grub_term_unregister_output): Likewise.
27303 (FOR_ACTIVE_TERM_INPUTS): New macro.
27304 (FOR_DISABLED_TERM_INPUTS): Likewise.
27305 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27306 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27307 * include/grub/terminfo.h: Add oterm argument to all protypes.
27308 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
27309 Use grub_rescue_run.
27310 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
27312 * kern/reader.c: Removed. All users updated.
27313 * kern/rescue_reader.c (grub_rescue_init): Removed.
27314 (grub_rescue_reader): Likewise.
27315 (grub_register_rescue_reader): Likewise.
27316 (grub_rescue_run): New function based on kern/reader.c.
27317 * kern/term.c: Adapted for multiterm.
27318 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
27319 (grub_is_valid_utf8): Likewise.
27320 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
27321 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
27323 * loader/i386/linux.c (grub_linux_boot): Likewise.
27324 * normal/auth.c (grub_username_get): New function.
27325 (grub_auth_check_authentication): Use grub_username_get.
27326 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
27327 * normal/color.c: Adapt for multiterm.
27328 * normal/main.c (read_config_file): Don't use grub_reader_loop.
27329 (grub_normal_init_page): Additional argument term.
27330 (read_lists): Call read_terminal_lists.
27331 (grub_enter_normal_mode): Call grub_cmdline_run.
27332 Handle grub_normal_exit_level.
27333 (grub_cmd_normal): Make reentrant.
27334 (grub_cmd_normal_exit): New function.
27335 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
27336 * normal/menu.c: Adapt for multiterm.
27337 * normal/menu_entry.c: Likewise.
27338 * normal/menu_text.c: Likewise.
27339 * normal/menu_viewer.c: Removed. All users updated.
27340 * normal/term.c: New file.
27341 * util/console.c: Change order of includes to workaround a bug in
27343 * term/terminfo.c: New argument oterm on all exported functions.
27345 * util/grub-editenv.c (grub_term_input_class): Removed.
27346 (grub_term_output_class): Likewise.
27348 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
27350 Make loader output a bit more user-friendly.
27352 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
27353 is being loaded. Likewise for the Hurd.
27355 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
27356 that kernel of FreeBSD ${version} is being loaded.
27358 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
27360 (grub_cmd_initrd): Likewise.
27361 * util/grub.d/10_linux.in (linux_entry): Print message indicating
27362 that Linux ${version} is being loaded. Likewise for initrd.
27364 2010-01-09 Carles Pina i Estany <carles@pina.cat>
27366 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
27368 2010-01-08 Carles Pina i Estany <carles@pina.cat>
27370 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
27371 (GRUB_MOD_INIT): Gettextizze.
27372 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
27373 (GRUB_MOD_INIT): Gettextizze.
27374 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
27375 (grub_cmd_linux): Capitalise Linux.
27376 (GRUB_MOD_INIT): Gettextizze.
27377 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
27378 (grub_cmd_linux): Capitalise Linux.
27379 (GRUB_MOD_INIT): Gettextizze.
27380 * loader/i386/linux.c: Include `<grub/i18n.h>'.
27381 (grub_cmd_linux): Capitalise Linux.
27382 (GRUB_MOD_INIT): Gettextizze.
27383 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
27384 (GRUB_MOD_INIT): Gettextizze.
27385 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
27386 (grub_cmd_linux): Capitalise Linux.
27387 (GRUB_MOD_INIT): Gettextizze.
27388 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
27389 (grub_cpu_xnu_init): Gettextizze.
27390 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
27391 (GRUB_MOD_INIT): Gettextizze.
27392 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
27393 (GRUB_MOD_INIT): Gettextizze.
27394 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
27395 (grub_linux_load64): Capitalise Linux.
27396 (GRUB_MOD_INIT): Gettextizze.
27397 * loader/xnu.c: Include `<grub/i18n.h>'.
27398 (GRUB_MOD_INIT): Gettextizze.
27399 * po/POTFILES: Add `loader/efi/appleloader.c',
27400 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
27401 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
27402 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
27403 `loader/i386/xnu.c', `loader/multiboot_loader.c',
27404 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
27405 and `loader/xnu.c'.
27407 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
27409 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
27411 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
27413 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
27414 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
27415 * util/mkisofs/mkisofs.c (main): Readjust --version output.
27417 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
27419 Reset Multiboot 2 support. New loader implements the draft in
27420 /branches/multiboot2 and shares as much code as possible with the
27421 production Multiboot 1 implementation.
27423 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
27424 * loader/multiboot2.c: Likewise.
27425 * loader/i386/multiboot_helper.S: Likewise.
27426 * include/multiboot2.h: Replace with latest version from the draft
27427 in /branches/multiboot2.
27429 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
27430 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
27431 and `loader/multiboot2.c'.
27432 (pkglib_MODULES): Add `multiboot2.mod'.
27433 (multiboot2_mod_SOURCES): New variable.
27434 (multiboot2_mod_LDFLAGS): Likewise.
27435 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
27437 * conf/i386-pc.rmk: Likewise.
27439 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27440 (multiboot_mod_SOURCES): Remove variable.
27441 (multiboot_mod_LDFLAGS): Likewise.
27442 (multiboot_mod_CFLAGS): Likewise.
27444 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
27445 `<multiboot2.h>' instead of `<multiboot.h>'.
27446 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
27447 (MULTIBOOT_HEADER_MAGIC): New macros.
27449 * loader/multiboot_loader.c (module_version_status): Remove variable.
27450 (find_multi_boot2_header): Remove function.
27451 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
27452 logic. Always check for the Multiboot version we're compiling for.
27453 (grub_cmd_module_loader): Likewise.
27454 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
27455 command instead of `multiboot'.
27457 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
27459 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
27460 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
27463 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
27464 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
27466 Fix breakage introduced with previous commit.
27468 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
27470 * normal/handler.c (read_handler_list): Revert part of previous commit
27471 affecting this file.
27472 * normal/main.c (read_lists): Move read_handler_list() call back to ...
27473 (grub_normal_execute): ... here.
27475 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
27477 Merge prefix-redefinition-fix branch.
27479 * normal/autofs.c (read_fs_list): Make function capable of being
27480 run multiple times, gracefuly replacing the previous data
27482 * normal/dyncmd.c (read_command_list): Likewise.
27483 * normal/handler.c (read_handler_list): Likewise.
27484 * normal/main.c (read_lists): New function. Calls all the
27485 list reading functions.
27486 (grub_normal_execute): Use read_lists() instead of calling all
27487 list reading functions explicitly. Register read_lists() as a
27488 variable hook attached to ${prefix}.
27490 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
27492 Merge crypto branch.
27494 * Makefile.in (pkglib_DATA): Add crypto.lst.
27495 (crypto.lst): New target.
27496 * commands/hashsum.c: New file.
27497 * commands/password.c (check_password): Use grub_crypto_memcmp.
27498 * commands/password_pbkdf2.c: New file.
27499 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
27500 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
27501 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
27502 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
27503 -I$(srcdir)/lib/libgcrypt_wrap.
27504 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
27505 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
27506 password_pbkdf2.mod.
27507 (crypto_mod_SOURCES): New variable.
27508 (crypto_mod_CFLAGS): Likewise.
27509 (crypto_mod_LDFLAGS): Likewise.
27510 (hashsum_mod_SOURCES): New variable.
27511 (hashsum_mod_CFLAGS): Likewise.
27512 (hashsum_mod_LDFLAGS): Likewise.
27513 (pbkdf2_mod_SOURCES): New variable.
27514 (pbkdf2_mod_CFLAGS): Likewise.
27515 (pbkdf2_mod_LDFLAGS): Likewise.
27516 (password_pbkdf2_mod_SOURCES): New variable.
27517 (password_pbkdf2_mod_CFLAGS): Likewise.
27518 (password_pbkdf2_mod_LDFLAGS): Likewise.
27519 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
27520 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
27521 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
27522 Include conf/gcry.rmk.
27523 * include/grub/auth.h: Rewritten.
27524 * include/grub/crypto.h: New file.
27525 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
27526 * include/grub/normal.h (read_crypto_list): New prototype.
27527 * lib/crypto.c: New file.
27528 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
27529 * lib/pbkdf2.c: Likewise.
27530 * normal/auth.c (grub_auth_strcmp): Removed.
27531 (grub_iswordseparator): Likewise.
27532 (grub_auth_strword): Likewise.
27533 (is_authenticated): Use grub_strword.
27534 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
27535 and grub_strword. Pass entered password to authentication callback.
27536 * normal/crypto.c: New file.
27537 * normal/main.c: Call read_crypto_list.
27538 * util/grub-mkpasswd-pbkdf2.c: New file.
27539 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
27541 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
27543 Fix descent and ascent calculation.
27545 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
27546 (options): New option "asce".
27548 (add_char): Ignore invalid glyphs for descent calculation.
27549 Calculate ascent from actual content.
27550 (print_glyphs): Use 'asce'.
27551 (write_font): Likewise. Allow ascent override.
27552 (main): Handle "asce" option.
27554 2010-01-06 Carles Pina i Estany <carles@pina.cat>
27556 * kern/err.c: Include `<grub/i18n.h>'.
27557 (grub_print_error): Add full stop. Gettextizze.
27558 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
27559 (grub_bsd_load_elf): Capitalise ELF.
27560 (grub_cmd_freebsd_loadenv): Add `s' in error string.
27561 (grub_cmd_freebsd_module): Likewise.
27562 (grub_cmd_freebsd_module_elf): Likewise.
27563 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
27565 2010-01-06 Carles Pina i Estany <carles@pina.cat>
27567 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
27568 * commands/search_file.c (HELP_MESSAGE): New macro.
27569 * commands/search_label.c (HELP_MESSAGE): Likewise.
27570 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
27571 * po/POTFILES: Add `commands/search_file.c',
27572 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
27573 `commands/search.c'.
27575 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
27577 * config.rpath: Update from Gnulib.
27579 2010-01-05 Yves Blusseau <blusseau@zetam.org>
27581 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
27583 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
27585 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
27587 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27589 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
27590 arguments to fread so that we get a return value in bytes, rather
27591 than something that will normally be rounded down to 0.
27592 Adjust error handling to avoid producing garbage when size_t is not
27593 the same size as long long.
27595 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27597 * util/mkisofs/write.c (padblock_write): Check return value of
27600 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
27602 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
27605 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
27607 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
27609 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
27610 instead of manual alignment.
27611 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
27612 verbose). Avoid attempts to read past end of the device
27613 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
27614 but GRUB_DISK_CACHE_SIZE may exceed that).
27616 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
27618 * commands/crc.c (grub_cmd_crc): Abort on read errors.
27619 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
27622 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
27624 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
27626 (grub_efi_piwg_device_path): New structure
27627 (grub_efi_piwg_device_path_t): New type.
27628 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
27629 (devpath_1): Transform to a structure. All users updated.
27630 (devpath_2): Likewise.
27631 (devpath_3): Likewise.
27632 (devpath_4): Likewise.
27633 (devpath_5): Likewise.
27635 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
27637 * loader/efi/appleloader.c: Restored. Update all users.
27639 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27641 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
27643 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
27644 (struct boot_blocklist): Move from here ...
27645 * include/grub/i386/pc/boot.h [ASM_FILE]
27646 (struct grub_boot_blocklist): ... to here. Update all users.
27647 (setup): Only initialize `start' member of `first_block'
27648 structure. Add assert() calls to verify the other members.
27650 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
27651 (generate_image): Fix broken blocklist length initialization.
27652 Add assert() call to verify blocklist `segment' field.
27654 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27656 * loader/efi/appleloader.c: Remove. Update all users.
27658 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27660 * boot/i386/pc/boot.S: Update copyright year.
27661 * boot/i386/pc/cdboot.S: Likewise.
27662 * boot/i386/pc/diskboot.S: Likewise.
27663 * boot/i386/pc/lnxboot.S: Likewise.
27664 * boot/i386/pc/pxeboot.S: Likewise.
27665 * bus/pci.c: Likewise.
27666 * commands/cmp.c: Likewise.
27667 * commands/help.c: Likewise.
27668 * commands/hexdump.c: Likewise.
27669 * commands/i386/pc/halt.c: Likewise.
27670 * commands/i386/pc/play.c: Likewise.
27671 * commands/i386/pc/vbeinfo.c: Likewise.
27672 * commands/ls.c: Likewise.
27673 * commands/test.c: Likewise.
27674 * disk/dmraid_nvidia.c: Likewise.
27675 * disk/i386/pc/biosdisk.c: Likewise.
27676 * disk/ieee1275/nand.c: Likewise.
27677 * disk/ieee1275/ofdisk.c: Likewise.
27678 * disk/lvm.c: Likewise.
27679 * disk/raid.c: Likewise.
27680 * disk/raid6_recover.c: Likewise.
27681 * disk/scsi.c: Likewise.
27682 * fs/affs.c: Likewise.
27683 * fs/cpio.c: Likewise.
27684 * fs/ext2.c: Likewise.
27685 * fs/hfs.c: Likewise.
27686 * fs/iso9660.c: Likewise.
27687 * fs/ntfs.c: Likewise.
27688 * fs/sfs.c: Likewise.
27689 * fs/udf.c: Likewise.
27690 * fs/ufs.c: Likewise.
27691 * fs/xfs.c: Likewise.
27692 * gencmdlist.sh: Likewise.
27693 * genmk.rb: Likewise.
27694 * include/grub/disk.h: Likewise.
27695 * include/grub/efi/api.h: Likewise.
27696 * include/grub/efi/efi.h: Likewise.
27697 * include/grub/efi/pe32.h: Likewise.
27698 * include/grub/elf.h: Likewise.
27699 * include/grub/fs.h: Likewise.
27700 * include/grub/i386/at_keyboard.h: Likewise.
27701 * include/grub/i386/pc/memory.h: Likewise.
27702 * include/grub/i386/pc/vbe.h: Likewise.
27703 * include/grub/i386/pci.h: Likewise.
27704 * include/grub/i386/tsc.h: Likewise.
27705 * include/grub/ieee1275/ieee1275.h: Likewise.
27706 * include/grub/ntfs.h: Likewise.
27707 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
27708 * include/grub/sparc64/libgcc.h: Likewise.
27709 * include/grub/symbol.h: Likewise.
27710 * include/grub/types.h: Likewise.
27711 * include/multiboot2.h: Likewise.
27712 * io/gzio.c: Likewise.
27713 * kern/device.c: Likewise.
27714 * kern/disk.c: Likewise.
27715 * kern/efi/efi.c: Likewise.
27716 * kern/efi/mm.c: Likewise.
27717 * kern/elf.c: Likewise.
27718 * kern/file.c: Likewise.
27719 * kern/i386/dl.c: Likewise.
27720 * kern/i386/pc/init.c: Likewise.
27721 * kern/i386/pc/startup.S: Likewise.
27722 * kern/ieee1275/ieee1275.c: Likewise.
27723 * kern/ieee1275/init.c: Likewise.
27724 * kern/main.c: Likewise.
27725 * kern/mm.c: Likewise.
27726 * kern/powerpc/dl.c: Likewise.
27727 * kern/sparc64/dl.c: Likewise.
27728 * kern/x86_64/dl.c: Likewise.
27729 * lib/hexdump.c: Likewise.
27730 * loader/efi/appleloader.c: Likewise.
27731 * loader/i386/ieee1275/linux.c: Likewise.
27732 * loader/i386/pc/chainloader.c: Likewise.
27733 * loader/i386/pc/linux.c: Likewise.
27734 * loader/i386/pc/multiboot2.c: Likewise.
27735 * loader/ieee1275/multiboot2.c: Likewise.
27736 * loader/multiboot2.c: Likewise.
27737 * loader/multiboot_loader.c: Likewise.
27738 * loader/powerpc/ieee1275/linux.c: Likewise.
27739 * normal/completion.c: Likewise.
27740 * normal/menu_entry.c: Likewise.
27741 * partmap/apple.c: Likewise.
27742 * util/grub.d/10_hurd.in: Likewise.
27743 * util/hostfs.c: Likewise.
27744 * video/readers/png.c: Likewise.
27746 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
27748 * include/grub/misc.h (GNUC_PREREQ): New macro.
27749 (ATTRIBUTE_ERROR): New macro.
27750 * include/grub/list.h (grub_bad_type_cast_real): Use
27753 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27755 * normal/menu_text.c (print_message): Change messages.
27757 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27759 * normal/menu_entry.c (store_completion): Gettextizze.
27761 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27763 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
27765 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27767 * po/POTFILES: Sort correctly.
27769 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27771 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
27772 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
27773 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
27775 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
27776 summary. Gettextizze the strings.
27777 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
27778 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
27779 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
27781 (GRUB_MOD_INIT): Remove command name from summary.
27782 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
27784 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
27785 * term/i386/pc/serial.c (options): Add full stops.
27786 (GRUB_MOD_INIT): Remove command name from the summary.
27788 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27790 * commands/acpi.c: Gettextizze help strings and/or options. Include
27791 `grub/i18n.h' if needed.
27792 * commands/blocklist.c: Likewise.
27793 * commands/boot.c: Likewise.
27794 * commands/cat.c: Likewise.
27795 * commands/cmp.c: Likewise.
27796 * commands/configfile.c: Likewise.
27797 * commands/crc.c: Likewise.
27798 * commands/date.c: Likewise.
27799 * commands/echo.c: Likewise.
27800 * commands/efi/fixvideo.c: Likewise.
27801 * commands/efi/loadbios.c: Likewise.
27802 * commands/gptsync.c: Likewise.
27803 * commands/halt.c: Likewise.
27804 * commands/handler.c: Likewise.
27805 * commands/hdparm.c: Likewise.
27806 * commands/hexdump.c: Likewise.
27807 * commands/i386/cpuid.c: Likewise.
27808 * commands/i386/pc/drivemap.c: Likewise.
27809 * commands/i386/pc/halt.c: Likewise.
27810 * commands/i386/pc/pxecmd.c: Likewise.
27811 * commands/i386/pc/vbeinfo.c: Likewise.
27812 * commands/i386/pc/vbetest.c: Likewise.
27813 * commands/ieee1275/suspend.c: Likewise.
27814 * commands/keystatus.c: Likewise.
27815 * commands/loadenv.c: Likewise.
27816 * commands/ls.c: Likewise.
27817 * commands/lsmmap.c: Likewise.
27818 * commands/lspci.c: Likewise.
27819 * commands/memrw.c: Likewise.
27820 * commands/minicmd.c: Likewise.
27821 * commands/parttool.c: Likewise.
27822 * commands/password.c: Likewise.
27823 * commands/probe.c: Likewise.
27824 * commands/read.c: Likewise.
27825 * commands/reboot.c: Likewise.
27826 * commands/search.c: Likewise.
27827 * commands/sleep.c: Likewise.
27828 * commands/test.c: Likewise.
27829 * commands/true.c: Likewise.
27830 * commands/usbtest.c: Likewise.
27831 * commands/videotest.c: Likewise.
27832 * commands/xnu_uuid.c: Likewise.
27833 * disk/loopback.c: Likewise.
27834 * hello/hello.c: Likewise.
27835 * loader/i386/bsd.c: Likewise.
27836 * term/i386/pc/serial.c: Likewise.
27837 * po/POTFILES: Add new files.
27839 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
27841 * term/i386/pc/at_keyboard.c
27842 (keyboard_controller_wait_untill_ready): Rename to ...
27843 (keyboard_controller_wait_until_ready): ... this. Update all users.
27845 2010-01-01 Carles Pina i Estany <carles@pina.cat>
27847 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
27848 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
27849 string using string width.
27850 * normal/menu_text.c (grub_print_message_indented): Use
27851 grub_print_spaces and not print_spaces.
27852 (print_timeout): Likewise.
27853 (print_spaces): Move to...
27854 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
27856 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
27858 Import from Gnulib.
27860 * gnulib/getdelim.c: New file.
27861 * gnulib/getline.c: Likewise.
27863 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
27865 * include/grub/list.h (grub_assert_fail): Removed.
27866 (grub_bad_type_cast_real): New function.
27867 (grub_bad_type_cast): New macro.
27868 (GRUB_AS_LIST): Use grub_bad_type_cast.
27869 (GRUB_AS_LIST_P): Likewise.
27870 (GRUB_AS_NAMED_LIST): Likewise.
27871 (GRUB_AS_NAMED_LIST_P): Likewise.
27872 (GRUB_AS_PRIO_LIST): Likewise.
27873 (GRUB_AS_PRIO_LIST_P): Likewise.
27874 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
27876 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
27878 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
27881 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
27883 * configure.ac: Check for TARGET_CFLAGS initialization before we
27884 initialize it ourselves (sigh).
27885 Move a few modifications to TARGET_CFLAGS to be unconditional
27886 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
27889 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
27890 * term/i386/pc/at_keyboard.c
27891 (keyboard_controller_wait_untill_ready): Likewise.
27892 (keyboard_controller_led): Rename `led_status' paramter to avoid
27895 2009-12-28 Carles Pina i Estany <carles@pina.cat>
27897 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
27900 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27902 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
27904 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27906 * normal/menu_text.c (grub_print_message_indented): Prevent
27907 past-the-end-of-array dereference.
27909 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27911 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
27912 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
27914 2009-12-27 Carles Pina i Estany <carles@pina.cat>
27916 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
27917 * normal/main.c (grub_normal_read_line): Remove a space from the
27920 2009-12-27 Carles Pina i Estany <carles@pina.cat>
27922 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
27923 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27924 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
27925 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
27926 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27927 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27928 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27930 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27932 * video/readers/jpeg.c (cmd): Declare.
27933 (grub_cmd_jpegtest): Use `grub_command_t' type.
27934 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27936 (GRUB_MOD_FINI): Use `cmd' to unregister.
27937 * video/readers/png.c (cmd): Declare.
27938 (grub_cmd_pngtest): Use `grub_command_t' type.
27939 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27941 (GRUB_MOD_FINI): Use `cmd' to unregister.
27942 * video/readers/tga.c (cmd): Declare.
27943 (grub_cmd_tgatest): Use `grub_command_t' type.
27944 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27946 (GRUB_MOD_FINI): Use `cmd' to unregister.
27948 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27950 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
27952 * kern/corecmd.c (grub_register_core_commands): Likewise.
27953 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
27954 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
27955 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
27956 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27957 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
27958 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
27959 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
27960 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
27961 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27962 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27963 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27964 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27965 * normal/handler.c (insert_handler): Likewise.
27966 * normal/main.c (GRUB_MOD_INIT): Likewise.
27967 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
27969 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27971 * commands/help.c (grub_cmd_help): Print the command name before the
27973 (GRUB_MOD_INIT): Remove command name from the summary.
27974 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
27976 * lib/arg.c (find_long): Print the command name before the summary.
27977 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
27979 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
27980 * commands/cat.c (GRUB_MOD_INIT): Likewise.
27981 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
27982 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
27983 * commands/crc.c (GRUB_MOD_INIT): Likewise.
27984 * commands/date.c (GRUB_MOD_INIT): Likewise.
27985 * commands/echo.c (GRUB_MOD_INIT): Likewise.
27986 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
27987 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27988 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27989 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
27990 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
27991 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
27992 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
27993 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27994 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
27995 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
27996 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
27997 * commands/ls.c (GRUB_MOD_INIT): Likewise.
27998 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27999 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
28000 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
28001 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
28002 * commands/password.c (GRUB_MOD_INIT): Likewise.
28003 * commands/probe.c (GRUB_MOD_INIT): Likewise.
28004 * commands/read.c (GRUB_MOD_INIT): Likewise.
28005 * commands/search.c (GRUB_MOD_INIT): Likewise.
28006 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
28007 * commands/test.c (GRUB_MOD_INIT): Likewise.
28008 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
28009 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28010 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28011 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
28012 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28013 * lib/arg.c (GRUB_MOD_INIT): Likewise.
28014 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
28015 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
28016 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28017 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28018 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28019 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
28020 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
28021 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
28023 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28025 Use search command for preliminar UUID search.
28027 * commands/search.c: Split into ...
28028 * commands/search_wrap.c: ...this
28029 * commands/search.c: ...and this.
28030 * commands/search_file.c: New file.
28031 * commands/search_label.c: New file.
28032 * commands/search_uuid.c: New file.
28033 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
28034 Add commands/search_wrap.c, commands/search_file.c,
28035 commands/search_label.c and commands/search_uuid.c.
28036 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
28037 (search_mod_SOURCES): Set to commands/search_wrap.c.
28038 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
28040 (search_fs_file_mod_SOURCES): New variable.
28041 (search_fs_file_mod_CFLAGS): Likewise.
28042 (search_fs_file_mod_LDFLAGS): Likewise.
28043 (search_label_mod_SOURCES): Likewise.
28044 (search_label_mod_CFLAGS): Likewise.
28045 (search_label_mod_LDFLAGS): Likewise.
28046 (search_fs_uuid_mod_SOURCES): New variable.
28047 (search_fs_uuid_mod_CFLAGS): Likewise.
28048 (search_fs_uuid_mod_LDFLAGS): Likewise.
28049 (fs_file_mod_SOURCES): Removed.
28050 (fs_file_mod_CFLAGS): Likewise.
28051 (fs_file_mod_LDFLAGS): Likewise.
28052 (fs_uuid_mod_SOURCES): Removed.
28053 (fs_uuid_mod_CFLAGS): Likewise.
28054 (fs_uuid_mod_LDFLAGS): Likewise.
28055 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
28056 Set to util/grub-install.in.
28057 * disk/fs_file.c: Removed.
28058 * disk/fs_uuid.c: Likewise.
28059 * include/grub/search.h: New file.
28060 * util/grub-install.in: Handle sparc64.
28061 Create and use load.cfg.
28062 * util/sparc64/ieee1275/grub-install.in: Removed.
28064 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28066 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
28067 Ignore return status if CF is cleared.
28068 (grub_biosdisk_get_diskinfo_standard): Likewise.
28070 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
28072 * term/i386/pc/at_keyboard.c
28073 (keyboard_controller_wait_untill_ready): New function.
28074 (grub_keyboard_controller_write, grub_keyboard_controller_read)
28075 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
28076 for keyboard polling, rather than duplicate the same loop. This
28077 saves a few bytes in code size.
28079 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28081 Support for (pxe[:server[:gateway]]) syntax and
28082 use environment variable for PXE.
28084 * commands/i386/pc/pxecmd.c (options): Removed.
28085 (print_ip): Removed.
28086 (grub_cmd_pxe): Removed
28087 (grub_cmd_pxe_unload): New function.
28088 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
28089 (grub_pxe_your_ip): Made static.
28090 (grub_pxe_default_server_ip): Likewise.
28091 (grub_pxe_default_gateway_ip): Likewise.
28092 (grub_pxe_blksize): Likewise.
28093 (parse_ip): New function.
28094 (grub_pxe_open): Support server and gateway specification.
28095 (grub_pxe_close): Free disk->data.
28096 (grub_pxefs_open): Use disk->data.
28097 (grub_pxefs_read): Likewise.
28098 (grub_env_write_readonly): New function.
28099 (set_mac_env): Likewise.
28100 (set_env_limn_ro): Likewise.
28101 (parse_dhcp_vendor): Likewise.
28102 (grub_pxe_detect): Set the environment variables.
28103 (set_ip_env): New function.
28104 (write_ip_env): Likewise.
28105 (grub_env_write_pxe_default_server): Likewise.
28106 (grub_env_write_pxe_default_gateway): Likewise.
28107 (grub_env_write_pxe_blocksize): Likewise.
28108 (GRUB_MOD_INIT(pxe)): Set environment variables.
28109 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
28110 (grub_pxe_mac_addr_t): ... this. All users updated.
28111 (grub_pxe_your_ip): Removed.
28112 (grub_pxe_server_ip): Likewise.
28113 (grub_pxe_gateway_ip): Likewise.
28114 (grub_pxe_blksize): Likewise.
28116 2009-12-25 Carles Pina i Estany <carles@pina.cat>
28118 * commands/help.c: Include `<grub/i18n.h>'.
28119 (grub_cmd_help): Gettextizze.
28120 (GRUB_MOD_INIT): Likewise.
28121 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
28122 (GRUB_MOD_INIT): Gettextizze.
28123 * commands/search.c: Include `<grub/i18n.h>'.
28124 (options): Gettextizze.
28125 (GRUB_MOD_INIT): Gettextizze.
28126 * lib/arg.c: Include `<grub/i18n.h>'.
28127 (help_options): Gettextizze.
28128 (find_long): Likewise.
28129 (grub_arg_show_help): Likewise.
28130 * normal/dyncmd.c: Include `<grub/i18n.h>'.
28131 (read_command_list): Gettextizze.
28132 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
28133 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
28135 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
28137 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
28138 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
28139 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
28140 (led_status): New variable.
28141 (keyboard_controller_led): New function.
28142 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
28143 update led status for caps lock, num lock and scroll lock.
28145 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
28147 * util/hostdisk.c (open_device): Fix a comment.
28149 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28151 * util/grub-install.in (host_os): New variable.
28152 * util/i386/efi/grub-install.in (host_os): Likewise.
28154 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28156 * util/mkisofs/write.c (padblock_write): Abort when given an
28157 excedingly large embed image, instead of silently truncating it.
28159 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28161 * include/multiboot.h: Indentation fixes.
28163 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28165 * include/multiboot.h (struct multiboot_aout_symbol_table)
28166 (struct multiboot_elf_section_header_table): New structure
28167 declarations (stolen from GRUB Legacy).
28168 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
28171 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
28172 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
28175 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28177 * include/multiboot.h: Make comments src2texi-friendly.
28179 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28181 For consistency with [multiboot]/docs/boot.S.
28183 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
28184 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
28185 (MULTIBOOT_MAGIC2): Rename from this ...
28186 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
28188 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28190 * include/multiboot.h: Remove `<grub/types.h>'.
28191 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
28192 types. Update all users.
28194 2009-12-25 Carles Pina i Estany <carles@pina.cat>
28196 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
28197 `couldn't' and `can not' by `cannot'.
28198 * commands/i386/pc/drivemap.c: Likewise.
28199 * disk/ata.c: Likewise.
28200 * disk/ieee1275/nand.c: Likewise.
28201 * fs/affs.c: Likewise.
28202 * fs/fat.c: Likewise.
28203 * fs/hfs.c: Likewise.
28204 * fs/hfsplus.c: Likewise.
28205 * fs/iso9660.c: Likewise.
28206 * fs/jfs.c: Likewise.
28207 * fs/minix.c: Likewise.
28208 * fs/reiserfs.c: Likewise.
28209 * fs/sfs.c: Likewise.
28210 * fs/udf.c: Likewise.
28211 * fs/ufs.c: Likewise.
28212 * fs/xfs.c: Likewise.
28213 * loader/powerpc/ieee1275/linux.c: Likewise.
28214 * loader/sparc64/ieee1275/linux.c: Likewise.
28215 * util/grub-probe.c: Likewise.
28216 * util/misc.c: Likewise.
28218 2009-12-24 Carles Pina i Estany <carles@pina.cat>
28220 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
28222 * commands/acpi.c: Likewise.
28223 * commands/blocklist.c: Likewise.
28224 * commands/efi/loadbios.c: Likewise.
28225 * commands/i386/pc/drivemap.c: Likewise.
28226 * commands/loadenv.c: Likewise.
28227 * commands/memrw.c: Likewise.
28228 * commands/password.c: Likewise.
28229 * commands/videotest.c: Likewise.
28230 * disk/ata.c: Likewise.
28231 * disk/ata_pthru.c: Likewise.
28232 * disk/dmraid_nvidia.c: Likewise.
28233 * disk/ieee1275/nand.c: Likewise.
28234 * disk/ieee1275/ofdisk.c: Likewise.
28235 * disk/loopback.c: Likewise.
28236 * disk/lvm.c: Likewise.
28237 * disk/mdraid_linux.c: Likewise.
28238 * disk/raid.c: Likewise.
28239 * disk/raid6_recover.c: Likewise.
28240 * disk/scsi.c: Likewise.
28241 * efiemu/main.c: Likewise.
28242 * efiemu/mm.c: Likewise.
28243 * efiemu/pnvram.c: Likewise.
28244 * efiemu/symbols.c: Likewise.
28245 * font/font.c: Likewise.
28246 * fs/cpio.c: Likewise.
28247 * fs/hfsplus.c: Likewise.
28248 * fs/iso9660.c: Likewise.
28249 * fs/jfs.c: Likewise.
28250 * fs/minix.c: Likewise.
28251 * fs/ntfs.c: Likewise.
28252 * fs/ntfscomp.c: Likewise.
28253 * fs/reiserfs.c: Likewise.
28254 * fs/ufs.c: Likewise.
28255 * fs/xfs.c: Likewise.
28256 * gettext/gettext.c: Likewise.
28257 * include/grub/auth.h: Likewise.
28258 * kern/elf.c: Likewise.
28259 * kern/file.c: Likewise.
28260 * kern/ieee1275/init.c: Likewise.
28261 * kern/ieee1275/mmap.c: Likewise.
28262 * kern/ieee1275/openfw.c: Likewise.
28263 * kern/powerpc/dl.c: Likewise.
28264 * kern/sparc64/dl.c: Likewise.
28265 * lib/arg.c: Likewise.
28266 * loader/i386/bsd.c: Likewise.
28267 * loader/i386/bsdXX.c: Likewise.
28268 * loader/i386/efi/linux.c: Likewise.
28269 * loader/i386/efi/xnu.c: Likewise.
28270 * loader/i386/ieee1275/linux.c: Likewise.
28271 * loader/i386/linux.c: Likewise.
28272 * loader/i386/multiboot.c: Likewise.
28273 * loader/i386/pc/linux.c: Likewise.
28274 * loader/i386/pc/multiboot2.c: Likewise.
28275 * loader/i386/xnu.c: Likewise.
28276 * loader/ieee1275/multiboot2.c: Likewise.
28277 * loader/macho.c: Likewise.
28278 * loader/machoXX.c: Likewise.
28279 * loader/multiboot2.c: Likewise.
28280 * loader/multiboot_loader.c: Likewise.
28281 * loader/powerpc/ieee1275/linux.c: Likewise.
28282 * loader/sparc64/ieee1275/linux.c: Likewise.
28283 * loader/xnu.c: Likewise.
28284 * loader/xnu_resume.c: Likewise.
28285 * mmap/i386/pc/mmap.c: Likewise.
28286 * normal/menu_viewer.c: Likewise.
28287 * partmap/acorn.c: Likewise.
28288 * partmap/amiga.c: Likewise.
28289 * partmap/apple.c: Likewise.
28290 * script/lexer.c: Likewise.
28291 * term/gfxterm.c: Likewise.
28292 * term/i386/pc/serial.c: Likewise.
28293 * term/i386/pc/vga.c: Likewise.
28294 * term/ieee1275/ofconsole.c: Likewise.
28295 * term/terminfo.c: Likewise.
28296 * video/bitmap.c: Likewise.
28297 * video/efi_gop.c: Likewise.
28298 * video/efi_uga.c: Likewise.
28299 * video/fb/video_fb.c: Likewise.
28300 * video/i386/pc/vbe.c: Likewise.
28301 * video/readers/tga.c: Likewise.
28302 * video/video.c: Likewise.
28304 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
28306 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
28307 * commands/lspci.c: Likewise.
28308 * commands/probe.c: Likewise.
28309 * commands/xnu_uuid.c: Likewise.
28310 * conf/i386-coreboot.rmk: Likewise.
28311 * conf/i386-efi.rmk: Likewise.
28312 * conf/i386-ieee1275.rmk: Likewise.
28313 * conf/i386-pc.rmk: Likewise.
28314 * conf/powerpc-ieee1275.rmk: Likewise.
28315 * conf/sparc64-ieee1275.rmk: Likewise.
28316 * conf/x86_64-efi.rmk: Likewise.
28317 * fs/i386/pc/pxe.c: Likewise.
28318 * gettext/gettext.c: Likewise.
28319 * include/grub/efi/graphics_output.h: Likewise.
28320 * include/grub/i386/pc/memory.h: Likewise.
28321 * kern/env.c: Likewise.
28322 * kern/i386/qemu/startup.S: Likewise.
28323 * lib/i386/pc/biosnum.c: Likewise.
28324 * lib/i386/relocator.c: Likewise.
28325 * lib/i386/relocator_asm.S: Likewise.
28326 * lib/relocator.c: Likewise.
28327 * loader/i386/bsd.c: Likewise.
28328 * loader/i386/multiboot.c: Likewise.
28329 * loader/i386/pc/chainloader.c: Likewise.
28330 * loader/i386/xnu.c: Likewise.
28331 * loader/xnu.c: Likewise.
28332 * normal/main.c: Likewise.
28333 * normal/menu_text.c: Likewise.
28334 * util/getroot.c: Likewise.
28335 * util/grub-mkconfig_lib.in: Likewise.
28336 * util/grub.d/00_header.in: Likewise.
28337 * util/i386/pc/grub-mkimage.c: Likewise.
28338 * util/mkisofs/eltorito.c: Likewise.
28339 * util/mkisofs/exclude.h: Likewise.
28340 * util/mkisofs/hash.c: Likewise.
28341 * util/mkisofs/iso9660.h: Likewise.
28342 * util/mkisofs/joliet.c: Likewise.
28343 * util/mkisofs/mkisofs.c: Likewise.
28344 * util/mkisofs/mkisofs.h: Likewise.
28345 * util/mkisofs/multi.c: Likewise.
28346 * util/mkisofs/name.c: Likewise.
28347 * util/mkisofs/rock.c: Likewise.
28348 * util/mkisofs/tree.c: Likewise.
28349 * util/mkisofs/write.c: Likewise.
28350 * video/efi_gop.c: Likewise.
28352 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
28354 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
28357 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
28359 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
28360 * genmk.rb (class SCRIPT): Modify the target file instead of source.
28362 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
28364 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
28365 (GRUB_MOD_INIT(memrw)): Update help line.
28367 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
28369 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
28370 Use grub_extcmd_t. All users updated.
28371 (options): New variable.
28372 (grub_cmd_read): Restructure for readability. Support "-v" option.
28373 (grub_cmd_write): Restructure for readability.
28375 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
28377 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
28379 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
28381 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
28382 with the actual contents of the correspondending make variable.
28383 * util/grub-mkrescue.in (pkglib_DATA): New variable.
28384 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
28385 specifying `*.lst' and `efiemu??.o'
28387 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
28389 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
28390 after function name.
28391 Noticed by Rene Engelhard <rene@debian.org>.
28393 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
28395 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
28396 (options): New variable.
28397 (iospace): Likewise.
28398 (grub_lspci_iter): List IO spaces if "-i" was given.
28399 (grub_cmd_lspci): Parse options.
28400 (GRUB_MOD_INIT(lspci)): Use extcmd.
28401 (GRUB_MOD_FINI(lspci)): Likewise.
28403 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
28405 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
28406 `function' keyword.
28407 Patch by Tony Mancill <tmancill@debian.org>.
28409 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
28411 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
28412 (grub_uhci_portstatus): Likewise.
28413 (grub_uhci_portstatus): Add necessary delay.
28414 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
28416 2009-12-21 Carles Pina i Estany <carles@pina.cat>
28418 * commands/acpi.c (options): Fix capitalizations and/or full stops.
28419 (GRUB_MOD_INIT): Likewise.
28420 * commands/boot.c (GRUB_MOD_INIT): Likewise.
28421 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
28422 * commands/echo.c (options): Fix capitalizations and/or full stops.
28423 * commands/efi/loadbios.c (enable_rom_area): Likewise.
28424 (enable_rom_area): Likewise.
28425 (GRUB_MOD_INIT): Likewise.
28426 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
28427 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
28428 * commands/handler.c (GRUB_MOD_INIT): Likewise.
28429 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
28430 * commands/hexdump.c (options): Likewise.
28431 * commands/i386/cpuid.c (options): Likewise.
28432 (GRUB_MOD_INIT): Likewise.
28433 * commands/i386/pc/drivemap.c (options): Likewise.
28434 (GRUB_MOD_INIT): Likewise.
28435 * commands/i386/pc/halt (options): Likewise.
28436 (GRUB_MOD_INIT): Likewise.
28437 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
28438 * commands/i386/pc/pxecmd.c (options): Likewise.
28439 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
28440 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
28441 * commands/keystatus.c (options): Likewise.
28442 (GRUB_MOD_INIT): Likewise.
28443 * commands/loadenv.c (options): Likewise.
28444 * commands/ls.c (options): Likewise.
28445 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
28446 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
28447 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
28448 * commands/parttool.c (helpmsg): Likewise.
28449 * commands/probe.c (options): Likewise.
28450 * commands/read.c (GRUB_MOD_INIT): Likewise.
28451 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
28452 * commands/search.c (options): Likewise.
28453 * commands/sleep.c (options): Likewise.
28454 * commands/test.c (GRUB_MOD_INIT): Likewise.
28455 * commands/true.c (GRUB_MOD_INIT): Likewise.
28456 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
28457 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
28458 * lib/arg.c (help_options): Likewise.
28459 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
28461 * po/POTFILES: Add `commands/loadenv.c'.
28463 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
28465 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
28466 instead of specifying them explicit.
28468 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28470 * NEWS: Add grub-probe support for GNU/Hurd.
28472 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28474 * NEWS: gettext was added after 1.97.
28476 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28478 * util/mkisofs/msdos_partition.h: New file (based on
28479 include/grub/msdos_partition.h).
28480 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
28481 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
28482 (ld_options, main): Recognize --protective-msdos-label.
28483 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
28484 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
28485 (padblock_write): If `use_protective_msdos_label' is set, patch a
28486 protective DOS-style label in the output image.
28488 * util/grub-mkrescue.in: Use --protective-msdos-label.
28490 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28492 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
28495 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28497 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
28499 (ld_options, main): Recognize `--embedded-boot'.
28500 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
28502 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
28503 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
28504 (padblock_write): Likewise. Rewrite to support embedded boot image.
28506 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
28507 for BIOS-based disk boot instead of only ElTorito.
28509 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28511 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
28512 build (not needed for bootstrap).
28514 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28516 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
28517 from i386-pc build (not needed for bootstrap).
28518 Rewrite a pair of strings.
28520 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28522 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
28524 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
28526 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
28528 2009-12-21 Andreas Born <futur.andy@googlemail.com>
28530 * kern/env.c (grub_env_context_open): Mark exported variable for
28533 2009-12-21 Andreas Born <futur.andy@googlemail.com>
28535 * kern/env.c (grub_env_export): Create nonexistent variables before
28538 2009-12-20 Carles Pina i Estany <carles@pina.cat>
28540 * include/grub/auth.h: Include `<grub/i18n.h>'.
28541 (GRUB_GET_PASSWORD): Gettextizze string.
28542 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
28544 (grub_utf8_to_ucs4_alloc): Fix indentation.
28545 (grub_print_ucs4): Likewise.
28546 (grub_getstringwidth): Likewise.
28547 (print_message_indented): New declaration.
28548 * normal/auth.c: Include `<grub/i18n.h>'.
28549 (grub_auth_check_authentication): Gettexttize string.
28550 * normal/cmdline.c: Include `<grub/i18n.h>'.
28551 (grub_cmdline_get): Gettextizze.
28552 * normal/color.c: Include `<grub/i18n.h>'.
28553 (grub_parse_color_name_pair): Gettexttize strings.
28554 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
28555 string (use `print_message_indented').
28556 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
28557 `include/grub/normal.h'.
28558 (print_message_indented): Renamed to ...
28559 (grub_print_message_indented): ... this. Remove `static' qualifer (now
28560 used in normal/main.c).
28561 (print_message): Use `grub_print_message_indented' instead of
28562 `print_message_indented'.
28563 (print_timeout): Likewise.
28564 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
28565 (grub_normal_print_device_info): Gettexttize strings.
28566 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
28568 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
28570 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
28571 of arguments. Return number of tokens and not arguments. All users
28574 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
28576 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
28577 non-MSDOS paritions.
28579 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
28581 * include/grub/types.h (UNUSED): Removed since it conflicts with
28582 NetBSD headers. All users changed to direct __attribute__ ((unused)).
28583 Reported by Grégoire Sutre.
28585 2009-12-19 Carles Pina i Estany <carles@pina.cat>
28587 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
28588 (grub_print_ucs4_alloc): Likewise.
28589 (grub_getstringwidth): Likewise.
28590 * normal/main.c (grub_normal_init_page): Gettextize version string.
28591 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
28592 (getstringwidth): Renamed to ...
28593 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
28594 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
28595 (grub_print_ucs4): Remove `static' qualifer (now used in
28597 * po/POTFILES: Add normal/main.c.
28599 2009-12-19 Carles Pina i Estany <carles@pina.cat>
28601 * normal/menu_text.c (STANDARD_MARGIN): New macro.
28602 (print_message_indented): Add `margin_left' and `margin_right'
28604 (print_message): Update `print_message_indented' calls. Adds '\n' to the
28606 (print_timeout): Use `print_message_indented' to print the message.
28607 Deletes `second_stage' parameter.
28608 (run_menu): Update `print_timeout' calls.
28610 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28612 Fix console palette on OpenFirmware.
28614 * term/ieee1275/ofconsole.c (MAX): Removed.
28615 (colors): Redone based on VGA palette.
28616 (grub_ofconsole_setcolor): Discard brightness bit since only 8
28617 colors are supported.
28618 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
28620 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28622 Fix potential EfiEmu double prepare.
28624 * efiemu/main.c (prepared): New variable
28625 (grub_efiemu_unload): Set prepare to '0'.
28626 (grub_efiemu_prepare): Return if already prepared. Set prepared.
28628 set_virtual_address_map support.
28630 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
28632 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
28634 (grub_efiemu_crc32): Likewise.
28635 (grub_efiemu_crc64): Likewise.
28636 (grub_efiemu_set_virtual_address_map): Likewise.
28637 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
28639 (grub_autoefi_set_virtual_address_map): Likewise.
28640 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
28641 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
28642 Restructure flow to accomodate it.
28643 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
28644 (grub_efiemu_crc): Recompute CRC32.
28645 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
28646 (efiemu_ptv_relocated): ... this. Made global. All users updated.
28647 * efiemu/symbols.c (relocated_handle): New variable.
28648 (grub_efiemu_free_syms): Free relocated_handle.
28649 (grub_efiemu_alloc_syms): Allocate relocated_handle.
28650 (grub_efiemu_write_sym_markers): New function.
28651 (grub_efiemu_set_virtual_address_map): Likewise.
28653 Newer XNU parameters.
28655 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
28656 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
28657 (grub_xnu_fill_devicetree): New prototype.
28658 (grub_xnu_heap_real_start): New variable.
28659 * loader/xnu.c (get_name_ptr): New function.
28660 (grub_xnu_load_driver): Fill namelen and name.
28662 64-bit xnu support.
28664 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
28665 and 'loader/macho64.c'.
28666 * conf/i386-pc.rmk: Likewise.
28667 * conf/x86_64-efi.rmk: Likewise.
28668 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
28669 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
28670 * include/grub/macho.h (grub_macho_segment64): New structure.
28671 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
28672 (grub_macho_size32): ... to this.
28673 (grub_macho32_get_entry_point): Renamed from ...
28674 (grub_macho_get_entry_point32): ... to this.
28675 (grub_macho_contains_macho64): New prototype.
28676 (grub_macho_size64): Likewise.
28677 (grub_macho_get_entry_point64): Likewise.
28678 (grub_macho32_load): Renamed from ...
28679 (grub_macho_load32): ... to this.
28680 (grub_macho32_filesize): Renamed from ...
28681 (grub_macho_filesize32): ... to this.
28682 (grub_macho32_readfile): Renamed from ...
28683 (grub_macho_readfile32): ... to this.
28684 (grub_macho_filesize64): New prototype.
28685 (grub_macho_readfile64): Likewise.
28686 (grub_macho_parse32): Likewise.
28687 (grub_macho_parse64): Likewise.
28688 * loader/macho.c: Split into ...
28689 * loader/machoXX.c: ... and this. Replace 32 with XX.
28690 * loader/macho32.c: New file.
28691 * loader/macho64.c: Likewise.
28692 * loader/xnu.c (grub_xnu_is_64bit): New variable.
28693 (grub_cmd_xnu_kernel): Make 32-bit only.
28694 (grub_cmd_xnu_kernel64): New function.
28695 (grub_xnu_load_driver): Support Mach-O 64.
28696 (grub_cmd_xnu_mkext): Likewise.
28697 * util/grub.d/30_os-prober.in (osx_entry): New function.
28698 Generate entries for 64-bit boot too.
28700 Eliminate ad-hoc tree format in XNU and EfiEmu.
28702 * efiemu/main.c (grub_efiemu_prepare): Update comment.
28703 * efiemu/pnvram.c: Rewritten to use environment variables.
28706 Inline utf16_to_utf8.
28708 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
28709 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
28711 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
28713 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
28714 * commands/usbtest.c (grub_usb_get_string): ... move here.
28715 (usb_print_str): Fix error handling.
28716 * include/grub/usb.h (grub_usb_get_string): Remove.
28718 UTF-8 to UTF-16 transformation.
28720 * conf/common.rmk (pkglib_MODULES): Add charset.mod
28721 (charset_mod_SOURCES): New variable.
28722 (charset_mod_CFLAGS): Likewise.
28723 (charset_mod_LDFLAGS): Likewise.
28724 * include/grub/utf.h: New file.
28725 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
28727 Support for device properties.
28729 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
28730 (grub_xnu_devprop_device_header): Likewise.
28731 (grub_xnu_devprop_device_descriptor): Likewise.
28732 (grub_xnu_devprop_add_device): New prototype.
28733 (grub_xnu_devprop_remove_device): Likewise.
28734 (grub_xnu_devprop_remove_property): Likewise.
28735 (grub_xnu_devprop_add_property_utf8): Likewise.
28736 (grub_xnu_devprop_add_property_utf16): Likewise.
28737 (grub_cpu_xnu_init): Likewise.
28738 (grub_cpu_xnu_fini): Likewise.
28739 (grub_cpu_xnu_unload): Likewise.
28740 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
28741 (property_descriptor): Likewise.
28742 (devices): New variable.
28743 (grub_xnu_devprop_remove_property): New function.
28744 (grub_xnu_devprop_add_device): Likewise.
28745 (grub_xnu_devprop_remove_device): Likewise.
28746 (grub_xnu_devprop_add_property): Likewise.
28747 (grub_xnu_devprop_add_property_utf8): Likewise.
28748 (grub_xnu_devprop_add_property_utf16): Likewise.
28749 (hextoval): Likewise.
28750 (grub_cpu_xnu_fill_devprop): Likewise.
28751 (grub_cmd_devprop_load): Likewise.
28752 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
28753 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
28754 (cmd_devprop_load): New variable.
28755 (grub_cpu_xnu_init): New function.
28756 (grub_cpu_xnu_fini): Likewise.
28757 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
28758 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
28759 (grub_cmd_xnu_devtree): Likewise.
28760 (hextoval): New function.
28761 (unescape): Likewise.
28762 (grub_xnu_fill_devicetree): Likewise.
28764 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
28765 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
28767 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28769 Workaround for broken ATI VBE.
28771 * video/i386/pc/vbe.c (last_set_mode): New variable.
28772 (grub_vbe_set_video_mode): Set 'last_set_mode'.
28773 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
28774 (grub_video_vbe_setup): Don't check for reserved flag.
28776 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
28778 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
28779 the `find' command.
28781 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
28783 UUID support for HFS.
28785 * fs/hfs.c (grub_hfs_uuid): New function.
28786 (grub_hfs_fs): New value .uuid.
28787 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
28789 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
28791 Fix a segfault with parsing unknown long options.
28793 * util/grub-mkrelpath.c (options): Zero terminate it.
28795 2009-12-13 Carles Pina i Estany <carles@pina.cat>
28797 * include/grub/misc.h (grub_puts): New declaration.
28798 (grub_puts_): Likewise.
28799 * kern/misc.c (grub_puts): New definition.
28800 (grub_puts_): Likewise.
28802 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
28804 * util/grub-probe.c (probe): Improve error message.
28806 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
28808 * loader/i386/multiboot_elfxx.c
28809 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
28812 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
28814 Relocator framework
28816 * loader/i386/xnu_helper.S: Removed. All users updated.
28817 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
28818 (relocator_mod_SOURCES): New variable.
28819 (relocator_mod_CFLAGS): Likewise.
28820 (relocator_mod_LDFLAGS): Likewise.
28821 (relocator_mod_ASFLAGS): Likewise.
28822 * conf/x86_64.rmk: Likewise.
28823 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
28824 (grub_multiboot_payload_entry_offset): Likewise.
28825 (grub_multiboot_forward_relocator): Likewise.
28826 (grub_multiboot_forward_relocator_end): Likewise.
28827 (grub_multiboot_backward_relocator): Likewise.
28828 (grub_multiboot_backward_relocator_end): Likewise.
28829 (grub_multiboot_payload_eip): New variable.
28830 (grub_multiboot_payload_orig): Likewise.
28831 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
28832 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
28833 * include/grub/i386/memory.h
28834 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
28835 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
28836 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
28837 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
28838 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
28839 * include/grub/i386/relocator.h: New file.
28840 * include/grub/x86_64/relocator.h: Likewise.
28841 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
28842 (XNU_RELOCATOR): New macro.
28843 (grub_xnu_launcher_start): Remove.
28844 (grub_xnu_launcher_end): Likewise.
28845 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
28846 (grub_xnu_heap_real_start): Remove.
28847 (grub_xnu_heap_start): Change to void *. All users updated.
28848 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
28849 * lib/i386/relocator.c: New file.
28850 * lib/i386/relocator_asm.S: Likewise.
28851 * lib/i386/relocator_backward.S: Likewise.
28852 * lib/mips/relocator.c: Likewise.
28853 * lib/mips/relocator_asm.S: Likewise.
28854 * lib/relocator.c: Likewise.
28855 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
28857 (playground): Likewise.
28858 (grub_multiboot_payload_orig): New variable.
28859 (grub_multiboot_payload_dest): Likewise.
28860 (grub_multiboot_payload_size): Likewise.
28861 (grub_multiboot_payload_eip): Likewise.
28862 (grub_multiboot_payload_esp): Likewise.
28863 (grub_multiboot_boot): Use grub_relocator32_boot.
28864 (grub_multiboot_unload): Free relocators.
28865 (grub_multiboot): Setup stack. Use relocators.
28866 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
28867 (grub_multiboot_load_elfXX): Use relocators.
28868 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
28869 (grub_multiboot_payload_size): Likewise.
28870 (grub_multiboot_payload_dest): Likewise.
28871 (grub_multiboot_payload_entry_offset): Likewise.
28872 (grub_multiboot_forward_relocator): Likewise.
28873 (grub_multiboot_backward_relocator): Likewise.
28874 (grub_multiboot_real_boot): Likewise.
28875 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
28876 (grub_xnu_entry_point): Likewise.
28877 (grub_xnu_arg1): Likewise.
28878 (grub_xnu_stack): Likewise.
28879 (grub_xnu_launch): Removed.
28880 (grub_xnu_boot_resume): New function.
28881 (grub_xnu_boot): Use relocators.
28882 * loader/i386/xnu_helper.S: Removed.
28883 * loader/xnu.c (grub_xnu_heap_start): New variable.
28884 (grub_xnu_heap_size): Likewise.
28885 (grub_xnu_heap_malloc): Use relocators.
28886 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
28888 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
28890 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
28893 2009-12-13 Carles Pina i Estany <carles@pina.cat>
28895 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
28896 GRUB_ERR_NONE before calling grub_env_set.
28898 2009-12-12 Robert Millan <rmh@aybabtu.com>
28900 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
28901 * genmk.rb (video): New variable.
28902 (CLEANFILES, VIDEOFILES): Add #{video}.
28903 (#{video}): New target rule.
28904 * genvideolist.sh: New file.
28905 * Makefile.in (pkglib_DATA): Add video.lst.
28906 (video.lst): New target rule.
28907 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
28909 * util/grub.d/30_os-prober.in: Replace `vbe' with
28910 ${GRUB_VIDEO_BACKEND}.
28912 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
28914 * THANKS: Add David Miller.
28916 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
28918 libpciaccess support.
28920 * Makefile.in (LIBPCIACCESS): New variable.
28921 (enable_grub_emu_pci): Likewise.
28922 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
28923 util/pci.c and commands/lspci.c.
28924 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
28925 * configure.ac (grub-emu-pci): New option.
28926 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
28927 (grub_pci_device_unmap_range): Likewise.
28928 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
28929 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
28930 (grub_pci_address_t) [!GRUB_UTIL]: New type.
28931 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
28932 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
28933 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
28934 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
28935 * include/grub/pciutils.h: New file.
28936 * util/pci.c: Likewise.
28938 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
28940 * util/misc.c: Don't include <errno.h> twice.
28942 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
28944 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
28945 name in an error message.
28946 (grub_biosdisk_rw): Likewise.
28948 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28950 Eliminate NTFS 4Gib barrier.
28952 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
28953 (read_run_data): Likewise.
28954 (grub_ntfs_read_run_list): Likewise.
28955 (grub_ntfs_read_block): Likewise.
28956 (grub_ntfs_iterate_dir): Likewise.
28957 (read_mft): Likewise.
28958 (read_data): Likewise.
28960 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
28961 to avoid 64-bit division
28962 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
28963 (grub_ntfs_rlst): Use grub_disk_addr_t.
28965 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28967 Eliminate grub-fstest 4Gib barrier.
28969 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
28970 (read_file): Fix error reporting.
28972 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28974 Eliminate hexdump 4Gib barrier.
28976 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
28977 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
28979 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28981 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
28984 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
28986 Remove miscellaneous files in distclean target.
28988 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
28990 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
28992 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
28993 if they're already set. This resolves the conflict between my
28994 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
28995 fixing the --grub-probe option again.
28996 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
28997 change on 2009-10-06, so that we now once again source
28998 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
29000 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
29002 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
29003 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
29004 `util/devicemap.c'.
29006 2009-12-08 Carles Pina i Estany <carles@pina.cat>
29008 * include/grub/misc.h (grub_printf_): New declaration.
29009 * kern/misc.c (grub_printf_): New definition.
29010 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
29011 instead of `grub_printf' and `_'.
29012 * normal/menu_entry.c (store_completion): Likewise.
29014 (grub_menu_entry_run): Likewise.
29015 * normal/menu_text.c (grub_wait_after_message): Likewise.
29016 (notify_booting): Likewise.
29017 (notify_fallback): Likewise.
29018 (notify_execution_failure): Likewise.
29020 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
29022 * configure.ac: Check for vasprintf.
29023 * util/misc.c (asprintf): Move allocation from here ...
29024 (vasprintf): ... to here. New function.
29025 (xasprintf): New function.
29026 * include/grub/util/misc.h (vasprintf, xasprintf): Add
29028 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
29029 * util/grub-mkfont.c (write_font): Likewise.
29030 * util/grub-probe.c (probe): Likewise.
29031 * util/hostdisk.c (make_device_name): Likewise.
29033 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
29035 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
29036 anything even prefixed with 'cdrom' as a cdrom.
29038 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
29040 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
29043 2009-12-05 Carles Pina i Estany <carles@pina.cat>
29045 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
29046 grub_gettext_msg_list.
29047 (grub_gettext_gettranslation_from_position): Return const char *
29049 (grub_gettext_translate): Add the translated strings into a list,
29050 returns from the list if existing there.
29051 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
29052 (grub_gettext_delete_list): Delete the list.
29053 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
29054 lang environment variable is changed.
29055 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
29057 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
29059 Rename kernel.mod to kernel.img.
29061 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
29062 (kernel_mod_EXPORTS): Rename to ...
29063 (kernel_img_EXPORTS): ... this.
29064 (kernel_mod_SOURCES): Rename to ...
29065 (kernel_img_SOURCES): ... this.
29066 (kernel_mod_HEADERS): Rename to ...
29067 (kernel_img_HEADERS): ... this. All users updated.
29068 (kernel_mod_CFLAGS): Rename to ...
29069 (kernel_img_CFLAGS): ... this.
29070 (kernel_mod_ASFLAGS): Rename to ...
29071 (kernel_img_ASFLAGS): ... this.
29072 (kernel_mod_LDFLAGS): Rename to ...
29073 (kernel_img_LDFLAGS): ... this.
29074 * conf/x86_64-efi.rmk: Likewise.
29075 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
29076 (read_kernel_image): ... this. All users updated.
29077 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
29079 2009-12-05 Carles Pina i Estany <carles@pina.cat>
29081 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
29082 (print_spaces): New function.
29083 (grub_print_ucs4): New function.
29084 (getstringwidth): New function.
29085 (print_message_indented): New function.
29086 (print_message): Gettexttize strings using print_message_indented.
29087 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
29089 (get_entry_number): Gettextize and uses dynamic terminal width.
29090 (notify_booting, notify_fallback, notify_execution_failure):
29092 * normal/menu_entry.c (store_completion): Cleanup the gettextized
29095 (grub_menu_entry_run): Likewise.
29096 * PO/POTFILES: Add normal/menu_entry.c.
29098 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
29100 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
29102 2009-12-05 Carles Pina i Estany <carles@pina.cat>
29104 * util/grub-install.in: Install gettext .mo files.
29105 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
29107 2009-12-05 Carles Pina i Estany <carles@pina.cat>
29109 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
29112 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
29114 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
29115 non-firmware-dependant one in realmode.S takes precedence.
29117 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
29119 * commands/halt.c: Replace misc arch-specific headers with
29121 * commands/reboot.c: Likewise.
29122 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
29124 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
29125 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
29126 (kernel_img_SOURCES): ... to here.
29128 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
29129 * include/grub/i386/pc/init.h: Likewise.
29130 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
29131 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
29133 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
29135 * include/grub/i386/halt.h: Remove.
29136 * include/grub/i386/reboot.h: Likewise.
29138 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
29140 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
29142 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
29143 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
29144 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
29146 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
29147 * util/sparc64/ieee1275/grub-setup.c: Likewise.
29148 (usage): Add missing comma in printf.
29150 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
29152 Use the same reboot approach on i386 coreboot and qemu as we do on
29155 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
29156 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
29157 * kern/i386/reboot.c: Remove.
29158 * include/grub/i386/reboot.h (grub_reboot): Export function.
29159 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
29160 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
29161 0xf000:0xfff0 instead of 0xffff:0x0000.
29162 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
29163 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
29165 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
29167 Fix $srcdir != $objdir build.
29169 * Makefile.in (po/%.po): Rewrite as ...
29170 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
29172 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
29174 Fix GNU/Hurd grub-install crash.
29175 * util/grub-probe.c (probe): Try to access `path' only when it is not
29178 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
29180 Correct module naming.
29182 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
29183 (GRUB_MOD_INIT(efi_uga)): ... to this
29184 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
29185 (GRUB_MOD_FINI(efi_uga)): ... to this
29186 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
29187 (GRUB_MOD_INIT(efi_gop)): ... to this
29188 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
29189 (GRUB_MOD_FINI(efi_gop)): ... to this
29191 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
29193 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
29195 (usage): Translate `arg' strings using gettext().
29196 Thanks to Jordi Mallach for the suggestion.
29198 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
29200 GOP support. Based on patch from Bean
29201 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
29203 * video/efi_gop.c: New file.
29204 * include/grub/efi/graphics_output.h: Likewise.
29205 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
29206 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
29208 * conf/x86_64-efi.rmk: Likewise.
29210 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
29212 Rename efi_fb to efi_uga.
29214 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
29216 (efi_fb_mod_SOURCES): Rename this ...
29217 (efi_uga_mod_SOURCES): ... to this.
29218 (efi_fb_mod_CFLAGS): Rename this ...
29219 (efi_uga_mod_CFLAGS): ... to this.
29220 (efi_fb_mod_LDFLAGS): Rename this ...
29221 (efi_uga_mod_LDFLAGS): ... to this.
29222 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
29224 (efi_fb_mod_SOURCES): Rename this ...
29225 (efi_uga_mod_SOURCES): ... to this.
29226 (efi_fb_mod_CFLAGS): Rename this ...
29227 (efi_uga_mod_CFLAGS): ... to this.
29228 (efi_fb_mod_LDFLAGS): Rename this ...
29229 (efi_uga_mod_LDFLAGS): ... to this.
29230 * video/efi_fb.c: Move this ...
29231 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
29233 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
29235 * po/README: New file. Explain our PO file workflow.
29237 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
29239 * po/ChangeLog: Remove. Move relevant entries back to ...
29240 * ChangeLog: ... here.
29241 * po/ca.po: Remove (now handled by TLP).
29242 * po/id.po: Likewise.
29243 * po/zh_CN.po: Likewise.
29244 * Makefile.in (LINGUAS): Initialize in a way that supports
29247 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
29249 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
29250 reliing on po/LINGUAS.
29251 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
29252 (po/%.po): ... this.
29254 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
29256 * util/i386/efi/grub-mkimage.c: Include "progname.h".
29257 (main): Use `program_name' instead of nonexistent `progname'.
29259 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
29261 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
29262 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
29264 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
29266 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
29268 * conf/i386-efi.rmk: Likewise.
29269 * conf/i386-ieee1275.rmk: Likewise.
29270 * conf/powerpc-ieee1275.rmk: Likewise.
29271 * conf/sparc64-ieee1275.rmk: Likewise.
29272 * conf/x86_64-efi.rmk: Likewise.
29274 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
29276 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
29278 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
29280 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
29282 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
29284 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
29285 (grub_mkdevicemap_SOURCES): New variable.
29286 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
29287 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
29288 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
29289 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
29290 (grub_mkdevicemap_SOURCES): Remove.
29291 * conf/i386-efi.rmk: Likewise.
29292 * conf/i386-ieee1275.rmk: Likewise.
29293 * conf/i386-pc.rmk: Likewise.
29294 * conf/powerpc-ieee1275.rmk: Likewise.
29295 * conf/sparc64-ieee1275.rmk: Likewise.
29296 * conf/x86_64-efi.rmk: Likewise.
29297 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
29298 (usage): Fix strings to use `program_name'.
29299 (main): Initialize gettext.
29300 * util/grub-editenv.c: Likewise.
29301 * util/grub-emu.c: Likewise.
29302 * util/grub-fstest.c: Likewise.
29303 * util/grub-mkdevicemap.c: Likewise.
29304 * util/grub-mkfont.c: Likewise.
29305 * util/grub-mkrelpath.c: Likewise.
29306 * util/grub-pe2elf.c: Likewise.
29307 * util/grub-probe.c: Likewise.
29308 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
29309 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
29310 * util/sparc64/ieee1275/grub-setup.c: Likewise.
29312 * util/misc.c: Include `"progname.h"'.
29313 (progname): Remove variable.
29314 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
29316 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
29318 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
29319 printf and print a newline after the menuentry header line.
29320 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29322 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
29324 autoconf >= 2.60 support $(localedir).
29326 * INSTALL: Note that autoconf 2.60 is required.
29327 * configure.ac (AC_PREREQ): Bump to 2.60.
29328 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
29329 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29331 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
29333 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
29336 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
29338 * normal/main.c (grub_normal_read_line): Fix off-by-one
29341 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
29343 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
29344 "parser.grub" in grub_command_execute() call.
29346 2009-11-24 Carles Pina i Estany <carles@pina.cat>
29348 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
29349 * conf/i386-efi.rmk: Likewise.
29350 * conf/i386-ieee1275.rmk: Likewise.
29351 * conf/i386-pc.rmk: Likewise.
29352 * conf/powerpc-ieee1275.rmk: Likewise.
29353 * conf/sparc64-ieee1275.rmk: Likewise.
29354 * conf/x86_64-efi.rmk: Likewise.
29355 * gettext/gettex.c: Include <grub/i18n.h>.
29356 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
29358 * include/grub/i18n.h: ... to here
29359 * include/grub/i18n.h: ... to here.
29360 * kern/misc.c: Include <grub/i18n.h>
29361 (grub_gettext_dummy): Move above user.
29363 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29365 * util/Makefile.in (install-local): Convert a `for' into a normal
29368 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
29370 * autogen.sh: Add automake call.
29371 * config.guess: Remove.
29372 * config.sub: Likewise.
29373 * install-sh: Likewise.
29375 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29377 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
29379 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29381 * util/Makefile.in (install-local): Convert a make `$(foreach)'
29382 function to a normal shell `for'.
29384 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29386 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
29388 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29390 * util/grub-mkrelpath.c: New file.
29391 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
29392 (grub_mkrelpath_SOURCES): New variable.
29393 * include/grub/util/misc.h: New function prototype.
29394 * util/misc.c (make_system_path_relative_to_its_root): New function.
29396 * util/grub-mkconfig_lib.in (bindir): New variable.
29397 (grub_mkrelpath): Likewise.
29398 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
29400 * util/probe.c (probe): Make the file path relative to its root.
29401 Change a info message to use the GRUB path. Enable again the
29402 check if we can read the file with GRUB facilities.
29404 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
29407 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29409 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
29412 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29414 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
29417 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29419 * util/getroot.c (grub_util_is_dmraid): New function.
29420 (grub_util_get_dev_abstraction): Treat dmraid and multipath
29421 devices as normal ones, not as LVM.
29423 2009-11-23 Carles Pina i Estany <carles@pina.cat>
29425 * conf/common.rmk: Add grub-gettext_lib target and updates
29426 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
29428 * gettext/gettext.c: New file. (Reads mo files).
29429 * include/grub/file.h (grub_file_pread): New prototype.
29430 * include/grub/i18n.h (_): New prototype.
29431 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
29433 * kern/misc.c (grub_gettext_dummy): New function.
29434 * normal/menu_text.c: Include <grub/i18n.h>.
29435 * normal/menu_text.c (print_timeout): Gettexttize string.
29436 * normal/menu_text.c (print_message): Gettexttize string.
29437 * po/POTFILES: Add `normal/menu_text.c'.
29438 * po/ca.po: Add new translations.
29439 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
29440 gettext module and defines locale_dir and lang in grub.cfg.
29441 * NEWS: Add gettext support.
29443 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29445 * util/hostdisk.c: Include `<grub/i18n.h>'.
29446 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
29447 (make_device_name): Rewrite using asprintf.
29448 (convert_system_partition_to_system_disk): Replace 0 with NULL.
29449 (find_system_device): If a device is not found, generate one just
29450 by reusing the OS path name.
29451 (read_device_map): Make it permissible for device.map not to exist.
29453 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29455 * script/sh/execute.c: Move from here ...
29456 * script/execute.c: ... to here. Update all users.
29457 * script/sh/function.c: Move from here ...
29458 * script/function.c: ... to here. Update all users.
29459 * script/sh/lexer.c: Move from here ...
29460 * script/lexer.c: ... to here. Update all users.
29461 * script/sh/main.c: Move from here ...
29462 * script/main.c: ... to here. Update all users.
29463 * script/sh/parser.y: Move from here ...
29464 * script/parser.y: ... to here. Update all users.
29465 * script/sh/script.c: Move from here ...
29466 * script/script.c: ... to here. Update all users.
29468 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29470 * configure.ac: Detect all `emu' platforms. Define
29471 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
29472 --enable-grub-emu logic. Disable include/grub/machine
29473 symlink on `emu' platforms.
29475 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
29476 * gensymlist.sh.in: Likewise.
29478 * include/grub/i386/coreboot/machine.h: Remove file.
29479 * include/grub/i386/efi/machine.h: Likewise.
29480 * include/grub/i386/ieee1275/machine.h: Likewise.
29481 * include/grub/i386/pc/machine.h: Likewise.
29482 * include/grub/i386/qemu/machine.h: Likewise.
29483 * include/grub/powerpc/ieee1275/machine.h: Likewise.
29484 * include/grub/sparc64/ieee1275/machine.h: Likewise.
29485 * include/grub/x86_64/efi/machine.h: Likewise.
29487 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
29488 * commands/halt.c: Likewise.
29489 * commands/reboot.c: Likewise.
29490 * include/grub/autoefi.h: Likewise.
29491 * include/grub/i386/at_keyboard.h: Likewise.
29492 * include/grub/i386/kernel.h: Likewise.
29493 * include/grub/i386/loader.h: Likewise.
29494 * include/grub/i386/pc/memory.h: Likewise.
29495 * kern/dl.c: Likewise.
29496 * kern/i386/coreboot/init.c: Likewise.
29497 * loader/i386/bsd.c: Likewise.
29498 * loader/i386/linux.c: Likewise.
29499 * loader/multiboot_loader.c: Likewise.
29500 * term/i386/pc/serial.c: Likewise.
29501 * term/usb_keyboard.c: Likewise.
29503 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
29504 `<grub/machine/machine.h>'
29505 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
29506 * util/misc.c: Remove `<grub/machine/machine.h>' and
29507 `<grub/machine/time.h>'.
29509 * Makefile.in (enable_grub_emu): Remove variable.
29510 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
29512 * conf/any-emu.rmk: New file.
29513 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
29514 (grub_emu_init.c): Move from here ...
29515 * conf/any-emu.rmk: ... to here.
29517 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
29518 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
29519 * conf/any-emu.rmk: ... to here.
29521 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29523 * include/grub/parser.h (grub_parser_register): Document need
29524 of `name' parameter.
29525 * normal/main.c (grub_normal_read_line): Simplify prompt string.
29526 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
29529 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29531 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
29533 * include/grub/i18n.h (N_): New macro.
29534 * util/mkisofs/mkisofs.h: Likewise.
29535 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
29537 (usage): Use gettext() to translate help strings when printing them.
29539 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29541 Based on patch from Bean
29542 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
29544 * video/efi_fb.c: New file.
29545 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
29546 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
29548 * conf/x86_64-efi.rmk: Likewise.
29550 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
29552 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
29553 * util/i386/pc/grub-setup.c: Likewise.
29555 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
29557 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
29559 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
29560 file_get_storage_info to implement grub_guess_root_device.
29562 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29564 * Makefile.in (target): Use make's builtin $(shell) function
29565 instead of calling directly $(SHELL) to create the locale directories,
29566 inside the $(foreach) function.
29568 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29570 * util/grub-mkrescue.in: Print an error and usage if output option
29571 has not been given.
29573 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29575 Patch from Loïc Minier <loic.minier@ubuntu.com>.
29576 * util/grub.d/30_os-prober.in: Cope with Linux entries where
29577 root and /boot are on different devices.
29579 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29581 Fix build for srcdir != objdir.
29583 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
29584 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
29586 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
29587 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
29588 reference for input.
29590 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29592 * util/grub-mkrescue.in: Use source directory direcly (without copiing
29593 or hardlinking it). Remove -J option, Joliet is not compatible with
29594 multiple source directories.
29596 2009-11-21 Carles Pina i Estany <carles@pina.cat>
29597 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29599 * util/grub-mkrescue.in: Recognize `--override-directory' option.
29600 (process_input_dir): New function. Process an arbitrary input
29602 Misc adjustments to support both "override mode" and system-wide mode.
29604 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
29606 * configure.ac (UNIFONT_BDF): Rename to ...
29607 (FONT_SOURCE): ... this. Update all users.
29609 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
29611 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
29612 to the list of unifont files to look for.
29614 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29616 Patch from Joe Auricchio <jauricchio@gmail.com>
29617 * commands/minicmd.c (grub_mini_cmd_clear): New function.
29618 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
29619 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
29621 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
29623 * Makefile.in (install-local): Add a missing backslash.
29625 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
29627 * include/grub/x86_64/io.h: New file.
29629 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
29632 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
29633 Include `"progname.h"'.
29634 (main): Initialize gettext.
29635 * util/i386/pc/grub-setup.c: Gettexttize.
29636 * util/i386/pc/grub-mkimage.c: Likewise.
29638 * Makefile.in (po/*.po): Redefine as ...
29639 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
29641 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
29643 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29645 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
29646 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
29647 (program_name): Remove.
29648 (main): Initialize gettext support.
29649 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
29650 Include `<libintl.h>'.
29653 * util/mkisofs/eltorito.c: Gettexttize.
29654 * util/mkisofs/joliet.c: Likewise.
29655 * util/mkisofs/mkisofs.c: Likewise.
29656 * util/mkisofs/multi.c: Likewise.
29657 * util/mkisofs/rock.c: Likewise.
29658 * util/mkisofs/tree.c: Likewise.
29659 * util/mkisofs/write.c: Likewise.
29661 * po/POTFILES: Update with new files.
29663 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29665 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
29666 * util/mkisofs/iso9660.h: Likewise.
29667 * util/mkisofs/joliet.c: Likewise.
29668 * util/mkisofs/mkisofs.c: Likewise.
29669 * util/mkisofs/mkisofs.h: Likewise.
29670 * util/mkisofs/rock.c: Likewise.
29671 * util/mkisofs/tree.c: Likewise.
29672 * util/mkisofs/write.c: Likewise.
29674 * util/mkisofs/eltorito.c (rcsid): Remove.
29675 * util/mkisofs/hash.c: Likewise.
29676 * util/mkisofs/joliet.c: Likewise.
29677 * util/mkisofs/name.c: Likewise.
29678 * util/mkisofs/rock.c: Likewise.
29679 * util/mkisofs/tree.c: Likewise.
29680 * util/mkisofs/write.c: Likewise.
29682 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29684 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
29685 instead of static allocation.
29686 * util/mkisofs/match.h: Likewise.
29688 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29690 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
29691 and `util/grub.d/10_linux.in'.
29692 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
29693 translatable Shell files.
29695 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29697 * Makefile.in ($(srcdir)/aclocal.m4): New target.
29699 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29701 * INSTALL: Document Automake is needed for bootstrap.
29702 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
29703 * util/grub.d/10_kfreebsd.in (bindir): New variable.
29704 Add gettext initialization.
29705 (kfreebsd_entry): Make menuentry output translatable.
29707 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29709 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
29710 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
29711 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
29712 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
29713 (LINGUAS): Auto-generate using `po/LINGUAS'.
29714 * po/LINGUAS: New file.
29716 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29718 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
29720 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
29721 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
29722 bindtextdomain() calls for gettext initialization.
29724 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29726 * gnulib/progname.c: New file (imported from Gnulib).
29727 * gnulib/progname.h: Likewise.
29728 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
29729 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
29730 (usage): Replace `progname' with `program_name'.
29731 (main): Use set_program_name() for program name initialization.
29733 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29735 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
29737 * Makefile.in (CPPFLAGS): ... to here.
29739 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29741 * aclocal.m4: Move from here ...
29742 * acinclude.m4: ... to here.
29743 * autogen.sh: Add call to `aclocal'.
29744 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
29746 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29748 * Makefile.in (CLEANFILES): Add `po/*.mo'.
29749 (LINGUAS): New variable.
29750 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
29751 (install-local): Install MO files.
29752 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
29753 * include/grub/i18n.h: New file.
29754 * po/POTFILES: New file.
29755 * po/ca.po: New file.
29756 * util/grub.d/10_linux.in (bindir): New variable.
29757 Add gettext initialization.
29758 (linux_entry): Make menuentry output translatable.
29759 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
29760 (usage): Make --help output translatable.
29761 (main): Initialize gettext.
29763 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29765 * import_gcry.py: New file (written by Vladimir with minor
29767 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
29769 * INSTALL: Document that Python is required for bootstrap.
29771 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29773 Import ciphers from libgcrypt 1.4.4.
29775 * lib/libgcrypt/cipher/ChangeLog
29776 * lib/libgcrypt/cipher/ac.c
29777 * lib/libgcrypt/cipher/arcfour.c
29778 * lib/libgcrypt/cipher/bithelp.h
29779 * lib/libgcrypt/cipher/blowfish.c
29780 * lib/libgcrypt/cipher/camellia-glue.c
29781 * lib/libgcrypt/cipher/camellia.c
29782 * lib/libgcrypt/cipher/camellia.h
29783 * lib/libgcrypt/cipher/cast5.c
29784 * lib/libgcrypt/cipher/cipher.c
29785 * lib/libgcrypt/cipher/crc.c
29786 * lib/libgcrypt/cipher/des.c
29787 * lib/libgcrypt/cipher/dsa.c
29788 * lib/libgcrypt/cipher/ecc.c
29789 * lib/libgcrypt/cipher/elgamal.c
29790 * lib/libgcrypt/cipher/hash-common.c
29791 * lib/libgcrypt/cipher/hash-common.h
29792 * lib/libgcrypt/cipher/hmac-tests.c
29793 * lib/libgcrypt/cipher/md.c
29794 * lib/libgcrypt/cipher/md4.c
29795 * lib/libgcrypt/cipher/md5.c
29796 * lib/libgcrypt/cipher/primegen.c
29797 * lib/libgcrypt/cipher/pubkey.c
29798 * lib/libgcrypt/cipher/rfc2268.c
29799 * lib/libgcrypt/cipher/rijndael-tables.h
29800 * lib/libgcrypt/cipher/rijndael.c
29801 * lib/libgcrypt/cipher/rmd.h
29802 * lib/libgcrypt/cipher/rmd160.c
29803 * lib/libgcrypt/cipher/rsa.c
29804 * lib/libgcrypt/cipher/seed.c
29805 * lib/libgcrypt/cipher/serpent.c
29806 * lib/libgcrypt/cipher/sha1.c
29807 * lib/libgcrypt/cipher/sha256.c
29808 * lib/libgcrypt/cipher/sha512.c
29809 * lib/libgcrypt/cipher/tiger.c
29810 * lib/libgcrypt/cipher/twofish.c
29811 * lib/libgcrypt/cipher/whirlpool.c
29813 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29815 Fix build for systems without error().
29817 * gnulib/error.c: New file (imported from Gnulib).
29818 * gnulib/error.h: Likewise.
29819 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
29820 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
29821 (this variable is now used by error()).
29823 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
29825 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
29826 instead of relying that char is signed.
29828 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
29830 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
29831 blocksize different from specified.
29832 (grub_pxefs_read): Likewise.
29834 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
29836 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
29838 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
29839 (grub_ata_readwrite): Likewise. Update 2 format strings.
29840 (grub_atapi_read): Likewise.
29842 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
29843 * conf/i386.rmk (pkglib_MODULES): ... to here ...
29844 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
29845 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
29846 (ata_mod_LDFLAGS): Move from here ...
29847 * conf/i386.rmk: ... to here ...
29848 * conf/x86_64-efi.rmk: ... and here.
29849 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
29850 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
29852 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29854 Relicense multiboot.h, with RMS' blessing.
29856 * include/multiboot.h: Change to X11 license.
29858 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
29860 Support --version in grub-mkisofs.
29862 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
29863 (OPTION_VERSION): New macro.
29864 (ld_options): Recognize --version.
29865 (usage): Move `program_name' from here ...
29866 (program_name): ... to here. Add `static' qualifier.
29867 (main): Recognize `OPTION_VERSION'.
29869 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
29871 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
29872 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
29874 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
29876 Fix help2man generation for mkisofs.
29878 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
29879 (usage): Send output to stdout (rather than stderr).
29881 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
29883 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
29884 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
29885 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
29886 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
29887 (bin_SCRIPTS): Add `grub-mkfloppy'.
29888 (grub_mkfloppy_SOURCES): New variable.
29890 * util/grub-mkrescue.in: New file.
29891 * util/i386/pc/grub-mkfloppy.in: New file.
29893 * util/i386/coreboot/grub-mkrescue.in: Remove.
29894 * util/i386/pc/grub-mkrescue.in: Remove.
29896 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29898 * include/grub/multiboot.h (struct grub_multiboot_header): Move
29900 * include/multiboot.h (struct multiboot_header): ... to here. Update
29902 * include/grub/multiboot.h (struct grub_multiboot_info): Move
29904 * include/multiboot.h (struct multiboot_info): ... to here. Update
29906 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
29908 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
29910 * include/grub/multiboot.h (struct grub_mod_list): Move
29912 * include/multiboot.h (struct multiboot_mod_list): ... to here.
29915 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29917 * include/multiboot2.h (multiboot_word): Rename from this ...
29918 (multiboot2_word): ... to this. Update all users.
29919 (multiboot_header): Rename from this ...
29920 (multiboot2_header): ... to this. Update all users.
29921 (multiboot_tag_header): Rename from this ...
29922 (multiboot2_tag_header): ... to this. Update all users.
29923 (multiboot_tag_start): Rename from this ...
29924 (multiboot2_tag_start): ... to this. Update all users.
29925 (multiboot_tag_name): Rename from this ...
29926 (multiboot2_tag_name): ... to this. Update all users.
29927 (multiboot_tag_module): Rename from this ...
29928 (multiboot2_tag_module): ... to this. Update all users.
29929 (multiboot_tag_memory): Rename from this ...
29930 (multiboot2_tag_memory): ... to this. Update all users.
29931 (multiboot_tag_unused): Rename from this ...
29932 (multiboot2_tag_unused): ... to this. Update all users.
29933 (multiboot_tag_end): Rename from this ...
29934 (multiboot2_tag_end): ... to this. Update all users.
29936 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29938 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
29939 this platform we should support Multiboot1 first.
29941 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
29942 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
29943 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
29945 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
29947 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
29948 of write calls (converting them to fwrite() if they aren't already).
29949 (get_torito_desc): Likewise.
29950 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
29952 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
29954 * util/i386/pc/grub-install.in: Move from here ...
29955 * util/grub-install.in: ... to here. Update all users.
29957 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
29959 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
29961 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
29963 Support for El Torito without floppy emulation.
29965 * util/mkisofs/eltorito.c: Include `<errno.h>'.
29966 (init_boot_catalog): Improve error handling.
29967 (get_torito_desc): Don't use floppy emulation unless requested by
29968 user. Patch boot information table when requested via
29969 `-boot-info-table'.
29970 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
29971 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
29972 (use_boot_info_table): New variables.
29973 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
29974 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
29975 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
29976 `--eltorito-emul-floppy'.
29977 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
29978 and `OPTION_ELTORITO_EMUL_FLOPPY'.
29979 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
29980 (use_boot_info_table, get_731): New prototypes.
29981 * util/mkisofs/write.c (get_731): New function.
29983 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
29985 Fix the generation of the man page.
29987 * util/pc/i386/grub-install.in: Source
29988 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
29990 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
29992 Large file support for grub-mkisofs.
29994 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
29995 * util/mkisofs/mkisofs.c (next_extent, last_extent)
29996 (session_start): Upgrade type to `uint64_t'. Update all users.
29997 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
29998 (struct directory_entry): Upgrade type of `starting_block' and
29999 `size' to `uint64_t'. Update all users.
30000 (struct deferred): Remove unused structure.
30001 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
30003 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
30004 file is larger than `UINT32_MAX'.
30005 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
30006 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
30008 (struct deferred_write): Upgrade type of `extent' and `size' to
30009 `uint64_t'. Update all users.
30010 (last_extent_written): Upgrade type to `uint64_t'. Update all
30012 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
30013 Update all users. Upgrade type of `remain' to `int64_t' and
30014 `use' to `size_t'. Use error() to handle fread() errors.
30015 (write_files): Rely on write_one_file() rather than calling
30016 xfwrite() directly.
30018 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
30020 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
30022 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30024 * util/mkisofs/fnmatch.c: Remove.
30025 * util/mkisofs/getopt1.c: Likewise.
30026 * util/mkisofs/getopt.c: Likewise.
30027 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
30028 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
30029 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
30030 `gnulib/getopt1.c' and `gnulib/getopt.c'.
30031 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
30033 * configure.ac: Detect `mingw32msvc' host_os.
30034 Check for lstat(), getuid() and getgid().
30036 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
30037 instances of `u_char' with `uint8_t'.
30039 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
30040 [!HAVE_GETUID] (getuid): New function (stub).
30041 [!HAVE_GETGID] (getgid): Likewise.
30042 [!HAVE_LSTAT] (lstat): Likewise.
30043 [!S_IROTH] (S_IROTH): New macro (dummy).
30044 [!S_IRGRP] (S_IRGRP): Likewise.
30046 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30048 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
30049 conditional expression).
30051 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30053 Import from Gnulib.
30055 * gnulib/fnmatch.c: New file.
30056 * gnulib/fnmatch.h: Likewise.
30057 * gnulib/fnmatch_loop.c: Likewise.
30058 * gnulib/getopt.c: Likewise.
30059 * gnulib/getopt.h: Likewise.
30060 * gnulib/getopt1.c: Likewise.
30061 * gnulib/getopt_int.h: Likewise.
30062 * gnulib/gettext.h: Likewise.
30064 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30066 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
30067 * normal/handler.c (read_handler_list): Likewise.
30069 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30073 * kern/command.c (grub_register_command_prio): Use
30074 grub_zalloc() instead of explicitly zeroing data.
30075 * kern/list.c: Include `<grub/mm.h>'.
30076 (grub_named_list_find): Replace `0' with `NULL'.
30077 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
30078 (fs_module_list): Change type to `grub_named_list_t'. Update all
30080 * normal/dyncmd.c (read_command_list): Add space between function
30081 call and parenthesis.
30082 * normal/handler.c (read_handler_list): Likewise.
30084 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30086 * normal/auth.c (punishment_delay): Moved from here ...
30087 (grub_auth_strcmp): ... to here (inside function).
30089 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30091 * include/grub/list.h (struct grub_named_list): Remove `const'
30092 qualifier from `name'.
30093 (struct grub_prio_list): Likewise.
30095 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30097 * normal/auth.c: Include `<grub/time.h>'.
30098 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
30100 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30102 * normal/auth.c (punishment_delay): New variable.
30103 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
30104 (grub_auth_check_authentication): Punish failed login attempts with
30105 an incremental (2^N) delay.
30107 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30109 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
30110 path with $(srcdir).
30112 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
30114 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
30116 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30118 * util/i386/coreboot/grub-mkrescue.in: New file.
30119 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
30122 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
30123 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
30124 * configure.ac: Add header and function checks to satisfy grub-mkisofs
30126 * util/mkisofs/defaults.h: New file.
30127 * util/mkisofs/eltorito.c: Likewise.
30128 * util/mkisofs/exclude.h: Likewise.
30129 * util/mkisofs/fnmatch.c: Likewise.
30130 * util/mkisofs/getopt.c: Likewise.
30131 * util/mkisofs/getopt1.c: Likewise.
30132 * util/mkisofs/hash.c: Likewise.
30133 * util/mkisofs/include/fctldefs.h: Likewise.
30134 * util/mkisofs/include/mconfig.h: Likewise.
30135 * util/mkisofs/include/prototyp.h: Likewise.
30136 * util/mkisofs/include/statdefs.h: Likewise.
30137 * util/mkisofs/iso9660.h: Likewise.
30138 * util/mkisofs/joliet.c: Likewise.
30139 * util/mkisofs/match.c: Likewise.
30140 * util/mkisofs/match.h: Likewise.
30141 * util/mkisofs/mkisofs.c: Likewise.
30142 * util/mkisofs/mkisofs.h: Likewise.
30143 * util/mkisofs/multi.c: Likewise.
30144 * util/mkisofs/name.c: Likewise.
30145 * util/mkisofs/rock.c: Likewise.
30146 * util/mkisofs/tree.c: Likewise.
30147 * util/mkisofs/write.c: Likewise.
30149 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
30151 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
30154 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30156 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
30157 `grub-mkimage' (and use $0 when possible).
30159 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30161 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
30162 error message for excessively large memory map.
30164 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30166 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
30169 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30171 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
30172 message for coreboot users.
30174 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
30176 Fix build with GNU gold.
30178 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
30179 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
30180 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
30182 * aclocal.m4: Likewise.
30184 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
30186 * configure.ac (AC_PREREQ): Bump to 2.59d.
30187 * INSTALL: Make it more clear when Autoconf and Ruby are
30188 needed and when to run `./autogen.sh'.
30190 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30192 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
30195 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30197 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
30199 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30201 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
30202 giving it to GNU Mach.
30204 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30206 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
30207 GNU partition number to get internal GRUB partition number.
30209 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30211 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
30212 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
30214 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
30216 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
30217 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
30220 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
30222 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
30224 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
30228 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
30229 `-isystem=$(srcdir)/include'.
30231 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
30233 * util/i386/pc/grub-install.in: Remove hint that device.map should be
30234 checked (grub-install doesn't currently rely on it).
30236 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
30240 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
30241 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
30242 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
30243 * conf/i386-ieee1275.rmk: Likewise.
30244 * conf/i386-pc.rmk: Likewise.
30245 * conf/powerpc-ieee1275.rmk: Likewise.
30246 * conf/sparc64-ieee1275.rmk: Likewise.
30247 * conf/x86_64-efi.rmk: Likewise.
30249 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
30251 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
30253 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
30255 * include/grub/misc.h: Stop checking for APPLE_CC.
30257 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
30259 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
30260 doesn't cause an infinite call loop.
30262 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
30264 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
30267 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30269 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
30271 * Makefile.in: Likewise.
30273 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30275 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
30277 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30279 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
30281 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30283 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
30285 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30287 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
30289 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
30291 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30293 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
30294 in $(MAKEINFO) invocation. This makes it clear in output that
30295 errors are being ignored.
30297 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30299 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
30301 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
30302 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
30303 * conf/i386-ieee1275.rmk: Likewise.
30304 * conf/i386-pc.rmk: Likewise.
30305 * conf/powerpc-ieee1275.rmk: Likewise.
30306 * conf/sparc64-ieee1275.rmk: Likewise.
30307 * conf/x86_64-efi.rmk: Likewise.
30309 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
30311 * util/grub-editenv.c (main): If only a command is given, use
30312 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
30313 (usage): FILENAME is now optional and has a default.
30315 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
30317 Improve grub-mkconfig performance when there are several menu
30318 entries on a single filesystem.
30320 * util/grub.d/10_linux.in (linux_entry): Cache the output of
30321 prepare_grub_to_access_device.
30322 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
30323 * util/grub.d/30_os-prober.in: Likewise.
30325 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30327 * util/grub.d/10_freebsd.in: Remove.
30328 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
30329 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
30331 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30333 * docs/grub.cfg: Fix example usage of *BSD loaders.
30335 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30337 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
30338 grub_util_error() call.
30340 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30342 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
30343 `reserved_first_sector' member.
30344 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
30345 `reserved_first_sector' to 1.
30346 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
30347 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
30348 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
30349 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
30350 filesystems which begin at first sector.
30351 (options): New option --skip-fs-probe.
30352 (main): Handle --skip-fs-probe and pass it to setup().
30354 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30356 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
30357 (memset): Fix function prototype.
30359 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30360 2009-10-25 Vasily Averin <vvs@parallels.com>
30362 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
30363 `dirent.direntlen == 0'.
30365 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30367 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
30369 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
30371 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30373 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
30374 `__trampoline_setup' and `__ucmpdi2'.
30375 * include/grub/powerpc/libgcc.h: Only export symbols for functions
30376 that libgcc provides.
30378 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30380 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
30381 * include/grub/sparc64/libgcc.h (memset): Likewise.
30382 * include/grub/misc.h (memset, memcmp): New function prototypes.
30384 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30386 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
30388 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
30390 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30392 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
30393 * docs/grub.cfg: Compensate for recent change in multiboot
30394 loader (since 2009-08-14 it won't pass filename to payload).
30395 * util/grub.d/10_hurd.in: Likewise.
30397 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
30399 * config.guess: Update to latest version from config git
30401 * config.sub: Likewise.
30403 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
30405 Fix build on sparc64.
30407 * configure.ac: Perform checks for libgcc symbols before
30408 adding `-nostdlib' to LDFLAGS.
30410 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
30412 Let user specify OpenBSD root device.
30414 * loader/i386/bsd.c (openbsd_root): New variable.
30415 (openbsd_opts): New option 'root'.
30416 (OPENBSD_ROOT_ARG): New macro.
30417 (grub_openbsd_boot): Use 'openbsd_root'.
30418 (grub_cmd_openbsd): Fill 'openbsd_root'.
30420 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
30422 * NEWS: Misc adjustments.
30424 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
30426 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
30428 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
30430 * configure.ac: Bump version to 1.97.
30432 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
30434 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
30435 -mno-3dnow on x86 architectures. Some toolchains enable these
30436 features by default, but they rely on registers that aren't enabled
30437 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
30439 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
30441 Make entry text a bit more readable.
30443 * util/grub.d/10_linux.in: Add `with' before `Linux'.
30445 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
30447 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
30449 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
30451 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
30454 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
30456 * configure.ac: Add missing dollar.
30458 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
30460 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
30462 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
30463 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
30465 * include/grub/sparc64/libgcc.h: Likewise. Use
30466 preprocessor conditionals.
30468 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
30470 * conf/common.rmk (grub-dumpbios): Remove rule.
30471 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
30472 * util/grub-dumpbios.in: Remove file.
30474 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
30476 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
30477 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
30479 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
30480 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
30483 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
30484 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
30485 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
30486 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
30489 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
30491 * term/tparm.c: Switch to GPLv3.
30493 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
30495 * include/grub/i386/cpuid.h: Add header protection.
30497 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
30499 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
30501 * include/grub/i386/cpuid.h: New file.
30502 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
30503 (has_longmode): Rename to ...
30504 (grub_cpuid_has_longmode): ... this. Update all users. Remove
30505 `static' attribute.
30506 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
30507 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
30508 on a CPU that doesn't implement AMD64 instruction set.
30510 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
30512 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
30513 that version.texi is rebuilt on version number changes.
30515 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
30517 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
30520 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
30522 * util/i386/pc/grub-install.in: Source
30523 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
30524 that the --grub-probe option will work.
30525 * util/sparc64/ieee1275/grub-install.in: Likewise.
30527 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
30529 * configure.ac: Bump version to 1.97~beta4.
30531 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
30533 Resync grub-mkdevicemap in x86_64-efi.
30535 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
30536 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
30537 `util/devicemap.c'.
30539 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
30541 * util/grub-editenv.c (create_envblk_file): Write new block with a
30542 .new suffix and then rename it into place, to ensure atomic
30545 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
30547 Do not automatically install headers.
30549 * Makefile.in (include_DATA): Remove. Update all users.
30551 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
30553 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
30554 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
30556 * util/osdetect.lua: Remove.
30557 * script/lua/lauxlib.c: Likewise.
30558 * script/lua/ldebug.c: Likewise.
30559 * script/lua/grub_main.c: Likewise.
30560 * script/lua/lauxlib.h: Likewise.
30561 * script/lua/ldebug.h: Likewise.
30562 * script/lua/ltablib.c: Likewise.
30563 * script/lua/liolib.c: Likewise.
30564 * script/lua/lstrlib.c: Likewise.
30565 * script/lua/lualib.h: Likewise.
30566 * script/lua/ldo.c: Likewise.
30567 * script/lua/ldump.c: Likewise.
30568 * script/lua/ldo.h: Likewise.
30569 * script/lua/loslib.c: Likewise.
30570 * script/lua/lundump.c: Likewise.
30571 * script/lua/grub_lib.c: Likewise.
30572 * script/lua/ldblib.c: Likewise.
30573 * script/lua/lundump.h: Likewise.
30574 * script/lua/lmem.c: Likewise.
30575 * script/lua/grub_lib.h: Likewise.
30576 * script/lua/lmathlib.c: Likewise.
30577 * script/lua/lstate.c: Likewise.
30578 * script/lua/ltm.c: Likewise.
30579 * script/lua/lvm.c: Likewise.
30580 * script/lua/lmem.h: Likewise.
30581 * script/lua/lstate.h: Likewise.
30582 * script/lua/ltm.h: Likewise.
30583 * script/lua/ltable.c: Likewise.
30584 * script/lua/lvm.h: Likewise.
30585 * script/lua/llex.c: Likewise.
30586 * script/lua/lgc.c: Likewise.
30587 * script/lua/grub_lua.h: Likewise.
30588 * script/lua/loadlib.c: Likewise.
30589 * script/lua/lfunc.c: Likewise.
30590 * script/lua/lopcodes.c: Likewise.
30591 * script/lua/lparser.c: Likewise.
30592 * script/lua/ltable.h: Likewise.
30593 * script/lua/llex.h: Likewise.
30594 * script/lua/lgc.h: Likewise.
30595 * script/lua/lfunc.h: Likewise.
30596 * script/lua/lbaselib.c: Likewise.
30597 * script/lua/lopcodes.h: Likewise.
30598 * script/lua/lparser.h: Likewise.
30599 * script/lua/lzio.c: Likewise.
30600 * script/lua/linit.c: Likewise.
30601 * script/lua/lobject.c: Likewise.
30602 * script/lua/llimits.h: Likewise.
30603 * script/lua/lstring.c: Likewise.
30604 * script/lua/lzio.h: Likewise.
30605 * script/lua/lapi.c: Likewise.
30606 * script/lua/lcode.c: Likewise.
30607 * script/lua/lua.h: Likewise.
30608 * script/lua/lobject.h: Likewise.
30609 * script/lua/lstring.h: Likewise.
30610 * script/lua/lapi.h: Likewise.
30611 * script/lua/lcode.h: Likewise.
30612 * script/lua/luaconf.h: Likewise.
30614 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
30616 * docs/grub.texi (Command-line and menu entry commands): Document
30617 date and echo commands.
30619 2009-09-24 Pavel Roskin <proski@gnu.org>
30621 * include/grub/kernel.h (struct grub_module_header): Remove
30622 `grub_module_header_types'. Make `type' unsigned. Make `size'
30623 32-bit on all platforms.
30624 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
30625 8-bit field. Use grub_host_to_target32() for `size'.
30626 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
30627 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
30628 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
30630 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30632 Fix "lost keypress" bug in at_keyboard.
30634 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
30635 Checks for readyness of input buffer (without flushing it).
30636 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
30637 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
30639 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30641 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
30642 size check within GRUB_MACHINE_PCBIOS section.
30644 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30646 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
30648 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
30649 KEYBOARD_ISREADY check.
30650 (grub_at_keyboard_checkkey): Rename to ...
30651 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
30652 Remove gratuitous cast.
30654 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
30656 * configure.ac: Call AC_PROG_MKDIR_P.
30657 * Makefile.in (docs/stamp-vti): Create docs directory. Create
30658 version.texi in $(builddir) rather than $(srcdir).
30659 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
30660 to makeinfo's @include search path.
30662 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
30664 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
30666 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
30668 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
30671 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
30673 Build info documentation. Some code borrowed from Automake.
30675 * configure.ac: Check for makeinfo.
30676 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
30677 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
30679 (MOSTLYCLEANFILES): Add vti.tmp.
30680 (docs/version.texi, docs/stamp-vti): Update automatically.
30681 (docs/grub.info): Build info documentation. Use --force and ignore
30683 (all-local): Add $(INFOS).
30684 (install-local): Install info files.
30685 (uninstall): Uninstall info files.
30686 * docs/version.texi: Remove from revision control. This file is
30687 automatically generated on build now.
30688 * gendistlist.sh: Add `*.info'.
30690 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
30692 * kern/term.c: Fix indentation.
30694 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
30696 * util/hostdisk.c: Fix a comment.
30698 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
30700 Fix regression introduced in r2539.
30702 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
30705 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
30707 * util/grub.d/30_os-prober.in: Don't throw away stderr from
30708 os-prober. Under normal operation, it does not print anything to
30709 stderr; if it does, we need to debug it, and throwing away stderr
30710 makes that excessively difficult.
30712 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
30714 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
30716 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
30718 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
30719 AC_LANG_PROGRAM from autoconf.
30720 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
30721 prototypes (fixes warning).
30723 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
30724 `--disable-werror' was used.
30726 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
30728 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
30729 uninitialized `lastaddr'.
30731 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
30733 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
30735 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
30737 * commands/test.c (get_fileinfo): Return immediately if
30738 grub_fs_probe fails.
30740 2009-09-14 José Martínez <xosemp@gmail.com>
30742 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
30744 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
30746 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
30749 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
30751 * configure.ac: Remove --enable-grub-pe2elf. Only build
30752 grub-pe2elf when needed by the build system itself.
30753 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
30755 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30757 * configure.ac: Bump version to 1.97~beta3.
30758 * docs/version.texi: Likewise.
30760 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30762 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
30763 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
30765 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
30766 (grub_linux_setup_video): ... to here (with some adjustments).
30768 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30770 Fix memory corruption issue (spotted by Colin Watson).
30772 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
30773 causing returned size to be stored in an incorrect memory location.
30774 Fix use of uninitialized value when storing the returned size.
30776 2009-09-12 Yves Blusseau <blusseau@zetam.org>
30778 Change clean rules to properly remove files
30780 * genmk.rb: add new clean rules
30781 * Makefile.in (clean): add the new targets
30782 (mostlyclean): likewise
30784 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
30786 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
30788 * fs/ntfs.c (init_file): Understand 64-bit sizes for
30789 non-resident files.
30791 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
30793 * configure.ac: Don't look for help2man when cross-compiling. Fixes
30794 part of bug #27349.
30796 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
30798 * util/grub-mkconfig.in: Make the created config mode 400 and
30799 print a warning if it fails.
30801 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
30803 * util/grub.d/40_custom.in: Ask user to type custom entries below
30804 comment, rather than below 'exec tail' line.
30806 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
30808 * util/grub.d/40_custom.in: Make sure that the explanatory text is
30809 visible in grub.cfg.
30811 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
30813 * util/grub.d/40_custom.in: Make it a little clearer how to use this
30816 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
30818 * docs/grub.cfg: Add an example menu entry for memtest86+.
30820 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
30822 * config.guess: Update to latest version from config git.
30823 * config.sub: Likewise.
30825 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
30827 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
30828 unknown-command case. Fixes bug #27320.
30830 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
30832 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
30833 `help' if the command exists.
30835 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
30837 * INSTALL: Require GCC 4.1.3 or later.
30839 2009-09-06 Yves Blusseau <blusseau@zetam.org>
30841 * Makefile.in (RMKFILES): add i386-qemu.rmk
30842 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
30843 $(srcdir)/stamp-h.in
30845 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
30847 * util/grub-probe.c (probe): Comment out buggy codepath, which
30848 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
30849 should be re-enabled after 1.97.
30851 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
30853 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
30856 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
30858 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
30859 unnecessary calls to grub_error.
30861 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
30863 * NEWS: Mention `keystatus' and Unicode fonts.
30865 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
30867 * configure.ac: Bump version to 1.97~beta2.
30868 * docs/version.texi: Likewise.
30870 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
30872 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
30873 containing unwind information in some cases where it previously did
30874 not. Use -fno-dwarf2-cfi-asm if available to restore the old
30875 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
30878 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
30880 Embedding loadenv module into grub-emu
30882 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
30884 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
30885 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
30886 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
30887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
30888 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
30889 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
30891 2009-09-03 Magnus Granberg <zorry@ume.nu>
30893 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
30894 include -fPIE in the default specs.
30895 * configure.ac: Check if pie_possible is yes and add -fno-PIE
30898 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
30900 * INSTALL: Note that GNU Bison 2.3 or later is required.
30902 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
30904 * kern/i386/pc/startup.S: Fix typo.
30906 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
30908 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
30911 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30913 * docs/grub.texi (Naming convention): Describe one-based partition
30915 (Device syntax): Likewise.
30916 (File name syntax): Likewise.
30917 (Block list syntax): Likewise.
30918 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
30920 (File name syntax): Likewise.
30921 (Command-line and menu entry commands): Document acpi, blocklist,
30922 crc, export, insmod, keystatus, ls, set, and unset commands.
30924 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30926 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
30927 to avoid implying that only one of --shift, --ctrl, or --alt may be
30930 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30932 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
30933 rather than comparing against S_IFREG, which will almost never work.
30935 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
30937 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
30938 (write_blocklists): Likewise.
30940 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
30942 * script/lua/grub_lua.h (fputs): Supply a format string as the first
30943 argument to grub_printf.
30945 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
30947 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
30950 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
30952 * kern/file.c (grub_file_read): Spelling fix
30954 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
30956 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
30957 loading of headers in some cases.
30959 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
30961 * configure.ac: Bump version to 1.97~beta1.
30962 * docs/version.texi: Likewise.
30964 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
30966 * include/grub/i386/xnu.h: Add license header.
30967 include grub/err.h explicitly.
30969 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
30971 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
30972 to `ufs' in the vfs.root.mountfrom kernel parameter.
30974 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
30976 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
30978 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
30979 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
30981 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
30982 `ARRAY_SIZE' macro.
30984 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30986 * kern/file.c (grub_file_read): Check offset.
30987 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
30988 * fs/jfs.c (grub_jfs_read_file): Likewise.
30989 * fs/ntfs.c (grub_ntfs_read): Likewise.
30990 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
30991 * fs/minix.c (grub_minix_read_file): Correct offset check.
30992 * fs/ufs.c (grub_ufs_read_file): Likewise.
30994 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30996 * term/i386/pc/console.c (bios_data_area): Cast
30997 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
30999 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31001 1-bit optimised blitters.
31003 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
31005 (grub_video_fbblit_replace_24bit_1bit): Likewise.
31006 (grub_video_fbblit_replace_16bit_1bit): Likewise.
31007 (grub_video_fbblit_replace_8bit_1bit): Likewise.
31008 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
31009 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
31010 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
31011 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
31013 (grub_video_fbblit_replace_24bit_1bit): Likewise.
31014 (grub_video_fbblit_replace_16bit_1bit): Likewise.
31015 (grub_video_fbblit_replace_8bit_1bit): Likewise.
31016 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
31017 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
31018 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
31019 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
31021 * video/video.c (grub_video_get_blit_format): Return
31022 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
31024 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
31026 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
31027 the first argument to grub_printf.
31029 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
31030 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
31032 Add `getkeystatus' terminal method. Add a new `keystatus' command
31035 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
31036 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
31037 modifier key bitmasks.
31038 (struct grub_term_input): Add `getkeystatus' member.
31039 (grub_getkeystatus): Add prototype.
31040 * kern/term.c (grub_getkeystatus): New function.
31042 * include/grub/i386/pc/memory.h
31043 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
31044 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
31046 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
31047 (grub_console_term_input): Set `getkeystatus' member.
31048 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
31050 (grub_usb_keyboard_getreport): Likewise.
31051 (grub_usb_keyboard_checkkey): Likewise.
31052 (grub_usb_keyboard_getkeystatus): New function.
31053 (grub_usb_keyboard_term): Set `getkeystatus' member.
31055 * commands/keystatus.c: New file.
31056 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
31057 (keystatus_mod_SOURCES): New variable.
31058 (keystatus_mod_CFLAGS): Likewise.
31059 (keystatus_mod_LDFLAGS): Likewise.
31060 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
31061 commands/keystatus.c.
31062 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31063 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31064 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31066 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31067 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31069 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31071 Split befs.mod and afs.mod into *_be.mod and *.mod
31073 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
31074 (grub_fstest_SOURCES): Likewise.
31075 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
31076 (afs_be_mod_SOURCES): New variable.
31077 (afs_be_mod_CFLAGS): Likewise.
31078 (afs_be_mod_LDFLAGS): Likewise.
31079 (befs_be_mod_SOURCES): Likewise.
31080 (befs_be_mod_CFLAGS): Likewise.
31081 (befs_be_mod_LDFLAGS): Likewise.
31082 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
31083 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31084 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31085 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
31086 (grub_emu_SOURCES): Likewise.
31087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31088 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31089 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31090 * fs/afs_be.c: New file.
31091 * fs/befs_be.c: New file.
31092 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
31093 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
31094 (U16): Replaced with ...
31095 (grub_afs_to_cpu16): ...this. All users updated.
31096 (U32): Replaced with ...
31097 (grub_afs_to_cpu32): ...this. All users updated.
31098 (U64): Replaced with ...
31099 (grub_afs_to_cpu64): ...this. All users updated.
31100 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
31101 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
31102 (grub_afs_validate_sblock): Check only one endianness.
31103 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
31104 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
31105 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
31106 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
31107 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
31108 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
31109 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
31110 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
31112 2009-08-26 Bean <bean123ch@gmail.com>
31114 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
31116 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
31117 (grub_xfs_inode_block): Change return type to grub_uint64_t.
31118 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
31120 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31122 NetBSD memory map support.
31124 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
31125 (grub_netbsd_btinfo_mmap_header): New structure.
31126 (grub_netbsd_btinfo_mmap_entry): Likewise.
31127 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
31129 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31131 Enable bsd.mod on coreboot.
31133 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
31134 (bsd_mod_SOURCES): New variable.
31135 (bsd_mod_CFLAGS): Likewise.
31136 (bsd_mod_LDFLAGS): Likewise.
31137 (bsd_mod_ASFLAGS): Likewise.
31138 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
31139 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
31141 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31143 Cleanup NetBSD root support.
31145 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
31146 grub_bsd_get_device.
31149 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
31151 * util/grub.d/00_header.in: Move check for the video backend of
31152 gfxterm from here ...
31153 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
31154 a suitable video backend.
31156 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31158 Fix breakage in grub-setup.
31160 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
31161 "msdos_partition_map".
31163 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31165 Fix breakage in normal/auth.c.
31167 * normal/auth.c (grub_iswordseparator): New function.
31169 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31171 Authentication support.
31173 * commands/password.c: New file.
31174 * conf/common.rmk (pkglib_MODULES): Add password.mod.
31175 (password_mod_SOURCES): New variable.
31176 (password_mod_CFLAGS): Likewise.
31177 (password_mod_LDFLAGS): Likewise.
31178 (normal_mod_SOURCES): Add normal/auth.c.
31179 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
31181 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31182 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31183 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31185 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31186 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31187 * include/grub/auth.h: New file.
31188 * include/grub/err.h (grub_err_t): New enum value
31189 GRUB_ERR_ACCESS_DENIED.
31190 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
31192 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
31193 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
31195 * normal/auth.c: New file.
31196 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
31197 (grub_cmdline_run): Don't allow to go to command line without
31199 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
31200 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
31201 menuentry without superuser rights.
31202 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
31203 user isn't a superuser.
31205 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31207 Save space by inlining misc.c functions.
31209 * kern/misc.c (grub_iswordseparator): Made static.
31210 * kern/misc.c (grub_strcat): Moved from here ...
31211 * include/grub/misc.h (grub_strcat): ... here. Inlined.
31212 * kern/misc.c (grub_strncat): Moved from here ...
31213 * include/grub/misc.h (grub_strncat): ... here. Inlined.
31214 * kern/misc.c (grub_strcasecmp): Moved from here ...
31215 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
31216 * kern/misc.c (grub_strncasecmp): Moved from here ...
31217 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
31218 * kern/misc.c (grub_isalpha): Moved from here ...
31219 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
31220 * kern/misc.c (grub_isdigit): Moved from here ...
31221 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
31222 * kern/misc.c (grub_isgraph): Moved from here ...
31223 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
31224 * kern/misc.c (grub_tolower): Moved from here ...
31225 * include/grub/misc.h (grub_tolower): ... here. Inlined.
31227 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31229 * script/sh/function.c (grub_script_function_find): Cut error message
31230 not to flood terminal.
31231 * script/sh/lexer.c (grub_script_yylex): Remove command line length
31233 * script/sh/script.c (grub_script_arg_add): Duplicate string.
31235 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
31237 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
31238 `report' grub_uint8_t *.
31239 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
31240 Use a 50-millisecond timeout rather than just repeating
31241 grub_usb_keyboard_getreport 50 times.
31242 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
31244 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31246 Rename *_partition_map to part_*
31248 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
31249 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
31250 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
31251 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
31253 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
31255 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
31256 * util/grub-probe.c (probe_partmap): Don't transform partition name
31257 to get module name.
31259 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31261 Fix OpenBSD and NetBSD support.
31263 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
31264 memory address conflict.
31265 (OPENBSD_MMAP_ACPI): New definition.
31266 (OPENBSD_MMAP_NVS): Likewise.
31267 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
31268 and OPENBSD_MMAP_NVS.
31269 Add memory map terminator
31270 Explicit cast when calling grub_unix_real_boot.
31271 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
31273 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31275 Let user specify NetBSD root device.
31277 * loader/i386/bsd.c (netbsd_root): New variable.
31278 (netbsd_opts): New option 'root'.
31279 (NETBSD_ROOT_ARG): New macro.
31280 (grub_netbsd_boot): Use 'netbsd_root'.
31281 (grub_bsd_unload): Free 'netbsd_root'.
31282 (grub_cmd_netbsd): Fill 'netbsd_root'.
31284 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31286 Support for 64-bit NetBSD.
31288 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
31289 point when booting non-FreeBSD.
31291 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31293 Support --no-smp and --no-acpi for NetBSD.
31295 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
31296 (NETBSD_AB_NOACPI): Likewise.
31297 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
31298 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
31300 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
31302 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
31304 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
31305 errors. Call grub_error when needed.
31307 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
31309 * commands/search.c (search_fs): Try searching without autoload first.
31310 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
31311 filesystem module explicitly for faster booting.
31313 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
31315 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
31317 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
31319 * util/grub.d/30_os-prober.in: Disable os-prober if
31320 `GRUB_DISABLE_OS_PROBER' was set to true.
31322 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
31324 * partmap/pc.c: Rename to ...
31325 * partmap/msdos.c: ... this. Update all users.
31326 (grub_pc_partition_map): Rename to ...
31327 (grub_msdos_partition_map): ... this. Update all users.
31329 * parttool/pcpart.c: Rename to ...
31330 * parttool/msdospart.c: ... this. Update all users.
31332 * include/grub/pc_partition.h: Rename to ...
31333 * include/grub/msdos_partition.h: ... this. Update all users.
31334 (grub_pc_partition_bsd_entry): Rename to ...
31335 (grub_msdos_partition_bsd_entry): ... this. Update all users.
31336 (grub_pc_partition_disk_label): Rename to ...
31337 (grub_msdos_partition_disk_label): ... this. Update all users.
31338 (grub_pc_partition_entry): Rename to ...
31339 (grub_msdos_partition_entry): ... this. Update all users.
31340 (grub_pc_partition_mbr): Rename to ...
31341 (grub_msdos_partition_mbr): ... this. Update all users.
31342 (grub_pc_partition): Rename to ...
31343 (grub_msdos_partition): ... this. Update all users.
31344 (grub_pc_partition_is_empty): Rename to ...
31345 (grub_msdos_partition_is_empty): ... this. Update all users.
31346 (grub_pc_partition_is_extended): Rename to ...
31347 (grub_msdos_partition_is_extended): ... this. Update all users.
31348 (grub_pc_partition_is_bsd): Rename to ...
31349 (grub_msdos_partition_is_bsd): ... this. Update all users.
31351 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
31352 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
31353 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
31354 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
31355 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
31356 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
31357 (gpt_mod_LDFLAGS): Rename to ...
31358 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
31359 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
31360 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
31361 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
31362 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
31363 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
31364 (part_gpt_mod_LDFLAGS): ... this.
31365 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
31366 `pcpart.mod' to `msdospart.mod'.
31367 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
31369 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
31370 (msdospart_mod_LDFLAGS): ... this.
31372 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
31374 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
31375 (openbsd_opts): Likewise.
31376 (netbsd_opts): Likewise.
31377 (freebsd_flags): Added 0 terminator.
31378 (openbsd_flags): Likewise.
31379 (netbsd_flags): Likewise.
31380 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
31381 (grub_cmd_freebsd): Transformed into extended command.
31382 (grub_cmd_openbsd): Likewise.
31383 (grub_cmd_netbsd): Likewise.
31384 (cmd_freebsd): Changed type to grub_extcmd_t.
31385 (cmd_openbsd): Likewise.
31386 (cmd_netbsd): Likewise.
31387 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
31388 grub_cmd_openbsd as extended commands.
31389 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
31390 cmd_netbsd and cmd_openbsd
31392 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
31394 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
31396 2009-08-21 Pavel Roskin <proski@gnu.org>
31398 * Makefile.in (install-local): When checking if a file is in the
31399 build directory, use "test -e" to detect symlinks.
31401 * Makefile.in (install-local): Remove all files in
31402 $(DESTDIR)$(pkglibdir) before installing new files there.
31404 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
31406 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
31409 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
31411 * util/grub-mkconfig.in: Don't use gfxterm by default if not
31412 explicitly specified by the user.
31414 2009-08-18 Pavel Roskin <proski@gnu.org>
31416 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
31417 grub_uint8_t pointer for data.
31418 * include/grub/fbutil.h (struct grub_video_fbblit_info):
31420 * video/fb/fbutil.c: Remove unnecessary casts.
31422 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
31426 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
31427 (grub_vbe_set_video_mode): Save active mode info
31428 only after setting the mode.
31429 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
31432 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
31434 Rename variables for clarity.
31436 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
31437 (active_vbe_mode_info): ... this. All users updated.
31438 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
31440 (initial_mode): Rename to ...
31441 (initial_vbe_mode): ... this. All users updated.
31442 (mode_in_use): Rename to ..
31443 (vbe_mode_in_use): ... this. All users updated.
31444 (mode_list): Rename to ..
31445 (vbe_mode_list): ... this. All users updated.
31446 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
31447 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
31448 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
31449 'mode_list_size' to 'vbe_mode_list_size'.
31450 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
31451 'best_mode_info' to 'best_vbe_mode_info' and
31452 'best_mode' to 'best_vbe_mode'
31454 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
31456 Remove duplicate grub_video_fb_get_video_ptr.
31458 * include/grub/fbutil.h (get_data_ptr): Rename to ...
31459 (grub_video_fb_get_video_ptr): ... this.
31460 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
31461 * video/fb/fbutil.c: Add comment about addressing.
31462 (get_data_ptr): Rename to ...
31463 (grub_video_fb_get_video_ptr): ... this. All users updated.
31464 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
31466 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
31468 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
31469 grub_dprintf() that was just added.
31471 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
31473 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
31474 (DEFAULT_VIDEO_MODE): Remove macros.
31475 (grub_linux_boot): Remove assumption that Linux has FB support,
31476 and use "text" as default video mode.
31478 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
31480 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
31482 * fs/fat.c (grub_fat_read_data): Likewise.
31484 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
31486 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
31488 (grub_module): Likewise.
31490 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
31492 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
31493 mbi->cmdline but free playground.
31495 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
31497 Handle group offset on UFS1.
31499 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
31500 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
31502 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
31504 Split ufs.mod into ufs1.mod and ufs2.mod.
31506 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
31507 (grub_fstest_SOURCES): Likewise.
31508 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
31509 (ufs_mod_SOURCES): Remove.
31510 (ufs_mod_CFLAGS): Likewise.
31511 (ufs_mod_LDFLAGS): Likewise.
31512 (ufs1_mod_SOURCES): New variable.
31513 (ufs1_mod_CFLAGS): Likewise.
31514 (ufs1_mod_LDFLAGS): Likewise.
31515 (ufs2_mod_SOURCES): New variable.
31516 (ufs2_mod_CFLAGS): Likewise.
31517 (ufs2_mod_LDFLAGS): Likewise.
31518 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
31519 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
31521 (grub_emu_SOURCES): Likewise.
31522 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31523 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31524 (grub_setup_SOURCES): Likewise.
31525 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31526 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
31527 (grub_setup_SOURCES): Likewise.
31528 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
31530 * fs/ufs2.c: New file.
31531 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
31533 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
31537 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
31538 subsystem at the end.
31539 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
31540 (video_fb_mod_SOURCES): New variable.
31541 (video_fb_mod_CFLAGS): Likewise.
31542 (video_fb_mod_LDFLAGS): Likewise.
31543 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
31544 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
31545 * video/i386/pc/vbeblit.c: Moved from here ...
31546 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
31547 * video/i386/pc/vbefill.c: Moved from here ...
31548 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
31549 * video/i386/pc/vbeutil.c: Moved from here ...
31550 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
31551 * include/grub/i386/pc/vbeblit.h: Moved from here ...
31552 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
31553 * include/grub/i386/pc/vbefill.h: Moved from here ...
31554 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
31555 * include/grub/i386/pc/vbeutil.h: Moved from here ...
31556 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
31557 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
31558 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
31559 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
31560 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
31561 (grub_video_adapter): Added 'get_info_and_fini'.
31562 (grub_video_get_info_and_fini): New prototype.
31563 (grub_video_set_mode): make modestring const char *.
31564 * loader/i386/linux.c (grub_linux_setup_video): Use
31565 grub_video_get_info_and_fini.
31566 (grub_linux_boot): Move modesetting just before booting.
31567 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
31568 grub_video_get_info_and_fini.
31569 * video/i386/pc/vbe.c: Moved framebuffer part ...
31570 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
31571 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
31572 grub_video_fbstd_colors and grub_video_fb_set_palette.
31573 (grub_video_vbe_init): Clear 'framebuffer' variable and use
31574 grub_video_fb_init.
31575 (grub_video_vbe_fini): Use grub_video_fb_fini.
31576 (grub_video_vbe_setup): Use framebuffer.render_target instead of
31577 render_target and use grub_video_fb_set_active_render_target and
31578 grub_video_fb_set_palette.
31579 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
31580 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
31581 (grub_video_vbe_adapter): Use framebuffer.
31582 * video/video.c (grub_video_get_info_and_fini): New function.
31583 (grub_video_set_mode): Make modestring const char *.
31584 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
31585 values are already initialised.
31587 2009-08-14 Pavel Roskin <proski@gnu.org>
31589 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
31591 * boot/i386/pc/diskboot.S: Likewise.
31592 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
31593 sectors allow compilation on MacOSX.
31594 * conf/i386-pc.rmk: Enable unconditional compilation of
31597 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
31599 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
31600 * util/grub.d/00_header.in: Enter interruptible sleep if
31601 GRUB_HIDDEN_TIMEOUT is set.
31603 2009-08-13 Yves Blusseau <blusseau@zetam.org>
31605 * include/grub/symbol.h: Add the LOCAL macro.
31606 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
31607 starting with "L_".
31609 2009-08-13 Pavel Roskin <proski@gnu.org>
31611 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
31612 any modern compilers we support.
31614 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
31615 Use local labels starting with "L_" so that Apple assembler
31616 knows they are local.
31618 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
31620 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
31621 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
31622 (bsd_kernel_types): ... this enum.
31624 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
31625 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
31626 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
31628 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
31629 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
31630 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
31633 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
31635 * util/grub-dumpdevtree: Moved from here ...
31636 * util/i386/efi/grub-dumpdevtree: ... to here.
31637 (hexify): New function. Converts a string to its hex version.
31638 Generate hex versions of "efi" and "device-properties" by calling
31639 hexify() on the ASCII strings rather than by hardcoding numbers.
31641 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
31643 * fs/jfs.c: Update copyright year.
31645 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
31647 * util/grub.d/00_header.in: Fix a comment.
31648 * util/grub.d/10_linux.in: Likewise.
31649 * util/grub.d/10_windows.in: Likewise.
31650 * util/grub.d/10_hurd.in: Likewise.
31652 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
31654 * util/grub-mkconfig.in: Allow the user to specify the used font
31657 2009-08-08 Pavel Roskin <proski@gnu.org>
31659 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
31660 available, xfs.mod needs it now.
31662 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
31663 the "g" modifier in sed when the intention is to strip something
31664 once. This fixes comparison of kernels with multiple dashes.
31666 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
31667 on it. Add missing space before closing bracket. Fix
31668 misleading formatting.
31670 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31672 * docs/grub.texi: Major overhaul. Remove all sections that are
31673 specific to GRUB Legacy, or mostly composed of Legacy-specific
31676 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31678 * docs/version.texi: New file. Provides version information for
31681 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31683 * docs/grub.texi: Update CVS information to SVN.
31684 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
31686 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31688 * util/grub-mkconfig.in: Remove a wrong `fi'.
31690 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31692 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
31693 (grub_jfs_uuid): New function.
31694 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
31696 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31698 * util/grub-mkconfig_lib.in (font_path): Move the functionality
31700 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
31701 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
31703 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31705 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
31706 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
31709 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
31710 not just "vmlinu[zx]".
31711 Moved from here ...
31712 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
31715 * util/grub.d/10_linux.in (find_latest): Moved from here ...
31716 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
31719 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31721 * util/grub.d/10_freebsd.in: Use an absolute device path for
31722 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
31724 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
31726 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
31727 handling of multiple abstraction modules.
31729 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
31731 Fix a bug resulting in black screen when loading Linux using a
31734 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
31737 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
31738 (grub_vbe_bios_getset_dac_palette_width): New function.
31739 (grub_vbe_bios_get_dac_palette_width)
31740 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
31741 grub_vbe_bios_getset_dac_palette_width()).
31743 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
31744 check for return status.
31745 (grub_vbe_get_video_mode_info): When getting information for a packed
31746 mode (<= 8 bpp), obtain DAC palette width using
31747 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
31748 {red,green,blue}_mark_size.
31750 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
31752 * commands/search.c (options): Fix help output to match actual code.
31754 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
31756 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
31759 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31761 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
31762 on XFS or ReiserFS.
31764 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31766 Support Apple partition map with sector size different from 512 bytes.
31768 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
31769 (apple_partition_map_iterate): Respect 'aheader.blocksize'
31770 and 'apart.partmap_size'.
31772 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31773 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
31777 * commands/i386/cpuid.c (options): New variable.
31778 (grub_cmd_cpuid): Return real error.
31779 (GRUB_MOD_INIT(cpuid)): Declare options.
31781 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
31783 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
31786 2009-07-31 Bean <bean123ch@gmail.com>
31788 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
31790 (grub_fshelp_node): Move inode field to the end.
31791 (grub_xfs_data): Remove inode field.
31792 (grub_xfs_inode_block): Calculate inode size using sblock.
31793 (grub_xfs_inode_offset): Likewise.
31794 (grub_xfs_read_inode): Calculate inode size using sblock.
31795 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
31796 (grub_xfs_iterate_dir): Calculate inode size using sblock.
31797 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
31798 to match inode size.
31799 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
31800 not accessible when data is null.
31801 (grub_xfs_open): Likewise.
31803 2009-07-31 Bean <bean123ch@gmail.com>
31805 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
31806 Don't change pv->disk if it's already set.
31808 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
31809 (grub_raid_register): ... here.
31810 (grub_raid_rescan): Removed.
31812 * include/grub/raid.h (grub_raid_rescan): Removed.
31814 * util/grub-fstest.c: Remove include file <grub/raid.h>.
31815 (fstest): Replace grub_raid_rescan with module fini function followed
31818 * util/grub-probe.c: Add include file <grub/raid.h>.
31819 (probe_raid_level): New function.
31820 (probe): Detect abstraction by walking the disk device, support two
31821 level of abstraction (LVM on RAID) when detecting partition map.
31823 2009-07-31 Pavel Roskin <proski@gnu.org>
31825 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
31826 to grub_zalloc(), it was erroneous.
31827 Reported by Bean <bean123ch@gmail.com>
31829 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
31831 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
31832 embedding zone, not only the first one.
31834 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
31836 * term/gfxterm.c (clear_char): New function.
31837 (grub_virtual_screen_setup): Use clear_char.
31838 (scroll_up): Likewise.
31839 (grub_virtual_screen_cls): Likewise.
31841 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
31843 * util/deviceiter.c (get_acceleraid_disk_name): New static
31845 (grub_util_iterate_devices): Handle Accelraid devices.
31846 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
31848 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
31850 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
31851 separator for the suggested gfxpayload string (';' collides with the
31852 parser and needs escaping).
31854 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
31856 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
31857 Clear direction flag before jumping to OS.
31858 (grub_multiboot2_real_boot): Likewise.
31860 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
31862 * util/i386/pc/grub-install: Fix parsing of --disk-module
31865 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
31867 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
31870 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
31872 * util/grub-mkconfig.in (package_version): New variable.
31873 Use it do display the version.
31875 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
31877 * kern/file.c (grub_file_open): Revert to previous check with
31880 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
31882 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
31883 from help line. It's out of sync with code.
31885 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
31887 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
31888 entries on failed boot.
31890 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
31892 * kern/file.c (grub_file_open): Fix an error check.
31894 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
31896 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
31897 partition map couldn't be identified.
31899 2009-07-23 Pavel Roskin <proski@gnu.org>
31901 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
31902 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
31903 case of little endian words becomes just an optimization.
31904 Respect const modifier.
31905 (md5_final): Use code that doesn't depend on endianness.
31907 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
31908 to avoid loss of upper bits if align is unsigned and shorter
31911 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
31913 UUID support for UFS
31915 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
31916 (grub_ufs_uuid): New function.
31917 (grub_ufs_fs): add .uuid
31919 2009-07-21 Pavel Roskin <proski@gnu.org>
31921 * kern/dl.c (grub_dl_check_header): Make static.
31923 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
31925 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
31926 add drivemap for Vista. It breaks Windows 7.
31928 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
31930 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
31933 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31937 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
31938 (grub_fstest_SOURCES): Likewise.
31939 (pkglib_MODULES): Add befs.mod.
31940 (befs_mod_SOURCES): New variable.
31941 (befs_mod_CFLAGS): Likewise.
31942 (befs_mod_LDFLAGS): Likewise.
31943 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31944 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31945 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31946 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31947 (grub_setup_SOURCES): Likewise.
31948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31949 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31950 (grub_setup_SOURCES): Likewise.
31951 * fs/befs.c: New file.
31952 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
31953 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
31954 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
31955 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
31956 (B_KEY_INDEX_ALIGN): New declaration.
31957 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
31958 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
31959 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
31960 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
31961 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
31962 (grub_afs_mount) [MODE_BFS]: Likewise.
31963 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
31964 (grub_afs_fs): Use GRUB_AFS_FSNAME
31965 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
31966 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
31967 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
31968 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
31970 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
31972 * util/getroot.c (find_root_device): Add support for MacOSX.
31973 * util/hostdisk.c: Likewise.
31975 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31977 * font/font.c (find_glyph): Check whether a font is present to avoid
31978 segmentation fault.
31980 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
31982 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
31984 2009-07-20 Pavel Roskin <proski@gnu.org>
31986 * configure.ac: Trim excessively wordy excuses.
31988 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31990 Add symlink, mtime and label support to AtheFS.
31992 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
31993 (grub_afs_iterate_dir): Handle symlinks.
31994 (grub_afs_open): Use grub_afs_read_symlink.
31995 (grub_afs_dir): Likewise.
31997 (grub_afs_label): New function.
31998 (grub_afs_fs): Add grub_afs_label.
31999 (grub_afs_read_symlink): New function.
32001 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32003 Fix AtheFS support.
32005 * fs/afs.c: Fix comments style.
32006 (grub_afs_blockrun): Declare as packed.
32007 (grub_afs_datastream): Likewise.
32008 (grub_afs_bnode): Likewise.
32009 (grub_afs_btree): Likewise.
32010 (grub_afs_sblock): Likewise.
32011 Declare `name' as char.
32012 (grub_afs_inode): Declare as packed.
32013 Change void *vnode to grub_uint32_t unused.
32014 (grub_afs_iterate_dir): Check that key_size is positive.
32015 (grub_afs_mount): Don't read superblock twice.
32016 (grub_afs_dir): Don't free node in case of error,
32017 grub_fshelp_find_file already handles this.
32018 (grub_afs_open): Likewise.
32020 2009-07-19 Pavel Roskin <proski@gnu.org>
32022 * Makefile.in: Remove LIBLZO and enable_lzo.
32023 * conf/i386-pc.rmk: Remove lzo support.
32024 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
32025 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
32027 * kern/i386/pc/lzo1x.S: Remove.
32028 * kern/i386/pc/startup.S: Remove lzo support.
32029 * util/i386/pc/grub-mkimage.c: Likewise.
32031 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
32033 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
32034 * fs/xfs.c (grub_xfs_dir): Likewise.
32035 * fs/afs.c (grub_afs_dir): Likewise.
32036 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
32037 (grub_iso9660_open): Likewise.
32038 * fs/jfs.c (grub_jfs_open): Likewise.
32039 * fs/ext2.c (grub_ext2_dir): Likewise.
32040 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
32041 * script/sh/lexer.c (grub_script_yylex): Likewise.
32043 2009-07-16 Pavel Roskin <proski@gnu.org>
32045 * configure.ac: Never add "-c" to CFLAGS.
32047 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
32049 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
32050 grub_cv_cc_efiemu should be used.
32052 * configure.ac: Typo fixes.
32054 * kern/mm.c (grub_zalloc): New function.
32055 (grub_debug_zalloc): Likewise.
32056 * include/grub/mm.h: Declare grub_zalloc() and
32057 grub_debug_zalloc().
32058 * util/misc.c (grub_zalloc): New function.
32059 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
32060 instead of grub_malloc(), remove unneeded initializations.
32061 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
32062 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
32063 * commands/parttool.c (grub_cmd_parttool): Likewise.
32064 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
32065 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
32066 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
32067 * disk/usbms.c (grub_usbms_finddevs): Likewise.
32068 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
32069 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
32070 (grub_cmd_efiemu_pnvram): Likewise.
32071 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
32072 * fs/iso9660.c (grub_iso9660_mount): Likewise.
32073 (grub_iso9660_iterate_dir): Likewise.
32074 * fs/jfs.c (grub_jfs_opendir): Likewise.
32075 * fs/ntfs.c (list_file): Likewise.
32076 (grub_ntfs_mount): Likewise.
32077 * kern/disk.c (grub_disk_open): Likewise.
32078 * kern/dl.c (grub_dl_load_core): Likewise.
32079 * kern/elf.c (grub_elf_file): Likewise.
32080 * kern/env.c (grub_env_context_open): Likewise.
32081 (grub_env_set): Likewise.
32082 (grub_env_set_data_slot): Likewise.
32083 * kern/file.c (grub_file_open): Likewise.
32084 * kern/fs.c (grub_fs_blocklist_open): Likewise.
32085 * loader/i386/multiboot.c (grub_module): Likewise.
32086 * loader/xnu.c (grub_xnu_create_key): Likewise.
32087 (grub_xnu_create_value): Likewise.
32088 * normal/main.c (grub_normal_add_menu_entry): Likewise.
32089 (read_config_file): Likewise.
32090 * normal/menu_entry.c (make_screen): Likewise.
32091 * partmap/sun.c (sun_partition_map_iterate): Likewise.
32092 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
32093 * script/sh/script.c (grub_script_parse): Likewise.
32094 * video/bitmap.c (grub_video_bitmap_create): Likewise.
32095 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
32096 * video/readers/png.c (grub_png_output_byte): Likewise.
32097 (grub_video_reader_png): Likewise.
32099 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32101 Enable all targets that can be built by default
32103 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
32104 grub-mkfont and grub-fstest if they can be built
32106 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32108 Fix hang and segmentation fault in grub-emu-usb
32110 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
32111 * util/usb.c (grub_libusb_devices): likewise
32112 (grub_libusb_init): rename to ...
32113 (GRUB_MOD_INIT (libusb)):...this
32114 (grub_libusb_fini): rename to ..
32115 (GRUB_MOD_FINI (libusb)):...this
32116 * disk/usbms.c (grub_usbms_transfer): fix retry logic
32117 * include/grub/disk.h (grub_raid_init): removed, it's useless
32118 (grub_raid_fini): likewise
32119 (grub_lvm_init): likewise
32120 (grub_lvm_fini): likewise
32121 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
32124 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32128 * Makefile.in (LIBUSB): new macro
32129 * genmk.rb (Utility/print_tail): new method
32130 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
32131 (top level): call util.print_tail at the end.
32133 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32135 Make FreeBSD accept zpool.cache
32137 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
32138 type is /boot/zfs/zpool.cache
32140 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32144 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
32145 correct wrong typedef
32146 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
32148 2009-07-15 Pavel Roskin <proski@gnu.org>
32150 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
32151 * kern/disk.c (struct grub_disk_cache): Likewise.
32153 * commands/probe.c (options): Typo fix.
32155 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
32156 Increase to 0x5a to accommodate FAT32. Adjust other offsets
32158 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
32160 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
32161 the end of "Error" to make the message more readable.
32163 * boot/i386/pc/boot.S (kernel_segment): Remove.
32164 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
32167 * boot/i386/pc/boot.S (boot_version): Remove.
32168 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
32171 * include/grub/i386/pc/boot.h: Sort all offsets.
32172 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
32173 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
32174 * boot/i386/pc/boot.S: Assert location of every offset listed in
32175 include/grub/i386/pc/boot.h.
32177 2009-07-13 Pavel Roskin <proski@gnu.org>
32179 * include/grub/i386/coreboot/machine.h: Rename
32180 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
32181 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
32182 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
32184 * kern/dl.c: Force native word size to suppress warnings when
32185 compiling grub-emu.
32187 * kern/device.c (grub_device_iterate): Change struct part_ent to
32188 hold the name, not a pointer to it. Use one grub_malloc() per
32189 partition, not two. Free partition_name if grub_malloc() fails.
32190 Set ents to NULL only before grub_partition_iterate() is called.
32192 2009-07-11 Bean <bean123ch@gmail.com>
32194 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
32197 2009-07-10 Bean <bean123ch@gmail.com>
32198 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
32200 * kern/ieee1275/openfw.c (grub_children_iterate)
32201 (grub_devalias_iterate): Fix size evaluation for property or path
32202 strings, which was broken since r2132.
32204 2009-07-07 Pavel Roskin <proski@gnu.org>
32206 * commands/search.c (search_file): Merge into ...
32207 (search_fs): ... this. Accept search type as argument.
32208 (grub_cmd_search): Pass search type to search_fs().
32210 * include/grub/util/console.h: New file.
32211 * util/console.c: Use it instead of grub/machine/console.h.
32212 * util/grub-emu.c: Likewise.
32214 * lib/arg.c (find_long_option): Remove.
32215 (find_long): Add `len' argument, make `s' const char *.
32216 (grub_arg_parse): Parse long options in place, not in a
32219 2009-07-06 Pavel Roskin <proski@gnu.org>
32221 * commands/search.c (search_fs): Fix potential NULL pointer
32224 * commands/search.c (search_fs): Replace QUID macro with quid_fn
32227 2009-07-06 Daniel Mierswa <impulze@impulze.org>
32229 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
32232 2009-07-05 Pavel Roskin <proski@gnu.org>
32234 * include/grub/i386/linux.h (struct linux_kernel_params):
32235 Restore padding3, it's still needed.
32237 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
32239 * util/osdetect.lua: Likewise.
32241 2009-07-05 Bean <bean123ch@gmail.com>
32243 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
32245 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
32246 (grub_lua_getenv): Likewise.
32247 (grub_lua_setenv): Likewise.
32248 (save_errno): New function.
32249 (push_result): Likewise.
32250 (grub_lua_enum_device): Likewise.
32251 (grub_lua_enum_file): Likewise.
32252 (grub_lua_file_open): Likewise.
32253 (grub_lua_file_close): Likewise.
32254 (grub_lua_file_seek): Likewise.
32255 (grub_lua_file_read): Likewise.
32256 (grub_lua_file_getline): Likewise.
32257 (grub_lua_file_getsize): Likewise.
32258 (grub_lua_file_getpos): Likewise.
32259 (grub_lua_file_eof): Likewise.
32260 (grub_lua_file_exist): Likewise.
32261 (grub_lua_add_menu): Likewise.
32263 * script/lua/grub_lua.h (isupper): New inline function.
32264 (islower): Likewise.
32265 (ispunct): Likewise.
32266 (isxdigit): Likewise.
32267 (strcspn): Change to normal function.
32268 (strpbkr): New function declaration.
32269 (memchr): Likewise.
32271 * script/lua/grub_main.c (scan_str): New function.
32272 (strcspn): Likewise.
32273 (strpbrk): Likewise.
32274 (memchr): Likewise.
32276 * script/lua/linit.c (lualibs): Enable the string library.
32278 * util/osdetect.lua: New file.
32280 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
32282 * include/grub/i386/linux.h (struct linux_kernel_params): Add
32283 `capabilities' member.
32285 2009-07-02 Pavel Roskin <proski@gnu.org>
32287 * genparttoollist.sh: Add missing newline at the end.
32289 2009-07-01 Pavel Roskin <proski@gnu.org>
32291 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
32293 * util/hostdisk.c (open_device): Remove `const' from
32294 `sysctl_size', as sysctlbyname() can change it (in this case it
32295 doesn't actually happen).
32297 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
32298 using signed long int constants.
32300 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
32301 constant to avoid a warning on FreeBSD.
32303 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
32306 * Makefile.in: Install include/grub/machine symlink.
32308 * Makefile.in: When installing symlinks, use "cp -fR", which
32309 works on FreeBSD and MacOSX.
32310 From Yves Blusseau <cl7m42e02@sneakemail.com>
32312 * kern/dl.c (grub_dl_resolve_symbol): Make static.
32313 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
32315 * util/misc.c: Move grub_reboot() and grub_halt() ...
32316 * util/grub-emu.c: ... here. Make main_env static.
32317 * include/grub/util/misc.h: Remove main_env.
32319 * kern/mm.c: Use correct format to print size_t.
32321 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
32322 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
32323 * kern/powerpc/dl.c: Likewise.
32324 * kern/sparc64/dl.c: Likewise.
32325 * kern/x86_64/dl.c: Likewise.
32327 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
32329 Fix grub-emu build on sparc64-ieee1275.
32331 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
32332 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
32334 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
32336 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
32337 (grub_reboot, grub_halt): New functions.
32339 * util/i386/pc/misc.c: Delete. Update all users.
32340 * util/sparc64/ieee1275/misc.c: Likewise.
32341 * util/powerpc/ieee1275/misc.c: Likewise.
32343 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
32345 * conf/i386.rmk (setjmp_mod_SOURCES)
32346 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
32347 * conf/common.rmk (setjmp_mod_SOURCES)
32348 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
32349 to use $(target_cpu).
32350 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
32351 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
32352 * conf/powerpc-ieee1275.rmk: Likewise.
32353 * conf/sparc64-ieee1275.rmk: Likewise.
32355 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
32356 $(target_cpu) for kern/$(target_cpu)/dl.c.
32357 * conf/i386-efi.rmk: Likewise.
32358 * conf/i386-ieee1275.rmk: Likewise.
32359 * conf/x86_64-efi.rmk: Likewise.
32360 * conf/i386-coreboot.rmk: Likewise.
32361 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
32362 $(target_cpu) for kern/$(target_cpu)/dl.c and for
32363 kern/$(target_cpu)/cache.S.
32364 * conf/sparc64-ieee1275.rmk: Likewise.
32366 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
32368 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
32369 type to `grub_uint8_t', and adjust `padding9' accordingly.
32371 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
32373 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
32375 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
32376 assembly in final jump, using register constraints.
32378 (grub_linux_boot): For text mode, initialize `have_vga' using
32379 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
32381 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
32382 right before the final jump.
32384 Set `video_mode' to 0x3.
32386 Document initialization of `video_page', `video_mode' and
32389 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
32391 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
32392 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
32393 and set GRUB_LINUX_FLAG_QUIET appropriately.
32395 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
32397 Fix build on Debian / sparc.
32399 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
32401 2009-06-28 Pavel Roskin <proski@gnu.org>
32403 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
32406 * util/grub.d/10_linux.in: Match SUSE style initrd names.
32408 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
32410 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
32413 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
32417 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
32418 file can't be opened. grub_file_open() is already supposed to set
32419 grub_errno / grub_errmsg appropriately.
32420 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
32422 2009-06-27 Pavel Roskin <proski@gnu.org>
32423 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
32425 * include/grub/dl.h: Include grub/elf.h.
32426 (struct grub_dl): Add symtab field.
32427 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
32428 GRUB_MODULES_MACHINE_READONLY.
32429 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
32430 of the header for read-only modules.
32431 (grub_dl_unload): Free mod->symtab for read-only modules.
32432 * kern/i386/dl.c: Use mod->symtab.
32433 * kern/powerpc/dl.c: Likewise.
32434 * kern/sparc64/dl.c: Likewise.
32435 * kern/x86_64/dl.c: Likewise.
32437 * conf/i386-qemu.rmk: New file.
32438 * kern/i386/qemu/startup.S: Likewise.
32439 * kern/i386/qemu/mmap.c: Likewise.
32440 * boot/i386/qemu/boot.S: Likewise.
32441 * include/grub/i386/qemu/time.h: Likewise.
32442 * include/grub/i386/qemu/serial.h: Likewise.
32443 * include/grub/i386/qemu/kernel.h: Likewise.
32444 * include/grub/i386/qemu/console.h: Likewise.
32445 * include/grub/i386/qemu/boot.h: Likewise.
32446 * include/grub/i386/qemu/init.h: Likewise.
32447 * include/grub/i386/qemu/machine.h: Likewise.
32448 * include/grub/i386/qemu/loader.h: Likewise.
32449 * include/grub/i386/qemu/memory.h: Likewise.
32451 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
32452 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
32453 [qemu] (pkglib_IMAGES): Add `boot.img'.
32454 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
32455 [qemu] (boot_img_FORMAT): New variables.
32456 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
32457 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
32458 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
32459 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
32460 [qemu] (kernel_img_FORMAT): New variables.
32462 * configure.ac: Recognise `i386-qemu'.
32464 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
32465 (for no compression).
32466 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
32467 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
32468 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
32469 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
32472 2009-06-27 Pavel Roskin <proski@gnu.org>
32474 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
32476 * efiemu/prepare32.c: Likewise.
32477 * efiemu/prepare64.c: Likewise.
32479 2009-06-26 Pavel Roskin <proski@gnu.org>
32481 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
32482 * include/grub/elf.h: Define symbols without "32" or "64" based
32483 on GRUB_TARGET_WORDSIZE.
32484 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
32485 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
32487 * efiemu/loadcore64.c: Likewise.
32488 * loader/i386/bsd32.c: Likewise.
32489 * loader/i386/bsd64.c: Likewise.
32490 * kern/dl.c: Remove own ELF definitions.
32491 * util/i386/efi/grub-mkimage.c: Likewise.
32493 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
32495 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
32496 segment 0x0 unconditionally, because the reference generated by
32497 GAS is an absolute address.
32499 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32501 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
32502 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
32504 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32506 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
32507 indexes. Check for -f explicitly.
32508 (search_file): Improve error message.
32509 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
32511 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32513 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
32514 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
32516 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32518 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
32519 * conf/i386-ieee1275.rmk: Likewise.
32520 * conf/i386-coreboot.rmk: Likewise.
32522 * kern/i386/pc/startup.S (grub_stop): Remove function.
32523 * kern/i386/ieee1275/startup.S: Likewise.
32524 * kern/i386/coreboot/startup.S: Likewise.
32525 * kern/i386/misc.S (grub_stop): New function.
32527 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32529 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
32530 * kern/i386/realmode.S (real_to_prot): ... to here.
32532 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32534 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
32536 (kernel_elf_SOURCES): Rename to ...
32537 (kernel_img_SOURCES): ... this.
32538 (kernel_elf_HEADERS): Rename to ...
32539 (kernel_img_HEADERS): ... this. Update all users.
32540 (kernel_elf_ASFLAGS): Rename to ...
32541 (kernel_img_ASFLAGS): ... this.
32542 (kernel_elf_CFLAGS): Rename to ...
32543 (kernel_img_CFLAGS): ... this.
32544 (kernel_elf_LDFLAGS): Rename to ...
32545 (kernel_img_LDFLAGS): ... this.
32546 * conf/i386-coreboot.rmk: Likewise.
32547 * conf/powerpc-ieee1275.rmk: Likewise.
32549 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
32552 2009-06-21 Pavel Roskin <proski@gnu.org>
32554 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
32555 to match nested functions.
32556 * loader/sparc64/ieee1275/linux.c: Likewise.
32558 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
32560 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
32562 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
32563 all i386 platforms.
32565 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
32567 Fix asm file handling on ELF, and remove workarounds.
32569 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
32570 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
32571 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
32572 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
32574 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
32576 Load BSD ELF modules
32578 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
32579 and loader/i386/bsd64.c
32580 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
32581 (FREEBSD_MODTYPE_ELF_MODULE): New definition
32582 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
32583 (grub_freebsd_load_elfmodule32): New declaration
32584 (grub_freebsd_load_elfmoduleobj64): Likewise
32585 (grub_freebsd_load_elf_meta32): Likewise
32586 (grub_freebsd_load_elf_meta64): Likewise
32587 (grub_freebsd_add_meta): Likewise
32588 (grub_freebsd_add_meta_module): Likewise
32589 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
32590 (grub_freebsd_add_meta_module): Likewise and move module-specific
32591 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
32592 (grub_cmd_freebsd): Add elf-kernel specific parts
32593 based on grub_freebsd_add_meta_module
32594 (grub_cmd_freebsd_module): Add type parsing moved from
32595 grub_freebsd_add_meta_module
32596 (grub_cmd_freebsd_module_elf): New function
32597 (cmd_freebsd_module_elf): New variable
32598 (GRUB_MOD_INIT): Register freebsd_module_elf
32599 * loader/i386/bsd32.c: New file
32600 * loader/i386/bsd64.c: Likewise
32601 * loader/i386/bsdXX.c: Likewise
32602 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
32603 (grub_elf64_load): Likewise
32604 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
32606 (grub_elf64_load_hook_t): Likewise
32608 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
32610 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
32612 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
32613 don't write a menu entry for recovery mode.
32615 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
32617 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
32618 after it's no longer needed.
32620 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
32622 * include/grub/i386/loader.h (grub_linux_prot_size)
32623 (grub_linux_tmp_addr, grub_linux_real_addr)
32624 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
32625 GRUB_MACHINE_PCBIOS.
32626 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
32627 common grub_util_info() call to ...
32628 (generate_image): ... here.
32629 Fix use of uninitialized memory, comparison of signed with
32630 unsigned integers and memory leak.
32631 Remove bogus module address message.
32633 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
32635 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
32637 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
32639 2009-06-19 Pavel Roskin <proski@gnu.org>
32641 * configure.ac: Remove stray AC_MSG_CHECKING.
32643 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
32645 * disk/scsi.c (grub_scsi_open): use continue instead of big if
32647 2009-06-18 Pavel Roskin <proski@gnu.org>
32649 * conf/common.rmk: Add fs_file.mod.
32650 * disk/fs_file.c: New file.
32651 * include/grub/disk.h (enum grub_disk_dev_id): Add
32652 GRUB_DISK_DEVICE_FILE_ID.
32654 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32656 Fix build with Apple's toolchain. Part 2
32658 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
32661 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32663 Fix build with Apple's toolchain. Part 1
32665 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
32667 * configure.ac: remove a leftover AC_MSG_RESULT
32668 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
32671 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32675 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
32676 (decomp_block): initialize ch
32677 use grub_memcpy instead of memcpy
32679 2009-06-17 Pavel Roskin <proski@gnu.org>
32681 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
32682 version, use declarations needed to use vga_text as the startup
32685 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
32686 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
32688 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
32689 and grub_at_keyboard_fini(), it's done on module load and
32692 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
32694 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
32695 file can't be found.
32696 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
32698 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
32700 Fix newline handling
32702 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
32703 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
32704 (grub_script_yylex): don't segfault on unterminated script
32705 newline terminates command and variable
32707 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
32709 avoid double grub_adjust_range call. Bug reported by David Simner
32711 * kern/disk.c (grub_disk_write): change to raw disk access before
32714 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
32716 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
32717 spaces, for the benefit of help2man.
32718 * util/i386/efi/grub-mkimage.c (usage): Likewise.
32720 2009-06-16 Pavel Roskin <proski@gnu.org>
32722 * kern/i386/halt.c: Include grub/machine/init.h.
32723 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
32725 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
32727 * util/grub.d/30_os-prober.in: Use ${root} in the generated
32728 drivemap menuentry.
32730 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
32732 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
32735 2009-06-16 Pavel Roskin <proski@gnu.org>
32737 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
32738 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
32739 save %dx, we only need %dl and we never change it.
32740 * boot/i386/pc/cdboot.S: Don't set the root drive.
32741 * boot/i386/pc/pxeboot.S: Likewise.
32742 * include/grub/i386/pc/boot.h: Remove
32743 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
32744 GRUB_BOOT_MACHINE_DRIVE_CHECK.
32745 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
32746 * kern/i386/pc/init.c (make_install_device): Remove references
32747 to grub_root_drive.
32748 * kern/i386/pc/startup.S: Likewise.
32749 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
32751 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
32755 * commands/xnu_uuid.c: new file
32756 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
32757 (xnu_uuid_mod_SOURCES): new variable
32758 (xnu_uuid_mod_CFLAGS): likewise
32759 (xnu_uuid_mod_LDFLAGS): likewise
32760 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
32761 * conf/i386-ieee1275.rmk: likewise
32762 * conf/i386-pc.rmk: likewise
32763 * conf/powerpc-ieee1275.rmk: likewise
32764 * conf/sparc64-ieee1275.rmk: likewise
32765 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
32767 2009-06-16 Pavel Roskin <proski@gnu.org>
32769 * configure.ac: Avoid '==' in test command, it's not portable.
32771 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
32775 * commands/probe.c: new file
32776 * conf/common.rmk (pkglib_MODULES): add probe.mod
32777 (probe_mod_SOURCES): new variable
32778 (probe_mod_CFLAGS): likewise
32779 (probe_mod_LDFLAGS): likewise
32780 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
32781 * conf/i386-ieee1275.rmk: likewise
32782 * conf/i386-pc.rmk: likewise
32783 * conf/powerpc-ieee1275.rmk: likewise
32784 * conf/sparc64-ieee1275.rmk: likewise
32786 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
32788 Fix handling of string like \"hello\" and "a
32791 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
32792 (grub_script_yylex): fix parsing of quoting, escaping and newline
32794 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
32796 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
32799 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
32801 * util/grub-mkconfig.in: Fix parsing of --output option.
32803 2009-06-12 Pavel Roskin <proski@gnu.org>
32805 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
32806 genmk.rb don't need to be generated or installed.
32808 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
32810 * commands/i386/pc/drivemap_int13h.S: add more comments
32812 2009-06-11 Pavel Roskin <proski@gnu.org>
32814 * Makefile.in (uninstall): Uninstall manuals.
32816 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
32817 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
32818 and update-grub_lib in two places.
32819 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
32821 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
32822 a compiler warning.
32824 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
32825 `entry_lo' to fix variable shadowing.
32827 2009-06-11 Christian Franke <franke@computer.org>
32829 * kern/misc.c (__enable_execute_stack): Add missing return type
32830 to prevent gcc warning.
32832 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
32834 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
32836 2009-06-11 Pavel Roskin <proski@gnu.org>
32838 * Makefile.in: Don't rely on any scripts being executable.
32839 Always use $(SHELL) to run shell scripts.
32841 * configure.ac: Always define ___main if using -nostdlib. This
32842 fixes tests on Cygwin.
32844 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
32848 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
32849 is in bytes and not in blocks
32851 2009-06-11 Pavel Roskin <proski@gnu.org>
32853 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
32856 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
32858 * util/grub.d/30_os-prober.in: Fix a comment. Source
32859 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
32860 to set the root device. Place drivemap command in the generated
32863 2009-06-11 Pavel Roskin <proski@gnu.org>
32865 * configure.ac: Remove host_m32. Issues with 64-bit utilities
32866 have long been resolved.
32868 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
32870 * util/grub.d/10_linux.in: Capitalise "Linux".
32872 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
32874 2009-06-11 Pavel Roskin <proski@gnu.org>
32876 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
32877 fix a gcc warning and ensure that the function won't ever exit.
32879 * kern/i386/ieee1275/init.c: Add missing prototype for
32880 grub_stop_floppy().
32882 * loader/ieee1275/multiboot2.c [__i386__]: Include
32883 grub/cpu/multiboot.h.
32885 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
32886 casts to short - they are not portable and cause warnings. Fix
32887 use of uninitialized values in input_buf. Use ARRAY_SIZE.
32889 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
32893 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
32895 (grub_get_root_biosnumber_saved): new variable
32896 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
32897 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
32898 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
32899 %dx after the call if necessary
32900 * conf/common.rmk (pkglib_MODULES): remove boot.mod
32901 (boot_mod_SOURCES): remove
32902 (boot_mod_CFLAGS): remove
32903 (boot_mod_LDFLAGS): remove
32904 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
32905 (boot_mod_SOURCES): new variable
32906 (boot_mod_CFLAGS): likewise
32907 (boot_mod_LDFLAGS): likewise
32908 * conf/i386-efi.rmk: likewise
32909 * conf/i386-ieee1275.rmk: likewise
32910 * conf/i386-pc.rmk: likewise
32911 * conf/powerpc-ieee1275.rmk: likewise
32912 * conf/sparc64-ieee1275.rmk: likewise
32913 * conf/x86_64-efi.rmk: likewise
32914 * include/grub/i386/pc/biosnum.h: new file
32915 * lib/i386/pc/biosnum.c: likewise
32916 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
32917 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
32918 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
32920 2009-06-10 Pavel Roskin <proski@gnu.org>
32922 * io/gzio.c (test_header): Don't reuse one buffer for all data.
32923 Use separate variables. Read only the file size at the end, but
32924 not the checksum that we don't use.
32926 * kern/file.c (grub_file_read): Use void pointer for the buffer.
32927 Adjust all callers.
32929 * kern/ieee1275/openfw.c: Remove libc includes.
32930 * kern/ieee1275/cmain.c: Likewise.
32931 * include/grub/ieee1275/ieee1275.h: Likewise.
32933 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
32936 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
32938 * Makefile.in: Remove all trailing whitespace.
32939 * conf/i386-pc.rmk: Likewise.
32940 * conf/powerpc-ieee1275.rmk: Likewise.
32941 * conf/sparc64-ieee1275.rmk: Likewise.
32942 * docs/grub.texi: Likewise.
32943 * docs/texinfo.tex: Likewise.
32944 * disk/fs_uuid.c: Likewise.
32945 * disk/lvm.c: Likewise.
32946 * disk/scsi.c: Likewise.
32947 * disk/ata.c: Likewise.
32948 * disk/ieee1275/ofdisk.c: Likewise.
32949 * disk/i386/pc/biosdisk.c: Likewise.
32950 * disk/host.c: Likewise.
32951 * disk/raid.c: Likewise.
32952 * disk/efi/efidisk.c: Likewise.
32953 * disk/usbms.c: Likewise.
32954 * disk/memdisk.c: Likewise.
32955 * disk/loopback.c: Likewise.
32956 * kern/powerpc/dl.c: Likewise.
32957 * kern/device.c: Likewise.
32958 * kern/dl.c: Likewise.
32959 * kern/sparc64/dl.c: Likewise.
32960 * kern/ieee1275/ieee1275.c: Likewise.
32961 * kern/term.c: Likewise.
32962 * kern/fs.c: Likewise.
32963 * kern/i386/dl.c: Likewise.
32964 * kern/i386/pc/startup.S: Likewise.
32965 * kern/i386/pc/init.c: Likewise.
32966 * kern/i386/pc/mmap.c: Likewise.
32967 * kern/i386/pc/lzo1x.S: Likewise.
32968 * kern/i386/ieee1275/init.c: Likewise.
32969 * kern/i386/realmode.S: Likewise.
32970 * kern/i386/tsc.c: Likewise.
32971 * kern/partition.c: Likewise.
32972 * kern/corecmd.c: Likewise.
32973 * kern/file.c: Likewise.
32974 * kern/efi/efi.c: Likewise.
32975 * kern/efi/init.c: Likewise.
32976 * kern/efi/mm.c: Likewise.
32977 * kern/main.c: Likewise.
32978 * kern/err.c: Likewise.
32979 * kern/env.c: Likewise.
32980 * kern/disk.c: Likewise.
32981 * kern/generic/millisleep.c: Likewise.
32982 * kern/generic/rtc_get_time_ms.c: Likewise.
32983 * kern/misc.c: Likewise.
32984 * kern/parser.c: Likewise.
32985 * genmk.rb: Likewise.
32986 * configure.ac: Likewise.
32987 * boot/i386/pc/diskboot.S: Likewise.
32988 * boot/i386/pc/pxeboot.S: Likewise.
32989 * boot/i386/pc/boot.S: Likewise.
32990 * boot/i386/pc/lnxboot.S: Likewise.
32991 * boot/i386/pc/cdboot.S: Likewise.
32992 * parttool/pcpart.c: Likewise.
32993 * video/readers/tga.c: Likewise.
32994 * video/video.c: Likewise.
32995 * video/bitmap.c: Likewise.
32996 * lib/envblk.c: Likewise.
32997 * lib/i386/setjmp.S: Likewise.
32998 * fs/xfs.c: Likewise.
32999 * fs/afs.c: Likewise.
33000 * fs/fat.c: Likewise.
33001 * fs/ntfs.c: Likewise.
33002 * fs/udf.c: Likewise.
33003 * fs/affs.c: Likewise.
33004 * fs/iso9660.c: Likewise.
33005 * fs/hfs.c: Likewise.
33006 * fs/fshelp.c: Likewise.
33007 * fs/ext2.c: Likewise.
33008 * fs/jfs.c: Likewise.
33009 * fs/reiserfs.c: Likewise.
33010 * fs/hfsplus.c: Likewise.
33011 * fs/minix.c: Likewise.
33012 * fs/cpio.c: Likewise.
33013 * fs/sfs.c: Likewise.
33014 * fs/ufs.c: Likewise.
33015 * efiemu/prepare.c: Likewise.
33016 * efiemu/loadcore_common.c: Likewise.
33017 * efiemu/runtime/efiemu.sh: Likewise.
33018 * efiemu/runtime/efiemu.S: Likewise.
33019 * efiemu/runtime/efiemu.c: Likewise.
33020 * efiemu/pnvram.c: Likewise.
33021 * efiemu/main.c: Likewise.
33022 * efiemu/i386/pc/cfgtables.c: Likewise.
33023 * efiemu/i386/loadcore64.c: Likewise.
33024 * efiemu/i386/loadcore32.c: Likewise.
33025 * efiemu/loadcore.c: Likewise.
33026 * efiemu/symbols.c: Likewise.
33027 * efiemu/mm.c: Likewise.
33028 * include/grub/autoefi.h: Likewise.
33029 * include/grub/datetime.h: Likewise.
33030 * include/grub/term.h: Likewise.
33031 * include/grub/hfs.h: Likewise.
33032 * include/grub/lvm.h: Likewise.
33033 * include/grub/i386/tsc.h: Likewise.
33034 * include/grub/i386/linux.h: Likewise.
33035 * include/grub/i386/xnu.h: Likewise.
33036 * include/grub/i386/efiemu.h: Likewise.
33037 * include/grub/i386/pc/biosdisk.h: Likewise.
33038 * include/grub/i386/pc/memory.h: Likewise.
33039 * include/grub/i386/pc/vbe.h: Likewise.
33040 * include/grub/parttool.h: Likewise.
33041 * include/grub/video.h: Likewise.
33042 * include/grub/memory.h: Likewise.
33043 * include/grub/fs.h: Likewise.
33044 * include/grub/partition.h: Likewise.
33045 * include/grub/xnu.h: Likewise.
33046 * include/grub/efi/api.h: Likewise.
33047 * include/grub/efi/pe32.h: Likewise.
33048 * include/grub/efi/memory.h: Likewise.
33049 * include/grub/multiboot.h: Likewise.
33050 * include/grub/usbdesc.h: Likewise.
33051 * include/grub/multiboot2.h: Likewise.
33052 * include/grub/acpi.h: Likewise.
33053 * include/grub/efiemu/efiemu.h: Likewise.
33054 * include/grub/disk.h: Likewise.
33055 * include/grub/ieee1275/ieee1275.h: Likewise.
33056 * include/grub/net.h: Likewise.
33057 * include/grub/machoload.h: Likewise.
33058 * include/grub/macho.h: Likewise.
33059 * include/multiboot.h: Likewise.
33060 * genmoddep.awk: Likewise.
33061 * normal/main.c: Likewise.
33062 * normal/menu_entry.c: Likewise.
33063 * normal/menu_viewer.c: Likewise.
33064 * normal/completion.c: Likewise.
33065 * normal/cmdline.c: Likewise.
33066 * normal/misc.c: Likewise.
33067 * normal/datetime.c: Likewise.
33068 * bus/usb/usbtrans.c: Likewise.
33069 * bus/usb/ohci.c: Likewise.
33070 * bus/usb/uhci.c: Likewise.
33071 * bus/usb/usb.c: Likewise.
33072 * mmap/efi/mmap.c: Likewise.
33073 * mmap/i386/pc/mmap_helper.S: Likewise.
33074 * mmap/i386/pc/mmap.c: Likewise.
33075 * mmap/i386/mmap.c: Likewise.
33076 * mmap/i386/uppermem.c: Likewise.
33077 * mmap/mmap.c: Likewise.
33078 * commands/acpi.c: Likewise.
33079 * commands/echo.c: Likewise.
33080 * commands/blocklist.c: Likewise.
33081 * commands/loadenv.c: Likewise.
33082 * commands/usbtest.c: Likewise.
33083 * commands/boot.c: Likewise.
33084 * commands/parttool.c: Likewise.
33085 * commands/search.c: Likewise.
33086 * commands/cat.c: Likewise.
33087 * commands/i386/pc/play.c: Likewise.
33088 * commands/i386/pc/drivemap.c: Likewise.
33089 * commands/i386/pc/vbeinfo.c: Likewise.
33090 * commands/i386/pc/acpi.c: Likewise.
33091 * commands/i386/pc/vbetest.c: Likewise.
33092 * commands/ls.c: Likewise.
33093 * commands/cmp.c: Likewise.
33094 * commands/test.c: Likewise.
33095 * commands/efi/acpi.c: Likewise.
33096 * commands/gptsync.c: Likewise.
33097 * commands/help.c: Likewise.
33098 * partmap/amiga.c: Likewise.
33099 * partmap/apple.c: Likewise.
33100 * partmap/acorn.c: Likewise.
33101 * partmap/pc.c: Likewise.
33102 * partmap/sun.c: Likewise.
33103 * partmap/gpt.c: Likewise.
33104 * script/sh/lexer.c: Likewise.
33105 * script/sh/function.c: Likewise.
33106 * font/font.c: Likewise.
33107 * font/font_cmd.c: Likewise.
33108 * loader/powerpc/ieee1275/linux.c: Likewise.
33109 * loader/efi/chainloader.c: Likewise.
33110 * loader/multiboot_loader.c: Likewise.
33111 * loader/macho.c: Likewise.
33112 * loader/i386/multiboot.c: Likewise.
33113 * loader/i386/linux.c: Likewise.
33114 * loader/i386/pc/linux.c: Likewise.
33115 * loader/i386/pc/multiboot2.c: Likewise.
33116 * loader/i386/pc/chainloader.c: Likewise.
33117 * loader/i386/pc/xnu.c: Likewise.
33118 * loader/i386/bsd_trampoline.S: Likewise.
33119 * loader/i386/efi/linux.c: Likewise.
33120 * loader/i386/multiboot_elfxx.c: Likewise.
33121 * loader/i386/bsd_helper.S: Likewise.
33122 * loader/i386/bsd.c: Likewise.
33123 * loader/i386/linux_trampoline.S: Likewise.
33124 * loader/i386/xnu_helper.S: Likewise.
33125 * loader/i386/xnu.c: Likewise.
33126 * loader/i386/bsd_pagetable.c: Likewise.
33127 * loader/i386/multiboot_helper.S: Likewise.
33128 * loader/xnu.c: Likewise.
33129 * loader/xnu_resume.c: Likewise.
33130 * io/gzio.c: Likewise.
33131 * term/efi/console.c: Likewise.
33132 * term/terminfo.c: Likewise.
33133 * term/ieee1275/ofconsole.c: Likewise.
33134 * term/i386/pc/serial.c: Likewise.
33135 * term/i386/pc/vesafb.c: Likewise.
33136 * term/i386/pc/vga.c: Likewise.
33137 * term/usb_keyboard.c: Likewise.
33138 * term/gfxterm.c: Likewise.
33139 * aclocal.m4: Likewise.
33140 * util/lvm.c: Likewise.
33141 * util/grub.d/30_os-prober.in: Likewise.
33142 * util/grub.d/10_hurd.in: Likewise.
33143 * util/console.c: Likewise.
33144 * util/grub-macho2img.c: Likewise.
33145 * util/grub-probe.c: Likewise.
33146 * util/hostfs.c: Likewise.
33147 * util/i386/pc/grub-mkimage.c: Likewise.
33148 * util/i386/pc/grub-setup.c: Likewise.
33149 * util/i386/efi/grub-mkimage.c: Likewise.
33150 * util/grub-mkconfig.in: Likewise.
33151 * util/raid.c: Likewise.
33152 * util/resolve.c: Likewise.
33153 * util/grub-mkdevicemap.c: Likewise.
33154 * util/grub-emu.c: Likewise.
33155 * util/getroot.c: Likewise.
33156 * util/hostdisk.c: Likewise.
33157 * util/usb.c: Likewise.
33158 * util/grub-editenv.c: Likewise.
33159 * util/misc.c: Likewise.
33161 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
33163 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
33164 `genparttoollist.sh'.
33165 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
33166 Add `*.sh' to the list find searches for and change `mdate.sh'
33169 2009-06-10 Pavel Roskin <proski@gnu.org>
33171 * include/grub/multiboot2.h: Provide compatibility defines for
33173 * include/multiboot2.h: Include stdint.h only if needed, using
33175 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
33177 * loader/ieee1275/multiboot2.c: Likewise.
33178 * loader/multiboot2.c: Likewise.
33179 * loader/multiboot_loader.c: Likewise.
33181 * configure.ac: Use -nostdlib when probing for the target. It
33182 should not be required to have libc for the target.
33184 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
33185 they fail without libc headers for the target.
33186 * include/grub/powerpc/libgcc.h: Use weak attribute for all
33188 * include/grub/sparc64/libgcc.h: Likewise. Don't use
33189 preprocessor conditionals.
33191 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
33192 build system doesn't need to be aware of the tar.c internals.
33194 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
33196 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
33198 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
33200 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
33201 disk limit to 26 for IDE, Virtio, Xen and SCSI.
33203 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
33205 * util/i386/pc/grub-install.in: Change the error message if UUIDs
33206 aren't available if ata.mod gets used.
33208 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
33210 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
33211 initialising controller.
33212 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
33214 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
33216 * util/i386/pc/grub-install.in: Add a parameter --disk-module
33217 to choose between ata and biosdisk module on i386-pc.
33219 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
33221 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
33222 Subclass and Programming Interface fields in terms of the 3 byte
33223 Class Code register.
33224 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
33226 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
33227 interface is OHCI. Add grub_dprintf for symmetry with
33229 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
33230 interface is UHCI. Add interf variable for programming
33231 interface. Print interface with class/subclass.
33233 * bus/usb/ohci.c: Set interf with correct field.
33235 * bus/usb/uhci.c: Remove unneeded doubled lines.
33236 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
33237 Remove whitespace inside comment.
33239 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
33241 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
33242 as fallback an equivalent option without depth.
33244 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
33246 Not fail if unable to retrieve C/H/S on LBA disks
33248 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
33249 if unable to retrieve C/H/S on LBA disks
33251 2009-06-08 Pavel Roskin <proski@gnu.org>
33253 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
33256 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
33258 * Makefile.in (uninstall): Remove all $lib_DATA files.
33260 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
33262 Bugfix: install on partitionless device
33264 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
33267 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
33269 * Makefile.in (uninstall): Remove all $include_DATA files.
33271 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
33273 * commands/true.c: New file. Implement the true and false commands.
33274 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
33275 (true_mod_SOURCES): New variable.
33276 (true_mod_CFLAGS): Likewise.
33277 (true_mod_LDFLAGS): Likewise.
33279 2009-06-05 Colin D Bennett <colin@gibibit.com>
33281 Optimized font character lookup using binary search instead of linear
33282 search. Fonts now are required to have the character index ordered by
33285 * font/font.c (load_font_index): Verify that fonts have ordered
33287 (find_glyph): Use binary search instead of linear search to find a
33288 character in a font.
33290 2009-06-05 Michael Scherer <misc@mandriva.org>
33292 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
33293 uses case sensitive btree.
33294 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
33295 only for case insensitive filesystems.
33297 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
33299 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
33300 * conf/common.rmk (search_mod_CFLAGS): likewise
33302 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33304 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
33305 compensate a compiler bug
33307 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33309 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
33312 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33314 Definitions for creating asm symbols with Apple's CC
33316 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
33317 [APPLE_CC] (VARIABLE): likewise
33319 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33321 Disable lnxboot.img when compiled
33324 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
33325 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
33326 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
33327 [! APPLE_CC] (CODE_LENG): skip
33328 [! APPLE_CC] (setup_sects): likewise
33329 [! APPLE_CC]: skip filling
33331 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33333 Address in trampolines based on 32-bit registers when compiled
33336 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
33338 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
33340 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33342 Avoid aliases when compiling with Apple's CC for PCBIOS machine
33344 * kern/misc.c [APPLE_CC] (memcpy): new function
33345 [APPLE_CC] (memmove): likewise
33346 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
33347 (memcpy): define alias conditionally on !APPLE_CC
33350 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
33351 APPLE_CC are defined
33352 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
33353 (grub_assert_fail): make prototype conditional
33355 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33357 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
33359 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
33361 (CLEANFILES): add grub-macho2img
33362 (grub_macho2img_SOURCES): new variable
33363 * kern/i386/pc/startup.S (bss_start): new variable
33364 (bss_end): likewise
33365 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
33366 * util/grub-macho2img.c: new file
33368 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33370 Use objconv when compiling with Apple's CC
33372 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
33373 (efiemu64.o): likewise
33374 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
33375 when compiling with Apple's CC
33376 (efiemu64_s.o): likewise
33377 * configure.ac: check for objconv when compiling with Apple's CC
33378 * genmk.rb: use objconv for modules when compiled with Apple's CC
33380 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33382 Define segment as well as section when compiling with
33385 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
33386 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
33387 (efiemu_convert_pointer): likewise
33388 (efiemu_set_virtual_address_map): likewise
33389 (efiemu_convert_pointer): likewise
33390 (efiemu_getcrc32): likewise
33391 (init_crc32_table): likewise
33392 (reflect): likewise
33393 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
33394 (GRUB_MOD_DEP): likewise
33396 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33398 Allow a compilation without -mcmodel=large
33400 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
33401 when compiled without -mcmodel=large
33402 (filter_memory_map): remove memory post 4 GiB when compiled
33403 without -mcmodel=large
33404 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
33405 TARGET_CFLAGS when -mcmodel=large isn't supported
33407 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33409 Remove nested functions in efiemu core
33411 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
33413 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33415 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
33417 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
33419 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
33421 (grub_cpu_is_tsc_supported): likewise
33422 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
33424 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33426 Absolute addressing through constant with Apple's cc
33428 * kern/i386/pc/startup.S: Define necessary constants
33429 and address through it when using ABS with Apple's CC
33430 * boot/i386/pc/diskboot.S: likewise
33431 * boot/i386/pc/boot.S: likewise
33432 * boot/i386/pc/lnxboot.S: likewise
33433 * boot/i386/pc/cdboot.S: likewise
33434 * mmap/i386/pc/mmap_helper.S: likewise
33435 * commands/i386/pc/drivemap_int13h.S: likewise
33437 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33439 Check if compiler is apple cc
33441 * Makefile.in (ASFLAGS): new variable
33442 (TARGET_ASFLAGS): likewise
33443 (TARGET_MODULE_FORMAT): likewise
33444 (TARGET_APPLE_CC): likewise
33445 (OBJCONV): likewise
33446 (TARGET_IMG_CFLAGS): likewise
33447 (TARGET_CPPFLAGS): add includedir
33448 * configure.ac: call grub_apple_cc and grub_apple_target_cc
33449 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
33450 Check for linker script only if compiler isn't Apple's CC
33451 (TARGET_MODULE_FORMAT): set
33452 (TARGET_APPLE_CC): likewise
33453 (TARGET_ASFLAGS): likewise
33454 (ASFLAGS): likewise
33455 Check for objcopy only if compiler isn't Apple's CC
33456 Check for BSS symbol only if compiler isn't Apple's CC
33457 * genmk.rb: adapt nm options if we use Apple's utils
33458 * aclocal.m4 (grub_apple_cc): new test
33459 (grub_apple_target_cc): likewise
33461 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33463 Simplify sed expressions and improve awk
33465 * Makefile.in (install-local): simplify sed expression
33466 * gencmdlist.sh: likewise
33467 * genmoddep.awk: avoid adding module as a dependency of itself
33469 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33471 Add missing start symbols
33473 * boot/i386/pc/boot.S: add start
33474 * boot/i386/pc/pxeboot.S: likewise
33476 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33478 Fix wrong assumptions with grub-mkimage on EFI
33480 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
33481 (relocate_addresses): consider both r_addend and value at offset
33482 (make_mods_section): zerofill modinfo and header
33483 (convert_elf): write prefix here
33485 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33487 Use .asciz instead of .string
33489 * i386/pc/diskboot.S: use .asciz instead of .string
33490 * i386/pc/boot.S: likewise
33491 * include/grub/dl.h (GRUB_MOD_DEP): likewise
33492 (GRUB_MOD_NAME): likewise
33494 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33498 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
33499 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
33500 (grub_video_setup): remove
33501 (grub_video_set_mode): new prototype
33502 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
33504 (linux_vesafb_res): compile only on PCBIOS
33505 (grub_linux_boot): support gfxpayload
33506 * loader/i386/pc/xnu.c (video_hook): new function
33507 (grub_xnu_set_video): support gfxpayload
33508 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
33509 (DEFAULT_VIDEO_HEIGHT): likewise
33510 (DEFAULT_VIDEO_FLAGS): likewise
33511 (DEFAULT_VIDEO_MODE): new definition
33512 (video_hook): new function
33513 (grub_gfxterm_init): use grub_video_set_mode
33514 * util/grub.d/30_os-prober.in: remove explicit modesetting before
33516 * video/video.c (grub_video_setup): removed
33517 (grub_video_set_mode): new function based on grub_gfxterm_init and
33520 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33522 Avoid calling biosdisk in drivemap
33524 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
33525 (revparse_biosdisk): likewise
33526 (list_mappings): derive name from id directly
33527 (grub_cmd_drivemap): use tryparse_diskstring
33529 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33533 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
33534 (grub_lexer_param): add tokenonhold
33535 (grub_script_create_cmdline): remove cmdline. All callers updated
33536 (grub_script_function_create): make functionname
33537 grub_script_arg. All callers updated
33538 (grub_script_execute_argument_to_string): new prototype
33539 * kern/parser.c (state_transitions): reorder
33540 (grub_parser_cmdline_state): fix a bug and make more compact
33541 * script/sh/execute.c (grub_script_execute_argument_to_string):
33543 (grub_script_execute_cmdline): use new format
33544 * script/sh/function.c (grub_script_function_create): make functionname
33545 grub_script_arg. All callers updated
33546 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
33547 (grub_script_yylex): remove
33548 (grub_script_yylex2): renamed to ...
33549 (grub_script_yylex): ...renamed
33550 parse the expressions like a${b}c
33551 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
33552 (GRUB_PARSER_TOKEN_VAR): remove
33553 (GRUB_PARSER_TOKEN_NAME): likewise
33554 ("if"): declare as typeless
33555 ("while"): likewise
33556 ("function"): likewise
33561 (argument): likewise
33562 (script): accept empty scripts and make exit on error
33563 (arguments): use GRUB_PARSER_TOKEN_ARG
33564 (function): likewise
33565 (command): move error handling to script
33566 (menuentry): move grub_script_lexer_ref before
33567 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
33568 argument. All callers updated
33570 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
33572 Prevent GRUB from probing floppies during boot.
33574 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
33575 * commands/search.c (options): Add --no-floppy.
33576 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
33577 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
33578 --no-floppy when searching for UUIDs.
33580 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
33582 Simplify the code duplication in commands/search.c.
33584 * commands/search.c (search_label, search_fs_uuid): Merge into ...
33585 (search_fs): ... this. Update all users.
33587 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
33589 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
33591 2009-05-28 Pavel Roskin <proski@gnu.org>
33593 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
33594 Remove the original symlink explicitly.
33596 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
33597 just one slash. That's how grub_fshelp_find_file() does it.
33599 2009-05-26 Pavel Roskin <proski@gnu.org>
33601 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
33604 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
33607 2009-05-25 Christian Franke <franke@computer.org>
33609 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
33611 (grub_atapi_identify): Add wait after drive select.
33612 (grub_ata_identify): Do more strict status register check before
33613 calling grub_atapi_identify (). Suppress error message if status
33614 register is 0x00 after command failure. Add status register
33615 check after PIO read to avoid bogus identify due to stuck DRQ.
33616 Thanks to Pavel Roskin for testing.
33617 (grub_device_initialize): Remove unsafe status register check.
33618 Thanks to 'phcoder' for problem report and patch.
33619 Prevent sign extension in debug message.
33621 2009-05-23 Colin D Bennett <colin@gibibit.com>
33623 Cleaned up `include/grub/normal.h'. Grouped prototypes by
33624 definition file, and functions defined in `normal/menu.c' have had
33625 their prototypes moved to `include/grub/menu.h' for consistency.
33627 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
33629 (grub_menu_get_entry): Likewise.
33630 (grub_menu_get_timeout): Likewise.
33631 (grub_menu_set_timeout): Likewise.
33632 (grub_menu_execute_entry): Likewise.
33633 (grub_menu_execute_with_fallback): Likewise.
33634 (grub_menu_entry_run): Likewise.
33636 * include/grub/normal.h: Re-ordered and grouped function
33637 prototypes by file that the function is defined in.
33638 (grub_menu_execute_callback): Removed; moved to menu.h.
33639 (grub_menu_get_entry): Likewise.
33640 (grub_menu_get_timeout): Likewise.
33641 (grub_menu_set_timeout): Likewise.
33642 (grub_menu_execute_entry): Likewise.
33643 (grub_menu_execute_with_fallback): Likewise.
33644 (grub_menu_entry_run): Likewise.
33645 (grub_menu_addentry): Renamed from this ...
33646 (grub_normal_add_menu_entry): ... to this.
33648 * normal/main.c (grub_menu_addentry): Renamed from this ...
33649 (grub_normal_add_menu_entry): ... to this.
33651 * script/sh/execute.c (grub_script_execute_menuentry): Update
33652 reference to renamed grub_menu_addentry function.
33654 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
33656 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
33658 2009-05-22 Pavel Roskin <proski@gnu.org>
33660 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
33661 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
33662 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
33663 compiling for the i386 targets, but not for the utilities.
33665 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
33667 (grub_root_drive): Likewise.
33668 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
33670 (grub_root_drive): Change size to byte.
33671 (grub_start_addr): Remove.
33672 (grub_end_addr): Likewise.
33673 (grub_apm_bios_info): Likewise.
33675 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
33677 * normal/i386: Remove.
33678 * normal/powerpc: Likewise.
33679 * normal/sparc64: Likewise.
33680 * normal/x86_64: Likewise.
33682 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
33684 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
33685 * loader/i386/linux_trampoline.S: Fix indentation
33686 * loader/i386/xnu_helper.S: Likewise
33688 2009-05-18 Colin D Bennett <colin@gibibit.com>
33690 Display error messages when parsing a Lua statement fails.
33691 Previously, executing a syntactically invalid statement like
33692 ")foo" or "bar;" would silently fail.
33694 * script/lua/grub_main.c (handle_lua_error): New function.
33695 (grub_lua_parse_line): Improved reporting of Lua parser and
33698 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
33700 Remove -Werror which causes build to fail on some systems
33702 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
33703 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
33704 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
33706 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
33708 trampoline for linux on 64-bit platform
33710 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
33711 loader/i386/efi/linux_trampoline.S
33712 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
33714 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
33716 * loader/i386/linux_trampoline.S: moved here
33717 * loader/i386/efi/linux.c (allocate_pages): reserve space for
33719 (jumpvector): removed
33720 (grub_linux_trampoline_start): new declaration
33721 (grub_linux_trampoline_end): likewise
33722 (grub_linux_boot): use trampoline when on 64-bit platform
33723 * loader/i386/linux.c: likewise
33725 2009-05-16 Pavel Roskin <proski@gnu.org>
33727 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
33728 const to avoid a warning.
33729 (grub_lua_setenv): Likewise.
33730 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
33731 lmsg to fix a warning.
33733 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
33735 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
33736 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33737 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
33738 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33739 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
33740 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33741 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
33742 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33744 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
33746 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
33748 2009-05-16 Bean <bean123ch@gmail.com>
33750 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
33751 (lua_mod_SOURCES): New variable.
33752 (lua_mod_CFLAGS): Likewise.
33753 (lua_mod_LDFLAGS): Likewise.
33755 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
33756 (setjmp_mod_SOURCES): New variable.
33757 (setjmp_mod_CFLAGS): Likewise.
33758 (setjmp_LDFLAGS): Likewise.
33760 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
33761 (setjmp_mod_SOURCES): New variable.
33762 (setjmp_mod_CFLAGS): Likewise.
33763 (setjmp_LDFLAGS): Likewise.
33765 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
33766 (setjmp_mod_SOURCES): New variable.
33767 (setjmp_mod_CFLAGS): Likewise.
33768 (setjmp_LDFLAGS): Likewise.
33770 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
33771 (setjmp_mod_SOURCES): New variable.
33772 (setjmp_mod_CFLAGS): Likewise.
33773 (setjmp_LDFLAGS): Likewise.
33775 * normal/i386/setjmp.S: Moved from here ...
33776 * lib/i386/setjmp.S: ... Moved here
33777 * normal/x86_64/setjmp.S: Moved from here ...
33778 * lib/x86_64/setjmp.S: ... Moved here
33779 * normal/powerpc/setjmp.S: Moved from here ...
33780 * lib/powerpc/setjmp.S: ... Moved here
33781 * normal/sparc64/setjmp.S: Moved from here ...
33782 * lib/sparc64/setjmp.S: ... Moved here
33784 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
33785 returns_twice in mingw.
33787 * script/lua/grub_lib.c: New file.
33788 * script/lua/grub_lib.h: Likewise.
33789 * script/lua/grub_lua.h: Likewise.
33790 * script/lua/grub_main.c: Likewise.
33791 * script/lua/lapi.c: Likewise.
33792 * script/lua/lapi.h: Likewise.
33793 * script/lua/lauxlib.c: Likewise.
33794 * script/lua/lauxlib.h: Likewise.
33795 * script/lua/lbaselib.c: Likewise.
33796 * script/lua/lcode.c: Likewise.
33797 * script/lua/lcode.h: Likewise.
33798 * script/lua/ldblib.c: Likewise.
33799 * script/lua/ldebug.c: Likewise.
33800 * script/lua/ldebug.h: Likewise.
33801 * script/lua/ldo.c: Likewise.
33802 * script/lua/ldo.h: Likewise.
33803 * script/lua/ldump.c: Likewise.
33804 * script/lua/lfunc.c: Likewise.
33805 * script/lua/lfunc.h: Likewise.
33806 * script/lua/lgc.c: Likewise.
33807 * script/lua/lgc.h: Likewise.
33808 * script/lua/linit.c: Likewise.
33809 * script/lua/liolib.c: Likewise.
33810 * script/lua/llex.c: Likewise.
33811 * script/lua/llex.h: Likewise.
33812 * script/lua/llimits.h: Likewise.
33813 * script/lua/lmathlib.c: Likewise.
33814 * script/lua/lmem.c: Likewise.
33815 * script/lua/lmem.h: Likewise.
33816 * script/lua/loadlib.c: Likewise.
33817 * script/lua/lobject.c: Likewise.
33818 * script/lua/lobject.h: Likewise.
33819 * script/lua/lopcodes.c: Likewise.
33820 * script/lua/lopcodes.h: Likewise.
33821 * script/lua/loslib.c: Likewise.
33822 * script/lua/lparser.c: Likewise.
33823 * script/lua/lparser.h: Likewise.
33824 * script/lua/lstate.c: Likewise.
33825 * script/lua/lstate.h: Likewise.
33826 * script/lua/lstring.c: Likewise.
33827 * script/lua/lstring.h: Likewise.
33828 * script/lua/lstrlib.c: Likewise.
33829 * script/lua/ltable.c: Likewise.
33830 * script/lua/ltable.h: Likewise.
33831 * script/lua/ltablib.c: Likewise.
33832 * script/lua/ltm.c: Likewise.
33833 * script/lua/ltm.h: Likewise.
33834 * script/lua/lua.h: Likewise.
33835 * script/lua/luaconf.h: Likewise.
33836 * script/lua/lualib.h: Likewise.
33837 * script/lua/lundump.c: Likewise.
33838 * script/lua/lundump.h: Likewise.
33839 * script/lua/lvm.c: Likewise.
33840 * script/lua/lvm.h: Likewise.
33841 * script/lua/lzio.c: Likewise.
33842 * script/lua/lzio.h: Likewise.
33844 2009-05-16 Bean <bean123ch@gmail.com>
33846 * include/grub/kernel.h (grub_module_header_types): Add type
33849 * kern/main.c (grub_load_config): New function.
33850 (grub_main): Call grub_load_config to read boot config.
33852 * grub-mkimage (generate_image): New parameter config_path.
33853 (options): New option --config.
33854 (main): Parse --config option, and pass it to generate_image.
33856 2009-05-14 Christian Franke <franke@computer.org>
33858 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
33859 This fixes build on Cygwin.
33861 2009-05-14 Pavel Roskin <proski@gnu.org>
33863 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
33864 jump. This saves two bytes, so the typical case of 2 swapped
33865 drives would fit 32 bytes.
33867 2009-05-13 Pavel Roskin <proski@gnu.org>
33869 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
33870 grub_uint32_t to avoid a warning.
33872 * loader/i386/linux.c (allocate_pages): When assigning
33873 real_mode_mem, cast through grub_size_t to fix a warning. The
33874 code already makes sure that the value would fit a pointer.
33875 (grub_linux_setup_video): Cast render_target->data to
33876 grub_size_t to fix a warning.
33878 2009-05-13 Javier Martín <lordhabbit@gmail.com>
33880 * commands/i386/pc/drivemap.c: New file - implement drivemap
33882 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
33883 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
33885 2009-05-13 Pavel Roskin <proski@gnu.org>
33887 * util/i386/pc/grub-setup.c (setup): Remove unused variable
33888 embedding_area_exists.
33890 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
33892 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
33893 it easier to understand / work with.
33894 Improve warning messages for cases where there's no embedding area,
33895 or when it is too small (or core.img too large).
33897 2009-05-13 Pavel Roskin <proski@gnu.org>
33899 * loader/i386/pc/multiboot2.c: Add necessary includes for
33900 grub_multiboot2_real_boot().
33902 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
33903 PX record is always little-endian. We only need the lower 2
33906 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
33907 facilitate code reuse.
33908 (grub_cpio_mount): Use "struct head", not a char buffer. This
33909 fixes a warning reported by gcc 4.4.
33911 * kernel/disk.c (grub_disk_read): Use void pointer for the
33913 (grub_disk_write): Use const void pointer for the buffer.
33914 Adjust all callers. Remove unnecessary casts.
33916 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
33918 * util/i386/pc/grub-install.in: Update copyright year.
33920 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
33924 * commands/gptsync.c: new file
33925 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
33926 (gptsync_mod_SOURCES): new variable
33927 (gptsync_mod_CFLAGS): likewise
33928 (gptsync_mod_LDFLAGS): likewise
33929 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
33931 (GRUB_PC_PARTITION_TYPE_HFS): likewise
33932 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
33933 * conf/i386-ieee1275.rmk: likewise
33934 * conf/i386-pc.rmk: likewise
33935 * conf/powerpc-ieee1275.rmk: likewise
33937 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
33941 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
33942 (grub_dl_ref): likewise
33944 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
33946 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
33947 split in two functions (one for msdos and one for gpt).
33949 2009-05-08 Pavel Roskin <proski@gnu.org>
33951 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
33954 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
33955 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
33956 Initialize them with -1. Add sanity check for bad1. Eliminate
33959 2009-05-08 David S. Miller <davem@davemloft.net>
33961 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
33963 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
33965 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
33968 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
33970 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
33971 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
33973 2009-05-05 David S. Miller <davem@davemloft.net>
33975 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
33977 2009-05-05 Pavel Roskin <proski@gnu.org>
33979 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
33980 of grub_dl_ref() and grub_dl_unref().
33981 * commands/parttool.c: Remove preprocessor conditionals around
33982 grub_dl_ref() and grub_dl_unref().
33983 * fs/affs.c: Likewise.
33984 * fs/afs.c: Likewise.
33985 * fs/cpio.c: Likewise.
33986 * fs/ext2.c: Likewise.
33987 * fs/fat.c: Likewise.
33988 * fs/hfs.c: Likewise.
33989 * fs/hfsplus.c: Likewise.
33990 * fs/iso9660.c: Likewise.
33991 * fs/jfs.c: Likewise.
33992 * fs/minix.c: Likewise.
33993 * fs/ntfs.c: Likewise.
33994 * fs/reiserfs.c: Likewise.
33995 * fs/sfs.c: Likewise.
33996 * fs/udf.c: Likewise.
33997 * fs/ufs.c: Likewise.
33998 * fs/xfs.c: Likewise.
33999 * include/grub/dl.h: Likewise.
34000 * loader/xnu.c: Likewise.
34002 2009-05-04 Pavel Roskin <proski@gnu.org>
34004 * commands/acpi.c: Remove unused variable my_mod.
34005 * partmap/amiga.c: Likewise.
34006 * partmap/apple.c: Likewise.
34007 * partmap/gpt.c: Likewise.
34008 * partmap/pc.c: Likewise.
34009 * partmap/sun.c: Likewise.
34010 * term/gfxterm.c: Likewise.
34011 * term/i386/pc/vesafb.c: Likewise.
34012 * term/i386/pc/vga.c: Likewise.
34014 2009-05-04 David S. Miller <davem@davemloft.net>
34016 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
34017 pointer args to grub_ieee1275_get_property().
34019 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
34021 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
34022 devices, and do not traverse down under controller nodes.
34024 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
34025 (grub_ofdisk_open): Use it to un-escape "," characters.
34026 * kern/disk.c (find_part_sep): New.
34027 (grub_disk_open): Use it to find the first non-escaped ','
34028 character in the disk name.
34029 * util/ieee1275/devicemap.c (escape_of_path): New.
34030 (grub_util_emit_devicemap_entry): Use it.
34031 * util/sparc64/ieee1275/grub-install.in: Update script to
34032 strip partition specifiers properly by not triggering on
34033 '\' escaped ',' characters.
34035 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34037 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
34039 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
34041 (linux_vesafb_modes): Add a lot of additional modes to the list (based
34042 on documentation from Wikipedia).
34044 2009-05-04 Pavel Roskin <proski@gnu.org>
34046 * disk/ata.c: Spelling fixes.
34047 * disk/raid.c: Likewise.
34048 * disk/usbms.c: Likewise.
34049 * disk/dmraid_nvidia.c: Likewise.
34050 * kern/ieee1275/openfw.c: Likewise.
34051 * kern/ieee1275/init.c: Likewise.
34052 * kern/ieee1275/cmain.c: Likewise.
34053 * boot/i386/pc/cdboot.S: Likewise.
34054 * video/readers/png.c: Likewise.
34055 * video/i386/pc/vbe.c: Likewise.
34056 * fs/udf.c: Likewise.
34057 * fs/hfs.c: Likewise.
34058 * fs/reiserfs.c: Likewise.
34059 * efiemu/runtime/efiemu.c: Likewise.
34060 * efiemu/main.c: Likewise.
34061 * efiemu/mm.c: Likewise.
34062 * include/grub/elf.h: Likewise.
34063 * include/grub/xnu.h: Likewise.
34064 * include/grub/usbdesc.h: Likewise.
34065 * include/grub/usb.h: Likewise.
34066 * include/grub/script_sh.h: Likewise.
34067 * include/grub/lib/LzmaEnc.h: Likewise.
34068 * include/grub/efiemu/efiemu.h: Likewise.
34069 * include/grub/command.h: Likewise.
34070 * normal/menu.c: Likewise.
34071 * normal/main.c: Likewise.
34072 * normal/datetime.c: Likewise.
34073 * bus/usb/uhci.c: Likewise.
34074 * mmap/i386/uppermem.c: Likewise.
34075 * mmap/mmap.c: Likewise.
34076 * commands/acpi.c: Likewise.
34077 * commands/test.c: Likewise.
34078 * partmap/apple.c: Likewise.
34079 * font/font.c: Likewise.
34080 * loader/sparc64/ieee1275/linux.c: Likewise.
34081 * loader/macho.c: Likewise.
34082 * loader/i386/bsd_trampoline.S: Likewise.
34083 * loader/i386/bsd.c: Likewise.
34084 * loader/xnu.c: Likewise.
34085 * term/i386/pc/vesafb.c: Likewise.
34086 * term/usb_keyboard.c: Likewise.
34087 * util/resolve.c: Likewise.
34088 * util/getroot.c: Likewise.
34090 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
34092 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
34094 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34096 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
34099 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34101 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
34102 parameter only available on BIOS.
34104 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
34106 Removed wrong semicolon in declaration
34108 * grub/misc.h (grub_dprintf): remove semicolon
34110 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34112 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
34113 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
34114 is done by grub_cmd_linux() now).
34115 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
34116 restore video to text mode.
34117 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
34118 indicates lack of "vga=" parameter. "vga=0" is mapped to
34119 `GRUB_LINUX_VID_MODE_NORMAL'.
34121 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
34123 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
34124 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
34125 and `normal/script.c'. Add `kern/rescue_reader.c',
34126 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
34127 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
34128 `grub_script.tab.c'.
34130 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34131 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34133 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34134 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34136 * Makefile.in: Remove duplicated 2008 in Copyright line.
34138 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34140 * util/misc.c (grub_util_warn): New function. Emits a warning
34142 * include/grub/util/misc.h (grub_util_warn): New declaration.
34144 * util/i386/pc/grub-install.in: Understand --force and pass it down
34147 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
34149 (setup): Improve error messages and add warnings when requested to
34150 install in odd layouts. Refuse to install using blocklists unless
34153 2009-05-04 martin f. krafft <madduck@madduck.net>
34155 * disk/raid.c (grub_raid_scan_device): Improve debug message.
34157 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
34159 Updated copyright year
34161 * fs/hfsplus.c: updated copyright year
34163 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
34167 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
34168 in the space previously used by unused3
34169 (grub_hfsplus_uuid): new function
34170 (grub_hfsplus_fs): added uuid field
34172 2009-05-03 Pavel Roskin <proski@gnu.org>
34174 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
34175 suppress warnings. It's no longer needed.
34176 * disk/host.c: Likewise.
34177 * disk/ata_pthru.c: Likewise.
34178 * disk/loopback.c: Likewise.
34179 * hook/datehook.c: Likewise.
34180 * parttool/pcpart.c: Likewise.
34181 * fs/i386/pc/pxe.c: Likewise.
34182 * fs/ntfscomp.c: Likewise.
34183 * efiemu/main.c: Likewise.
34184 * mmap/mmap.c: Likewise.
34185 * commands/crc.c: Likewise.
34186 * commands/hexdump.c: Likewise.
34187 * commands/hdparm.c: Likewise.
34188 * commands/acpi.c: Likewise.
34189 * commands/echo.c: Likewise.
34190 * commands/minicmd.c: Likewise.
34191 * commands/blocklist.c: Likewise.
34192 * commands/memrw.c: Likewise.
34193 * commands/loadenv.c: Likewise.
34194 * commands/usbtest.c: Likewise.
34195 * commands/lsmmap.c: Likewise.
34196 * commands/boot.c: Likewise.
34197 * commands/parttool.c: Likewise.
34198 * commands/configfile.c: Likewise.
34199 * commands/search.c: Likewise.
34200 * commands/ieee1275/suspend.c: Likewise.
34201 * commands/cat.c: Likewise.
34202 * commands/i386/pc/pxecmd.c: Likewise.
34203 * commands/i386/pc/play.c: Likewise.
34204 * commands/i386/pc/halt.c: Likewise.
34205 * commands/i386/pc/vbeinfo.c: Likewise.
34206 * commands/i386/pc/vbetest.c: Likewise.
34207 * commands/lspci.c: Likewise.
34208 * commands/date.c: Likewise.
34209 * commands/handler.c: Likewise.
34210 * commands/ls.c: Likewise.
34211 * commands/test.c: Likewise.
34212 * commands/cmp.c: Likewise.
34213 * commands/efi/loadbios.c: Likewise.
34214 * commands/efi/fixvideo.c: Likewise.
34215 * commands/halt.c: Likewise.
34216 * commands/help.c: Likewise.
34217 * commands/reboot.c: Likewise.
34218 * hello/hello.c: Likewise.
34219 * script/sh/main.c: Likewise.
34220 * loader/xnu.c: Likewise.
34221 * term/terminfo.c: Likewise.
34222 * term/i386/pc/serial.c: Likewise.
34223 * term/usb_keyboard.c: Likewise.
34225 2009-05-03 David S. Miller <davem@davemloft.net>
34227 * normal/menu.c: Include grub/parser.h
34229 2009-05-03 Pavel Roskin <proski@gnu.org>
34231 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
34233 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
34234 Suggested by Javier Martín <lordhabbit@gmail.com>
34236 * util/i386/pc/grub-mkrescue.in: Allow for the case when
34237 efiemu??.o doesn't exist.
34238 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
34241 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
34243 FreeBSD 64-bit support
34245 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
34246 and loader/i386/bsd_trampoline.S
34247 (bsd_mod_ASFLAGS): new variable
34248 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
34249 (FREEBSD_MODTYPE_KERNEL64): likewise
34250 (grub_bsd64_trampoline_start): likewise
34251 (grub_bsd64_trampoline_end): likewise
34252 (grub_bsd64_trampoline_selfjump): likewise
34253 (grub_bsd64_trampoline_gdt): likewise
34254 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
34255 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
34256 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
34257 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
34258 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
34260 * loader/i386/bsd_pagetable.c: new file
34261 * loader/i386/bsd_trampoline.S: likewise
34262 * loader/i386/bsd.c (ALIGN_QWORD): new macro
34263 (ALIGN_VAR): likewise
34264 (entry_hi): new variable
34265 (kern_end_mdofs): likewise
34266 (is_64bit): likewise
34267 (grub_freebsd_add_meta): use ALIGN_VAR
34268 (grub_e820_mmap): new declaration
34269 (grub_freebsd_add_mmap): new function
34270 (grub_freebsd_add_meta_module): support 64 bit kernels
34271 (grub_freebsd_list_modules): use ALIGN_VAR
34272 (gdt_descriptor): new declaration
34273 (grub_freebsd_boot): support 64 bit kernels
34274 (grub_bsd_elf64_hook): new function
34275 (grub_bsd_load_elf): support elf64
34277 2009-05-03 Bean <bean123ch@gmail.com>
34279 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
34280 after we get the result of if statement.
34282 2009-05-03 Bean <bean123ch@gmail.com>
34284 * Makefile.in (enable_efiemu): New variable.
34286 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
34288 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
34290 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
34291 path, add -mno-red-zone option.
34292 (efiemu64_s.o): Likewise.
34293 (efiemu64.o): Use macro $^ for source file.
34295 * configure.ac (--enable-efiemu): New option.
34297 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
34301 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
34302 (pkglib_MODULES): add xnu.mod
34303 (xnu_mod_SOURCES): new variable
34304 (xnu_mod_CFLAGS): likewise
34305 (xnu_mod_LDFLAGS): likewise
34306 (xnu_mod_ASFLAGS): likewise
34307 * conf/i386-pc.rmk: likewise
34308 * conf/x86_64-efi.rmk: likewise
34309 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
34311 * include/grub/i386/macho.h: new file
34312 * include/grub/i386/xnu.h: likewise
34313 * include/grub/macho.h: likewise
34314 * include/grub/machoload.h: likewise
34315 * include/grub/x86_64/macho.h: likewise
34316 * include/grub/x86_64/xnu.h: likewise
34317 * include/grub/xnu.h: likewise
34318 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
34319 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
34320 * loader/i386/efi/xnu.c: new file
34321 * loader/i386/pc/xnu.c: likewise
34322 * loader/i386/xnu.c: likewise
34323 * loader/i386/xnu_helper.S: likewise
34324 * loader/macho.c: likewise
34325 * loader/xnu.c: likewise
34326 * loader/xnu_resume.c: likewise
34327 * util/grub-dumpdevtree: likewise
34328 * include/grub/i386/pit.h: include grub/err.h
34329 (grub_pit_wait): export
34330 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
34332 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34336 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
34337 _linux_efi, linux_efi.
34338 new files in grub-emu
34339 new targets efiemu32.o and efiemu64.o
34340 * loader/linux_normal_efiemu.c: likewise
34341 * loader/i386/efi/linux.c: added preliminary efiemu support
34342 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
34344 * include/grub/autoefi.h: new file
34345 * include/grub/i386/efiemu.h: likewise
34346 * include/grub/i386/pc/efiemu.h: likewise
34347 * include/grub/efi/api.h: add LL suffix when necessary
34348 new definitions relating to tables
34349 * include/grub/efiemu/efiemu.h: new file
34350 * include/grub/efiemu/runtime.h: likewise
34351 * efiemu/prepare.c: likewise
34352 * efiemu/loadcore_common.c: likewise
34353 * efiemu/loadcore64.c: likewise
34354 * efiemu/runtime/efiemu.sh: likewise
34355 * efiemu/runtime/efiemu.S: likewise
34356 * efiemu/runtime/efiemu.c: likewise
34357 * efiemu/runtime/config.h: likewise
34358 * efiemu/prepare32.c: likewise
34359 * efiemu/main.c: likewise
34360 * efiemu/modules/pnvram.c: likewise
34361 * efiemu/modules/i386: likewise
34362 * efiemu/modules/i386/pc: likewise
34363 * efiemu/modules/acpi.c: likewise
34364 * efiemu/i386/pc/cfgtables.c: likewise
34365 * efiemu/i386/loadcore64.c: likewise
34366 * efiemu/i386/loadcore32.c: likewise
34367 * efiemu/prepare64.c: likewise
34368 * efiemu/loadcore.c: likewise
34369 * efiemu/symbols.c: likewise
34370 * efiemu/mm.c: likewise
34371 * efiemu/loadcore32.c: likewise
34373 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34377 * commands/acpi.c: new file
34378 * commands/i386/pc/acpi.c: likewise
34379 * commands/efi/acpi.c: likewise
34380 * include/grub/acpi.h: likewise
34381 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
34382 (acpi_mod_SOURCES): new variable
34383 (acpi_mod_CFLAGS): likewise
34384 (acpi_mod_LDFLAGS): likewise
34385 * conf/i386-efi.rmk: likewise
34386 * conf/x86_64-efi.rmk: likewise
34388 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34390 Missing part from mmap patch
34392 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
34393 (grub_mmap_unregister)
34394 (grub_mmap_free_and_unregister): use grub_mmap_register
34396 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34400 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
34401 * loader/i386/linux.c (find_mmap_size): likewise
34402 (allocate_pages): likewise
34403 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
34404 (grub_fill_multiboot_mmap): likewise
34405 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
34406 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
34407 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
34408 (OPENBSD_MMAP_RESERVED): likewise
34409 * include/grub/i386/pc/memory.h: include grub/memory.h
34410 (grub_lower_mem): removed
34411 (grub_upper_mem): likewise
34412 (GRUB_MACHINE_MEMORY_ACPI): new definition
34413 (GRUB_MACHINE_MEMORY_NVS): likewise
34414 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
34415 (GRUB_MACHINE_MEMORY_HOLE): likewise
34416 (grub_machine_mmap_register): likewise
34417 (grub_machine_mmap_unregister): likewise
34418 (grub_machine_get_upper): likewise
34419 (grub_machine_get_lower): likewise
34420 (grub_machine_get_post64): likewise
34421 * include/grub/i386/efi/memory.h: new file
34422 * include/grub/x86_64/efi/memory.h: likewise
34423 * include/grub/efi/memory.h: likewise
34424 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
34425 (mmap_mod_SOURCES): new variable
34426 (mmap_mod_LDFLAGS): likewise
34427 (mmap_mod_ASFLAGS): likewise
34428 * conf/i386-coreboot.rmk: likewise
34429 * conf/i386-ieee1275.rmk: likewise
34430 * conf/i386-efi.rmk: likewise
34431 * conf/x86_64-efi.rmk: likewise
34432 * include/grub/types.h (UINT_TO_PTR): new macro
34433 (PTR_TO_UINT32): likewise
34434 (PTR_TO_UINT64): likewise
34435 * include/grub/memory.h: new file
34436 * mmap/i386/pc/mmap.c: likewise
34437 * mmap/i386/pc/mmap_helper.S: likewise
34438 * mmap/i386/uppermem.c: likewise
34439 * mmap/mmap.c: likewise
34440 * mmap/efi/mmap.c: likewise
34441 * kern/i386/coreboot/init.c (grub_machine_init): don't use
34443 * kern/i386/pc/init.c (grub_lower_mem): removed variable
34444 (grub_upper_mem): likewise
34445 (grub_machine_init): don't use grub_upper_mem,
34446 make grub_lower_mem local
34447 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
34448 grub_mmap_iterate and grub_mmap_get_upper
34449 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
34451 2009-05-02 Bean <bean123ch@gmail.com>
34453 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
34454 script/sh/parser.y.
34455 (pkglib_MODULES): Add normal.mod and sh.mod.
34456 (normal_SOURCES): New variable.
34457 (normal_mod_CFLAGS): Likewise.
34458 (normal_mod_LDFLAGS): Likewise.
34459 (sh_mod_SOURCES): Likewise.
34460 (sh_mod_CFLAGS): Likewise.
34461 (sh_mod_LDFLAGS): Likewise.
34463 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
34464 script/sh/lexer.c_DEPENDENCIES.
34465 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
34466 kern/rescue_reader.c and kern/rescue_parser.c.
34467 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
34468 (grub_emu_SOURCES): Change source files.
34469 (pkglib_MODULES): Remove normal.mod.
34470 (normal_SOURCES): Removed.
34471 (normal_mod_CFLAGS): Likewise.
34472 (normal_mod_LDFLAGS): Likewise.
34473 * conf/i386-coreboot.rmk: Likewise.
34474 * conf/i386-efi.rmk: Likewise.
34475 * conf/i386-ieee1276.rmk: Likewise.
34476 * conf/powerpc-ieee1275.rmk: Likewise.
34477 * conf/sparc64-ieee1275.rmk: Likewise.
34478 * conf/x86_64-efi.rmk: Likewise.
34480 * include/grub/command.h (grub_command_execute): New inline function.
34482 * include/grub/menu.h (grub_menu_entry): Removed commands field.
34484 * include/grub/normal.h: Remove <grub/setjmp.h>.
34485 (grub_fs_module_list): Moved to normal/autofs.c.
34486 (grub_exit_env): Removed.
34487 (grub_command_execute): Likewise.
34488 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
34490 (read_command_list): New function declaration.
34491 (read_fs_list): Likewise.
34493 * include/parser.h: Include <grub/reader.h>.
34494 (grub_parser_split_cmdline): Change type of getline parameter.
34495 (grub_parser): New structure.
34496 (grub_parser_class): New variable.
34497 (grub_parser_execute): New function declaration.
34498 (grub_register_rescue_parser): Likewise.
34499 (grub_parser_register): New inline function.
34500 (grub_parser_unregister): Likewise.
34501 (grub_parser_get_current): Likewise.
34502 (grub_parser_set_current): Likewise.
34504 * include/grub/reader.h: New file.
34505 * kern/reader.c: Likewise.
34506 * kern/rescue_parser.c: Likewise.
34507 * kern/rescue_reader.c: Likewise.
34508 * normal/autofs.c: Likewise.
34509 * normal/dyncmd.c: Likewise.
34511 * include/grub/rescue.h: Removed.
34512 * normal/command.h: Likewise.
34514 * include/grub/script.h: Moved to ...
34515 * include/grub/script_sh.h: ... Moved here.
34516 * normal/execute.c: Moved to ...
34517 * script/sh/execute.c: ... Moved here.
34518 * normal/function.c: Moved to ...
34519 * script/sh/function.c: ... Moved here.
34520 * normal/lexer.c: Moved to ...
34521 * script/sh/lexer.c: ... Moved here.
34522 * normal/parser.y: Moved to ...
34523 * script/sh/parser.y: ... Moved here.
34524 * normal/script.c: Moved to ...
34525 * script/sh/script.c: ... Moved here.
34527 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
34529 (grub_exit_env): Removed.
34530 (fs_module_list): Moved to normal/autofs.c.
34531 (grub_file_getline): Don't handle comment here.
34532 (free_menu): Skip removed field entry->commands.
34533 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
34535 (read_config_file): Removed nested parameter, change getline function.
34536 (grub_enter_normal_mode): Removed.
34537 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
34538 (read_command_list): Likewise.
34539 (autoload_fs_module): Moved to normal/autofs.c.
34540 (read_fs_list): Likewise.
34541 (reader_nested): New variable.
34542 (grub_normal_execute): Run parser.sh to switch to sh parser.
34543 (grub_cmd_rescue): Removed.
34544 (cmd_normal): Removed.
34545 (grub_cmd_normal): Unregister itself at the beginning. Don't register
34547 (grub_cmdline_run): New function.
34548 (grub_normal_reader_init): Likewise.
34549 (grub_normal_read_line): Likewise.
34550 (grub_env_write_pager): Likewise.
34551 (cmdline): New variable.
34552 (grub_normal_reader): Likewise.
34553 (GRUB_MOD_INIT): Register normal reader and set as current, register
34554 pager hook, register normal command with grub_register_command_prio,
34555 so that it won't show up in command.lst.
34556 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
34557 grub_fs_autoload_hook.
34559 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
34560 (grub_menu_execute_entry): Replace grub_script_execute with
34561 grub_parser_execute, change parameter to grub_command_execute.
34563 * normal/menu_text.c: Remove <grub/script.h>.
34565 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
34566 and <grub/parser.h>.
34567 (run): Change editor_getline to use new parser interface. Change
34568 parameter to grub_command_execute.
34570 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
34571 <grub/reader.h> and <grub/parser.h>.
34572 (grub_load_normal_mode): Execute normal command.
34573 (grub_main): Call grub_register_core_commands,
34574 grub_register_rescue_parser and grub_register_rescue_reader, use
34575 grub_reader_loop to enter input loop.
34577 * kern/parser.c (grub_parser_split_cmdline): Change type of
34579 (grub_parser_class): New variable.
34580 (grub_parser_execute): New function.
34582 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
34583 * loader/multiboot2.c: Likewise.
34584 * loader/sparc64/ieee1275/linux.c: Likewise.
34586 * util/grub-emu.c (read_command_list): New dummy function.
34588 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
34590 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
34591 count to 16 for CCISS and IDA.
34593 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
34595 * normal/menu_text.c (grub_wait_after_message): Print a newline
34596 after waiting for user input.
34598 * loader/i386/linux.c: Include `<grub/normal.h>'.
34599 (grub_cmd_linux): Improve the error message about `ask' mode, by
34600 waiting for user input so it's not missed (we can do this, since
34601 user requested interaction).
34603 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34605 Added missing lst to grub-mkrescue
34607 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
34608 and ${input_dir}/parttool.lst
34610 2009-04-30 David S. Miller <davem@davemloft.net>
34612 * util/hostdisk.c (device_is_wholedisk): New function.
34613 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
34614 zero only if device_is_wholedisk() returns true.
34616 * util/hostdisk.c (convert_system_partition_to_system_disk):
34617 Handle virtual disk devices named /dev/vdiskX as found on sparc
34620 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
34621 lettered partition specifier is found, convert to numbered.
34623 2009-04-29 David S. Miller <davem@davemloft.net>
34625 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
34626 * include/grub/sparc64/ieee1275/memory.h: Likewise.
34628 * normal/command.c: Add missing newline at end of file.
34630 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
34632 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
34633 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
34634 grub_ofdisk_read): Likewise, and deal similarly with the fact that
34635 ihandles have a 32-bit type but need to be stored in a "void *".
34637 2009-04-28 Pavel Roskin <proski@gnu.org>
34639 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
34640 not disk. Adjust all dependencies.
34641 (grub_fs_uuid_close): Use grub_device_close(), not
34644 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
34645 parent's partition, don't copy it by reference, as it gets freed
34648 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
34650 Preboot hooks support
34652 * commands/boot.c (struct grub_preboot_t): new declaration
34653 (preboots_head): new variable
34654 (preboots_tail): likewise
34655 (grub_loader_register_preboot_hook): new function
34656 (grub_loader_unregister_preboot_hook): likewise
34657 (grub_loader_set): launch preboot hooks
34658 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
34659 (grub_loader_register_preboot_hook): new declaration
34660 (grub_loader_unregister_preboot_hook): likewise
34662 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
34666 * disk/scsi.c (grub_scsi_open): added missing cast when
34667 calling grub_dprintf
34669 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
34671 Bug and warning fixes
34673 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
34675 * commands/test.c (test_parse): fixed bug with file tests and corrected
34676 declaration of find_file
34678 2009-04-26 Pavel Roskin <proski@gnu.org>
34680 * Makefile.in: Don't install empty manual pages if help2man is
34681 missing. Use help2man option for output, not shell redirection.
34683 2009-04-26 David S. Miller <davem@davemloft.net>
34685 * util/grub-mkdevicemap.c (make_device_map): Add missing
34686 NESTED_FUNC_ATTR to process_device().
34688 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
34692 * commands/test.c: rewritten to use bash-like test
34694 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
34696 Parttool autoloading and improvements
34698 * Makefile.in (pkglib_DATA): add parttool.lst
34699 (parttool.lst): new target
34700 * genmk.rb: generate parttool-*
34701 (CLEANFILES): add #{parttool}
34702 (PARTTOOLFILES): new variable
34703 * genparttoollist.sh: new file
34704 * parttool/pcpart.c (grub_pcpart_boot): more feedback
34705 (grub_pcpart_type): likewise
34706 * commands/parttool.c (helpmsg): new variable
34707 (grub_cmd_parttool): output help if not enough arguments are supplied
34709 (GRUB_MOD_INIT(parttool)): use helpmsg
34711 2009-04-24 David S. Miller <davem@davemloft.net>
34713 Avoiding opening same device multiple times in device iterator.
34715 * kern/device.c: (grub_device_iterate): Define struct part_ent,
34716 and use it to build a list of partitions in iterate_disk() and
34717 iterate_partition().
34719 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
34722 * disk/ieee1275/nand.c (grub_nand_iterate): Return
34723 grub_devalias_iterate() result instead of unconditional 0.
34724 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
34725 Also, capture hook return value, either directly or via
34726 grub_children_iterate(), and propagate to caller.
34727 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
34728 grub_children_iterate): Return value is now 'int' instead of
34730 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
34731 like a proper iterator, stopping when hooks return non-zero.
34732 (grub_devalias_iterate): Likewise.
34734 2009-04-23 David S. Miller <davem@davemloft.net>
34736 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
34738 2009-04-22 David S. Miller <davem@davemloft.net>
34740 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
34741 is larger than address_cells, use that value for address_cells too.
34743 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
34744 IEEE1275_MAX_PATH_LEN): Define.
34745 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
34746 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
34747 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
34748 'devtype'. Explicitly NULL terminate devalias expansion.
34750 * util/sparc64/ieee1275/misc.c: New file.
34751 * util/sparc64/ieee1275/grub-setup.c: New file.
34752 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
34753 * util/sparc64/ieee1275/grub-mkimage.c: New file.
34754 * util/sparc64/ieee1275/grub-install.in: New file.
34755 * util/ieee1275/ofpath.c: New file.
34756 * util/ieee1275/devicemap.c: New file.
34757 * util/devicemap.c: New file.
34758 * util/deviceiter.c: New file.
34759 * kern/sparc64/ieee1275/init.c: New file.
34760 * include/grub/util/ofpath.h: New file.
34761 * include/grub/util/deviceiter.h: New file.
34762 * util/grub-mkdevicemap.c: Include deviceiter.h.
34763 Implement using grub_util_emit_devicemap_entry and
34764 grub_util_iterate_devices.
34765 * conf/i386-corebook.rmk: Build util/deviceiter.c and
34766 util/devicemap.c into grub-mkdevicemap
34767 * conf/i386-efi.rmk: Likewise.
34768 * conf/i386-ieee1275.rmk: Likewise.
34769 * conf/i386-pc.rmk: Likewise.
34770 * conf/powerpc-ieee1275.rmk: Likewise.
34771 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
34772 images and installation utilities. Build kernel as image
34773 instead of as elf binary. Use common rules as much as possible.
34775 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
34777 Correct GPT definition
34779 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
34782 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
34784 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
34786 2009-04-19 David S. Miller <davem@davemloft.net>
34788 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
34789 (grub_rescue_cmd_linux): Rename to...
34790 (grub_cmd_linux): and fix prototype.
34791 (grub_rescue_cmd_initrd): Rename to...
34792 (grub_cmd_initrd): and fix prototype.
34793 (cmd_linux, cmd_initrd): New.
34794 (GRUB_MOD_INIT(linux)): Use grub_register_command().
34795 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
34797 2009-04-17 Pavel Roskin <proski@gnu.org>
34799 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
34801 (grub_ohci_transfer): Likewise.
34803 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
34805 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
34806 return without a value. Fix inconsistent indentation.
34808 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
34809 match struct grub_fs.
34811 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
34812 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
34813 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34814 * commands/lspci.c (grub_lspci_iter): Likewise.
34816 2009-04-16 Bean <bean123ch@gmail.com>
34818 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
34821 2009-04-15 Pavel Roskin <proski@gnu.org>
34823 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
34824 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
34825 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
34828 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
34830 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
34831 that no multiple data or metadata areas are supported and `Unknown
34834 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34836 Move loader out of the kernel
34838 * kern/loader.c: moved to ...
34839 * commands/boot.c: ... moved here
34840 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
34841 * commands/boot.c (grub_cmd_boot): moved here. All users updated
34842 * include/grub/kernel.h (grub_machine_fini): export
34843 * include/grub/loader.h (grub_loader_is_loaded): update declaration
34844 (grub_loader_set): likewise
34845 (grub_loader_unset): likewise
34846 (grub_loader_boot): likewise
34847 * conf/common.rmk: new module boot.mod
34848 (pkglib_MODULES): add boot.mod
34849 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
34850 (grub_emu_SOURCES): likewise
34851 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
34852 (grub_emu_SOURCES): likewise
34853 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
34854 (grub_emu_SOURCES): likewise
34855 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
34856 (grub_emu_SOURCES): likewise
34857 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
34858 (grub_emu_SOURCES): likewise
34859 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
34860 (grub_emu_SOURCES): likewise
34861 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
34862 (grub_emu_SOURCES): likewise
34864 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34866 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
34868 * kern/misc.c (grub_itoa): Removed function
34869 (grub_ltoa): likewise
34870 (grub_vsprintf): use grub_lltoa
34872 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34876 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
34877 * conf/i386-coreboot.rmk: likewise
34878 * conf/i386-ieee1275.rmk: likewise
34879 * conf/powerpc-ieee1275.rmk: likewise
34881 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
34883 * INSTALL: Add that `./autogen.sh' needs to be run before
34886 2009-04-14 Bean <bean123ch@gmail.com>
34888 * Makefile.in (pkglib_DATA): Add handler.lst.
34889 (handler.lst): New rule.
34891 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
34892 * conf/i386-coreboot.rmk: Likewise.
34893 * conf/i386-ieee1275.rmk: Likewise.
34894 * conf/i386-efi.rmk: Likewise.
34895 * conf/x86_64-efi.rmk: Likewise.
34896 * conf/powerpc-ieee1275.rmk: Likewise.
34897 * conf/sparc64-ieee1275.rmk: Likewise.
34899 * genhandlerlist.sh: New file.
34901 * genmk.rb: Add rules to generate handler.lst.
34903 * include/grub/normal.h (grub_file_getline): New function definition.
34904 (read_handler_list): Likewise.
34905 (free_handler_list): Likewise.
34907 * include/grub/term.h (grub_term_register_input): Add name parameter
34908 for auto generation of handler.lst.
34909 (grub_term_register_output): Likewise.
34911 * normal/handler.c: New file.
34913 * normal/main.c (get_line): Renamed to grub_file_getline.
34914 (read_config_file): Use the newly renamed grub_file_getline.
34915 (read_command_list): Likewise.
34916 (read_fs_list): Likewise.
34917 (grub_normal_execute): Call read_handler_list to parse handler.lst.
34918 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
34920 * term/efi/console.c (grub_console_init): Add name parameter for auto
34921 generation of handler.lst.
34922 * term/gfxterm.c: Likewise.
34923 * term/i386/pc/at_keyboard.c: Likewise.
34924 * term/i386/pc/console.c: Likewise.
34925 * term/i386/pc/serial.c: Likewise.
34926 * term/i386/pc/vesafb.c: Likewise.
34927 * term/i386/pc/vga.c: Likewise.
34928 * term/i386/pc/vga_text.c: Likewise.
34929 * term/ieee1275/ofconsole.c: Likewise.
34930 * term/usb_keyboard.c: Likewise.
34932 2009-04-14 Bean <bean123ch@gmail.com>
34934 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
34935 properly with null character.
34937 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
34939 * configure: Remove.
34940 * config.h.in: Likewise.
34941 * stamp-h.in: Likewise.
34942 * DISTLIST: Likewise.
34943 * conf/common.mk: Likewise.
34944 * conf/i386-coreboot.mk: Likewise.
34945 * conf/i386-efi.mk: Likewise.
34946 * conf/i386-ieee1275.mk: Likewise.
34947 * conf/i386.mk: Likewise.
34948 * conf/i386-pc.mk: Likewise.
34949 * conf/powerpc-ieee1275.mk: Likewise.
34950 * conf/sparc64-ieee1275.mk: Likewise.
34951 * conf/x86_64-efi.mk: Likewise.
34953 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
34956 2009-04-14 John Stanley <jpsinthemix@verizon.net>
34957 David S. Miller <davem@davemloft.net>
34959 * util/hostdisk.c (make_device_name): Fix buffer length
34962 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
34964 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
34965 <sys/param.h> and <sys/sysctl.h>.
34966 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
34967 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
34968 opening the device and reset them afterwards.
34970 2009-04-13 Pavel Roskin <proski@gnu.org>
34972 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
34973 Reported by John Stanley <jpsinthemix@verizon.net>
34975 2009-04-13 Robert Millan <rmh@aybabtu.com>
34977 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
34978 that name for menuentries when appropriate.
34980 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34982 * util/grub.d/10_freebsd.in: Add a missing `fi'.
34984 2009-04-13 Robert Millan <rmh@aybabtu.com>
34986 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
34987 to Linux, simply abort telling the user it's no longer supported.
34989 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34991 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
34992 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
34993 `freebsd_loadenv' only when devices.hints exist.
34995 2009-04-13 Pavel Roskin <proski@gnu.org>
34997 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
34999 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
35001 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
35003 (grub_drive): Likewise.
35005 2009-04-13 David S. Miller <davem@davemloft.net>
35007 * kern/sparc64/ieee1275/ieee1275.c: New file.
35008 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
35009 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
35010 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
35011 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
35012 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
35013 grub_ieee1275_alloc_physmem): Declare new exported functions.
35015 * include/grub/sparc64/ieee1275/loader.h: New file.
35016 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35017 * include/grub/sparc64/kernel.h: Likewise.
35018 * loader/sparc64/ieee1275/linux.c: Likewise.
35020 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
35021 (grub_fstest_SOURCES): Likewise.
35023 * util/hostdisk.c (make_device_name): Do not make any assumptions
35024 about the length of drive names.
35026 * kern/dl.c (grub_dl_load_file): Close file immediately when
35027 we are done using it.
35029 2009-04-12 David S. Miller <davem@davemloft.net>
35031 * kern/misc.c (grub_ltoa): Fix cast when handling negative
35032 values. Noticed by Pavel Roskin.
35034 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
35037 * genmk.rb: Add more flexible image type specification, also
35038 pass --strip-unneeded to objcopy.
35039 * conf/i386-pc.rmk: Use *_FORMAT.
35040 * conf/i386-pc.mk: Rebuilt.
35042 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
35043 (OFDISK_HASH_SZ): Define.
35044 (ofdisk_hash): New hash table.
35045 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
35046 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
35047 instead of device phandle which is not unique.
35049 * kern/sparc64/ieee1275/init.c: Delete, replace with...
35050 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
35051 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
35052 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
35053 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
35054 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
35055 GRUB_KERNEL_MACHINE_DATA_END): Define.
35056 (grub_kernel_image_size, grub_total_module_size): Declare.
35058 2009-04-12 Pavel Roskin <proski@gnu.org>
35060 * configure.ac: Change the logic when we check for target tools.
35061 Do it when the target is specified and it's different from the
35062 specified value of the host.
35064 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
35066 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
35067 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
35068 GNU/kFreeBSD. Check if a device is a character device. Use
35069 DIOCGMEDIASIZE to get the size.
35070 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
35071 support for GNU/kFreeBSD.
35072 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
35073 is a character device instead of a block device. Add support for
35074 FreeBSD device names.
35076 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
35077 is a character device instead of a block device.
35079 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
35080 is a character device instead of a block device.
35082 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
35084 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
35085 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
35086 FreeBSD. Check if a device is a character device. Use
35087 DIOCGMEDIASIZE to get the size.
35088 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
35089 support for FreeBSD.
35090 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
35091 is a character device instead of a block device. Add support for
35092 FreeBSD device names.
35094 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
35095 a character device instead of a block device.
35096 (grub_util_check_char_device): New function.
35098 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
35099 a character device instead of a block device.
35101 * include/grub/util/getroot.h (grub_util_check_char_device): New
35104 2009-04-11 David S. Miller <davem@davemloft.net>
35106 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
35108 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
35109 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
35110 function, if present.
35111 (__bswapdi2): Likewise.
35113 * include/grub/sparc64/ieee1275/boot.h: New file.
35114 * boot/sparc64/ieee1275/boot.S: Likewise.
35115 * boot/sparc64/ieee1275/diskboot.S: Likewise.
35117 * kern/misc.c (grub_ltoa): New function.
35118 (grub_vsprintf): Use it to format 'long' integers.
35120 2009-04-10 David S. Miller <davem@davemloft.net>
35122 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
35123 slots are of type grub_ieee1275_cell_t.
35124 (grub_nand_read): Likewise.
35125 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
35126 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
35127 macros are used to compare values in arg/ret block of the call.
35128 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
35129 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
35130 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
35131 grub_ieee1275_instance_to_path, grub_ieee1275_write,
35132 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
35133 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
35134 grub_ieee1275_close, grub_ieee1275_set_property,
35135 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
35136 grub_ieee1275_cell_t.
35137 * kern/ieee1275/openfw.c (grub_map): Likewise.
35138 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
35139 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
35141 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
35142 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
35143 (grub_devalias_iterate): Likewise.
35145 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
35149 * fs/ufs.c (INODE_NBLOCKS): new definition
35150 (struct grub_ufs_dirent): added fields for non-BSD dirents
35151 (grub_ufs_get_file_block): fixed double indirect handling
35152 (grub_ufs_lookup_symlink): use more robust way to determine whether
35154 (grub_ufs_find_file): support for non-BSD dirents
35155 (grub_ufs_dir): support for non-BSD dirents
35157 2009-04-10 Bean <bean123ch@gnail.com>
35159 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
35160 attribute, otherwise the size would be wrong for i386 platform.
35162 * include/grub/pci.h (grub_pci_read_word): New inline function.
35163 (grub_pci_read_byte): Likewise.
35164 (grub_pci_write): Likewise.
35165 (grub_pci_write_word): Likewise.
35166 (grub_pci_write_byte): Likewise.
35168 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
35170 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
35171 (find_framebuf): Scan pci to locate the frame buffer address.
35173 * commands/efi/fixvideo.c: New file.
35175 * commands/efi/loadbios.c: Likewise.
35177 * commands/memrw.c: Likewise.
35179 * util/grub-dumpbios.in: Likewise.
35181 * conf/common.rmk (grub-dumpbios): New utility.
35182 (pkglib_MODULES): New module memrw.mod.
35183 (memrw_mod_SOURCE): New macro.
35184 (memrw_mod_CFLAGS): Likewise.
35185 (memrw_mod_LDFLAGS): Likewise.
35187 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
35189 (loadbios_mod_SOURCE): New macro.
35190 (loadbios_mod_CFLAGS): Likewise.
35191 (loadbios_mod_LDFLAGS): Likewise.
35192 (fixvideo_mod_SOURCE): Likewise.
35193 (fixvideo_mod_CFLAGS): Likewise.
35194 (fixvideo_mod_LDFLAGS): Likewise.
35196 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
35198 (loadbios_mod_SOURCE): New macro.
35199 (loadbios_mod_CFLAGS): Likewise.
35200 (loadbios_mod_LDFLAGS): Likewise.
35201 (fixvideo_mod_SOURCE): Likewise.
35202 (fixvideo_mod_CFLAGS): Likewise.
35203 (fixvideo_mod_LDFLAGS): Likewise.
35205 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
35207 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
35209 2009-04-07 David S. Miller <davem@davemloft.net>
35211 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
35212 support for R_SPARC_OLO10 relocations. Fix compile warning for
35213 R_SPARC_WDISP30 case.
35214 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
35216 2009-04-06 Pavel Roskin <proski@gnu.org>
35218 * include/grub/misc.h (ARRAY_SIZE): New macro.
35219 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
35221 * loader/i386/linux.c (allocate_pages): Use free_pages().
35222 (grub_linux_unload): Don't use free_pages().
35223 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
35224 wrong index. Treat all other modes as text modes.
35225 (grub_cmd_linux): Initialize vid_mode unconditionally to
35226 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
35228 * commands/help.c (print_command_help): Use cmd->prio, not
35229 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
35231 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
35235 * parttool/pcpart.c: new file
35236 * commands/parttool.c: likewise
35237 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
35238 (parttool_mod_SOURCES): new variable
35239 (parttool_mod_CFLAGS): likewise
35240 (parttool_mod_LDFLAGS): likewise
35241 (pcpart_mod_SOURCES): likewise
35242 (pcpart_mod_CFLAGS): likewise
35243 (pcpart_mod_LDFLAGS): likewise
35244 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
35245 and parttool/pcpart.c
35246 * conf/i386-efi.rmk: likewise
35247 * conf/i386-ieee1275.rmk: likewise
35248 * conf/i386-pc.rmk: likewise
35249 * conf/powerpc-ieee1275.rmk: likewise
35250 * conf/sparc64-ieee1275.rmk: likewise
35251 * conf/x86_64-ieee1275.rmk: likewise
35253 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
35255 Support for mtime and further expandability of dir command
35257 * include/grub/lib/datetime.h: moved to ...
35258 * include/grub/datetime.h: ... moved here and added
35259 declaration of grub_unixtime2datetime. All users updated
35260 * include/grub/fs.h: new syntax for dir and mtime functions in
35262 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
35263 and GRUB_FSHELP_FLAGS_MASK
35264 * commands/ls.c (grub_ls_list_files): Write mtime in long format
35265 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
35266 (grub_ext2_mtime): new function
35267 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
35268 (grub_hfsplus_mtime): new function
35269 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
35270 (GRUB_UFS_ATTR_FILE): likewise
35271 (GRUB_UFS_ATTR_LNK): likewise
35272 (struct grub_ufs_sblock): new fields mtime
35273 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
35275 (grub_ufs_dir): mtime support
35276 (grub_ufs_mtime): new function
35277 * fs/affs.c (grub_affs_dir): use new dir syntax
35278 * fs/afs.c (grub_afs_dir): likewise
35279 * fs/cpio.c (grub_cpio_dir): likewise
35280 * fs/fat.c (grub_fat_find_dir): likewise
35281 * fs/hfs.c (grub_hfs_dir): likewise
35282 * fs/iso9660.c (grub_iso9660_dir): likewise
35283 * fs/jfs.c (grub_jfs_dir): likewise
35284 * fs/minix.c (grub_minix_dir): likewise
35285 * fs/ntfs.c (grub_ntfs_dir): likewise
35286 * fs/reiserfs.c (grub_reiserfs_dir): likewise
35287 * fs/sfs.c (grub_sfs_dir): likewise
35288 * fs/xfs.c (grub_xfs_dir): likewise
35289 * util/hostfs.c (grub_hostfs_dir): likewise
35290 * lib/datetime.c: moved to ...
35291 * normal/datetime.c: ... moved here
35292 (grub_unixtime2datetime): new function
35293 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
35294 * normal/completion.c (iterate_dir): use new dir syntax
35295 * normal/misc.c (grub_normal_print_device_info): tell the
35296 last modification time of a volume
35297 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
35298 * conf/common.rmk: added lib/datetime.c to ls.mod
35299 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
35300 (normal_mod_SOURCES): likewise
35301 (datetime_mod_SOURCES): Removed lib/datetime.c
35302 * conf/i386-efi.rmk: likewise
35303 * conf/i386-ieee1275.rmk: likewise
35304 * conf/i386-pc.rmk: likewise
35305 * conf/powerpc-ieee1275.rmk: likewise
35306 * conf/sparc64-ieee1275.rmk: likewise
35307 * conf/x86_64-efi.rmk: likewise
35309 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
35311 Trim trailing spaces in FAT label and support mtools-like labels
35313 * fs/fat.c (grub_fat_iterate_dir): New function based
35314 on grub_fat_find_dir
35315 (grub_fat_find_dir): use grub_fat_iterate_dir
35316 (grub_fat_label): likewise
35318 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
35320 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
35322 remove extraneous kernel_elf_HEADERS
35324 2009-04-04 Bean <bean123ch@gnail.com>
35326 * include/grub/util/misc.h: Add dummy function fsync for mingw.
35328 * util/misc.c: Likewise.
35330 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35332 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
35333 instead of grub_printf.
35335 2009-04-03 Robert Millan <rmh@aybabtu.com>
35337 * loader/i386/linux.c (grub_linux_setup_video): Fill
35338 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
35339 values from `mode info' structure instead of hardcoded
35342 2009-04-01 Pavel Roskin <proski@gnu.org>
35344 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
35346 * genmk.rb: Likewise.
35347 * configure.ac: Likewise.
35349 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
35351 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
35352 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
35354 2009-04-01 David S. Miller <davem@davemloft.net>
35356 * normal/sparc64/setjmp.S: Fix setjmp implementation.
35357 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
35358 (grub_setjmp): Mark with 'returns_twice' attribute.
35359 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
35360 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
35361 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
35363 2009-04-01 Robert Millan <rmh@aybabtu.com>
35365 Reapply fix from 2008-07-28 which was accidentally reverted; also
35366 perform the same fix to a similar check in same function.
35368 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
35369 with the same number are found, just use issue a warning with
35370 grub_dprintf(), as this error has been reported to be non-fatal.
35372 2009-03-31 Pavel Roskin <proski@gnu.org>
35374 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
35375 for cross-compilation.
35377 2009-03-30 Robert Millan <rmh@aybabtu.com>
35379 Fix i386-ieee1275 build.
35381 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
35382 Remove declaration.
35384 2009-03-30 Pavel Roskin <proski@gnu.org>
35386 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
35387 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
35388 zero-terminated, rely only on the strlen value. Fix comparison
35389 of strings differing in length.
35391 2009-03-30 Robert Millan <rmh@aybabtu.com>
35393 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
35394 checking for abi version. Improve error messages on BIOS to notify
35395 user about `linux16' command.
35397 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
35401 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
35402 in case of collision
35403 * disk/scsi.c (grub_scsi_open): free scsi in case of error
35405 2009-03-29 Robert Millan <rmh@aybabtu.com>
35407 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
35408 set `vid_mode' accordingly.
35409 (grub_linux_boot): Process `vid_mode' and set video mode.
35411 2009-03-29 Robert Millan <rmh@aybabtu.com>
35413 * util/grub.d/10_linux.in (linux_entry): New function.
35414 Factorize generation of Linux boot entries.
35416 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
35418 Make the format of Environment Block plain text. The boot loader
35419 part is not tested well yet.
35421 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
35423 (envblk): Likewise.
35424 (usage): Remove "info" and "clear". Add "unset". Update the
35425 description of "set", as this does not delete variables any
35427 (create_envblk_file): Complete rewrite.
35428 (open_envblk_file): Likewise.
35429 (cmd_info): Removed.
35430 (cmd_list): Likewise.
35431 (cmd_set): Likewise.
35432 (cmd_clear): Likewise.
35433 (list_variables): New function.
35434 (write_envblk): Likewise.
35435 (set_variables): Likewise.
35436 (unset_variables): Likewise.
35437 (main): Complete rewrite.
35439 * commands/loadenv.c (buffer): Removed.
35440 (envblk): Likewise.
35441 (open_envblk_file): New function.
35442 (read_envblk_file): Complete rewrite.
35443 (grub_cmd_load_env): Likewise.
35444 (grub_cmd_list_env): Likewise.
35445 (struct blocklist): New struct.
35446 (free_blocklists): New function.
35447 (check_blocklists): Likewise.
35448 (write_blocklists): Likewise.
35449 (grub_cmd_save_env): Complete rewrite.
35451 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
35452 a plain text signature.
35453 (GRUB_ENVBLK_MAXLEN): Removed.
35454 (struct grub_envblk): Complete rewrite.
35455 (grub_envblk_find): Removed.
35456 (grub_envblk_insert): Likewise.
35457 (grub_envblk_open): New prototype.
35458 (grub_envblk_set): Likewise.
35459 (grub_envblk_delete): Put const to VALUE.
35460 (grub_envblk_iterate): Put const to NAME and VALUE.
35461 (grub_envblk_close): New prototype.
35462 (grub_envblk_buffer): New inline function.
35463 (grub_envblk_size): Likewise.
35465 * lib/envblk.c: Include grub/mm.h.
35466 (grub_env_find): Removed.
35467 (grub_envblk_open): New function.
35468 (grub_envblk_close): Likewise.
35469 (escaped_value_len): Likewise.
35470 (find_next_line): Likewise.
35471 (grub_envblk_insert): Removed.
35472 (grub_envblk_set): New function.
35473 (grub_envblk_delete): Complete rewrite.
35474 (grub_envblk_iterate): Likewise.
35476 2009-03-28 Robert Millan <rmh@aybabtu.com>
35478 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
35479 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
35480 variables. Use 16-bit loader.
35481 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
35483 * kern/i386/loader.S (grub_linux_boot): Rename to ...
35484 (grub_linux16_boot): ... this. Update all users.
35485 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
35486 (grub_linux_boot): ... this. Update all users.
35488 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
35489 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
35490 commands to `linux16' and `initrd16'.
35491 (GRUB_MOD_FINI(linux)): Rename to ...
35492 (GRUB_MOD_FINI(linux16)): ... this.
35494 2009-03-24 Pavel Roskin <proski@gnu.org>
35496 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
35497 not just for compilation.
35499 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
35501 Move multiboot helper out of kernel
35503 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
35504 `loader/i386/multiboot_helper.S'.
35505 * conf/i386-coreboot.rmk: Likewise
35506 * conf/i386-ieee1275.rmk: Likewise
35508 * kern/i386/loader.S: Move multiboot helpers from here...
35509 * loader/i386/multiboot_helper.S: ...moved here
35510 * include/grub/i386/loader.h: Move declarations of multiboot
35511 helpers from here...
35512 * include/grub/i386/multiboot.h: ...moved here
35513 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
35515 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
35517 * kern/env.c (grub_env_context_open): Added an argument to specify
35518 whether a new context inherits exported variables from current
35519 one. This is useful when making a sandbox to interpret a config
35521 All callers updated.
35523 * include/grub/env.h (grub_env_context_open): Updated the prototype.
35525 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
35527 * kern/env.c (grub_env_context_close): Fix memory leaks.
35529 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
35531 * normal/main.c (grub_normal_execute): Added an argument
35532 BATCH to specify if an interactive interface should be provided
35533 after reading a config file.
35534 All callers updated.
35535 (read_command_list): Prevent being executed twice.
35536 (read_fs_list): Likewise.
35538 * include/grub/normal.h (grub_normal_execute): Updated the
35541 2009-03-22 Pavel Roskin <proski@gno.org>
35543 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
35545 * kern/i386/pc/startup.S: Likewise.
35546 * kern/i386/efi/startup.S: Likewise.
35547 * kern/i386/ieee1275/startup.S: Likewise.
35548 * kern/i386/coreboot/startup.S: Likewise.
35549 * kern/x86_64/efi/startup.S: Likewise.
35551 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
35552 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
35553 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
35555 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
35557 Bugfixes in multiboot for bugs uncovered by solaris kernel.
35559 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
35561 Use vaddr of correct segment for entry_point.
35563 2009-03-21 Bean <bean123ch@gmail.com>
35565 * commands/blocklist.c: Add include file <grub/command.h>, remove
35566 <grub/normal.h> and <grub/arg.h>.
35567 (grub_cmd_blocklist): Use the new command interface.
35568 (GRUB_MOD_INIT): Likewise.
35569 (GRUB_MOD_FINI): Likewise.
35570 * commands/boot.c: Likewise.
35571 * commands/cat.c: Likewise.
35572 * commands/cmp.c: Likewise.
35573 * commands/configfile.c: Likewise.
35574 * commands/crc.c: Likewise.
35575 * commands/echo.c: Likewise.
35576 * commands/halt.c: Likewise.
35577 * commands/handler.c: Likewise.
35578 * commands/hdparm.c: Likewise.
35579 * commands/help.c: Likewise.
35580 * commands/hexdump.c: Likewise.
35581 * commands/loadenv.c: Likewise.
35582 * commands/ls.c: Likewise.
35583 * commands/lsmmap.c: Likewise.
35584 * commands/lspci.c: Likewise.
35585 * commands/loadenv.c: Likewise.
35586 * commands/read.c: Likewise.
35587 * commands/reboot.c: Likewise.
35588 * commands/search.c: Likewise.
35589 * commands/sleep.c: Likewise.
35590 * commands/test.c: Likewise.
35591 * commands/usbtest.c: Likewise.
35592 * commands/videotest.c: Likewise.
35593 * commands/i386/cpuid.c: Likewise.
35594 * commands/i386/pc/halt.c: Likewise.
35595 * commands/i386/pc/play.c: Likewise.
35596 * commands/i386/pc/pxecmd.c: Likewise.
35597 * commands/i386/pc/vbeinfo.c: Likewise.
35598 * commands/i386/pc/vbetest.c: Likewise.
35599 * commands/ieee1275/suspend.c: Likewise.
35600 * disk/loopback.c: Likewise.
35601 * font/font_cmd.c: Likewise.
35602 * hello/hello.c: Likewise.
35603 * loader/efi/appleloader.c: Likewise.
35604 * loader/efi/chainloader.c: Likewise.
35605 * loader/i386/bsd.c: Likewise.
35606 * loader/i386/efi/linux.c: Likewise.
35607 * loader/i386/ieee1275/linux.c: Likewise.
35608 * loader/i386/linux.c: Likewise.
35609 * loader/i386/pc/chainloader.c: Likewise.
35610 * loader/i386/pc/linux.c: Likewise.
35611 * loader/powerpc/ieee1275/linux.c: Likewise.
35612 * loader/multiboot_loader.c: Likewise.
35613 * term/gfxterm.c: Likewise.
35614 * term/i386/pc/serial.c: Likewise.
35615 * term/terminfo.c: Likewise.
35617 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
35618 * term/i386/pc/vga.c: Likewise.
35619 * video/readers/jpeg.c: Likewise.
35620 * video/readers/png.c: Likewise.
35621 * video/readers/tga.c: Likewise.
35623 * util/grub-fstest (cmd_loopback): Removed.
35624 (cmd_blocklist): Likewise.
35625 (cmd_ls): Likewise.
35626 (grub_register_command): Likewise.
35627 (grub_unregister_command): Likewise.
35628 (execute_command): Use grub_command_find to locate command and execute
35631 * include/grub/efi/chainloader.h: Removed.
35632 * loader/efi/chainloader_normal.c: Likewise.
35633 * loader/i386/bsd_normal.c: Likewise.
35634 * loader/i386/pc/chainloader_normal.c: Likewise.
35635 * loader/i386/pc/multiboot_normal.c: Likewise.
35636 * loader/linux_normal.c: Likewise.
35637 * loader/multiboot_loader_normal.c: Likewise.
35638 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35640 * gencmdlist.sh: Scan new registration command grub_register_extcmd
35641 and grub_register_command_p1.
35643 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
35644 kern/command.c, lib/arg.c and commands/extcmd.c.
35645 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
35646 (minicmd_mod_SOURCES): New variable.
35647 (minicmd_mod_CFLAGS): Likewise.
35648 (minicmd_mod_LDFLAGS): Likewise.
35649 (extcmd_mod_SOURCES): Likewise.
35650 (extcmd_mod_CFLAGS): Likewise.
35651 (extcmd_mod_LDFLAGS): Likewise.
35652 (boot_mod_SOURCES): Removed.
35653 (boot_mod_CFLAGS): Likewise.
35654 (boot_mod_LDFLAGS): Likewise.
35656 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
35658 (kernel_img_HEADERS): Add command.h.
35659 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
35660 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
35662 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
35663 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
35664 remove the corresponding normal mode command.
35665 (normal_mod_SOURCES): Remove normal/arg.c.
35666 * conf/i386-coreboot.rmk: Likewise.
35667 * conf/i386-efi.rmk: Likewise.
35668 * conf/i386-ieee1275.rmk: Likewise.
35669 * conf/powerpc-ieee1275.rmk: Likewise.
35670 * conf/x86_64-efi.rmk: Likewise.
35672 * include/grub/arg.h: Move from here ...
35673 * include/grub/lib/arg.h: ... to here.
35675 * normal/arg.c: Move from here ...
35676 * lib/arg.c: ... to here.
35678 * commands/extcmd.c: New file.
35679 * commands/minicmd.c: Likewise.
35680 * include/grub/command.h: Likewise.
35681 * include/grub/extcmd.h: Likewise.
35682 * kern/command.c: Likewise.
35683 * kern/corecmd.c: Likewise.
35685 * kern/list.c (grub_list_iterate): Return int instead of void.
35686 (grub_list_insert): New function.
35687 (grub_prio_list_insert): Likewise.
35689 * kern/rescue.c (grub_rescue_command): Removed.
35690 (grub_rescue_command_list): Likewise.
35691 (grub_rescue_register_command): Likewise.
35692 (grub_rescue_unregister_command): Likewise.
35693 (grub_rescue_cmd_boot): Move to minicmd.c
35694 (grub_rescue_cmd_help): Likewise.
35695 (grub_rescue_cmd_info): Likewise.
35696 (grub_rescue_cmd_boot): Likewise.
35697 (grub_rescue_cmd_testload): Likewise.
35698 (grub_rescue_cmd_dump): Likewise.
35699 (grub_rescue_cmd_rmmod): Likewise.
35700 (grub_rescue_cmd_lsmod): Likewise.
35701 (grub_rescue_cmd_exit): Likewise.
35702 (grub_rescue_print_devices): Moved to corecmd.c.
35703 (grub_rescue_print_files): Likewise.
35704 (grub_rescue_cmd_ls): Likewise.
35705 (grub_rescue_cmd_insmod): Likewise.
35706 (grub_rescue_cmd_set): Likewise.
35707 (grub_rescue_cmd_unset): Likewise.
35708 (attempt_normal_mode): Use grub_command_find to get normal module.
35709 (grub_enter_rescue_mode): Use grub_register_core_commands to register
35710 commands, remove grub_rescue_register_command calls.
35712 * normal/command.c (grub_register_command): Removed.
35713 (grub_unregister_command): Likewise.
35714 (grub_command_find): Likewise.
35715 (grub_iterate_commands): Likewise.
35716 (rescue_command): Likewise.
35717 (export_command): Moved to corecmd.c.
35718 (set_command): Removed.
35719 (unset_command): Likewise.
35720 (insmod_command): Likewise.
35721 (rmmod_command): Likewise.
35722 (lsmod_command): Likewise.
35723 (grub_command_init): Likewise.
35725 * normal/completion.c (iterate_command): Use cmd->prio to check for
35727 (complete_arguments): Use grub_extcmd_t structure to find options.
35728 (grub_normal_do_completion): Change function grub_iterate_commands to
35729 grub_command_iterate.
35731 * normal/execute.c (grub_script_execute_cmd): No need to parse
35734 * normal/main.c (grub_dyncmd_dispatcher): New function.
35735 (read_command_list): Register unload commands as dyncmd.
35736 (grub_cmd_normal): Use new command interface, register rescue,
35737 unregister normal at entry, register normal, unregister rescue at exit.
35739 * include/grub/list.h (grub_list_test_t): New type.
35740 (grub_list_iterate): Return int instead of void.
35741 (grub_list_insert): New function.
35742 (GRUB_AS_NAMED_LIST_P): New macro.
35743 (GRUB_AS_PRIO_LIST): Likewise.
35744 (GRUB_AS_PRIO_LIST_P): Likewise.
35745 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
35746 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
35747 (grub_prio_list): New structure.
35748 (grub_prio_list_insert): New function.
35749 (grub_prio_list_remove): New inline function.
35751 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
35752 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
35753 (GRUB_COMMAND_FLAG_MENU): Likewise.
35754 (GRUB_COMMAND_FLAG_BOTH): Likewise.
35755 (GRUB_COMMAND_FLAG_TITLE): Likewise.
35756 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
35757 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
35758 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
35759 (grub_command): Likewise.
35760 (grub_register_command): Likewise.
35761 (grub_command_find): Likewise.
35762 (grub_iterate_commands): Likewise.
35763 (grub_command_init): Likewise.
35764 (grub_arg_parse): Likewise.
35765 (grub_arg_show_help): Likewise.
35767 * include/grub/rescue.h (grub_rescue_register_command): Removed.
35768 (grub_rescue_unregister_command): Likewise.
35770 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
35771 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
35772 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
35774 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
35775 grub_rescue_cmd_initrd.
35776 * include/grub/i386/loader.h: Likewise.
35777 * include/grub/x86_64/loader.h: Likewise.
35779 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
35781 2009-03-21 Bean <bean123ch@gmail.com>
35783 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
35784 instead of stat in mingw environment.
35786 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
35788 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
35790 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
35793 2009-03-21 Bean <bean123ch@gmail.com>
35795 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
35796 out of range error.
35798 2009-03-18 Michel Dänzer <michel@daenzer.net>
35800 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
35801 checking inode flags for EXT4_EXTENTS_FLAG.
35803 2009-03-18 Robert Millan <rmh@aybabtu.com>
35805 * loader/i386/linux.c: Include `<grub/video.h>' and
35806 `<grub/i386/pc/vbe.h>'..
35807 (grub_linux_setup_video): New function. Loosely based on the EFI one.
35808 (grub_linux32_boot): Attempt to configure video settings with
35809 grub_linux_setup_video().
35810 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
35811 to avoid grub_console_fini() which would step out of graphical mode
35814 2009-03-14 Robert Millan <rmh@aybabtu.com>
35816 Fix build on powerpc.
35817 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
35819 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
35821 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
35822 background image command.
35824 2009-03-12 Colin D Bennett <colin@gibibit.com>
35826 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
35827 (grub_gfxterm_putchar): Extract pairs of identical calls to
35828 draw_cursor out of conditional blocks.
35830 2009-03-11 Pavel Roskin <proski@gnu.org>
35832 * fs/hfs.c (grub_hfs_strncasecmp): New function.
35833 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
35835 2009-03-11 Robert Millan <rmh@aybabtu.com>
35837 * loader/i386/multiboot_elfxx.c
35838 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
35840 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
35842 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
35845 2009-03-11 Robert Millan <rmh@aybabtu.com>
35847 * loader/i386/multiboot.c (code_size): New variable.
35848 (grub_multiboot): Define offsets by adding to `code_size' rather
35849 than subtracting from `grub_multiboot_payload_size'. Provide
35850 4-byte alignment to MBI and others by increasing
35851 `boot_loader_name_length' appropriately.
35853 * loader/i386/multiboot_elfxx.c
35854 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
35856 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
35858 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
35861 2009-03-08 Robert Millan <rmh@aybabtu.com>
35863 Make loader/i386/linux.c usable on i386-pc again.
35865 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
35867 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
35870 2009-03-07 Bean <bean123ch@gmail.com>
35872 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
35875 2009-03-06 Robert Millan <rmh@aybabtu.com>
35877 Fix display issue on terminals with screen size other than 80x25
35878 (e.g. gfxterm with resolution higher than 640x480).
35880 * normal/main.c (grub_normal_init_page): Display title text in a
35881 position relative to the center of the terminal instead of relying
35882 on a hardcoded offset.
35884 2009-03-04 Robert Millan <rmh@aybabtu.com>
35886 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
35889 * Makefile.in (host_kernel): New variable.
35890 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
35891 scripts instead of just the windows one.
35892 * configure.ac: Initialize and AC_SUBST `host_kernel'.
35894 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35896 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
35898 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35899 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35900 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35902 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35903 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35905 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35907 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
35908 or if there's no space for the disk label and print the partition number on a
35911 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35913 * util/misc.c: Include <time.h>.
35914 (grub_millisleep): New function.
35916 2009-03-04 Bean <bean123ch@gmail.com>
35918 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
35919 another option -mno-red-zone.
35921 * commands/handler.c: Change module description.
35923 * kern/handler.c: Add missing space at the end of description line.
35925 * kern/list.c: Likewise.
35927 2009-03-03 Robert Millan <rmh@aybabtu.com>
35929 Move more components to the relocation area, and fix mbi pointer
35930 handling to use the destination rather than the origin (thanks to
35931 Vladimir Serbinenko for spotting).
35933 * loader/i386/multiboot.c (mbi_dest): New variable.
35934 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
35935 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
35938 2009-03-01 Bean <bean123ch@gmail.com>
35940 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
35941 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
35942 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
35943 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
35945 * loader/i386/efi/linux.c (acpi_guid): New variable.
35946 (acpi_guid): Likewise.
35947 (EBDA_SEG_ADDR): New constant.
35948 (LOW_MEM_ADDR): Likewise.
35949 (FAKE_EBDA_SEG): Likewise.
35950 (fake_bios_data): New function.
35951 (grub_linux_boot): Call fake_bios_data.
35953 2009-03-01 Bean <bean123ch@gmail.com>
35955 * commands/terminal.c: Removed.
35957 * commands/handler.c: New file.
35959 * include/grub/list.h: Likewise.
35961 * include/grub/handler.h: Likewise.
35963 * kern/list.c: Likewise.
35965 * kern/handler.c: Likewise.
35967 * kern/term.h: Include header file <grub/handler.h>.
35968 (grub_term_input): Move next field to the beginning.
35969 (grub_term_output): Likewise.
35970 (grub_term_input_class): New variable.
35971 (grub_term_output_class): Likewise.
35972 (grub_term_register_input): Changed to inline function.
35973 (grub_term_register_output): Likewise.
35974 (grub_term_unregister_input): Likewise.
35975 (grub_term_unregister_output): Likewise.
35976 (grub_term_set_current_input): Likewise.
35977 (grub_term_set_current_output): Likewise.
35978 (grub_term_get_current_input): Likewise.
35979 (grub_term_get_current_output): Likewise.
35980 (grub_term_iterate_input): Removed.
35981 (grub_term_iterate_output): Likewise.
35983 * kern/term.c (grub_term_list_input): Removed.
35984 (grub_term_list_output): Likewise.
35985 (grub_term_input_class): New variable.
35986 (grub_term_output_class): Likewise.
35987 (grub_cur_term_input): Change variable as macro.
35988 (grub_cur_term_output): Likewise.
35989 (grub_term_register_input): Removed.
35990 (grub_term_register_output): Likewise.
35991 (grub_term_unregister_input): Likewise.
35992 (grub_term_unregister_output): Likewise.
35993 (grub_term_set_current_input): Likewise.
35994 (grub_term_set_current_output): Likewise.
35995 (grub_term_iterate_input): Likewise.
35996 (grub_term_iterate_output): Likewise.
35997 (grub_term_get_current_input): Likewise.
35998 (grub_term_get_current_output): Likewise.
36000 * util/grub-editenv.c: Include header file <grub/handler.h>.
36001 (grub_term_get_current_input): Removed.
36002 (grub_term_get_current_output): Likewise.
36003 (grub_term_input_class): New variable.
36004 (grub_term_output_class): Likewise.
36006 * util/grub-fstest.c (grub_term_get_current_input): Removed.
36007 (grub_term_get_current_output): Likewise.
36008 (grub_term_input_class): New variable.
36009 (grub_term_output_class): Likewise.
36011 * util/grub-probe.c (grub_term_get_current_input): Removed.
36012 (grub_term_get_current_output): Likewise.
36013 (grub_term_input_class): New variable.
36014 (grub_term_output_class): Likewise.
36016 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
36017 (grub_term_get_current_output): Likewise.
36018 (grub_term_input_class): New variable.
36019 (grub_term_output_class): Likewise.
36021 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
36022 (terminal_mod_SOURCES): Likewise.
36023 (terminal_mod_CFLAGS): Likewise.
36024 (terminal_mod_LDFLAGS): Likewise.
36026 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
36028 (kernel_img_SOURCES): Add list.c and handler.c.
36029 (kernel_img_HEADERS): Add list.h and handler.h.
36031 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
36033 (kernel_mod_SOURCES): Add list.c and handler.c.
36034 (kernel_mod_HEADERS): Add list.h and handler.h.
36036 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
36038 (kernel_elf_SOURCES): Add list.c and handler.c.
36039 (kernel_elf_HEADERS): Add list.h and handler.h.
36041 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
36043 (kernel_elf_SOURCES): Add list.c and handler.c.
36044 (kernel_elf_HEADERS): Add list.h and handler.h.
36046 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
36048 (kernel_mod_SOURCES): Add list.c and handler.c.
36049 (kernel_mod_HEADERS): Add list.h and handler.h.
36051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
36053 (kernel_elf_SOURCES): Add list.c and handler.c.
36054 (kernel_elf_HEADERS): Add list.h and handler.h.
36056 2009-02-27 Robert Millan <rmh@aybabtu.com>
36058 Factorize elf32 / elf64 code in Multiboot loader. This will
36059 prevent it from getting out of sync again.
36061 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
36062 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
36063 grub_multiboot_load_elf64): Move from here ...
36064 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
36065 grub_multiboot_load_elf): ... to here (new file).
36067 2009-02-27 Robert Millan <rmh@aybabtu.com>
36069 * util/grub.d/10_linux.in: Rename "single-user mode" to
36072 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
36074 Don't leak in SCSI code.
36075 * disk/scsi.c (grub_scsi_close): free `scsi'.
36077 2009-02-27 Robert Millan <rmh@aybabtu.com>
36079 * loader/i386/pc/multiboot.c: Move from here ...
36080 * loader/i386/multiboot.c: ... to here. Update all users.
36082 2009-02-27 Robert Millan <rmh@aybabtu.com>
36084 Patch from Alexandre Bique <bique.alexandre@gmail.com>
36085 * util/i386/pc/grub-setup.c (setup): Fix directory path.
36087 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
36089 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
36092 2009-02-27 Robert Millan <rmh@aybabtu.com>
36094 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
36095 `0x' qualifier as 0 when base is specified as parameter).
36097 2009-02-24 Bean <bean123ch@gmail.com>
36099 * configure.ac: Check for -mcmodel=large in x86_64 target.
36101 * include/grub/efi/api.h (efi_call_10): New macro.
36102 (efi_wrap_10): New function.
36104 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
36105 (GRUB_PE32_REL_BASED_HIGH): Likewise.
36106 (GRUB_PE32_REL_BASED_LOW): Likewise.
36107 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
36108 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
36109 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
36110 (GRUB_PE32_REL_BASED_SECTION): Likewise.
36111 (GRUB_PE32_REL_BASED_REL): Likewise.
36112 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
36113 (GRUB_PE32_REL_BASED_DIR64): Likewise.
36114 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
36116 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
36119 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
36120 (efi_wrap_10): New function.
36122 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
36124 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
36125 MB/MBP model (NV chipset).
36126 (devdata_devs): Add devpath_5 to the list.
36128 * load/i386/efi/linux.c (video_base): Remove variable.
36129 (RGB_MASK): New macro.
36130 (RGB_MAGIC): Likewise.
36131 (LINE_MIN): Likewise.
36132 (LINE_MAX): Likewise.
36133 (FBTEST_STEP): Likewise.
36134 (FBTEST_COUNT): Likewise.
36135 (fb_list): New variable.
36136 (grub_find_video_card): Remove function.
36137 (find_framebuf): New function.
36138 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
36141 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
36142 problem for x86_64.
36144 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
36146 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
36148 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
36151 2009-02-22 Robert Millan <rmh@aybabtu.com>
36153 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
36154 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
36155 in our relocation, instead of using it directly from heap. Also
36156 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
36158 2009-02-21 Robert Millan <rmh@aybabtu.com>
36160 Implement USB keyboard support (based on patch by Marco Gerards)
36162 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
36163 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
36164 (usb_keyboard_mod_LDFLAGS): New variables.
36166 * term/usb_keyboard.c: New file.
36168 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
36170 Corrected wrong declaration
36172 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
36174 2009-02-14 Christian Franke <franke@computer.org>
36176 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
36177 (grub_lspci_iter): Print class code and programming interface byte.
36179 2009-02-14 Christian Franke <franke@computer.org>
36181 * gendistlist.sh: Ignore `.svn' directories.
36183 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
36185 * fs/fat.c: Add 2009 to Copyright line.
36187 2009-02-14 Christian Franke <franke@computer.org>
36189 * commands/hdparm.c: New file. Provides `hdparm' command
36190 which sends ATA commands via grub_disk_ata_pass_through ().
36192 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
36194 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
36195 and <grub/cpu/io.h> to include/grub/ata.h.
36196 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
36197 (GRUB_CDROM_SECTOR_SIZE): Remove.
36198 (GRUB_ATA_*): Move to include/grub/ata.h.
36199 (GRUB_ATAPI_*): Likewise.
36200 (enum grub_ata_commands): Likewise.
36201 (enum grub_ata_timeout_milliseconds): Likewise.
36202 (struct grub_ata_device): Likewise.
36203 (grub_ata_regset): Likewise.
36204 (grub_ata_regget): Likewise.
36205 (grub_ata_regset2): Likewise.
36206 (grub_ata_regget2): Likewise.
36207 (grub_ata_check_ready): Likewise.
36208 (grub_ata_wait_not_busy): Remove static, exported in
36209 include/grub/ata.h.
36210 (grub_ata_wait_drq): Likewise.
36211 (grub_ata_pio_read): Likewise.
36213 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
36214 function for hdparm.mod.
36216 * include/grub/ata.h: New file, contains declarations from
36218 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
36220 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
36221 (grub_disk_ata_pass_through): New exported variable.
36223 * kern/disk.c (grub_disk_ata_pass_through): New variable.
36225 2009-02-13 Colin D Bennett <colin@gibibit.com>
36227 Support multiple fallback entries, and provide an API to support
36228 executing default+fallback menu entries. Renamed the `terminal' menu
36231 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
36232 variable declaration.
36233 (grub_menu_execute_callback): New structure declaration.
36234 (grub_menu_execute_callback_t): New typedef.
36235 (grub_menu_execute_with_fallback): New function declaration.
36236 (grub_menu_get_entry): Likewise.
36237 (grub_menu_get_timeout): Likewise.
36238 (grub_menu_set_timeout): Likewise.
36240 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
36242 * normal/menu.c (grub_wait_after_message): Moved to
36243 `normal/menu_text.c'.
36244 (draw_border): Likewise.
36245 (print_message): Likewise.
36246 (print_entry): Likewise.
36247 (print_entries): Likewise.
36248 (grub_menu_init_page): Likewise.
36249 (get_entry_number): Likewise.
36250 (print_timeout): Likewise.
36251 (run_menu): Likewise.
36252 (grub_menu_execute_entry): Likewise.
36253 (show_text_menu): Likewise.
36254 (get_and_remove_first_entry_number): New function.
36255 (grub_menu_execute_with_fallback): Likewise.
36256 (get_entry): Renamed to ...
36257 (grub_menu_get_entry): .. this and made it global.
36258 (get_timeout): Renamed to ...
36259 (grub_menu_get_timeout): ... this and made it global.
36260 (set_timeout): Renamed to ...
36261 (grub_menu_set_timeout): ... this and made it global.
36262 (grub_normal_terminal_menu_viewer): Renamed to ...
36263 (grub_normal_text_menu_viewer): ... this.
36265 * normal/menu_text.c: New file. Extracted text-menu-specific code
36266 from normal/menu.c.
36268 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
36269 (normal_mod_SOURCES): Likewise.
36271 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36272 (normal_mod_SOURCES): Likewise.
36274 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36275 (normal_mod_SOURCES): Likewise.
36277 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
36278 (normal_mod_SOURCES): Likewise.
36280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36281 (normal_mod_SOURCES): Likewise.
36283 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36284 (normal_mod_SOURCES): Likewise.
36286 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36287 (normal_mod_SOURCES): Likewise.
36289 2009-02-11 Robert Millan <rmh@aybabtu.com>
36291 * util/grub.d/00_header.in: Update old reference to `font' command.
36293 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
36295 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
36297 Based on patch from Javier Martín.
36299 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
36301 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
36302 to avoid false positives with FAT.
36303 (grub_fstest_SOURCES): Likewise.
36304 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36305 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36307 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36308 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36309 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36311 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
36313 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
36314 bpb.version_specific.fat12_or_fat16.fstype and
36315 bpb.version_specific.fat32.fstype.
36317 2009-02-08 Robert Millan <rmh@aybabtu.com>
36319 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
36321 2009-02-08 Robert Millan <rmh@aybabtu.com>
36323 * Makefile.in (host_os, host_cpu): New variables.
36324 (target_os): Remove. Update all users.
36326 2009-02-08 Marco Gerards <marco@gnu.org>
36328 * Makefile.in (enable_grub_emu_usb): New variable.
36329 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
36330 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
36331 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
36332 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
36333 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
36334 `usbtest.mod' and `usbms.mod'.
36335 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
36336 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
36337 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
36338 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
36339 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
36342 * disk/usbms.c: New file.
36344 * include/grub/usb.h: Likewise.
36346 * include/grub/usbtrans.h: Likewise.
36348 * include/grub/usbdesc.h: Likewise.
36350 * bus/usb/usbtrans.c: Likewise.
36352 * bus/usb/ohci.c: Likewise.
36354 * bus/usb/uhci.c: Likewise.
36356 * bus/usb/usbhub.c: Likewise.
36358 * bus/usb/usb.c: Likewise.
36360 * commands/usbtest.c: Likewise.
36362 * util/usb.c: Likewise.
36364 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
36366 * configure.ac: Test for libusb presence.
36368 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
36370 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
36372 * kern/mm.c: Add more comments.
36374 2009-02-08 Robert Millan <rmh@aybabtu.com>
36376 Patch from Javier Martín.
36377 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
36378 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
36380 2009-02-08 Robert Millan <rmh@aybabtu.com>
36382 * fs/cpio.c: Split tar functionality to ...
36383 * fs/tar.c: ... here (new file). Update all users.
36385 2009-02-07 Robert Millan <rmh@aybabtu.com>
36387 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
36388 backward-incompatible features.
36390 Based on patch from Javier Martín, with some adjustments.
36392 2009-02-07 Michael Scherer <misc@mandriva.org>
36394 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
36396 2009-02-07 Robert Millan <rmh@aybabtu.com>
36398 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
36399 position of `disk/lvm.c' to ensure grub_init_all() always picks it
36400 after the RAID stuff.
36402 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
36404 Fixes problem when running vbetest command as reported by
36405 Vladimir Serbinenko <phcoder@gmail.com>.
36407 * (grub_vbe_set_video_mode): Fixed problem with text modes.
36409 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
36411 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
36412 /dev/md/NpN style mdraid devices.
36414 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
36416 * util/unifont2pff.rb: Remove.
36418 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
36420 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
36423 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
36425 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
36426 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36427 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36428 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36430 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36431 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36433 2009-02-02 Christian Franke <franke@computer.org>
36435 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
36437 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
36439 * INSTALL: Note that we now require at least autoconf 2.59 and
36440 that LZO is optional.
36442 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
36444 Base on patch on bug #24154 created by Tomas Tintera
36445 <trosos@seznam.cz>.
36447 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
36449 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
36451 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
36452 <bero@arklinux.org>.
36454 * normal/parser.y (script_init): Add missing semicolon.
36456 2009-01-31 Colin D Bennett <colin@gibibit.com>
36458 * normal/main.c: Add include to grub/menu_viewer.h.
36459 (free_menu_entry_classes): Added.
36460 (grub_normal_menu_addentry): Added class property handling.
36461 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
36462 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
36464 * normal/menu_viewer.c: New file.
36466 * normal/menu.c (run_menu_entry): Renamed to ...
36467 (grub_menu_execute_entry): ... this and made it as global.
36468 (grub_menu_run): Renamed to ...
36469 (show_text_menu): ... this and made it local.
36470 (show_text_menu): Adapt to new function names.
36471 (grub_normal_terminal_menu_viewer): New global variable.
36473 * include/grub/menu.h: New file.
36475 * include/grub/menu_viewer.h: New file.
36477 * include/grub/normal.h: Added include to grub/menu.h.
36478 (grub_menu_entry): Moved to include/grub/menu.h.
36479 (grub_menu_entry_t): Likewise.
36480 (grub_menu): Likewise.
36481 (grub_menu_t): Likewise.
36482 (grub_normal_terminal_menu_viewer): Added.
36483 (grub_menu_execute_entry): Likewise.
36484 (grub_menu_run): Removed.
36486 * DISTLIST: Added include/grub/menu.h.
36487 Added include/grub/menu_viewer.h.
36488 Added normal/menu_viewer.c.
36490 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
36492 * normal/execute.c (grub_script_execute_menuentry): Changed to use
36493 arglist for menutitle arguments.
36495 * normal/main.c (grub_normal_menu_addentry): Likewise.
36497 * normal/parser.y (menuentry): Likewise.
36499 * normal/script.c (grub_script_create_cmdmenu): Likewise.
36501 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
36502 (grub_script_create_cmdmenu): Likewise.
36504 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
36506 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
36509 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
36511 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
36513 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
36515 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
36517 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
36519 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
36521 2009-01-30 Christian Franke <franke@computer.org>
36523 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
36524 in option help text.
36526 2009-01-27 Pavel Roskin <proski@gnu.org>
36528 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
36530 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
36532 * commands/lsmmap.c: Add include to grub/machine/memory.h.
36534 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
36536 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
36537 unregister function.
36539 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
36541 * disk/scsi.c (grub_scsi_read): Fix sign problem.
36543 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
36545 * util/grub-mkfont.c (usage): Fix typo.
36547 * util/elf/grub-mkimage.c (load_modules): Fix warning.
36549 2009-01-26 Daniel Mierswa <impulze@impulze.org>
36551 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
36553 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
36555 * kern/misc.c (grub_strcasecmp): New function.
36556 (grub_strcasecmp): Use grub_size_t instead of int for length.
36558 * include/grub/misc.h: Update function prototypes.
36560 2009-01-26 Robert Millan <rmh@aybabtu.com>
36562 * configure.ac: Fix cross-compilation check.
36564 2009-01-22 Christian Franke <franke@computer.org>
36566 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
36567 (precision) digit string. Allow `.format2' without `format1' (width).
36568 Limit input chars for `%s' output to `format2' if specified. This is
36569 compatible with standard printf ().
36571 2009-01-22 Christian Franke <franke@computer.org>
36573 * disk/ata.c (grub_ata_wait_status): Replace by ...
36574 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
36575 other status bits may be invalid while BSY is asserted.
36576 (grub_ata_check_ready): New function.
36577 (grub_ata_cmd): Removed.
36578 (grub_ata_wait_drq): New function.
36579 (grub_ata_strncpy): Remove inline.
36580 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
36581 and error check now done by grub_ata_wait_drq ().
36582 (grub_ata_pio_write): Likewise.
36583 (grub_atapi_identify): Set DEV before check for !BSY. Use
36584 grub_ata_wait_drq () to wait for data.
36585 (grub_ata_device_initialize): Add status register check to
36586 detect missing SATA slave devices. Add debug messages.
36587 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
36588 (grub_atapi_packet): Set DEV before check for !BSY. Replace
36589 transfer loop by grub_ata_pio_write ().
36590 (grub_ata_identify): Set DEV before check for !BSY. Use
36591 grub_ata_wait_drq () to wait for data.
36592 (grub_ata_setaddress): Set DEV before check for !BSY.
36593 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
36594 read/write in one loop. Fix invalid command on write. Fix incomplete
36595 command on (size % batch) == 0. Add missing error check after write of
36596 last block. Add debug messages.
36597 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
36599 2009-01-19 Christian Franke <franke@computer.org>
36601 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
36602 (GRUB_ATAPI_IREASON_*): Likewise.
36603 (grub_ata_pio_write): Fix timeout error return.
36604 (grub_atapi_identify): Add grub_ata_wait () after cmd.
36605 (grub_atapi_wait_drq): New function.
36606 (grub_atapi_packet): New parameter `size'.
36607 Use grub_atapi_wait_drq () and direct write instead of
36608 grub_ata_pio_write ().
36609 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
36610 reads the number of bytes requested by the device for each DRQ
36612 (grub_atapi_write): Remove old implementation, return not
36613 implemented instead.
36615 2009-01-19 Christian Franke <franke@computer.org>
36617 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
36618 of 512 to calculate data size.
36619 (grub_scsi_read12): Likewise.
36620 (grub_scsi_write10): Likewise.
36621 (grub_scsi_write12): Likewise.
36622 (grub_scsi_read): Adjust size according to blocksize.
36623 Add checks for invalid blocksize and unaligned transfer.
36625 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
36627 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
36629 * term/gfxterm.c (write_char): Fix background rendering for wide
36632 2009-01-19 Robert Millan <rmh@aybabtu.com>
36634 * config.guess: Update to latest version from config git.
36635 * config.sub: Likewise.
36637 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
36639 * Makefile.in: Change font compilation to use new grub-mkfont instead
36642 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
36643 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
36644 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36645 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36646 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
36647 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
36648 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
36649 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
36650 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
36652 2009-01-16 Christian Franke <franke@computer.org>
36654 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
36655 (enum grub_ata_timeout_milliseconds): New enum.
36656 (grub_ata_wait_status): Add parameter milliseconds.
36657 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
36658 recovery from timed-out commands.
36659 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
36660 return grub_errno instead of REG_ERROR.
36661 (grub_ata_pio_write): Add parameter milliseconds.
36662 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
36663 Pass milliseconds to grub_ata_wait_status () and
36664 grub_ata_pio_read ().
36665 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
36666 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
36667 grub_ata_wait_status (). Fix IDENTIFY timeout check.
36668 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
36669 It is not suitable for device detection, because DEV bit is ignored,
36670 the command may run too long, and not all devices set the signature
36672 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
36673 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
36674 Fix device selection, DEV bit must be set first to address the registers
36675 of the correct device.
36676 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
36677 grub_ata_pio_read/write ().
36678 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
36679 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
36681 2009-01-13 Carles Pina i Estany <carles@pina.cat>
36683 * util/grub-editenv.c (main): Use fseeko(), not fseek().
36685 2009-01-13 Bean <bean123ch@gmail.com>
36687 * util/grub-mkfont.c (write_font): forget to remove some debug code.
36689 2009-01-13 Bean <bean123ch@gmail.com>
36691 * Makefile.in: (enable_grub_mkfont): New variable.
36692 (freetype_cflags): Likewise.
36693 (freetype_libs): Likewise.
36695 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
36696 (grub_mkfont_SOURCES): New variable.
36697 (grub_mkfont_CFLAGS): Likewise.
36698 (grub_mkfont_LDFLAGS): Likewise.
36700 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
36701 library if `--enable-grub-mkfont' is requested.
36702 (enable_grub_mkfont): New variable.
36703 (freetype_cflags): Likewise.
36704 (freetype_libs): Likewise.
36706 * util/grub-mkfont.c: New file.
36708 2009-01-12 Christian Franke <franke@computer.org>
36710 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
36711 mode check. Fix setting of compat_use[].
36713 2009-01-10 Robert Millan <rmh@aybabtu.com>
36715 Update a few copyright years which we forgot to do in 2008 (only for
36716 files whose changes made in 2008 were copyright-significant)
36718 * Makefile.in: Add 2008 to Copyright line.
36719 * disk/ieee1275/ofdisk.c: Likewise.
36720 * disk/efi/efidisk.c: Likewise.
36721 * kern/dl.c: Likewise.
36722 * kern/sparc64/ieee1275/init.c: Likewise.
36723 * kern/mm.c: Likewise.
36724 * kern/efi/mm.c: Likewise.
36725 * boot/i386/pc/boot.S: Likewise.
36726 * genfslist.sh: Likewise.
36727 * fs/iso9660.c: Likewise.
36728 * fs/hfs.c: Likewise.
36729 * fs/jfs.c: Likewise.
36730 * fs/minix.c: Likewise.
36731 * fs/ufs.c: Likewise.
36732 * gensymlist.sh.in: Likewise.
36733 * genkernsyms.sh.in: Likewise.
36734 * include/grub/misc.h: Likewise.
36735 * include/grub/types.h: Likewise.
36736 * include/grub/symbol.h: Likewise.
36737 * include/grub/elf.h: Likewise.
36738 * include/grub/kernel.h: Likewise.
36739 * include/grub/disk.h: Likewise.
36740 * include/grub/dl.h: Likewise.
36741 * include/grub/i386/linux.h: Likewise.
36742 * include/grub/i386/pc/biosdisk.h: Likewise.
36743 * include/grub/efi/api.h: Likewise.
36744 * include/grub/efi/pe32.h: Likewise.
36745 * include/grub/util/misc.h: Likewise.
36746 * normal/execute.c: Likewise.
36747 * normal/arg.c: Likewise.
36748 * normal/completion.c: Likewise.
36749 * normal/lexer.c: Likewise.
36750 * normal/parser.y: Likewise.
36751 * normal/misc.c: Likewise.
36752 * commands/i386/pc/vbeinfo.c: Likewise.
36753 * commands/hexdump.c: Likewise.
36754 * commands/terminal.c: Likewise.
36755 * commands/ls.c: Likewise.
36756 * commands/help.c: Likewise.
36757 * partmap/pc.c: Likewise.
36758 * loader/efi/chainloader.c: Likewise.
36759 * loader/multiboot_loader.c: Likewise.
36760 * loader/i386/pc/multiboot2.c: Likewise.
36761 * term/efi/console.c: Likewise.
36762 * term/i386/pc/serial.c: Likewise.
36763 * util/lvm.c: Likewise.
36764 * util/console.c: Likewise.
36765 * util/i386/efi/grub-mkimage.c: Likewise.
36766 * util/raid.c: Likewise.
36768 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
36770 * commands/videotest.c: Removed include to grub/machine/memory.h.
36772 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
36773 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
36774 (video_mod_SOURCES): Removed.
36775 (video_mod_CFLAGS): Likewise.
36776 (video_mod_LDFLAGS): Likewise.
36777 (gfxterm_mod_SOURCES): Likewise.
36778 (gfxterm_mod_CFLAGS): Likewise.
36779 (gfxterm_mod_LDFLAGS): Likewise.
36780 (videotest_mod_SOURCES): Likewise.
36781 (videotest_mod_CFLAGS): Likewise.
36782 (videotest_mod_LDFLAGS): Likewise.
36783 (bitmap_mod_SOURCES): Likewise.
36784 (bitmap_mod_CFLAGS): Likewise.
36785 (bitmap_mod_LDFLAGS): Likewise.
36786 (tga_mod_SOURCES): Likewise.
36787 (tga_mod_CFLAGS): Likewise.
36788 (tga_mod_LDFLAGS): Likewise.
36789 (jpeg_mod_SOURCES): Likewise.
36790 (jpeg_mod_CFLAGS): Likewise.
36791 (jpeg_mod_LDFLAGS): Likewise.
36792 (png_mod_SOURCES): Likewise.
36793 (png_mod_CFLAGS): Likewise.
36794 (png_mod_LDFLAGS): Likewise.
36796 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
36797 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
36798 (video_mod_SOURCES): Added.
36799 (video_mod_CFLAGS): Likewise.
36800 (video_mod_LDFLAGS): Likewise.
36801 (videotest_mod_SOURCES): Likewise.
36802 (videotest_mod_CFLAGS): Likewise.
36803 (videotest_mod_LDFLAGS): Likewise.
36804 (bitmap_mod_SOURCES): Likewise.
36805 (bitmap_mod_CFLAGS): Likewise.
36806 (bitmap_mod_LDFLAGS): Likewise.
36807 (tga_mod_SOURCES): Likewise.
36808 (tga_mod_CFLAGS): Likewise.
36809 (tga_mod_LDFLAGS): Likewise.
36810 (jpeg_mod_SOURCES): Likewise.
36811 (jpeg_mod_CFLAGS): Likewise.
36812 (jpeg_mod_LDFLAGS): Likewise.
36813 (png_mod_SOURCES): Likewise.
36814 (png_mod_CFLAGS): Likewise.
36815 (png_mod_LDFLAGS): Likewise.
36816 (gfxterm_mod_SOURCES): Likewise.
36817 (gfxterm_mod_CFLAGS): Likewise.
36818 (gfxterm_mod_LDFLAGS): Likewise.
36820 * term/gfxterm.c: Removed include to grub/machine/memory.h,
36821 grub/machine/console.h.
36823 2009-01-04 Jerone Young <jerone@gmail.com>
36825 Make on screen instructions clearer
36827 Based on patch created by Jidanni <jidanni@jidanni.org>
36829 * normal/menu.c: print clearer instructions on the screen
36831 2009-01-02 Colin D Bennett <colin@gibibit.com>
36835 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
36836 build system and fixed gfxterm.c to work with different sized fonts.
36838 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
36840 * configure: Re-generated.
36842 * DISTLIST: Removed font/manager.c.
36844 Added font/font_cmd.c.
36846 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
36849 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
36851 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
36853 * kern/term.c: Changed users of grub_utf8_to_ucs4.
36855 * normal/menu.c: Likewise.
36857 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
36858 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
36860 * include/grub/font.h: Replaced with new file.
36862 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
36863 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
36864 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
36865 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
36866 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
36867 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
36868 fg_red, fg_green, fg_blue, fg_alpha.
36869 (grub_video_adapter): Removed blit_glyph.
36870 (grub_video_blit_glyph): Removed.
36872 * font/manager.c: Removed file.
36874 * font/font.c: New file.
36876 * font/font_cmd.c: Likewise.
36878 * video/video.c (grub_video_blit_glyph): Removed.
36880 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
36881 (grub_video_vbe_map_rgba): Likewise.
36882 (grub_video_vbe_unmap_color_int): Likewise.
36883 (grub_video_vbe_blit_glyph): Removed.
36884 (grub_video_vbe_adapter): Removed blit_glyph.
36886 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
36887 (get_pixel): Likewise.
36888 (set_pixel): Likewise.
36890 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
36892 * term/gfxterm.c: Adapted to new font engine.
36894 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
36896 * term/i386/pc/vga.c: Likewise.
36898 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
36900 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
36902 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36904 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36906 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
36908 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
36910 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
36912 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
36914 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
36916 * util/grub.d/00_header.in: Changed to use new loadfont command.
36918 * util/grub-mkconfig_lib.in: Changed font extension.
36920 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
36922 * util/getroot.c (grub_util_get_grub_dev): Add support for
36923 /dev/md/dNNpNN style partitionable mdraid devices.
36925 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
36927 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
36928 at a time limit of the PXE TFTP API correctly.
36929 (grub_pxefs_close): Likewise.
36931 2008-11-29 Robert Millan <rmh@aybabtu.com>
36933 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
36934 grub_ata_device_initialize() calls.
36936 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
36938 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
36940 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
36942 2008-11-28 Robert Millan <rmh@aybabtu.com>
36944 Fix build on powerpc-ieee1275. Based on patch created by
36945 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
36946 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36947 `kern/ieee1275/mmap.c'.
36948 * include/grub/powerpc/ieee1275/memory.h: New file.
36950 Provide grub-install on coreboot.
36951 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
36952 (grub_install_SOURCES): New variable.
36953 * util/i386/pc/grub-install.in: Add a few condition checks to make it
36954 usable on coreboot.
36956 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
36958 * util/grub-fstest.c (grub_term_get_current_input): Change return type
36959 to `grub_term_input_t'.
36960 (grub_term_get_current_output): Change return type to
36961 `grub_term_output_t'.
36963 2008-11-22 Robert Millan <rmh@aybabtu.com>
36965 Fix breakage on coreboot due to declaration mismatch.
36966 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
36967 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
36968 grub_vga_text_cls().
36970 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
36971 comments. Avoid copying one more byte than necessary (just in case).
36973 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
36974 to 0x200000 (avoids trouble with some OFW implementations, and matches
36975 with the one in Yaboot).
36976 Reported by Manoel Abranches
36978 2008-11-20 Robert Millan <rmh@aybabtu.com>
36980 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
36981 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
36983 * util/grub-mkconfig_lib.in (grub_warn): New function.
36984 (convert_system_path_to_grub_path): Use grub_warn() when issuing
36985 warnings, to obtain consistent formatting.
36986 * util/grub.d/00_header.in: Likewise.
36987 * util/update-grub_lib.in: Likewise.
36989 * loader/i386/linux.c (allocate_pages): Fix a warning.
36990 Move comment text to `#error' stanza.
36992 Harmonize ieee1275's grub_available_iterate() with the generic
36993 grub_machine_mmap_iterate() interface (fixes a recently-introduced
36994 build problem on i386-ieee1275):
36995 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
36996 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
36997 parameter `type'. Update all users of this function.
36998 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
36999 `kern/ieee1275/mmap.c'.
37000 * kern/ieee1275/init.c
37001 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
37003 (grub_machine_mmap_iterate): ... this.
37004 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
37005 return type to `grub_err_t'. Update all implementations of this
37006 function prototype.
37007 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
37010 Add `lsmmap' command (lists firmware-provided memory map):
37011 * commands/lsmmap.c: New file.
37012 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
37013 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
37015 * conf/powerpc-ieee1275.rmk: Likewise.
37016 * conf/i386-coreboot.rmk: Likewise.
37017 * conf/i386-ieee1275.rmk: Likewise.
37019 2008-11-19 Robert Millan <rmh@aybabtu.com>
37021 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
37022 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
37023 constraints to initrd allocation (based on code from
37024 loader/i386/pc/linux.c). Without them, initrd was allocated too high
37025 for Linux to find it.
37027 2008-11-14 Robert Millan <rmh@aybabtu.com>
37029 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
37030 order to cope with duplicate slashes.
37032 2008-11-14 Robert Millan <rmh@aybabtu.com>
37034 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
37035 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
37036 don't want to mess with lower memory, because it is used in the Linux
37039 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
37040 an appropriate place in lower memory, between 0x10000 and 0x90000,
37041 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
37042 is in our heap (probably as a result of it being corrupted during
37043 decompression). Add #error instance with comment to explain why this
37044 loader isn't currently usable on PC/BIOS.
37046 2008-11-14 Robert Millan <rmh@aybabtu.com>
37048 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
37049 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
37051 2008-11-12 Robert Millan <rmh@aybabtu.com>
37053 Make loader/i386/linux.c buildable on i386-pc (although disabled).
37055 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
37056 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
37058 * include/grub/i386/pc/memory.h: ... to here.
37060 2008-11-12 Robert Millan <rmh@aybabtu.com>
37062 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
37065 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
37066 (grub_console_cur_color, grub_console_real_putchar)
37067 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
37068 (grub_console_setcolorstate, grub_console_setcolor)
37069 (grub_console_getcolor): Move from here ...
37070 * include/grub/i386/vga_common.h: ... to here (new file).
37072 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
37073 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
37074 `<grub/i386/io.h>'.
37075 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
37076 `<grub/i386/vga_common.h>'.
37078 2008-11-12 Robert Millan <rmh@aybabtu.com>
37080 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
37081 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
37082 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
37084 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
37085 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
37087 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
37088 grub_console_init() with call to grub_vga_text_init().
37089 (grub_machine_fini): Replace call to
37090 grub_console_fini() with call to grub_vga_text_fini() and
37091 grub_at_keyboard_fini().
37093 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
37094 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
37095 (grub_console_setcolorstate, grub_console_setcolor)
37096 (grub_console_getcolor): New function prototypes.
37098 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
37099 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
37100 (grub_vga_text_setcursor): Static-ize.
37101 (grub_vga_text_term): New structure.
37102 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
37104 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
37105 (grub_console_cur_color, grub_console_standard_color)
37106 (grub_console_normal_color, grub_console_highlight_color)
37107 (map_char, grub_console_putchar, grub_console_getcharwidth)
37108 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
37109 (grub_console_getcolor): Move from here ...
37110 * term/i386/vga_common.c: ... to here (same function names).
37112 2008-11-12 Robert Millan <rmh@aybabtu.com>
37114 Use newly-added Multiboot support in coreboot.
37116 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
37117 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
37119 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
37120 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
37121 (codestart): Store the MBI in `startup_multiboot_info' when we're
37122 being loaded using Multiboot.
37124 * kern/i386/coreboot/init.c (grub_machine_init): Move
37125 grub_at_keyboard_init() call to beginning of function (useful for
37126 debugging). Call grub_machine_mmap_init() before attempting to use
37127 grub_machine_mmap_iterate().
37128 (grub_lower_mem, grub_upper_mem): Move from here ...
37129 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
37132 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
37133 function prototype.
37135 2008-11-12 Robert Millan <rmh@aybabtu.com>
37137 Fix a regression introduced by the at_keyboard.mod split. Because
37138 some terminals are default on some platforms and non-default on
37139 others, the first terminal being registered determines which is
37140 going to be default.
37142 * kern/term.c (grub_term_register_input): If this is the first
37143 terminal being registered, set it as the current one.
37144 (grub_term_register_output): Likewise.
37146 * term/efi/console.c (grub_console_init): Do not call
37147 grub_term_set_current_output() or grub_term_set_current_input().
37148 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
37149 * term/i386/pc/console.c (grub_console_init): Likewise.
37150 (grub_console_fini): Do not call grub_term_set_current_input()
37151 (but leave grub_term_set_current_output() to restore text mode).
37153 2008-11-10 Robert Millan <rmh@aybabtu.com>
37155 * util/grub.d/00_header.in: Add backward compatibility check for
37156 versions of terminal.mod that don't understand `terminal_input' or
37159 2008-11-09 Robert Millan <rmh@aybabtu.com>
37161 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
37162 `terminal_input' / `terminal_output', not `terminal'.
37164 2008-11-08 Robert Millan <rmh@aybabtu.com>
37166 * Makefile.in (include_DATA): Fix srcdir=. assumption.
37167 (DISTCLEANFILES): Add `build_env.mk'.
37169 2008-11-08 Robert Millan <rmh@aybabtu.com>
37171 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
37172 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
37173 members. Update all users.
37174 * util/console.c (grub_ncurses_term): Split in ...
37175 (grub_ncurses_term_input): ... this, and ...
37176 (grub_ncurses_term_output): ... this. Update all users.
37177 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
37179 2008-11-08 Robert Millan <rmh@aybabtu.com>
37181 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
37182 (PKGDATA): Add $(pkgdata_SRCDIR).
37183 (pkglib_BUILDDIR): New variable.
37184 (pkgdata_SRCDIR): New variable.
37185 (build_env.mk): New target.
37186 (include_DATA): New variable.
37187 (install-local): Install $(include_DATA) files in $(includedir).
37189 2008-11-07 Pavel Roskin <proski@gnu.org>
37191 * gendistlist.sh: Use C locale for sorting to ensure consistent
37192 output on all systems.
37194 * util/grub.d/00_header.in: Remove incorrect space before
37197 2008-11-07 Robert Millan <rmh@aybabtu.com>
37199 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
37201 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
37202 * loader/multiboot_loader.c (find_multi_boot2_header): New function
37203 (based on find_multi_boot1_header).
37204 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
37205 using find_multi_boot2_header(), and abort if neither Multiboot or
37206 Multiboot headers were found.
37208 2008-11-07 Robert Millan <rmh@aybabtu.com>
37210 Modularize at_keyboard.mod:
37212 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
37213 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
37214 (at_keyboard_mod_LDFLAGS): New variables.
37216 Actual terminal split:
37218 * include/grub/term.h (struct grub_term): Split in ...
37219 (struct grub_term_input): ... this, and ...
37220 (struct grub_term_output): ... this. Update all users.
37221 (grub_term_set_current): Split in ...
37222 (grub_term_set_current_input): ... this, and ...
37223 (grub_term_set_current_output): ... this.
37224 (grub_term_get_current): Split in ...
37225 (grub_term_get_current_input): ... this, and ...
37226 (grub_term_get_current_output): ... this.
37227 (grub_term_register): Split in ...
37228 (grub_term_register_input): ... this, and ...
37229 (grub_term_register_output): ... this.
37230 (grub_term_unregister): Split in ...
37231 (grub_term_unregister_input): ... this, and ...
37232 (grub_term_unregister_output): ... this.
37233 (grub_term_iterate): Split in ...
37234 (grub_term_iterate_input): ... this, and ...
37235 (grub_term_iterate_output): ... this.
37237 * kern/term.c (grub_term_list): Split in ...
37238 (grub_term_list_input): ... this, and ...
37239 (grub_term_list_output): ... this. Update all users.
37240 (grub_cur_term): Split in ...
37241 (grub_cur_term_input): ... this, and ...
37242 (grub_cur_term_output): ... this. Update all users.
37243 (grub_term_set_current): Split in ...
37244 (grub_term_set_current_input): ... this, and ...
37245 (grub_term_set_current_output): ... this.
37246 (grub_term_get_current): Split in ...
37247 (grub_term_get_current_input): ... this, and ...
37248 (grub_term_get_current_output): ... this.
37249 (grub_term_register): Split in ...
37250 (grub_term_register_input): ... this, and ...
37251 (grub_term_register_output): ... this.
37252 (grub_term_unregister): Split in ...
37253 (grub_term_unregister_input): ... this, and ...
37254 (grub_term_unregister_output): ... this.
37255 (grub_term_iterate): Split in ...
37256 (grub_term_iterate_input): ... this, and ...
37257 (grub_term_iterate_output): ... this.
37259 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
37260 a check for input and one for output (and only attempt to get keys
37261 from user when input works).
37263 * util/grub-probe.c (grub_term_get_current): Split in ...
37264 (grub_term_get_current_input): ... this, and ...
37265 (grub_term_get_current_output): ... this.
37266 * util/grub-fstest.c: Likewise.
37267 * util/i386/pc/grub-setup.c: Likewise.
37268 * util/grub-editenv.c: Likewise.
37270 Portability adjustments:
37272 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
37273 `term/i386/pc/at_keyboard.c'.
37274 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
37275 grub_keyboard_controller_init() (now handled by terminal .init).
37276 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
37277 grub_at_keyboard_init().
37278 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
37279 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
37280 at_keyboard.mod via input terminal interface).
37281 * include/grub/i386/coreboot/console.h: Convert into a stub for
37282 `<grub/i386/pc/console.h>'.
37284 Migrate full terminals to new API:
37286 * term/efi/console.c (grub_console_term): Split into ...
37287 (grub_console_term_input): ... this, and ...
37288 (grub_console_term_output): ... this. Update all users.
37289 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
37290 (grub_ofconsole_init): Split into ...
37291 (grub_ofconsole_init_input): ... this, and ...
37292 (grub_ofconsole_init_output): ... this.
37293 (grub_ofconsole_term): Split into ...
37294 (grub_ofconsole_term_input): ... this, and ...
37295 (grub_ofconsole_term_output): ... this. Update all users.
37296 * term/i386/pc/serial.c (grub_serial_term): Split into ...
37297 (grub_serial_term_input): ... this, and ...
37298 (grub_serial_term_output): ... this. Update all users.
37299 * term/i386/pc/console.c (grub_console_term): Split into ...
37300 (grub_console_term_input): ... this, and ...
37301 (grub_console_term_output): ... this. Update all users.
37302 (grub_console_term_input): Only enable it on PC/BIOS platform.
37303 (grub_console_init): Remove grub_keyboard_controller_init() call.
37305 Migrate input terminals to new API:
37307 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
37308 `i386' and `i386/pc' to enable build on x86_64 (this driver is
37309 i386-specific anyway).
37310 (grub_console_checkkey): Rename to ...
37311 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
37313 (grub_keyboard_controller_orig): New variable.
37314 (grub_console_getkey): Rename to ...
37315 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
37317 (grub_keyboard_controller_init): Static-ize. Save original
37318 controller value so that it can be restored ...
37319 (grub_keyboard_controller_fini): ... here (new function).
37320 (grub_at_keyboard_term): New structure.
37321 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
37324 Migrate output terminals to new API:
37326 * term/i386/pc/vga.c (grub_vga_term): Change type to
37327 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
37328 members. Update all users.
37329 * term/gfxterm.c (grub_video_term): Change type to
37330 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
37331 members. Update all users.
37332 * include/grub/i386/pc/console.h (grub_console_checkkey)
37333 (grub_console_getkey): Do not export (no longer needed by gfxterm,
37336 Migrate `terminal' command and userland tools to new API:
37338 * commands/terminal.c (grub_cmd_terminal): Split into ...
37339 (grub_cmd_terminal_input): ... this, and ...
37340 (grub_cmd_terminal_output): ... this.
37341 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
37342 `terminal_input' and `terminal_output'.
37343 * util/grub.d/00_header.in: Adjust `terminal' calls to new
37344 `terminal_input' / `terminal_output' API.
37345 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
37346 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
37347 provided ${GRUB_TERMINAL}, convert it).
37349 2008-11-04 Robert Millan <rmh@aybabtu.com>
37351 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
37353 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
37355 2008-11-03 Bean <bean123ch@gmail.com>
37357 * kern/elf.c (grub_elf32_load): Revert to previous code.
37358 (grub_elf64_load): Likewise.
37360 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
37362 2008-11-01 Robert Millan <rmh@aybabtu.com>
37364 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
37365 (TARGET_CPPFLAGS): Likewise.
37366 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
37368 2008-11-01 Carles Pina i Estany <carles@pina.cat>
37370 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
37372 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
37374 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
37375 addition of objects until the code is not going to be able to fail.
37377 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
37379 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
37380 (add a missing NULL check, and correct them by moving the pointer
37381 operations after the actual check).
37383 2008-10-29 Robert Millan <rmh@aybabtu.com>
37385 * util/i386/pc/grub-install.in: Handle empty string as output from
37386 make_system_path_relative_to_its_root().
37388 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
37390 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
37391 circular metadata worst case scenario. If the metadata is circular
37392 then copy the wrap in place.
37393 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
37394 project lib/format_text/layout.h
37395 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
37397 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
37399 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
37401 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
37403 * util/update-grub_lib.in: Mention filename in warning message.
37405 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
37407 * NEWS: Update for rename of update-grub to grub-mkconfig.
37409 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
37411 * util/update-grub_lib.in: Copy to ...
37412 * util/grub-mkconfig_lib.in: ... this. Update all users.
37413 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
37414 * util/update-grub.in: Rename to ...
37415 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
37416 option. Add `--output' option to allow users to specify the generated
37417 configuration file. Default to stdout.
37418 (update_grub_dir): Rename to ...
37419 (grub_mkconfig_dir): ... this.
37420 (grub_cfg): Default to an empty string.
37421 * conf/common.rmk (update-grub): Rename to ...
37422 (grub-mkconfig): ... this.
37423 (update-grub_lib): Copy to ...
37424 (grub-mkconfig_lib): ... this.
37425 (update-grub_SCRIPTS): Copy to ...
37426 (grub-mkconfig_SCRIPTS): ... this. Update all users.
37427 (update-grub_DATA): Rename to ...
37428 (grub-mkconfig_DATA): ... this.
37430 2008-09-28 Robert Millan <rmh@aybabtu.com>
37432 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
37433 to `modified'. Add the real `created' field.
37434 (grub_iso9660_uuid): Use `modified' rather than `created' for
37435 constructing the UUID.
37437 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
37439 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
37440 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
37442 2008-09-28 Bean <bean123ch@gmail.com>
37444 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
37445 Thanks to Christian Franke for finding this bug.
37447 2008-09-25 Robert Millan <rmh@aybabtu.com>
37449 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
37450 instances of grub_util_get_disk_name() (see previous commit).
37452 2008-09-25 Robert Millan <rmh@aybabtu.com>
37454 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
37455 `util/i386/get_disk_name.c'.
37456 * conf/i386-efi.rmk: Likewise.
37457 * conf/x86_64-efi.rmk: Likewise.
37458 * conf/i386-coreboot.rmk: Likewise.
37459 * conf/i386-ieee1275.rmk: Likewise.
37460 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
37461 `util/ieee1275/get_disk_name.c'.
37462 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
37463 * util/ieee1275/get_disk_name.c: Remove file.
37464 * util/i386/get_disk_name.c: Remove file.
37465 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
37466 "hd%d" for device.map entries, rather than using
37467 grub_util_get_disk_name().
37469 2008-09-24 Carles Pina i Estany <carles@pina.cat>
37471 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
37473 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
37475 2008-09-24 Carles Pina i Estany <carles@pina.cat>
37477 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
37479 (GRUB_TERM_PPAGE): Changed to 0x4900.
37481 2008-09-24 Robert Millan <rmh@aybabtu.com>
37483 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
37484 macros (they were i386-pc specific).
37485 * include/grub/sparc64/ieee1275/console.h: Likewise.
37486 * include/grub/efi/console.h: Likewise.
37488 2008-09-22 Bean <bean123ch@gmail.com>
37490 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
37491 resident and in attribute list.
37493 * include/grub/ntfs.h (BMP_LEN): Removed.
37495 2008-09-22 Bean <bean123ch@gmail.com>
37497 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
37498 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
37500 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
37501 error occurs, as grub_disk_open will call grub_disk_close, which will
37502 call p->close (scsi).
37504 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
37506 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
37507 (AC_PREREQ): Bumped to 2.59.
37508 (AC_TRY_COMPILE): Replace obsolete macro with ...
37509 (AC_COMPILE_IFELSE): ... this.
37510 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
37511 (AC_LINK_IFELSE): ... this.
37513 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
37515 * autogen.sh: Add a call to `gendistlist.sh'.
37517 2008-09-19 Christian Franke <franke@computer.org>
37519 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
37520 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
37521 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
37522 Export __enable_execute_stack() to modules.
37523 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
37526 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
37528 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
37531 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
37533 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
37534 #include <grub/util/hostdisk.h>.
37536 2008-09-08 Robert Millan <rmh@aybabtu.com>
37538 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
37539 segments when their filesz is zero (grub_file_read() interprets
37540 zero-size as "read until EOF", which results in memory corruption).
37541 Use `lowest_segment' rather than 0 for calculating the current
37542 segment load address.
37544 2008-09-08 Robert Millan <rmh@aybabtu.com>
37546 * util/hostdisk.c (open_device): Replace a grub_util_info() call
37547 with grub_dprintf("hostdisk", ...), as it was so verbose that it
37548 clobbered useful information.
37550 2008-09-08 Robert Millan <rmh@aybabtu.com>
37552 * include/grub/util/biosdisk.h: Move to ...
37553 * include/grub/util/hostdisk.h: ... here. Update all users.
37554 * util/biosdisk.c: Move to ...
37555 * util/hostdisk.c: ... here. Update all users.
37557 2008-09-07 Robert Millan <rmh@aybabtu.com>
37559 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
37561 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
37562 and length can be stored directly in the `mbi->mmap_addr' and
37563 `mbi->mmap_length' struct fields.
37565 2008-09-07 Robert Millan <rmh@aybabtu.com>
37567 * conf/i386.rmk: New file. Provides declaration for building
37569 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
37570 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
37572 Include `conf/i386.mk'.
37573 * conf/i386-efi.rmk: Likewise.
37574 * conf/x86_64-efi.rmk: Likewise.
37575 * conf/i386-coreboot.rmk: Likewise.
37576 * conf/i386-ieee1275.rmk: Likewise.
37578 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
37580 Based on patch created by Colin D Bennett <colin@gibibit.com>.
37581 Adds optimization support for BGR based modes.
37583 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
37584 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
37585 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
37586 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
37587 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
37588 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
37589 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
37590 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
37591 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
37592 (grub_video_i386_vbeblit_index_index): Likewise.
37593 (grub_video_i386_vbeblit_replace_directN): Added.
37594 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
37595 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
37596 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
37597 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
37598 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
37599 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
37600 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
37601 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
37602 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
37603 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
37604 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
37605 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
37606 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
37608 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
37609 (grub_video_i386_vbefill_R8G8B8): Likewise.
37610 (grub_video_i386_vbefill_index): Likewise.
37611 (grub_video_i386_vbefill_direct32): Added.
37612 (grub_video_i386_vbefill_direct24): Likewise.
37613 (grub_video_i386_vbefill_direct16): Likewise.
37614 (grub_video_i386_vbefill_direct8): Likewise.
37616 * include/grub/video.h (grub_video_blit_format): Removed
37617 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
37618 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
37619 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
37620 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
37621 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
37623 * video/video.c (grub_video_get_blit_format): Updated to use new
37624 blit formats. Added handling for 16 bit color modes.
37626 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
37628 (common_blitter): Updated to use new blitters.
37630 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
37632 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
37633 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
37634 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
37635 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
37636 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
37637 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
37638 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
37639 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
37640 (grub_video_i386_vbeblit_index_index): Likewise.
37641 (grub_video_i386_vbeblit_replace_directN): Added.
37642 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
37643 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
37644 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
37645 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
37646 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
37647 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
37648 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
37649 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
37650 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
37651 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
37652 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
37653 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
37654 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
37656 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
37657 (grub_video_i386_vbefill_R8G8B8): Likewise.
37658 (grub_video_i386_vbefill_index): Likewise.
37659 (grub_video_i386_vbefill_direct32): Added.
37660 (grub_video_i386_vbefill_direct24): Likewise.
37661 (grub_video_i386_vbefill_direct16): Likewise.
37662 (grub_video_i386_vbefill_direct8): Likewise.
37664 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
37667 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
37670 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
37673 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
37676 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
37678 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
37681 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
37683 * fs/iso9660.c (grub_iso9660_date): New structure.
37684 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
37685 (grub_iso9660_uuid): New function.
37687 2008-09-05 Bean <bean123ch@gmail.com>
37689 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
37691 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
37692 insensitive bit for names in Win32 and Win32 & DOS namespace.
37694 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
37696 * include/grub/types.h (LONG_MAX): Likewise.
37698 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
37700 * util/getroot.c: Include <config.h>.
37701 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
37702 add support for /dev/md/N devices and handle LVM double dash escaping.
37704 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
37706 * config.guess: Update to latest version from config git.
37707 * config.sub: Likewise.
37709 2008-09-03 Robert Millan <rmh@aybabtu.com>
37711 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
37712 `disk->total_sectors'.
37714 2008-09-01 Colin D Bennett <colin@gibibit.com>
37716 * include/grub/normal.h: Fixed incorrect comment for
37717 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
37719 2008-09-01 Colin D Bennett <colin@gibibit.com>
37721 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
37722 values with defines.
37724 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
37725 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
37726 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
37727 (GRUB_VBE_MODEATTR_COLOR): Likewise.
37728 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
37729 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
37730 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
37731 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
37732 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
37733 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
37734 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
37735 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
37736 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
37737 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
37738 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
37739 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
37740 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
37741 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
37742 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
37744 2008-08-31 Robert Millan <rmh@aybabtu.com>
37746 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
37748 (grub_multiboot): Fix a few warnings.
37750 2008-08-31 Robert Millan <rmh@aybabtu.com>
37752 * loader/i386/pc/multiboot.c: Update comment not to say that
37753 boot_device support is unimplemented.
37755 2008-08-31 Robert Millan <rmh@aybabtu.com>
37757 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
37758 or memory map support are unimplemented.
37760 2008-08-31 Colin D Bennett <colin@gibibit.com>
37762 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
37764 2008-08-31 Colin D Bennett <colin@gibibit.com>
37766 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
37767 total video memory in 'vbeinfo' output; show color format details for
37770 2008-08-30 Pavel Roskin <proski@gnu.org>
37772 * util/genmoddep.c: Remove for real this time.
37773 * DISTLIST: Remove util/genmoddep.c.
37775 2008-08-30 Robert Millan <rmh@aybabtu.com>
37777 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
37778 as required by Multiboot spec (it was already 4-byte aligned, but
37781 2008-08-29 Pavel Roskin <proski@gnu.org>
37783 * kern/powerpc/ieee1275/crt0.S: Rename to ...
37784 * kern/powerpc/ieee1275/startup.S: ... this.
37785 * conf/powerpc-ieee1275.rmk: Adjust for the above.
37786 * DISTLIST: Likewise.
37788 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
37789 grub/cpu/kernel.h. Add start label for consistency with other
37790 platforms. Add grub_prefix immediately after start. Add jump
37791 to the code after grub_prefix.
37792 * include/grub/powerpc/kernel.h: Provide valid values for
37793 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
37795 2008-08-29 Bean <bean123ch@gmail.com>
37797 * configure.ac: Change host_os to cygwin for mingw.
37798 (asprintf): New check for function.
37800 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
37801 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
37803 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
37804 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
37805 sync, sleep and grub_util_get_disk_size for mingw.
37807 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
37808 to get size in mingw.
37809 (open_device): Use flag O_BINARY if it's defined.
37810 (find_root_device): Add dummy code for mingw.
37812 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
37813 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
37814 (get_scsi_disk_name): Return 0 for mingw.
37816 * util/hostfs.c: #include <grub/util/misc.h>.
37817 (grub_hostfs_open): Use "rb" flag to open file, use
37818 grub_util_get_disk_size to get disk size for mingw.
37820 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
37821 (asprintf): New function if HAVE_ASPRINTF is not set.
37822 (sync): New function for mingw.
37824 (grub_util_get_disk_size): Likewise.
37826 2008-08-28 Pavel Roskin <proski@gnu.org>
37828 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37831 2008-08-28 Robert Millan <rmh@aybabtu.com>
37833 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
37835 2008-08-28 Robert Millan <rmh@aybabtu.com>
37837 Change find_grub_drive() syntax so it doesn't prevent it from
37838 detecting NULL names as errors.
37840 * util/biosdisk.c (find_grub_drive): Move free slot search code
37842 (find_free_slot): ... to here.
37843 (read_device_map): Use find_free_slot() to search for free slots.
37845 2008-08-27 Marco Gerards <marco@gnu.org>
37847 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
37848 (scsi_mod_SOURCES): New variable.
37849 (scsi_mod_CFLAGS): Likewise
37850 (scsi_mod_LDFLAGS): Likewise.
37852 * disk/scsi.c: New file.
37854 * include/grub/scsi.h: Likewise.
37856 * include/grub/scsicmd.h: Likewise.
37858 * disk/ata.c: Include <grub/scsi.h>.
37859 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
37861 (grub_ata_iterate): Skip ATAPI devices.
37862 (grub_ata_open): Only handle ATAPI devices.
37863 (struct grub_atapi_read): Removed.
37864 (grub_atapi_readsector): Likewise.
37865 (grub_ata_read): No longer handle ATAPI devices.
37866 (grub_ata_write): Likewise.
37867 (grub_atapi_iterate): New function.
37868 (grub_atapi_read): Likewise.
37869 (grub_atapi_write): Likewise.
37870 (grub_atapi_open): Likewise.
37871 (grub_atapi_close): Likewise.
37872 (grub_atapi_dev): New variable.
37873 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
37874 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
37876 * include/grub/disk.h (enum grub_disk_dev_id): Add
37877 `GRUB_DISK_DEVICE_SCSI_ID'.
37879 2008-08-26 Robert Millan <rmh@aybabtu.com>
37881 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
37882 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
37885 2008-08-23 Bean <bean123ch@gmail.com>
37887 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
37888 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
37889 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
37890 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
37892 (raid5rec_mod_SOURCES): New macro.
37893 (raid5rec_mod_CFLAGS): Likewise.
37894 (raid5rec_mod_LDFLAGS): Likewise.
37895 (raid6rec_mod_SOURCES): Likewise.
37896 (raid6rec_mod_CFLAGS): Likewise.
37897 (raid6rec_mod_LDFLAGS): Likewise.
37898 (mdraid_mod_SOURCES): Likewise.
37899 (mdraid_mod_CFLAGS): Likewise.
37900 (mdraid_mod_LDFLAGS): Likewise.
37901 (dm_nv_mod_SOURCES): Likewise.
37902 (dm_nv_mod_CFLAGS): Likewise.
37903 (dm_nv_mod_LDFLAGS): Likewise.
37905 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
37906 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
37907 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
37909 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
37910 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
37912 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37914 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37916 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37920 * disk/raid5_recover.c: New file.
37922 * disk/raid6_recover.c: Likewise.
37924 * disk/mdraid_linux.c: Likewise.
37926 * disk/dmraid_nvidia.c: Likewise.
37928 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
37931 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
37932 calculate the size of raid device.
37933 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
37934 different layout of raid5.
37935 (grub_raid_scan_device): Remove code specific to mdraid.
37936 (grub_raid_list): New variable.
37937 (free_array): New function.
37938 (grub_raid_register): Likewise.
37939 (grub_raid_unregister): Likewise.
37940 (grub_raid_rescan): Likewise.
37941 (GRUB_MOD_INIT): Don't iterate device here.
37942 (GRUB_MOD_FINI): Use free_array to release resource.
37944 * include/grub/raid.h: Remove macro and structure specific to mdraid.
37945 (grub_raid5_recover_func_t): New function variable type.
37946 (grub_raid6_recover_func_t): Likewise.
37947 (grub_raid5_recover_func): New variable.
37948 (grub_raid6_recover_func): Likewise.
37949 (grub_raid_register): New function.
37950 (grub_raid_unregister): Likewise.
37951 (grub_raid_rescan): Likewise.
37952 (grub_raid_block_xor): Likewise.
37954 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
37955 (CMD_CRC): New macro.
37957 (read_file): Handle device as well as file.
37958 (cmd_crc): New function.
37959 (fstest): Handle multiple disks.
37960 (options): Remove part, raw and long, add root and diskcount.
37961 (usage): Add crc, remove -p, -r, -l, add -r and -c.
37962 (main): Find the first non option entry and ignore subsequent options,
37963 add handling for the new options, support multiple disks.
37965 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
37967 2008-08-23 Bean <bean123ch@gmail.com>
37969 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
37971 * genfslist.sh: Ignore kernel.mod.
37973 * genpartmaplist.sh: Likewise.
37975 2008-08-23 Robert Millan <rmh@aybabtu.com>
37977 * util/getroot.c (find_root_device): Skip anything that starts with
37978 a dot, not just directories. This avoids things like /dev/.tmp.md0.
37980 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
37982 * util/update-grub.in (GRUB_GFXMODE): Export variable.
37983 * util/grub.d/00_header.in: Allow the administrator to change default
37984 gfxmode via ${GRUB_GFXMODE}.
37986 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
37988 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
37990 2008-08-21 Robert Millan <rmh@aybabtu.com>
37992 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
37994 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
37995 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
37997 2008-08-20 Carles Pina i Estany <carles@pina.cat>
37999 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
38000 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
38002 2008-08-19 Robert Millan <rmh@aybabtu.com>
38004 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
38005 (struct grub_virtual_screen): Remove `cursor_color'.
38006 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
38008 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
38010 2008-08-18 Robert Millan <rmh@aybabtu.com>
38012 Unify (identical) linux_normal.c files.
38013 * loader/i386/efi/linux_normal.c: Move from here ...
38014 * loader/linux_normal.c: ... to here. Update all users.
38015 * loader/i386/pc/linux_normal.c: Delete. Update all users.
38016 * loader/i386/ieee1275/linux_normal.c: Likewise.
38018 2008-08-18 Robert Millan <rmh@aybabtu.com>
38020 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
38021 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
38022 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
38023 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
38024 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
38026 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
38027 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
38028 (GRUB_LINUX_CL_END_OFFSET): ... to here.
38029 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
38030 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
38031 (GRUB_EFI_CL_END_OFFSET): Rename to ...
38032 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
38033 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
38034 Initialize `params->video_cursor_x' and `params->video_cursor_y'
38035 portably using grub_getxy().
38036 Replace `-EFI' with `-bzImage' in boot message.
38038 2008-08-17 Robert Millan <rmh@aybabtu.com>
38040 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
38042 2008-08-17 Robert Millan <rmh@aybabtu.com>
38044 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
38046 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
38047 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
38048 (grub_machine_mmap_iterate): New function declaration.
38049 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
38051 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
38054 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
38055 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
38056 Move e820 parsing from here ...
38057 * kern/i386/pc/mmap.c: New file.
38058 (grub_machine_mmap_iterate): ... to here.
38060 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
38061 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
38062 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
38063 (grub_available_iterate): Redeclare to return `void', and redeclare
38064 its hook to use grub_uint64_t as addr and size parameters, and rename
38066 (grub_machine_mmap_iterate): ... this. Update all users.
38068 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
38069 to make it more readable. Rename to ...
38070 (grub_machine_mmap_iterate): ... this.
38072 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
38073 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
38074 (grub_multiboot): Allocate an extra region after the payload, and fill
38075 it with a Multiboot memory map. Adjust a.out loader to calculate size
38076 with the extra space.
38077 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
38078 with the extra space.
38080 2008-08-17 Carles Pina i Estany <carles@pina.cat>
38082 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
38084 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
38086 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
38087 mdate-sh to the list `find' searches for.
38088 * DISTLIST: Regenerated.
38090 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
38092 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
38093 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
38094 genmoddep.awk, gensymlist.sh.in.
38095 (DISTDIRS): Add bus, docs, hook, lib.
38096 * DISTLIST: Regenerated.
38097 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
38099 2008-08-16 Robert Millan <rmh@aybabtu.com>
38101 * disk/raid.c (grub_raid_init): Handle/report errors set by
38102 grub_device_iterate().
38103 * disk/lvm.c (grub_lvm_init): Likewise.
38105 2008-08-15 Bean <bean123ch@gmail.com>
38107 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38109 (datetime_mod_SOURCES): New macro.
38110 (datetime_mod_CFLAGS): Likewise.
38111 (datetime_mod_LDFLAGS): Likewise.
38112 (date_mod_SOURCES): Likewise.
38113 (date_mod_CFLAGS): Likewise.
38114 (date_mod_LDFLAGS): Likewise.
38115 (datehook_mod_SOURCES): Likewise.
38116 (datehook_mod_CFLAGS): Likewise.
38117 (datehook_mod_LDFLAGS): Likewise.
38119 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38121 (datetime_mod_SOURCES): New macro.
38122 (datetime_mod_CFLAGS): Likewise.
38123 (datetime_mod_LDFLAGS): Likewise.
38124 (date_mod_SOURCES): Likewise.
38125 (date_mod_CFLAGS): Likewise.
38126 (date_mod_LDFLAGS): Likewise.
38127 (datehook_mod_SOURCES): Likewise.
38128 (datehook_mod_CFLAGS): Likewise.
38129 (datehook_mod_LDFLAGS): Likewise.
38131 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38133 (datetime_mod_SOURCES): New macro.
38134 (datetime_mod_CFLAGS): Likewise.
38135 (datetime_mod_LDFLAGS): Likewise.
38136 (date_mod_SOURCES): Likewise.
38137 (date_mod_CFLAGS): Likewise.
38138 (date_mod_LDFLAGS): Likewise.
38139 (datehook_mod_SOURCES): Likewise.
38140 (datehook_mod_CFLAGS): Likewise.
38141 (datehook_mod_LDFLAGS): Likewise.
38143 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38145 (datetime_mod_SOURCES): New macro.
38146 (datetime_mod_CFLAGS): Likewise.
38147 (datetime_mod_LDFLAGS): Likewise.
38148 (date_mod_SOURCES): Likewise.
38149 (date_mod_CFLAGS): Likewise.
38150 (date_mod_LDFLAGS): Likewise.
38151 (datehook_mod_SOURCES): Likewise.
38152 (datehook_mod_CFLAGS): Likewise.
38153 (datehook_mod_LDFLAGS): Likewise.
38155 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38157 (datetime_mod_SOURCES): New macro.
38158 (datetime_mod_CFLAGS): Likewise.
38159 (datetime_mod_LDFLAGS): Likewise.
38160 (date_mod_SOURCES): Likewise.
38161 (date_mod_CFLAGS): Likewise.
38162 (date_mod_LDFLAGS): Likewise.
38163 (datehook_mod_SOURCES): Likewise.
38164 (datehook_mod_CFLAGS): Likewise.
38165 (datehook_mod_LDFLAGS): Likewise.
38167 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
38169 * commands/date.c: New file.
38171 * hook/datehook.c: Likewise.
38173 * include/grub/lib/datetime.h: Likewise.
38175 * include/grub/i386/cmos.h: Likewise.
38177 * lib/datetime.c: Likewise.
38179 * lib/i386/datetime.c: Likewise.
38181 * lib/efi/datetime.c: Likewise.
38183 2008-08-14 Robert Millan <rmh@aybabtu.com>
38185 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
38186 (grub_mkelfimage_SOURCES): New variable.
38187 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
38189 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
38190 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
38191 * conf/powerpc-ieee1275.rmk: Likewise.
38192 * conf/i386-ieee1275.rmk: Likewise.
38194 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
38195 * kern/i386/coreboot/init.c: Likewise.
38197 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
38198 with `<grub/cpu/kernel.h>'.
38199 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
38201 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
38202 * kern/i386/coreboot/startup.S: Likewise.
38204 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
38205 (GRUB_MOD_GAP): Remove.
38206 * include/grub/powerpc/kernel.h: New file.
38207 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
38208 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
38209 * include/grub/i386/kernel.h: New file.
38210 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
38211 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
38212 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
38214 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
38216 Use --directory when invoking grub_mkimage.
38218 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
38219 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
38220 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
38221 and GRUB_KERNEL_CPU_PREFIX.
38223 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
38225 * include/grub/err.h (grub_err_printf): New function prototype.
38226 * util/misc.c (grub_err_printf): New function.
38227 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
38229 * kern/err.c (grub_print_error): Use grub_err_printf.
38231 2008-08-13 Robert Millan <rmh@aybabtu.com>
38233 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
38235 2008-08-13 Robert Millan <rmh@aybabtu.com>
38237 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
38240 2008-08-12 Robert Millan <rmh@aybabtu.com>
38242 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
38243 of the relocation code from here ...
38244 (grub_multiboot): ... to here.
38245 (forward_relocator, backward_relocator): Move from here ...
38246 * kern/i386/loader.S (grub_multiboot_forward_relocator)
38247 (grub_multiboot_backward_relocator): ... to here.
38248 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
38249 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
38250 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
38251 (grub_multiboot_forward_relocator_end)
38252 (grub_multiboot_backward_relocator)
38253 (grub_multiboot_backward_relocator_end): New variables.
38255 2008-08-12 Bean <bean123ch@gmail.com>
38257 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
38259 2008-08-11 Robert Millan <rmh@aybabtu.com>
38261 * kern/i386/linuxbios/startup.S: Move from here ...
38262 * kern/i386/coreboot/startup.S: ... to here.
38264 * kern/i386/linuxbios/init.c: Move from here ...
38265 * kern/i386/coreboot/init.c: ... to here.
38267 * kern/i386/linuxbios/table.c: Move from here ...
38268 * kern/i386/coreboot/mmap.c: ... to here.
38270 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
38272 2008-08-11 Robert Millan <rmh@aybabtu.com>
38274 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
38275 errors. Leave it to the upper layer to handle them.
38277 2008-08-09 Christian Franke <franke@computer.org>
38279 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
38280 * conf/common.rmk: Install `grub-pe2elf' only if requested.
38281 Install `grub.d/10_windows' only on Cygwin.
38282 * configure.ac: Add subst of `target_os'.
38283 Check `target_os' also before setting TARGET_OBJ2ELF.
38284 Add `--enable-grub-pe2elf'.
38286 2008-08-08 Robert Millan <rmh@aybabtu.com>
38288 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
38289 (grub_last_time): Change type to grub_uint64_t.
38290 (grub_disk_open): Migrate code from to using grub_get_time_ms().
38291 (grub_disk_close): Likewise.
38293 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
38294 (run_menu): Migrate code from to using grub_get_time_ms().
38296 * util/misc.c (grub_get_time_ms): New function.
38298 2008-08-08 Marco Gerards <marco@gnu.org>
38300 * disk/ata.c (grub_ata_regget): Change return type to
38302 (grub_ata_regget2): Likewise.
38303 (grub_ata_wait_status): New function.
38304 (grub_ata_wait_busy): Removed function, updated all users to use
38305 `grub_ata_wait_status'.
38306 (grub_ata_wait_drq): Likewise.
38307 (grub_ata_cmd): New function.
38308 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
38310 (grub_ata_pio_write): Add error handling.
38311 (grub_atapi_identify): Likewise.
38312 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
38314 (grub_ata_identify): Use `grub_ata_cmd' and improve error
38315 handling. Actually use the detected registers. Reorder the
38316 detection logic such that it is easier to read.
38317 (grub_ata_pciinit): Do not assign the same ID to each controller.
38318 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
38320 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
38322 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
38324 2008-08-08 Marco Gerards <marco@gnu.org>
38328 2008-08-07 Bean <bean123ch@gmail.com>
38330 * include/grub/x86_64/pci.h: New file.
38332 2008-08-07 Christian Franke <franke@computer.org>
38334 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
38335 (TIMER2_GATE): Likewise.
38336 (grub_pit_wait): Add enable/disable of the timer2 gate
38337 bit of port 0x61. This fixes a possible infinite loop.
38339 2008-08-07 Bean <bean123ch@gmail.com>
38341 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
38342 kern/i386/tsc.c and kern/i386/pit.c.
38344 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
38347 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
38350 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
38352 2008-08-07 Bean <bean123ch@gmail.com>
38354 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
38356 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
38358 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
38359 multiple inclusion. Add #include <grub/types.h>.
38361 2008-08-06 Christian Franke <franke@computer.org>
38363 * conf/common.rmk: Build and install `10_windows'.
38364 * util/grub.d/10_windows.in: New script.
38366 2008-08-06 Pavel Roskin <proski@gnu.org>
38368 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
38370 2008-08-06 Robert Millan <rmh@aybabtu.com>
38372 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
38373 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
38375 2008-08-06 Bean <bean123ch@gmail.com>
38377 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
38378 (grub_pxefs_fs_int): Remove dummy definition.
38379 (grub_pxefs_open): Use data->block_size to store the current block
38381 (grub_pxefs_read): Use block size stored in data->block_size. As the
38382 value of grub_pxe_blksize can be changed after the file is opened.
38384 2008-08-06 Bean <bean123ch@gmail.com>
38386 * fs/i386/pc/pxe.c (curr_file): new variable.
38387 (grub_pxefs_open): Simply the handling of pxe file system. Don't
38388 require the dummy internal file system anymore.
38389 (grub_pxefs_read): Removed.
38390 (grub_pxefs_close): Likewise.
38391 (grub_pxefs_fs_int): Likewise.
38392 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
38393 connection when we switch file.
38394 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
38396 2008-08-06 Robert Millan <rmh@aybabtu.com>
38398 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
38400 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
38401 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
38403 * kern/i386/halt.c: New file.
38404 * kern/i386/reboot.c: Likewise.
38405 * include/grub/i386/reboot.h: Likewise.
38406 * include/grub/i386/halt.h: Likewise.
38408 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
38409 Include `<grub/cpu/halt.h>'.
38410 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
38411 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
38413 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
38414 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
38415 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
38416 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
38417 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
38418 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
38420 * include/grub/i386/at_keyboard.h: ... to here.
38422 2008-08-05 Robert Millan <rmh@aybabtu.com>
38424 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
38425 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
38426 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
38427 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
38428 `kern/generic/millisleep.c'.
38430 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
38431 instead of grub_get_rtc().
38432 (grub_tsc_init): Initialize `tsc_boot_time'.
38434 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
38435 (grub_machine_init): Use grub_tsc_init() rather than
38436 installing an RTC-based handler via grub_install_get_time_ms().
38438 * kern/i386/pit.c: New file.
38439 * include/grub/i386/pit.h: Likewise.
38441 2008-08-05 Bean <bean123ch@gmail.com>
38443 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
38445 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
38446 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
38447 (pxe_mod_SOURCES): New macro.
38448 (pxe_mod_CFLAGS): Likewise.
38449 (pxe_mod_LDFLAGS): Likewise.
38450 (pxecmd_mod_SOURCES): Likewise.
38451 (pxecmd_mod_CFLAGS): Likewise.
38452 (pxecmd_mod_LDFLAGS): Likewise.
38454 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
38455 (grub_pxe_call): Likewise.
38457 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
38459 * commands/i386/pc/pxecmd.c: New file.
38461 * fs/i386/pc/pxe.c: Likewise.
38463 * include/grub/i386/pc/pxe.h: Likewise.
38465 2008-08-05 Bean <bean123ch@gmail.com>
38467 * util/console.c (grub_console_cur_color): New variable.
38468 (grub_console_standard_color): Likewise.
38469 (grub_console_normal_color): Likewise.
38470 (grub_console_highlight_color): Likewise.
38471 (color_map): Likewise.
38472 (use_color): Likewise.
38473 (NUM_COLORS): New macro.
38474 (grub_ncurses_setcolorstate): Handle color properly.
38475 (grub_ncurses_setcolor): Don't change color here, just remember the
38476 settings, color will be set in grub_ncurses_setcolorstate.
38477 (grub_ncurses_getcolor): New function.
38478 (grub_ncurses_init): Initialize color pairs.
38479 (grub_ncurses_term): New member grub_ncurses_getcolor.
38481 2008-08-05 Colin D Bennett <colin@gibibit.com>
38483 High resolution timer support. Implemented for x86 CPUs using TSC.
38484 Extracted generic grub_millisleep() so it's linked in only as needed.
38485 This requires a Pentium compatible CPU; if the RDTSC instruction is
38486 not supported, then it falls back on the generic grub_get_time_ms()
38487 implementation that uses the machine's RTC.
38489 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
38490 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
38491 `kern/generic/millisleep.c'.
38493 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
38494 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
38496 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
38497 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
38499 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
38501 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38502 `kern/generic/millisleep.c'.
38504 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
38506 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
38508 * kern/generic/rtc_get_time_ms.c: New file.
38510 * kern/generic/millisleep.c: New file.
38512 * kern/misc.c: Don't include
38513 <kern/time.h> anymore.
38514 (grub_millisleep_generic): Removed.
38516 * commands/sleep.c (grub_interruptible_millisleep): Uses
38517 grub_get_time_ms() instead of grub_get_rtc().
38519 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
38521 (grub_cpu_is_cpuid_supported): New inline function.
38522 (grub_cpu_is_tsc_supported): New inline function.
38523 (grub_tsc_init): New function prototype.
38524 (grub_tsc_get_time_ms): New function prototype.
38526 * kern/i386/tsc.c (grub_get_time_ms): New file.
38528 * include/grub/time.h: Include <grub/types.h.
38529 (grub_millisleep_generic): Removed.
38530 (grub_get_time_ms): New prototype.
38531 (grub_install_get_time_ms): New prototype.
38532 (grub_rtc_get_time_ms): New prototype.
38534 * kern/time.c (grub_get_time_ms): New function.
38535 (grub_install_get_time_ms): New function.
38537 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
38538 <grub/time.h> anymore.
38539 (grub_millisleep): Removed.
38540 (grub_machine_init): Call grub_tsc_init.
38542 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
38543 get_time_ms() implementation.
38545 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
38546 (ieee1275_get_time_ms): New function.
38547 (grub_machine_init): Install get_time_ms() implementation.
38549 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
38550 (grub_machine_init): Call grub_tsc_init().
38551 (grub_millisleep): Removed.
38553 * kern/ieee1275/init.c (grub_millisleep): Removed.
38554 (grub_machine_init): Install ieee1275_get_time_ms()
38556 (ieee1275_get_time_ms): New function.
38557 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
38560 2008-08-05 Marco Gerards <marco@gnu.org>
38562 * disk/ata.c: Include <grub/pci.h>.
38563 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
38564 (grub_ata_initialize): Rewritten.
38565 (grub_ata_device_initialize): New function.
38567 2008-08-04 Pavel Roskin <proski@gnu.org>
38569 * kern/main.c: Include grub/mm.h.
38571 2008-08-04 Robert Millan <rmh@aybabtu.com>
38573 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
38574 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
38575 corruption problem).
38577 2008-08-04 Robert Millan <rmh@aybabtu.com>
38579 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
38580 warnings introduced in my last commit.
38582 2008-08-03 Robert Millan <rmh@aybabtu.com>
38584 Make PCI available on all i386 architectures.
38586 * include/grub/i386/pc/pci.h: Move from here ...
38587 * include/grub/i386/pci.h: ... to here.
38589 * include/grub/i386/pc/pci.h: Remove.
38590 * include/grub/i386/efi/pci.h: Remove.
38591 * include/grub/x86_64/efi/pci.h: Remove.
38593 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
38594 `<grub/cpu/pci.h>'.
38596 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
38597 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
38598 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
38600 * conf/i386-ieee1275.rmk: Likewise.
38602 2008-08-03 Robert Millan <rmh@aybabtu.com>
38604 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
38605 (grub_console_setcursor): Make it possible to set cursor off.
38607 2008-08-03 Robert Millan <rmh@aybabtu.com>
38609 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
38610 of modules instead of assuming which platform provides what.
38611 * util/update-grub.in: Likewise.
38613 2008-08-03 Robert Millan <rmh@aybabtu.com>
38615 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
38616 instead of `grub_install_dos_part' to determine whether a drive needs
38617 to be prepended to prefix (`grub_install_dos_part' is not reliable,
38618 because it can be overridden when loading GRUB via Multiboot).
38620 2008-08-02 Robert Millan <rmh@aybabtu.com>
38622 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
38624 2008-08-02 Robert Millan <rmh@aybabtu.com>
38626 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
38627 of informational grub_dprintf() calls.
38629 2008-08-02 Robert Millan <rmh@aybabtu.com>
38631 * disk/memdisk.c (memdisk_size): Don't initialize.
38632 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
38634 * include/grub/i386/pc/kernel.h
38635 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
38636 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
38637 (grub_memdisk_image_size, grub_arch_memdisk_addr)
38638 (grub_arch_memdisk_size): Remove.
38640 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
38641 field (was only used to transfer a constant). Add `type' field to
38642 support multiple module types.
38643 (grub_module_iterate): New function.
38645 * kern/device.c (grub_device_open): Do not hide error messages
38646 when grub_disk_open() fails. Use grub_print_error() instead.
38648 * kern/i386/pc/init.c (grub_arch_modules_addr)
38649 (grub_arch_memdisk_size): Remove functions.
38650 (grub_arch_modules_addr): Return the module address in high memory
38651 (now that it isn't copied anymore).
38653 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
38654 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
38655 decompression routine (grub_total_module_size already includes that
38656 now). Don't copy modules back to low memory.
38658 * kern/main.c: Include `<grub/mm.h>'.
38659 (grub_load_modules): Split out (and use) ...
38660 (grub_module_iterate): ... this function, which iterates through
38661 module objects and runs a hook.
38662 Comment out grub_mm_init_region() call, as it would cause non-ELF
38663 modules to be overwritten.
38665 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
38666 the memdisk image in its own region, make it part of the module list.
38667 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
38668 (main): Parse --memdisk|-m option, and pass user-provided path as
38669 parameter to generate_image().
38670 (add_segments): Pass `memdisk_path' down to load_modules().
38671 (load_modules): Embed memdisk image in module section when requested.
38672 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
38673 `header.type' instead of `header.offset'.
38675 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
38676 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
38677 (memdisk_mod_LDFLAGS): New variables.
38678 * conf/i386-coreboot.rmk: Likewise.
38679 * conf/i386-ieee1275.rmk: Likewise.
38681 2008-08-02 Robert Millan <rmh@aybabtu.com>
38683 * loader/i386/pc/multiboot.c (playground, forward_relocator)
38684 (backward_relocator): New variables. Used to allocate and relocate
38685 the payload, respectively.
38686 (grub_multiboot_load_elf32): Load into heap instead of requested
38687 address, install the appropriate relocator code in each bound of
38688 the payload, and set the entry point such that
38689 grub_multiboot_real_boot() will jump to one of them.
38691 * kern/i386/loader.S (grub_multiboot_payload_size)
38692 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
38693 (grub_multiboot_payload_entry_offset): New variables.
38694 (grub_multiboot_real_boot): Set cpu context to what the relocator
38695 expects, and jump to the relocator instead of the payload.
38697 * include/grub/i386/loader.h (grub_multiboot_payload_size)
38698 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
38699 (grub_multiboot_payload_entry_offset): Export.
38701 2008-08-01 Bean <bean123ch@gmail.com>
38703 * normal/menu_entry.c (editor_getline): Don't return the original
38704 string as result, as it will be released by lexer once it has done
38707 2008-08-01 Robert Millan <rmh@aybabtu.com>
38709 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
38710 within menuentries, not before them.
38711 util/grub.d/10_hurd.in: Likewise.
38713 2008-08-01 Bean <bean123ch@gmail.com>
38715 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
38716 (bufio_mod_SOURCES): New macro.
38717 (bufio_mod_CFLAGS): Likewise.
38718 (bufio_mod_LDFLAGS): Likewise.
38720 * include/grub/bufio.h: New file.
38722 * io/bufio.c: Likewise.
38724 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
38725 (grub_video_reader_png): Use grub_buffile_open to open file.
38727 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
38728 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
38730 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
38731 (grub_video_reader_tga): Use grub_buffile_open to open file.
38733 * font/manager.c: Include <grub/bufio.h>.
38734 (add_font): Use grub_buffile_open to open file.
38736 2008-07-31 Robert Millan <rmh@aybabtu.com>
38738 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
38739 ELF segments, use a macro for arbitrarily accessing any of them instead
38740 of preparing a pointer that allows access to one at a time.
38741 (grub_multiboot_load_elf64): Likewise.
38743 2008-07-31 Bean <bean123ch@gmail.com>
38745 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
38746 GRUB_KERNEL_MACHINE_DATA_END.
38748 2008-07-30 Robert Millan <rmh@aybabtu.com>
38750 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
38751 Increase from 0x50 to 0x60.
38752 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
38753 use UUIDs to identify the root drive for them. If that's not
38755 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
38756 check, for cross-disk installs.
38758 2008-07-30 Robert Millan <rmh@aybabtu.com>
38760 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
38761 is non-empty, use it to set the `prefix' environment variable instead
38762 of the usual approach.
38763 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
38764 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
38765 environment variable instead of dummy make_install_device().
38767 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
38768 (start): Insert a data section, with `grub_prefix' variable.
38769 * kern/i386/linuxbios/startup.S: Likewise.
38771 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
38772 New variable reference.
38773 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
38774 New macro. Defines offset of `grub_prefix' within startup.S (relative
38776 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
38777 section within startup.S (relative to `start').
38778 * include/grub/i386/coreboot/kernel.h: Likewise.
38780 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
38781 Overwrite grub_prefix with its contents, at the beginning of the
38783 (main): Understand -p|--prefix.
38785 2008-07-30 Robert Millan <rmh@aybabtu.com>
38787 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
38789 2008-07-30 Robert Millan <rmh@aybabtu.com>
38791 * term/i386/pc/vga_text.c (grub_console_cls): Use
38792 grub_console_gotoxy() to go back to beginning of the screen.
38793 Found by Patrick Georgi <patrick.georgi@coresystems.de>
38795 2008-07-29 Christian Franke <franke@computer.org>
38797 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38798 Add conversion of emulated mount points on Cygwin.
38800 2008-07-29 Christian Franke <franke@computer.org>
38802 * util/update-grub.in: Add a check for admin
38804 Remove old `grub.cfg.new' before creation.
38805 Add `-f' to `mv' to handle the different filesystem
38806 semantics of Windows.
38808 2008-07-29 Bean <bean123ch@gmail.com>
38810 * normal/main.c (get_line): Fix buffer overflow bug.
38812 2008-07-28 Robert Millan <rmh@aybabtu.com>
38814 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
38815 (struct grub_apple_header): New struct. Describes the layout of
38816 the partmap header.
38817 (apple_partition_map_iterate): Check the header magic as well as the
38818 partition magic (which was already being checked).
38820 2008-07-28 Pavel Roskin <proski@gnu.org>
38822 * genmk.rb: Add a warning to the beginning of the output that
38823 it's a generated file and should not be edited.
38825 2008-07-28 Robert Millan <rmh@aybabtu.com>
38827 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
38828 with the same number are found, just use issue a warning with
38829 grub_dprintf(), as this error has been reported to be non-fatal.
38831 2008-07-27 Robert Millan <rmh@aybabtu.com>
38833 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
38836 2008-07-27 Bean <bean123ch@gmail.com>
38838 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
38839 (grub_fat_find_dir): Ignore case when comparing filename.
38841 2008-07-27 Bean <bean123ch@gmail.com>
38843 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
38844 smallino, as it's more descriptive, and i8count can be confused with
38845 the other field count.
38846 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
38849 2008-07-27 Bean <bean123ch@gmail.com>
38851 * commands/crc.c: New file.
38853 * lib/crc.c: Likewise.
38855 * include/grub/lib/crc.h: Likewise.
38857 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
38859 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
38860 (hexdump): Move this function to ...
38862 * lib/hexdump.c: ... here.
38864 * include/grub/hexdump.h: Renamed to ...
38866 * include/grub/lib/hexdump.h: ... this.
38868 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
38870 * util/grub-editenv.c: Likewise.
38872 * include/envblk.h: Renamed to ...
38874 * include/lib/envblk.h: ... this.
38876 * util/envblk.c: Renamed to ...
38878 * lib/envblk.c: ... this.
38880 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
38882 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
38883 (pkglib_MODULES): Add crc.mod.
38884 (hexdump_mod_SOURCES): Add lib/hexdump.c.
38885 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
38886 (crc_mod_SOURCES): New macro.
38887 (crc_mod_CFLAGS): Likewise.
38888 (crc_mod_LDFLAGS): Likewise.
38890 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
38892 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38894 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38898 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38900 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
38902 * commands/help.c: Include <grub/term.h>.
38903 (TERM_WIDTH): Removed. Updated all users.
38905 2008-07-27 Pavel Roskin <proski@gnu.org>
38907 * util/getroot.c (find_root_device): Rephrase a comment to avoid
38908 spurious warnings about a comment within a comment.
38910 2008-07-25 Robert Millan <rmh@aybabtu.com>
38912 * util/getroot.c (find_root_device): Skip devices that match
38913 /dev/dm-[0-9]. This lets the real device be found for any type of
38914 abstraction (LVM, EVMS, RAID..).
38915 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
38916 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
38917 device is found first, find_root_device() will now skip it.
38919 2008-07-24 Pavel Roskin <proski@gnu.org>
38921 * include/grub/types.h: Use __builtin_bswap32() and
38922 __builtin_bswap64() with gcc 4.3 and newer.
38924 2008-07-24 Christian Franke <franke@computer.org>
38926 * util/i386/pc/grub-install.in: If `--debug' is specified,
38927 pass `--verbose' to grub-setup.
38928 Abort script if make_system_path_relative_to_its_root() fails.
38930 2008-07-24 Bean <bean123ch@gmail.com>
38932 * configure.ac: Fixed a bug caused by the previous cygwin patch,
38933 variable `target_platform' should be `platform'.
38935 2008-07-24 Bean <bean123ch@gmail.com>
38937 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
38938 (grub_png_init_fixed_block): New function.
38939 (grub_png_decode_image_data): Handle fixed huffman code compression.
38941 2008-07-24 Bean <bean123ch@gmail.com>
38943 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
38944 (grub_pe2elf_SOURCES): New macro.
38945 (CLEANFILES): Add grub-pe2elf.
38947 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
38948 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
38949 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
38950 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
38951 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
38952 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
38953 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
38954 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
38955 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
38956 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
38957 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
38958 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
38959 (GRUB_PE32_DT_FUNCTION): Likewise.
38960 (GRUB_PE32_REL_I386_DIR32): Likewise.
38961 (GRUB_PE32_REL_I386_REL32): Likewise.
38962 (grub_pe32_symbol): New structure.
38963 (grub_pe32_reloc): Likewise.
38965 * util/grub-pe2elf.c: New file.
38967 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
38968 start symbol in non pc platform.
38970 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
38972 The following patches are from Christian Franke.
38974 * include/grub/dl.h: Remove .previous, gas supports this only
38977 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
38978 Remove .type, gas supports this only for ELF format.
38980 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
38981 nullbytes in symbol table. This fixes an infinite loop if table is
38984 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
38985 TARGET_IMG_LDFLAGS and EXEEXT.
38987 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
38988 TARGET_IMG_LDFLAGS_AC.
38989 (grub_CHECK_STACK_ARG_PROBE): New function.
38991 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
38993 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
38995 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
38996 to set TARGET_IMG_LD* accordingly.
38997 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
38998 Add call to grub_CHECK_STACK_ARG_PROBE.
38999 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
39001 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
39003 * genmk.rb: Add EXEEXT to CLEANFILES.
39005 2008-07-23 Robert Millan <rmh@aybabtu.com>
39007 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
39008 define the codes for arrows and lines used for the menu).
39009 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
39012 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
39013 fonts, because the latter are too slow.
39015 2008-07-21 Bean <bean123ch@gmail.com>
39017 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
39018 a20. Run keyboard test last, as it will cause macbook to halt.
39020 2008-07-18 Pavel Roskin <proski@gnu.org>
39022 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
39023 load foreign architecture modules correctly anyway. Keep
39024 support for loading host architecture modules, whether we
39025 compile them or not.
39027 2008-07-17 Pavel Roskin <proski@gnu.org>
39029 * configure.ac: Use -m32 or -m64 regardless of whether we had to
39030 change target_cpu. The compiler default can mismatch target_cpu
39033 * disk/efi/efidisk.c: Fix format warnings on x86_64.
39034 * kern/efi/efi.c: Likewise.
39036 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
39037 target compiler is functional.
39038 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
39041 * configure.ac: Default to efi platform for x86_64-apple. Allow
39042 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
39043 adjustments from the rest, only do them if target is not
39044 explicitly given. Merge other adjustments with the final sanity
39045 check. Remove an extraneous check for supported CPU. Be
39046 specific which CPU and which platform is not supported.
39048 * configure.ac: Default to pc platform for x86_64.
39050 2008-07-17 Robert Millan <rmh@aybabtu.com>
39052 Partial LinuxBIOS -> Coreboot rename.
39054 * conf/i386-linuxbios.rmk: Renamed to ...
39055 * conf/i386-coreboot.rmk: ... this.
39056 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
39057 * configure.ac: Accept "coreboot" as input platform (but maintain
39058 compatibility with "linuxbios").
39059 * include/grub/i386/linuxbios: Renamed to ...
39060 * include/grub/i386/coreboot: ... this.
39062 2008-07-17 Bean <bean123ch@gmail.com>
39064 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
39065 (appleldr_mod_SOURCE): New variable.
39066 (appleldr_mod_CFLAGS): Likewise.
39067 (appleldr_mod_LDFLAGS): Likewise.
39068 (pci_mod_SOURCES): Likewise.
39069 (pci_mod_CFLAGS): Likewise.
39070 (pci_mod_LDFLAGS): Likewise.
39071 (lspci_mod_SOURCES): Likewise.
39072 (lspci_mod_CFLAGS): Likewise.
39073 (lspci_mod_LDFLAGS): Likewise.
39075 * conf/x86_64-efi.rmk: New file.
39077 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
39079 (grub_efidisk_write): Likewise.
39081 * include/efi/api.h (efi_call_0): New macro.
39082 (efi_call_1): Likewise.
39083 (efi_call_2): Likewise.
39084 (efi_call_3): Likewise.
39085 (efi_call_4): Likewise.
39086 (efi_call_5): Likewise.
39087 (efi_call_6): Likewise.
39089 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
39090 grub_rescue_cmd_chainloader.
39092 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
39093 (grub_pe32_optional_header): Change some fields based on i386 or
39095 (GRUB_PE32_PE32_MAGIC): Likewise.
39097 * include/grub/efi/uga_draw.h: New file.
39099 * include/grub/elf.h (STN_ABS): New constant.
39100 (R_X86_64_NONE): Relocation constant for x86_64.
39101 (R_X86_64_64): Likewise.
39102 (R_X86_64_PC32): Likewise.
39103 (R_X86_64_GOT32): Likewise.
39104 (R_X86_64_PLT32): Likewise.
39105 (R_X86_64_COPY): Likewise.
39106 (R_X86_64_GLOB_DAT): Likewise.
39107 (R_X86_64_JUMP_SLOT): Likewise.
39108 (R_X86_64_RELATIVE): Likewise.
39109 (R_X86_64_GOTPCREL): Likewise.
39110 (R_X86_64_32): Likewise.
39111 (R_X86_64_32S): Likewise.
39112 (R_X86_64_16): Likewise.
39113 (R_X86_64_PC16): Likewise.
39114 (R_X86_64_8): Likewise.
39115 (R_X86_64_PC8): Likewise.
39117 * include/grub/i386/efi/pci.h: New file.
39119 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
39120 Change it value based on platform.
39121 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
39122 (GRUB_E820_RAM): Likewise.
39123 (GRUB_E820_RESERVED): Likewise.
39124 (GRUB_E820_ACPI): Likewise.
39125 (GRUB_E820_NVS): Likewise.
39126 (GRUB_E820_EXEC_CODE): Likewise.
39127 (GRUB_E820_MAX_ENTRY): Likewise.
39128 (grub_e820_mmap): New structure.
39129 (linux_kernel_header): Change the efi field according to different
39130 kernel version, also field from linux_kernel_header.
39132 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
39134 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
39135 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
39136 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
39137 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
39138 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
39139 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
39140 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
39141 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
39142 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
39143 (GRUB_PCI_ADDR_IO_MASK): Likewise.
39145 * include/grub/x86_64/efi/kernel.h: New file.
39147 * include/grub/x86_64/efi/loader.h: Likewise.
39149 * include/grub/x86_64/efi/machine.h: Likewise.
39151 * include/grub/x86_64/efi/pci.h: Likewise.
39153 * include/grub/x86_64/efi/time.h: Likewise.
39155 * include/grub/x86_64/linux.h: Likewise.
39157 * include/grub/x86_64/setjmp.h: Likewise.
39159 * include/grub/x86_64/time.h: Likewise.
39161 * include/grub/x86_64/types.h: Likewise.
39163 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
39164 GRUB_TARGET_SIZEOF_VOID_P.
39166 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
39167 (grub_efi_locate_handle): Likewise.
39168 (grub_efi_open_protocol): Likewise.
39169 (grub_efi_set_text_mode): Likewise.
39170 (grub_efi_stall): Likewise.
39171 (grub_exit): Likewise.
39172 (grub_reboot): Likewise.
39173 (grub_halt): Likewise.
39174 (grub_efi_exit_boot_services): Likewise.
39175 (grub_get_rtc): Likewise.
39177 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
39178 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
39179 (grub_efi_allocate_pages): Wrap efi calls.
39180 (grub_efi_free_pages): Wrap efi calls.
39181 (grub_efi_get_memory_map): Wrap efi calls.
39183 * kern/x86_64/dl.c: New file.
39185 * kern/x86_64/efi/callwrap.S: Likewise.
39187 * kern/x86_64/efi/startup.S: Likewise.
39189 * loader/efi/appleloader.c: Likewise.
39191 * loader/efi/chainloader.c (cmdline): New variable.
39192 (grub_chainloader_unload): Wrap efi calls.
39193 (grub_chainloader_boot): Likewise.
39194 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
39197 * loader/efi/chainloader_normal.c (chainloader_command):
39198 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
39201 * loader/i386/efi/linux.c (allocate_pages): Change allocation
39203 (grub_e820_add_region): New function.
39204 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
39206 (grub_find_video_card): New function.
39207 (grub_linux_setup_video): New function.
39208 (grub_rescue_cmd_linux): Probe for video information.
39210 * normal/x86_64/setjmp.S: New file.
39212 * term/efi/console.c (map_char): New function.
39213 (grub_console_putchar): Map unicode char.
39214 (grub_console_checkkey): Wrap efi calls.
39215 (grub_console_getkey): Likewise.
39216 (grub_console_getwh): Likewise.
39217 (grub_console_gotoxy): Likewise.
39218 (grub_console_cls): Likewise.
39219 (grub_console_setcolorstate): Likewise.
39220 (grub_console_setcursor): Likewise.
39222 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
39224 2008-07-16 Pavel Roskin <proski@gnu.org>
39226 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
39229 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
39230 pointer, not an integer. This fixes a warning and prevents
39231 precision loss on 64-bit systems.
39232 (relocate_addresses): Remove unneeded cast.
39234 2008-07-15 Pavel Roskin <proski@gnu.org>
39236 * kern/i386/ieee1275/init.c: Include grub/cache.h.
39238 * term/ieee1275/ofconsole.c: Disable code unused on i386.
39240 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
39241 Fix comparison between signed and unsigned.
39243 * include/grub/i386/ieee1275/console.h: Declare
39244 grub_console_init() and grub_console_fini().
39246 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
39247 It's empty and unused.
39249 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
39250 beginning to avoid warnings with some compilers.
39252 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
39253 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
39255 2008-07-14 Pavel Roskin <proski@gnu.org>
39257 * kern/env.c (grub_register_variable_hook): Don't copy empty
39258 string, it leaks memory. Pass "" to grub_env_set(), it should
39259 handle constant strings.
39261 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
39262 * commands/cmp.c (grub_cmd_cmp): Likewise.
39263 * kern/dl.c (grub_dl_flush_cache): Likewise.
39264 (grub_dl_load_core): Likewise.
39265 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
39266 (grub_elf64_load_phdrs): Likewise.
39268 2008-07-13 Pavel Roskin <proski@gnu.org>
39270 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
39271 between signed and unsigned.
39272 (LzmaEnc_Finish): Fix warning about an unused parameter.
39274 2008-07-13 Bean <bean123ch@gmail.com>
39276 * Makefile.in (enable_lzo): New rule.
39278 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
39280 * configure.ac (ENABLE_LZO): New option --enable-lzo.
39282 * boot/i386/pc/lnxboot.S: #include <config.h>.
39284 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
39285 its value according to the compression algorithm used, lzo or lzma.
39287 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
39288 compression algorithm according to configure macro.
39290 * kern/i386/pc/startup.S (codestart): Likewise.
39292 * kern/i386/pc/lzma_decode.S: New file.
39294 * include/grub/lib/LzFind.h: Likewise.
39296 * include/grub/lib/LzHash.h: Likewise.
39298 * include/grub/lib/LzmaDec.h: Likewise.
39300 * include/grub/lib/LzmaEnc.h: Likewise.
39302 * include/grub/lib/LzmaTypes.h: Likewise.
39304 * lib/LzFind.c: Likewise.
39306 * lib/LzmaDec.c: Likewise.
39308 * lib/LzmaEnc.c: Likewise.
39310 2008-07-13 Bean <bean123ch@gmail.com>
39312 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
39313 (grub_ext4_extent_header): New structure.
39314 (grub_ext4_extent): Likewise.
39315 (grub_ext4_extent_idx): Likewise.
39316 (grub_ext4_find_leaf): New function.
39317 (grub_ext2_read_block): Handle extents.
39319 2008-07-12 Robert Millan <rmh@aybabtu.com>
39321 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
39323 2008-07-11 Robert Millan <rmh@aybabtu.com>
39325 * util/grub.d/40_custom.in: New file. Example on how to add custom
39326 entries to /etc/grub.d.
39327 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
39328 40_custom (implicitly, by merging all the grub.d rules).
39330 2008-07-11 Pavel Roskin <proski@gnu.org>
39332 * commands/read.c (grub_getline): Fix invalid memory access.
39333 Don't add newline to the variable value.
39335 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
39336 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
39337 (serial_hw_get_port): Check validity of the port number.
39338 (grub_cmd_serial): Check return value of serial_hw_get_port().
39340 2008-07-07 Pavel Roskin <proski@gnu.org>
39342 * boot/i386/pc/diskboot.S (notification_string): Replace
39343 "Loading kernel" with just "loading". This is shorter, less
39344 confusing and saves a few bytes for possible future changes.
39346 2008-07-05 Pavel Roskin <proski@gnu.org>
39348 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
39349 size for ATAPI devices, they are undefined. Output sector
39350 number in decimal form.
39352 * disk/ata.c: Use named constants for status bits.
39354 2008-07-04 Pavel Roskin <proski@gnu.org>
39356 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
39357 grub_addr_t before casting it to the void pointer to fix a
39358 warning. Non-addressable regions are discarded earlier.
39359 (grub_arch_modules_addr): Cast _end to grub_addr_t.
39360 * kern/i386/linuxbios/table.c: Include grub/misc.h.
39361 (check_signature): Don't shadow table_header.
39362 (grub_linuxbios_table_iterate): Cast numeric constants to
39363 grub_linuxbios_table_header_t.
39364 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
39367 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
39370 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
39371 pointer, which can cause warnings. Support 64-bit addresses.
39373 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
39374 of sizeof(long). This fixes PowerPC image generation on x86_64.
39376 2008-07-04 Robert Millan <rmh@aybabtu.com>
39378 This fixes a performance issue when pc & gpt partmap iterators
39379 didn't abort iteration even after our hook found what it was
39380 looking for (often causing expensive probes of non-existent drives).
39382 Some callers relied on previous buggy behaviour, since they would
39383 raise an error when their own hooks caused early abortion of its
39386 * kern/device.c (grub_device_open): Improve error message.
39387 * disk/lvm.c (grub_lvm_open): Likewise.
39388 * disk/raid.c (grub_raid_open): Likewise.
39390 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
39391 when hook requests it, independently of grub_errno.
39392 (pc_partition_map_probe): Do not fail when find_func() caused
39393 early abortion of pc_partition_map_iterate().
39395 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
39396 when hook requests it, independently of grub_errno.
39397 (gpt_partition_map_probe): Do not fail when find_func() caused
39398 early abortion of gpt_partition_map_iterate().
39400 * kern/partition.c (grub_partition_iterate): Abort parent iteration
39401 when hook requests it, independently of grub_errno. Do not fail when
39402 part_map_iterate_hook() caused early abortion of p->iterate().
39404 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
39405 when grub_partition_iterate() returned with non-zero.
39407 2008-07-03 Pavel Roskin <proski@gnu.org>
39409 * disk/ata.c (grub_ata_pio_write): Check status before writing,
39410 like we do in grub_ata_pio_read().
39411 (grub_ata_readwrite): Always write individual sectors. Fix the
39412 sector count for the remainder.
39413 (grub_ata_write): Enable writing to ATA devices. Correctly
39414 report error for ATAPI devices.
39416 2008-07-02 Pavel Roskin <proski@gnu.org>
39418 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
39421 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
39422 for every read sector, we already increment it for the whole
39423 batch. This fixes reading more than 256 sectors at once.
39425 * util/grub-editenv.c (cmd_info): Cast argument to long
39426 explicitly. ptrdiff_t reduces to int on i386.
39428 * util/grub-editenv.c (main): Be specific which parameter is
39431 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
39432 (memdisk): Make memdisk_orig_addr a pointer.
39434 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
39435 for file offsets, use grub_off_t instead. Fix printf format
39438 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
39439 there. Real unexpected warnings should not drown in the noise
39440 about known problems.
39442 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
39443 grub_disk_addr_t for memory addresses.
39445 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
39446 explicitly to fix a warning.
39448 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
39450 * Makefile.in (MODULE_LDFLAGS): New variable.
39451 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
39452 the linker accepts --build-id=none.
39453 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
39455 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
39457 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
39458 those in Linux XFS code. Provide a way to access 64-bit parent
39460 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
39461 the end of struct grub_xfs_dir_header.
39463 2008-07-02 Bean <bean123ch@gmail.com>
39465 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
39466 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
39467 and GRUB_IEEE1275_FLAG_NO_ANSI.
39469 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
39470 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
39471 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
39473 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
39474 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
39476 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
39477 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
39479 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
39480 esc sequence on non ANSI terminal.
39481 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
39483 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
39486 2008-07-02 Bean <bean123ch@gmail.com>
39488 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
39489 (grub_editenv_SOURCES): New variable.
39490 (pkglib_MODULES): Add loadenv.mod.
39491 (loadenv_mod_SOURCES): New variable.
39492 (loadenv_mod_CFLAGS): Likewise.
39493 (loadenv_mod_LDFLAGS): Likewise.
39495 * include/grub/envblk.h: New file.
39497 * util/envblk.c: New file.
39499 * util/grub-editenv.c: New file.
39501 * commands/loadenv.c: New file.
39503 2008-07-01 Pavel Roskin <proski@gnu.org>
39505 * include/multiboot2.h (struct multiboot_tag_module): Use char,
39506 not unsigned char. This fixes warnings and is consistent with
39509 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
39511 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
39513 * term/tparm.c (analyze): Always set *popcount.
39515 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
39516 cast to fix a warning.
39518 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
39519 cast to suppress a warning.
39521 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
39522 grub_fshelp_read_file() expects.
39524 * fs/fat.c: Fix UUID calculation on big-endian systems. We
39525 write uuid as a 32-bit value in CPU byte order, so declare and
39528 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
39529 long if the format specifier expects it.
39530 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
39531 * partmap/pc.c (pc_partition_map_iterate): Likewise.
39532 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
39533 long to fix a warning.
39534 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
39535 grub_dprintf() arguments to fix warnings.
39537 2008-06-30 Pavel Roskin <proski@gnu.org>
39539 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
39540 install_bsd_part immediately before core.img is embedded or
39541 modified on disk. This fixes core.img verification if core.img
39542 cannot be embedded.
39544 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
39545 core_path to calculate the blocklist.
39546 Patch from Javier Martín <lordhabbit@gmail.com>
39548 2008-06-29 Robert Millan <rmh@aybabtu.com>
39550 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
39551 block to disk block.
39552 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
39553 Patch from Niels Böhm <bitbucket@arcor.de>
39555 2008-06-29 Robert Millan <rmh@aybabtu.com>
39557 * util/update-grub_lib.in (font_path): Search for fonts in
39558 /boot/grub first, which is more likely to be readable (we aren't
39559 deciding where fonts live, just looking for them).
39561 2008-06-26 Pavel Roskin <proski@gnu.org>
39563 * util/biosdisk.c (read_device_map): Don't leave dead map
39564 entries for devices failing stat() check.
39566 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
39567 core_path_dev for the core.img path on the target device.
39569 2008-06-26 Robert Millan <rmh@aybabtu.com>
39571 * disk/fs_uuid.c: New file.
39572 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
39573 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
39574 (fs_uuid_mod_LDFLAGS): New variables.
39575 * include/grub/disk.h (grub_disk_dev_id): Add
39576 `GRUB_DISK_DEVICE_UUID_ID'.
39577 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
39578 implement iterate().
39580 2008-06-26 Robert Millan <rmh@aybabtu.com>
39582 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
39583 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
39584 Linux image includes no initrd.
39586 2008-06-21 Javier Martín <lordhabbit@gmail.com>
39588 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
39589 call to resolve the core image location that effectively appended the
39592 2008-06-21 Robert Millan <rmh@aybabtu.com>
39594 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
39597 * util/grub.d/10_hurd.in: ... to here ...
39598 * util/grub.d/10_linux.in: ... and here.
39600 2008-06-19 Robert Millan <rmh@aybabtu.com>
39602 * kern/main.c (grub_main): Export `prefix' variable immediately
39603 after it has been set by grub_machine_set_prefix().
39605 2008-06-19 Robert Millan <rmh@aybabtu.com>
39607 * commands/search.c (search_label, search_fs_uuid, search_file): Print
39608 search result when not saving to variable, not the other way around.
39609 When saving to variable, abort iteration as soon as a match is found.
39611 2008-06-19 Robert Millan <rmh@aybabtu.com>
39613 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
39614 check for partition that provides /boot/grub. Its logic is flawed,
39615 as it prevents prepare_grub_to_access_device() from being called
39618 2008-06-19 Robert Millan <rmh@aybabtu.com>
39620 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
39621 "insmod" command directly when abstraction modules are needed,
39622 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
39623 since it had already been processed).
39625 2008-06-19 Pavel Roskin <proski@gnu.org>
39627 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
39628 changed. This is needed in case GRUB_LIBDIR changes.
39629 * conf/i386-ieee1275.rmk: Likewise.
39630 * conf/i386-linuxbios.rmk: Likewise.
39631 * conf/i386-pc.rmk: Likewise.
39632 * conf/powerpc-ieee1275.rmk: Likewise.
39634 2008-06-18 Pavel Roskin <proski@gnu.org>
39636 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
39637 kernel_elf_symlist.c to symlist.c for consistency with other
39638 architectures. Update all users.
39639 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39641 2008-06-18 Robert Millan <rmh@aybabtu.com>
39643 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
39646 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
39647 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
39648 a RAID device, run setup() for all members independently on whether
39649 LVM abstraction is being used.
39650 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
39651 If grub-mkimage has set `*install_dos_part == -2', don't override this
39653 Perform *install_dos_part adjustments independently on whether
39654 we're embedding or not.
39655 Clarify error message when image is too big for embedding.
39656 Remove duplicate *install_dos_part stanza.
39658 2008-06-17 Robert Millan <rmh@aybabtu.com>
39660 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
39661 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
39663 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
39664 values in grub_ofconsole_normal_color and
39665 grub_ofconsole_highlight_color (they're not directly related to
39666 background and foreground).
39667 (grub_ofconsole_setcolorstate): Extract background and foreground
39668 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
39670 2008-06-17 Robert Millan <rmh@aybabtu.com>
39672 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
39673 /boot/grub for the check in last commit, not /boot (they could be
39674 different partitions).
39676 2008-06-16 Robert Millan <rmh@aybabtu.com>
39678 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
39679 asked to setup access for the same partition that provides /boot,
39680 don't bother using UUIDs since our root already has the value we
39683 2008-06-16 Robert Millan <rmh@aybabtu.com>
39685 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
39687 Patch from Sven Mueller <sven@debian.org>.
39689 2008-06-16 Robert Millan <rmh@aybabtu.com>
39691 * util/update-grub.in: Check for $EUID instead of $UID.
39692 Reported by Vincent Zweije.
39694 2008-06-16 Bean <bean123ch@gmail.com>
39696 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
39697 (grub_ext2_read_block): Likewise.
39698 (grub_ext2_read_inode): Likewise.
39699 (grub_ext2_mount): Likewise.
39700 (grub_ext2_close): Likewise.
39701 (grub_ext3_get_journal): Removed.
39703 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
39704 (grub_reiserfs_read_symlink): Likewise.
39705 (grub_reiserfs_mount): Likewise.
39706 (grub_reiserfs_open): Likewise.
39707 (grub_reiserfs_read): Likewise.
39708 (grub_reiserfs_close): Likewise.
39709 (grub_reiserfs_get_journal): Removed.
39711 * fs/fshelp.c (grub_fshelp_read): Removed.
39712 (grub_fshelp_map_block): Likewise.
39714 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
39715 (grub_fshelp_journal): Likewise.
39716 (grub_fshelp_read): Likewise.
39717 (grub_fshelp_map_block): Likewise.
39719 2008-06-16 Pavel Roskin <proski@gnu.org>
39721 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
39722 floating point anymore.
39723 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
39725 2008-06-15 Pavel Roskin <proski@gnu.org>
39727 * commands/ls.c (grub_ls_list_files): Use integer calculations
39728 for human readable format, avoid floating point use.
39729 * kern/misc.c (grub_ftoa): Remove.
39730 (grub_vsprintf): Remove floating point support.
39732 2008-06-15 Robert Millan <rmh@aybabtu.com>
39734 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
39736 Reported by Max Vozeler.
39738 2008-06-15 Robert Millan <rmh@aybabtu.com>
39740 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
39741 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
39743 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
39744 the beginning of the prefix.
39746 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
39747 It is assumed that if we have a memdisk, grub-mkimage has set
39748 grub_prefix to include the "(memdisk)" drive in it.
39750 2008-06-15 Robert Millan <rmh@aybabtu.com>
39752 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
39753 Initialize keyboard controller after registering the terminal, so that
39754 grub_printf() can be called from grub_keyboard_controller_init().
39756 2008-06-15 Robert Millan <rmh@aybabtu.com>
39758 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
39759 extent-btree which is written as big endian on disk.
39760 Reported by Alain Greppin <al@chilibi.org>.
39762 2008-06-14 Robert Millan <rmh@aybabtu.com>
39764 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
39765 * util/i386/pc/grub-install.in (modules): Likewise.
39767 2008-06-13 Pavel Roskin <proski@gnu.org>
39769 * commands/ls.c (grub_ls_list_files): Fix format warnings.
39771 2008-06-13 Bean <bean123ch@gmail.com>
39773 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
39775 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
39777 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
39778 to indicate sparse block.
39780 2008-06-12 Pavel Roskin <proski@gnu.org>
39782 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
39783 number, grub_fshelp_read() does it for us.
39785 * fs/fshelp.c (grub_fshelp_read): New function. Implement
39786 linear disk read with journal translation.
39787 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
39788 * include/grub/fshelp.h: Declare grub_fshelp_read().
39790 2008-06-09 Pavel Roskin <proski@gnu.org>
39792 * fs/minix.c (grub_minix_mount): Handle error reading
39795 2008-06-08 Robert Millan <rmh@aybabtu.com>
39797 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
39798 don't append the RAID prefix afterwards.
39799 Reported by Clint Adams.
39801 2008-06-08 Robert Millan <rmh@aybabtu.com>
39803 Based on description from Pavel:
39804 * kern/disk.c (grub_disk_check_range): Rename to ...
39805 (grub_disk_adjust_range): ... this. Add a comment explaining the
39806 tasks performed by this function.
39808 2008-06-08 Robert Millan <rmh@aybabtu.com>
39810 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
39811 `num_serial' (for consistency with other variables).
39812 (struct grub_ntfs_data): Add `uuid' member.
39813 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
39814 (grub_ntfs_uuid): New function.
39815 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
39817 2008-06-07 Pavel Roskin <proski@gnu.org>
39819 * util/biosdisk.c (open_device): Revert last change to the
39820 function, it broke installation. The sector needs to be
39821 different dependent on which device is opened.
39823 2008-06-06 Robert Millan <rmh@aybabtu.com>
39825 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
39826 rest of GRUB, and breakage doesn't happen if its value were modified.
39828 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39829 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
39830 a constant (same value).
39831 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
39832 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
39834 2008-06-06 Robert Millan <rmh@aybabtu.com>
39836 * util/biosdisk.c (open_device): Do not modify sector offset when
39837 accessing a partition. kern/disk.c already handles this for us.
39839 2008-06-06 Robert Millan <rmh@aybabtu.com>
39841 * util/grub-emu.c (grub_machine_init): Move code in this function from
39843 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
39844 segfault in case grub_printf() is called).
39846 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
39847 grub_probe. Update all users not to explicitly add it again.
39848 (grub_device): New variable; contains corresponding device for grubdir.
39849 (fs_module, partmap_module, devabstraction_module): Pass
39850 `--device ${grub_device}' to grub_probe to avoid traversing /dev
39853 2008-06-05 Robert Millan <rmh@aybabtu.com>
39855 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
39856 is found, print it (same layout as with labels).
39858 2008-06-04 Robert Millan <rmh@aybabtu.com>
39860 * util/biosdisk.c (get_drive): Rename to ...
39861 (find_grub_drive): ... this. Update all users.
39863 (get_os_disk): Rename to ...
39864 (convert_system_partition_to_system_disk): ... this. Update all users.
39866 (find_drive): Rename to ...
39867 (find_system_device): ... this. Update all users.
39869 2008-06-04 Robert Millan <rmh@aybabtu.com>
39871 * util/biosdisk.c (get_os_disk): Handle IDA devices.
39872 * util/grub-mkdevicemap.c (get_mmc_disk_name)
39873 (make_device_map): Likewise.
39875 2008-06-01 Robert Millan <rmh@aybabtu.com>
39877 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
39878 before dereferencing it.
39880 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
39881 union with fat12/fat16-specific ones. Add some new fields, including
39882 `num_serial' for both versions.
39883 (struct grub_fat_data): Add `uuid' member.
39884 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
39885 names. Initialize `data->uuid' using `num_serial'.
39886 (grub_fat_uuid): New function.
39887 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
39889 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
39890 (grub_reiserfs_uuid): New function.
39891 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
39894 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
39895 (grub_xfs_uuid): New function.
39896 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
39898 2008-06-01 Robert Millan <rmh@aybabtu.com>
39900 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
39901 code that is backward compatible with pre-uuid search command.
39903 2008-05-31 Robert Millan <rmh@aybabtu.com>
39905 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
39906 floppies after everything else, to ensure floppy drive isn't accessed
39907 unnecessarily (patch from Bean).
39909 2008-05-31 Robert Millan <rmh@aybabtu.com>
39911 * commands/search.c (search_label, search_fs_uuid, search_file): Do
39912 not print device names when we were asked to set a variable.
39914 2008-05-31 Robert Millan <rmh@aybabtu.com>
39916 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
39917 using "cursor-on" and "cursor-off" commands (understood at least by
39918 the Open Firmware flavour on OLPC).
39920 2008-05-31 Michael Gorven <michael@gorven.za.net>
39922 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
39923 on and off sequences.
39925 2008-05-31 Robert Millan <rmh@aybabtu.com>
39927 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
39928 * util/update-grub.in: Likewise.
39930 2008-05-30 Pavel Roskin <proski@gnu.org>
39932 * util/biosdisk.c (linux_find_partition): Simplify logic and
39933 make the code more universal. Keep special processing for
39934 devfs, but use a simple rule for all other devices. If the
39935 device ends with a number, append 'p' and the partition number.
39936 Otherwise, append only the partition number.
39938 2008-05-30 Robert Millan <rmh@aybabtu.com>
39940 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
39941 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
39942 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
39943 the `root' parameter to Linux.
39945 2008-05-30 Robert Millan <rmh@aybabtu.com>
39947 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
39948 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
39949 --fs_uuid with --fs-uuid.
39950 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
39951 all filesystems support them).
39953 2008-05-30 Robert Millan <rmh@aybabtu.com>
39955 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
39956 grub_printf() flags, since we're printing in units of 2 bytes.
39958 2008-05-30 Robert Millan <rmh@aybabtu.com>
39960 * util/grub.d/00_header.in: Remove obsolete comment referencing
39961 convert_system_path_to_grub_path().
39962 * util/update-grub.in: Likewise.
39963 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
39964 (convert_system_path_to_grub_path): Add a warning message explaining
39965 that this function is deprecated. Rely on is_path_readable_by_grub()
39966 for the readability checks.
39967 (font_path): Use is_path_readable_by_grub() for the readability
39968 check rather than convert_system_path_to_grub_path().
39970 2008-05-30 Robert Millan <rmh@aybabtu.com>
39972 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
39973 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
39974 converting it first.
39975 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
39976 grub.cfg for access to font file, and afterwards call it again to set
39979 2008-05-30 Robert Millan <rmh@aybabtu.com>
39981 * commands/search.c (options): Add --fs_uuid option.
39982 (search_fs_uuid): New function.
39983 (grub_cmd_search): Fix --set argument passing.
39984 Use search_fs_uuid() when requested via --fs_uuid.
39985 (grub_search_init): Update help message.
39986 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
39987 and redeclare it as an array of 16-bit words.
39988 (grub_ext2_uuid): New function.
39989 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
39990 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
39991 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
39992 (GRUB_DEVICE_BOOT_UUID): New variables.
39993 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
39994 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
39996 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
39997 just assume `root' variable has the right value.
39998 * util/grub.d/10_linux.in: Likewise.
39999 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
40001 (main): Recognise `-t fs_uuid' argument.
40003 2008-05-30 Robert Millan <rmh@aybabtu.com>
40005 * util/biosdisk.c (map): Redefine structure to hold information
40006 about GRUB drive name.
40007 (get_drive): Reimplement without assuming (and verifying) BIOS-like
40009 (call_hook): Remove.
40010 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
40011 member. Assume drive has partitions.
40012 (grub_util_biosdisk_open): Access device names via `.device' struct
40014 (open_device): Likewise.
40015 (find_drive): Likewise.
40016 (read_device_map): Adjust map[] usage to match the new struct
40017 definition. Don't check for duplicates (still possible, but not cheap
40019 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
40020 (make_device_name): Remove assumption of BIOS-like drive names.
40022 2008-05-30 Pavel Roskin <proski@gnu.org>
40024 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
40025 compiling execute.c doesn't need grub_script.tab.h anymore.
40026 (normal/command.c_DEPENDENCIES): Likewise.
40027 (normal/function.c_DEPENDENCIES): Likewise.
40028 * conf/i386-ieee1275.rmk: Likewise.
40029 * conf/i386-linuxbios.rmk: Likewise.
40030 * conf/i386-pc.rmk: Likewise.
40031 * conf/powerpc-ieee1275.rmk: Likewise.
40032 * conf/sparc64-ieee1275.rmk: Likewise.
40034 2008-05-29 Pavel Roskin <proski@gnu.org>
40036 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
40037 when scanning metadata for volume group name.
40039 * include/grub/script.h: Don't include grub_script.tab.h. It's
40040 a generated file, which may only be included from the files with
40041 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
40042 use union YYSTYPE, as the later allows forward declaration.
40043 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
40045 2008-05-29 Robert Millan <rmh@aybabtu.com>
40047 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
40048 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
40049 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
40050 (grub_console_checkkey): Add grub_dprintf() call to report unknown
40053 2008-05-29 Robert Millan <rmh@aybabtu.com>
40055 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
40056 control key combinations.
40058 2008-05-29 Robert Millan <rmh@aybabtu.com>
40060 * util/powerpc/ieee1275/grub-install.in: Move from here ...
40061 * util/ieee1275/grub-install.in: ... to here.
40062 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
40063 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
40064 (grub_install_SOURCES): Likewise.
40066 2008-05-29 Robert Millan <rmh@aybabtu.com>
40068 * fs/affs.c: Update copyright year.
40069 * fs/ext2.c: Likewise.
40070 * fs/fshelp.c: Likewise.
40071 * fs/hfsplus.c: Likewise.
40072 * fs/ntfs.c: Likewise.
40073 * fs/xfs.c: Likewise.
40074 * include/grub/fshelp.h: Likewise.
40075 * util/grub-mkdevicemap.c: Likewise.
40077 2008-05-28 Robert Millan <rmh@aybabtu.com>
40079 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
40080 might need to be fatfs to support some firmware implementations
40083 2008-05-28 Robert Millan <rmh@aybabtu.com>
40085 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
40087 * util/grub-mkdevicemap.c (get_mmc_disk_name)
40088 (make_device_map): Likewise.
40090 2008-05-20 Bean <bean123ch@gmail.com>
40092 * fs/fshelp.c (grub_fshelp_map_block): New function.
40093 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
40094 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
40096 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
40097 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
40098 (grub_fshelp_journal): New structure.
40099 (grub_fshelp_map_block): New function prototype.
40100 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
40101 (grub_fshelp_map_block): Likewise.
40103 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
40104 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
40105 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
40106 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
40107 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
40108 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
40109 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
40110 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
40111 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
40112 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
40113 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
40114 (grub_ext2_sblock): New members for journal support.
40115 (grub_ext3_journal_header): New structure.
40116 (grub_ext3_journal_revoke_header): Likewise.
40117 (grub_ext3_journal_block_tag): Likewise.
40118 (grub_ext3_journal_sblock): Likewise.
40119 (grub_fshelp_node): New members logfile and journal.
40120 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
40121 grub_fshelp_map_block to get real block number.
40122 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
40124 (grub_ext2_read_inode): Likewise.
40125 (grub_ext3_get_journal): New function.
40126 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
40127 (grub_ext2_close): Release memory used by journal.
40129 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
40130 (REISERFS_MAGIC_DESC_BLOCK): New macro.
40131 (grub_reiserfs_transaction_header): Renamed to
40132 grub_reiserfs_description_block, replace field data with real_blocks.
40133 (grub_reiserfs_commit_block): New structure.
40134 (grub_reiserfs_data): New member journal.
40135 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
40137 (grub_reiserfs_read_symlink): Likewise.
40138 (grub_reiserfs_iterate_dir): Likewise.
40139 (grub_reiserfs_open): Likewise.
40140 (grub_reiserfs_read): Likewise.
40141 (grub_reiserfs_get_journal): New function.
40142 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
40143 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
40144 using grub_reiserfs_get_journal.
40145 (grub_reiserfs_close): Release memory used by journal.
40147 * fs/affs.c (grub_affs_read_block): Change block type to
40148 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
40150 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
40152 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
40154 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
40156 * fs/udf.c (grub_udf_read_block): Change block type to
40157 grub_disk_addr_t. Use type cast to avoid warning.
40159 * fs/xfs.c (grub_xfs_read_block): Likewise.
40161 2008-05-16 Christian Franke <franke@computer.org>
40163 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
40164 to ensure that break with ESC will always work.
40165 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
40166 Remove ESC from keyboard queue.
40168 2008-05-16 Christian Franke <franke@computer.org>
40170 * util/biosdisk.c: [__CYGWIN__] Add includes.
40171 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
40172 (get_os_disk): Move variable declarations to OS specific
40173 parts to avoid warning.
40174 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
40175 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
40176 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
40178 * util/getroot.c: [__CYGWIN__] Add includes.
40179 (strip_extra_slashes): Fix "/" case.
40180 [__CYGWIN__] (get_win32_path): New function.
40181 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
40182 [__CYGWIN__] (find_root_device): Disable.
40183 [__CYGWIN__] (get_bootsec_serial): New function.
40184 [__CYGWIN__] (find_cygwin_root_device): Likewise.
40185 [__linux__] (grub_guess_root_device): Add early returns to simplify
40187 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
40188 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
40189 check for Linux only.
40191 2008-05-15 Bean <bean123ch@gmail.com>
40193 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
40194 keyboard hang problem in apple's intel mac.
40196 2008-05-09 Robert Millan <rmh@aybabtu.com>
40198 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
40200 * util/grub-mkdevicemap.c (get_virtio_disk_name)
40201 (make_device_map): Likewise.
40202 Reported by Aurelien Jarno <aurel32@debian.org>
40204 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
40206 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
40207 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
40208 (make_device_map): Output entries for xvd type disks.
40210 2008-05-07 Robert Millan <rmh@aybabtu.com>
40212 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
40214 * util/grub-mkdevicemap.c (get_cciss_disk_name)
40215 (make_device_map): Likewise.
40216 Reported by Roland Dreier <rdreier@cisco.com>
40218 2008-05-07 Robert Millan <rmh@aybabtu.com>
40220 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
40221 grub_strstr() call. Correct a few mistakes in failure path handling.
40223 2008-05-06 Robert Millan <rmh@aybabtu.com>
40225 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
40226 Do not print a trailing slash (therefore, the root directory is an
40228 (convert_system_path_to_grub_path): Do not remove trailing slash
40229 from make_system_path_relative_to_its_root() output.
40231 * util/i386/pc/grub-install.in: Add trailing slash to output from
40232 make_system_path_relative_to_its_root().
40234 2008-05-06 Robert Millan <rmh@aybabtu.com>
40236 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
40237 ensures that output lines aren't intermangled with those sent to
40238 stderr (via grub_util_info()).
40239 * util/grub-probe.c (grub_refresh): Likewise.
40240 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
40242 2008-05-05 Christian Franke <franke@computer.org>
40244 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
40245 Add Cygwin device names.
40246 (get_ide_disk_name) [__CYGWIN__]: Likewise.
40247 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
40248 (check_device): Return error instead of success on empty name.
40249 (make_device_map): Move label inside linux specific code to
40250 prevent compiler warning.
40252 2008-04-30 Robert Millan <rmh@aybabtu.com>
40254 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
40255 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
40257 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
40259 2008-04-29 Robert Millan <rmh@aybabtu.com>
40261 * docs/grub.cfg: New file (example GRUB configuration).
40263 2008-04-26 Robert Millan <rmh@aybabtu.com>
40265 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
40266 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
40267 and `disk/ieee1275/nand.c'.
40269 2008-04-25 Bean <bean123ch@gmail.com>
40271 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
40274 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
40275 change the buffer size to 4096 for cdrom device.
40277 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
40279 (_linux_mod_SOURCES): New variable.
40280 (_linux_mod_CFLAGS): Likewise.
40281 (_linux_mod_LDFLAGS): Likewise.
40282 (linux_mod_SOURCES): Likewise.
40283 (linux_mod_CFLAGS): Likewise.
40284 (linux_mod_LDFLAGS): Likewise.
40285 (nand_mod_SOURCES): Likewise.
40286 (nand_mod_CFLAGS): Likewise.
40287 (nand_mod_LDFLAGS): Likewise.
40289 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
40290 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
40291 type property. (nand device in olpc don't have this property)
40293 * include/grub/disk.h (grub_disk_dev_id): New macro
40294 GRUB_DISK_DEVICE_NAND_ID.
40296 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
40297 function prototype.
40298 (grub_rescue_cmd_initrd): Likewise.
40300 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
40301 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
40302 ofw_cif_handler and ofw_idt, adjust padding number.
40304 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
40305 GRUB_MACHINE_IEEE1275 is defined.
40307 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
40308 Use NESTED_FUNC_ATTR attribute on the hook parameter.
40310 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
40311 on nested function heap_init.
40312 (grub_upper_mem): New variable for i386-ieee1275.
40313 (grub_get_extended_memory): New function for i386-ieee1275.
40314 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
40316 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
40317 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
40320 * loader/i386/ieee1275/linux.c: New file.
40322 * loader/i386/ieee1275/linux_normal.c: New file.
40324 * disk/ieee1275/nand.c: New file.
40326 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
40328 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
40330 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
40332 2008-04-18 Robert Millan <rmh@aybabtu.com>
40334 Restructures early code path on ieee1275 to unify grub_main() as
40335 the first C function that is executed in every platform.
40337 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
40338 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
40340 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
40341 * kern/ieee1275/cmain.c (cmain): Rename to ...
40342 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
40343 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
40346 2008-04-18 Robert Millan <rmh@aybabtu.com>
40348 * util/update-grub.in: Fix syntax error when setting
40349 `GRUB_PRELOAD_MODULES'.
40350 Reported by Stephane Chazelas <stephane@artesyncp.com>
40352 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
40354 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
40355 section into account, newer toolchains generate unique build ids
40356 * configure.ac: remove the test for --build-id=none acceptance,
40357 we want build ids to be preserved
40358 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
40359 far from other sections don't cause the raw binary images grow
40362 2008-04-15 Robert Millan <rmh@aybabtu.com>
40364 * disk/lvm.c: Update copyright year.
40365 * kern/misc.c: Likewise.
40367 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
40369 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
40370 there is no memory left for physical volume name.
40372 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
40374 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
40375 volume name mapping to support bigger than 9 character names properly.
40377 2008-04-13 Robert Millan <rmh@aybabtu.com>
40379 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
40380 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
40382 2008-04-13 Christian Franke <franke@computer.org>
40384 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
40385 to create a floppy emulation boot CD when non emulation mode
40387 Enable Joliet CD filesystem extension.
40389 2008-04-13 Robert Millan <rmh@aybabtu.com>
40391 * kern/misc.c (grub_strncat): Fix off-by-one error.
40392 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
40394 * kern/env.c (grub_env_context_close): Clear current context, not
40396 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
40398 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
40400 2008-04-13 Robert Millan <rmh@aybabtu.com>
40402 Improve robustness when handling LVM.
40404 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
40405 (and leave `*p' unmodified).
40406 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
40408 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
40409 iterating through it.
40410 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
40412 (grub_lvm_scan_device): Check the return value (and fail gracefully
40413 when due) on each grub_lvm_getvalue() or grub_strstr() call.
40414 Don't assume `vg->pvs != NULL' when iterating through it.
40416 2008-04-13 Robert Millan <rmh@aybabtu.com>
40418 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
40419 * genmk.rb (partmap): New variable.
40420 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
40421 (#{partmap}): New target rule.
40422 * genpartmaplist.sh: New file.
40423 * Makefile.in (pkglib_DATA): Add partmap.lst.
40424 (partmap.lst): New target rule.
40425 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
40426 modules (including all partition maps), instead of preloading them.
40428 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
40430 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
40431 `linux-boot-prober' (if installed) to detect other operating
40432 systems which are installed on the computer and add them to
40434 * conf/common.rmk: Build and install 30_os-prober.
40436 2008-04-12 Robert Millan <rmh@aybabtu.com>
40438 * kern/powerpc/ieee1275/init.c: Move from here ...
40439 * kern/ieee1275/init.c: ... to here. Update all users.
40441 * kern/powerpc/ieee1275/cmain.c: Move from here ...
40442 * kern/ieee1275/cmain.c: ... to here. Update all users.
40444 * kern/powerpc/ieee1275/openfw.c: Move from here ...
40445 * kern/ieee1275/openfw.c: ... to here. Update all users.
40447 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
40448 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
40450 2008-04-10 Pavel Roskin <proski@gnu.org>
40452 * configure.ac: Always use "_cv_" in cache variables for
40453 compatibility with Autoconf 2.62.
40455 2008-04-07 Robert Millan <rmh@aybabtu.com>
40457 Revert grub/machine/init.h addition by Pavel (since it breaks on
40458 i386-ieee1275 and others):
40459 * util/i386/pc/misc.c: Remove grub/machine/init.h.
40460 * util/powerpc/ieee1275/misc.c: Likewise.
40462 2008-04-07 Robert Millan <rmh@aybabtu.com>
40464 * util/grub-probe.c (probe): Improve error message.
40466 2008-04-07 Robert Millan <rmh@aybabtu.com>
40468 * util/biosdisk.c (read_device_map): Skip devices that don't exist
40469 (this prevents the presence of a bogus entry from ruining the whole
40472 2008-04-06 Pavel Roskin <proski@gnu.org>
40474 * util/biosdisk.c: Include grub/util/biosdisk.h.
40475 * util/grub-fstest.c (execute_command): Make static.
40476 * util/grub-mkdevicemap.c (check_device): Likewise.
40477 * util/i386/pc/misc.c: Include grub/machine/init.h.
40478 * util/powerpc/ieee1275/misc.c: Likewise.
40479 * util/lvm.c: Include grub/util/lvm.h.
40480 * util/misc.c: Include grub/kernel.h, grub/misc.h and
40482 * util/raid.c: Include grub/util/raid.h.
40483 (grub_util_getdiskname): Make static.
40485 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
40486 grub_hostfs_fini(), as they are called from grub_init_all() and
40487 grub_fini_all() respectively. This fixes an infinite loop in
40488 grub-fstest due to double registration of hostfs.
40489 Reported by Christian Franke <Christian.Franke@t-online.de>
40491 2008-04-05 Pavel Roskin <proski@gnu.org>
40493 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
40494 all 8 functions. Otherwise, probe function 0 only.
40496 2008-04-04 Pavel Roskin <proski@gnu.org>
40498 * commands/lspci.c (grub_lspci_iter): Print the bus number
40501 * commands/lspci.c (grub_pci_classes): Fix typos.
40502 (grub_lspci_iter): Don't print func twice. Print vendor ID
40503 before device ID, as it's normally done.
40505 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
40506 Fix signedness warnings.
40507 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
40509 * util/ieee1275/get_disk_name.c: Include config.h so that
40510 _GNU_SOURCE is defined and getline() is declared. Mark an
40511 unused argument as such. Fix a signedness warning.
40513 2008-04-02 Pavel Roskin <proski@gnu.org>
40515 * genkernsyms.sh.in: Use more robust assignments for CC and
40516 srcdir. Quote srcdir.
40517 * gensymlist.sh.in: Likewise. Assert at the compile time that
40518 the symbol table is not empty.
40520 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
40521 * fs/cpio.c (grub_cpio_read): Likewise.
40523 2008-04-01 Pavel Roskin <proski@gnu.org>
40525 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
40526 * disk/host.c (grub_host_open): Likewise.
40527 * disk/loopback.c (grub_loopback_open): Likewise.
40528 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
40529 disk->id as in disk/host.c, not a multi-character constant.
40531 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
40532 later is obsolete, potentially dangerous and sets a bad example.
40533 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
40534 * util/misc.c (grub_util_get_image_size): Likewise.
40536 * disk/loopback.c (options): Improve help for "--partitions".
40538 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
40539 options to align them with the short options, e.g. "echo -e".
40541 2008-03-31 Bean <bean123ch@gmail.com>
40543 * video/reader/png.c (grub_png_data): New member is_16bit and
40545 (grub_png_decode_image_header): Detect 16 bit png image.
40546 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
40547 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
40548 (grub_video_reader_png): Release memory occupied by image_data.
40550 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
40552 (grub_nfs_mount): Skip the test for sector per cluster.
40554 * include/grub/ntfs.h (MAX_SPC): Removed.
40556 2008-03-31 Bean <bean123ch@gmail.com>
40558 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
40559 (grub_probe_SOURCES): Add fs/afs.c.
40560 (grub_fstest_SOURCES): Likewise.
40561 (afs_mod_SOURCES): New variable.
40562 (afs_mod_CFLAGS): Likewise.
40563 (afs_mod_LDFLAGS): Likewise.
40565 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
40566 (grub_emu_SOURCES): Likewise.
40568 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40570 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40572 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40576 * fs/afs.c: New file.
40578 2008-03-30 Pavel Roskin <proski@gnu.org>
40580 * disk/host.c: Include grub/misc.h to fix a warning.
40581 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
40582 warnings about implicit declarations.
40584 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
40586 * include/grub/i386/loader.h: Change declaration of
40587 grub_linux_boot() to match what grub_loader_set() expects.
40588 * util/getroot.c (grub_guess_root_device): Return const char* to
40590 * util/grub-probe.c (probe): Fix a warning about uninitialized
40591 abstraction_name variable.
40592 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
40593 second argument as unused to fix a warning.
40595 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
40596 missing grub_error() call.
40598 * util/update-grub_lib.in: Define datarootdir, since Autoconf
40599 2.60 and newer uses it to define datadir.
40601 * commands/sleep.c: Fix warning about implicit declaration.
40602 * disk/memdisk.c: Likewise.
40603 * loader/aout.c: Likewise.
40604 * loader/i386/bsd_normal.c: Likewise.
40605 * util/grub-probe.c: Likewise.
40607 * commands/i386/cpuid.c (has_longmode): Make static.
40608 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
40609 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
40611 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
40612 GDT. This is more robust, as %ds can change.
40613 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
40614 calling real_to_prot().
40615 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
40617 2008-03-28 Pavel Roskin <proski@gnu.org>
40619 * kern/i386/pc/startup.S: Assert that uncompressed functions
40620 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
40621 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
40622 code, as they push parts of the code (error handlers) beyond
40623 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
40624 code as correctness and size.
40626 2008-03-28 Pavel Roskin <proski@gnu.org>
40628 * kern/i386/pc/startup.S
40629 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
40630 data block address to the real mode, keep offset minimal. This
40631 works around a bug in AWARD BIOS on old Athlon systems, which
40632 makes CD detection hang.
40634 2008-03-26 Pavel Roskin <proski@gnu.org>
40636 * normal/color.c (grub_parse_color_name_pair): Make `name' a
40638 * include/grub/normal.h: Add grub_parse_color_name_pair()
40641 2008-03-24 Bean <bean123ch@gmail.com>
40643 * disk/i386/pc/biosdisk.c (cd_start): Removed.
40644 (cd_count): Removed.
40645 (cd_drive): New variable.
40646 (grub_biosdisk_get_drive): Don't check for (cdN) device.
40647 (grub_biosdisk_call_hook): Likewise.
40648 (grub_biosdisk_iterate): Change cdrom detection method.
40649 (grub_biosdisk_open): Replace cd_start with cd_drive.
40650 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
40651 detect cdrom device.
40653 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
40655 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
40656 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
40657 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
40658 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
40659 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
40660 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
40661 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
40662 (grub_biosdisk_cdrp): New structure.
40663 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
40665 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
40667 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
40670 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
40673 2008-03-20 Robert Millan <rmh@aybabtu.com>
40675 Remove 2 TiB limit in ata.mod.
40676 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
40677 (grub_ata_dumpinfo): Print sector count with 0x%llx.
40678 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
40679 grub_uint64_t instead of grub_uint32_t.
40681 2008-03-05 Bean <bean123ch@gmail.com>
40683 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
40684 (grub_multiboot): Set boot device.
40686 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
40688 2008-03-02 Bean <bean123ch@gmail.com>
40690 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
40693 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
40695 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
40698 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
40701 * docs/fdl.texi: New file.
40703 * docs/mdate-sh: New file. Copied from gnulib.
40704 * docs/texinfo.tex: Likewise.
40706 * config.guess: Updated from gnulib.
40707 * install-sh: Likewise.
40709 2008-02-28 Robert Millan <rmh@aybabtu.com>
40711 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
40712 (aout_mod_SOURCES): New variable.
40713 (aout_mod_CFLAGS): Likewise.
40714 (aout_mod_LDFLAGS): Likewise.
40716 * conf/i386-ieee1275.rmk: Likewise.
40718 2008-02-28 Robert Millan <rmh@aybabtu.com>
40720 * util/update-grub.in: Reorganise terminal validity check. Accept
40721 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
40722 Based on suggestion by Franklin PIAT.
40724 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
40726 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
40728 * util/getroot.c (grub_util_check_block_device): New function that
40729 returns the given argument if it is a block device and returns NULL else.
40730 * util/grub-probe.c (argument_is_device): New variable.
40731 (probe): Promote device_name from a variable to an argument. Receive
40732 device_name from grub_util_check_block_device() if path is NULL and from
40733 grub_guess_root_device() else. Do not free() device_name anymore.
40734 (options): Introduce new parameter '-d, --device'.
40735 (main): Add description of the new parameter to the help screen.
40736 Rename path variable to argument. Set argument_is_device if the '-d'
40737 option is given. Pass argument to probe() depending on
40738 argument_is_device.
40740 2008-02-24 Bean <bean123ch@gmail.com>
40742 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
40743 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
40744 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
40745 (GRUB_ISO9660_VOLDESC_PART): Likewise.
40746 (GRUB_ISO9660_VOLDESC_END): Likewise.
40747 (grub_iso9660_primary_voldesc): New member escape.
40748 (grub_iso9660_data): New member joliet.
40749 (grub_iso9660_convert_string): New function.
40750 (grub_iso9660_mount): Detect joliet extension.
40751 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
40752 (grub_iso9660_iso9660_label): Likewise.
40754 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
40755 (grub_setup_SOURCES): Add fs/udf.c.
40756 (grub_fstest_SOURCES): Likewise.
40757 (udf_mod_SOURCES): New variable.
40758 (udf_mod_CFLAGS): Likewise.
40759 (udf_mod_LDFLAGS): Likewise.
40761 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
40762 (grub_emu_SOURCES): Likewise.
40764 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40766 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40768 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40772 * fs/udf.c: New file.
40774 2008-02-24 Robert Millan <rmh@aybabtu.com>
40776 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
40777 (normal/lexer.c_DEPENDENCIES): New variables.
40778 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40779 (normal/lexer.c_DEPENDENCIES): Likewise.
40780 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
40781 (normal/lexer.c_DEPENDENCIES): Likewise.
40782 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
40783 (normal/lexer.c_DEPENDENCIES): Likewise.
40784 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40785 (normal/lexer.c_DEPENDENCIES): Likewise.
40786 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40787 (normal/lexer.c_DEPENDENCIES): Likewise.
40789 2008-02-23 Robert Millan <rmh@aybabtu.com>
40791 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
40792 since they were intended to be in hex. This didn't break previously
40793 because of a bug in gpt_partition_map_iterate() (see below).
40795 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
40796 when checking the validity of GPT header.
40797 Remove `partno', since it always provides the same information as `i'.
40799 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
40801 * include/grub/efi/time.h: Fix a wrong comment.
40803 2008-02-19 Pavel Roskin <proski@gnu.org>
40805 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
40808 2008-02-19 Bean <bean123ch@gmail.com>
40810 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
40811 (aout_mod_SOURCES): New variable.
40812 (aout_mod_CFLAGS): Likewise.
40813 (aout_mod_LDFLAGS): Likewise.
40814 (_bsd_mod_SOURCES): New variable.
40815 (_bsd_mod_CFLAGS): Likewise.
40816 (_bsd_mod_LDFLAGS): Likewise.
40817 (bsd_mod_SOURCES): New variable.
40818 (bsd_mod_CFLAGS): Likewise.
40819 (bsd_mod_LDFLAGS): Likewise.
40821 * include/grub/aout.h: New file.
40823 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
40825 * include/grub/i386/bsd.h: New file.
40827 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
40830 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
40831 function is called, so that it's possible to change it inside the hook.
40832 (grub_elf64_load): Likewise.
40833 (grub_elf_file): Don't close the file if elf header is not found.
40834 (grub_elf_close): Close the file if grub_elf_file fails (The new
40835 grub_elf_file won't close it).
40836 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
40837 (grub_elf64_size): Likewise.
40839 * kern/i386/loader.S (grub_unix_real_boot): New function.
40841 * loader/aout.c: New file.
40843 * loader/i386/bsd.c: New file.
40845 * loader/i386/bsd_normal.c: New file.
40847 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
40849 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
40850 can test other formats.
40852 2008-02-19 Robert Millan <rmh@aybabtu.com>
40854 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
40855 (grub_gpt_partition_type_empty): Redefine with macro from
40856 `<grub/gpt_partition.h>'.
40857 (gpt_partition_map_iterate): Adjust partition type comparison.
40859 Export `entry' as partmap-specific `part.data' struct.
40860 (grub_gpt_header, grub_gpt_partentry): Move from here ...
40862 * include/grub/gpt_partition.h (grub_gpt_header)
40863 (grub_gpt_partentry): ... to here (new file).
40865 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
40867 (grub_gpt_partition_type_bios_boot): New const variable, defined
40868 with macro from `<grub/gpt_partition.h>'.
40870 (setup): Replace `first_start' with `embed_region', which keeps
40871 track of the embed region (and is partmap-agnostic).
40873 Replace find_first_partition_start() with find_usable_region(),
40874 which finds a usable region for embedding using partmap-specific
40875 knowledge (supports PC/MSDOS and GPT).
40877 Fix all assumptions that the embed region start at sector 1, using
40878 `embed_region.start' from now on. Similarly, use `embed_region.end'
40879 rather than `first_start' to calculate available size.
40881 In grub_util_info() message, replace "into after the MBR" with an
40882 indication of the specific sector our embed region starts at.
40884 2008-02-19 Robert Millan <rmh@aybabtu.com>
40886 * DISTLIST: Replace `commands/ieee1275/halt.c' and
40887 `commands/ieee1275/reboot.c' with `commands/halt.c' and
40888 `commands/reboot.c'.
40889 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
40890 (halt_mod_SOURCES): Likewise.
40891 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
40892 (halt_mod_SOURCES): Likewise.
40894 2008-02-17 Christian Franke <franke@computer.org>
40896 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
40898 2008-02-17 Robert Millan <rmh@aybabtu.com>
40900 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
40901 set `first_start' to 0 for non-PC/MSDOS partition maps.
40903 2008-02-16 Robert Millan <rmh@aybabtu.com>
40905 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
40906 do not assume partition map is PC/MSDOS before performing checks that
40907 are specific to that layout.
40909 2008-02-13 Robert Millan <rmh@aybabtu.com>
40911 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
40912 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
40913 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
40915 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
40917 * configure.ac: Only a cosmetic change on the handling of
40918 -fno-stack-protector.
40920 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
40922 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
40923 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
40925 (grub_install_SOURCES): Add halt.mod and reboot.mod.
40926 (halt_mod_SOURCES): New variable.
40927 (halt_mod_CFLAGS): Likewise.
40928 (halt_mod_LDFLAGS): Likewise.
40929 (reboot_mod_SOURCES): Likewise.
40930 (reboot_mod_CFLAGS): Likewise.
40931 (reboot_mod_LDFLAGS): Likewise.
40933 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
40934 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
40936 (halt_mod_SOURCES): Likewise.
40937 (reboot_mod_SOURCES): Likewise.
40939 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
40940 commands/i386/pc/reboot.c by commands/reboot.c.
40941 (reboot_mod_SOURCES): Likewise.
40943 * commands/i386/pc/reboot.c: merge this file ...
40945 * commands/ieee1275/reboot.c: ... and this file ...
40947 * commands/reboot.c: ... to this file.
40948 Add some precompiler directive to include the correct header for
40951 * commands/ieee1275/halt.c: move this file ...
40953 * commands/halt.c: ... to here.
40954 Add some precompiler directive to include the correct header for
40957 * include/grub/efi/efi.h (grub_reboot): New function declaration.
40958 (grub_halt): Likewise.
40960 * kern/efi/efi.c (grub_reboot): New function.
40961 (grub_halt): Likewise.
40963 2008-02-12 Robert Millan <rmh@aybabtu.com>
40965 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
40966 /dev (like it is done for /dev/mapper). This doesn't provide support
40967 for EVMS, but at least it is now easy to identify the problem when it
40970 2008-02-11 Robert Millan <rmh@aybabtu.com>
40972 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
40973 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
40974 comparing it with -1, not 0.
40976 2008-02-10 Robert Millan <rmh@aybabtu.com>
40978 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
40980 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40981 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
40983 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
40984 `disk/lvm.c' to the end of the list.
40985 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40986 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40988 2008-02-10 Robert Millan <rmh@aybabtu.com>
40990 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
40991 grub_print_error() instead. This will let user know why we're entering
40993 Based on suggestions from Sam Morris.
40995 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
40997 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
40998 on remaining N args, instead of "--" arg N times.
41000 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
41002 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
41003 (fill_with_default_glyph): Changed to use unknown_glyph for fill
41004 pattern for unknown glyphs.
41006 2008-02-09 Robert Millan <rmh@aybabtu.com>
41008 * configure.ac: Probe for `help2man'.
41009 * Makefile.in (builddir): New variable.
41010 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
41011 or otherwise add a few flags/options to it.
41012 (install-local): For every executable utility or script that is
41013 installed, invoke $(HELP2MAN) to install a manpage based on --help
41016 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
41017 that it doesn't prevent --help from working in build tree.
41019 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
41020 with `bug-grub@gnu.org'.
41021 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
41022 * util/update-grub.in (usage): New function.
41023 Implement proper argument check, with support for --help and --version
41024 (as well as existing -y).
41026 2008-02-09 Christian Franke <franke@computer.org>
41028 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
41029 avoid overwriting previous output.
41030 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
41032 2008-02-09 Robert Millan <rmh@aybabtu.com>
41034 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
41037 2008-02-09 Robert Millan <rmh@aybabtu.com>
41039 * commands/sleep.c: New file.
41040 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
41041 (sleep_mod_SOURCES): New variable.
41042 (sleep_mod_CFLAGS): Likewise.
41043 (sleep_mod_LDFLAGS): Likewise.
41045 2008-02-09 Robert Millan <rmh@aybabtu.com>
41047 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
41048 situations in which we can deduce the RAID size and the superblock
41051 2008-02-09 Robert Millan <rmh@aybabtu.com>
41053 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
41054 and return a grub_diskmemberlist_t composed of LVM physical volumes.
41055 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
41057 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
41058 and return a grub_diskmemberlist_t composed of physical array members.
41059 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
41061 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
41063 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
41064 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
41065 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
41067 * util/grub-probe.c (probe): Move partmap probing code from here ...
41068 (probe_partmap): ... to here.
41069 (probe): Use probe_partmap() once for the disk we're probing, and
41070 additionally, when such disk contains a memberlist() struct member,
41071 once for each disk that is contained in the structure returned by
41074 2008-02-09 Robert Millan <rmh@aybabtu.com>
41076 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
41077 environment variable to 'all' in order to obtain debug output from
41079 * util/i386/pc/grub-setup.c (main): Likewise.
41081 2008-02-08 Robert Millan <rmh@aybabtu.com>
41083 * disk/raid.c (grub_raid_scan_device): Check for
41084 `array->device[sb.this_disk.number]' rather than for
41085 `array->device[sb.this_disk.number]->name', since the latter is not
41086 guaranteed to be accessible.
41088 2008-02-08 Robert Millan <rmh@aybabtu.com>
41090 * disk/raid.c: Update copyright.
41091 * fs/cpio.c: Likewise.
41092 * include/grub/raid.h: Likewise.
41093 * loader/i386/pc/multiboot.c: Likewise.
41094 * util/hostfs.c: Likewise.
41096 2008-02-08 Robert Millan <rmh@aybabtu.com>
41098 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
41099 to a grub_disk_t array.
41100 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
41102 (grub_raid_scan_device): Replace `device[x].name' accesses with
41103 `device[x]->name'. Simplify initialization of `array->device[x]'.
41105 2008-02-08 Robert Millan <rmh@aybabtu.com>
41107 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
41108 grub_dprintf() calls.
41109 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
41112 2008-02-07 Christian Franke <franke@computer.org>
41114 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
41115 instead of fseek and ftell to support large files.
41116 (grub_hostfs_read): Likewise.
41118 2008-02-07 Robert Millan <rmh@aybabtu.com>
41120 Patch from Jeroen Dekkers.
41121 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
41122 failure, since successfully reading all array members might not be
41125 2008-02-06 Robert Millan <rmh@aybabtu.com>
41127 * util/grub-probe.c (probe): Simplify partmap probing (with the
41128 assumption that the first word up to the underscore equals to
41131 2008-02-06 Christian Franke <franke@computer.org>
41133 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
41134 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
41135 last block of a cpio or tar stream.
41136 Check for "TRAILER!!!" instead of any empty data
41137 block to detect last block of a cpio stream.
41138 (grub_cpio_dir): Fix constness of variable np.
41139 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
41140 cpio or tar trailer is detected. This fixes a crash
41141 on open of a non existing file.
41143 2008-02-05 Bean <bean123ch@gmail.com>
41145 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
41147 (grub_multiboot_load_elf64): Likewise.
41148 (grub_multiboot): Initialize mbi structure.
41150 * util/grub-fstest.c: Don't include unused header file script.h.
41152 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
41154 (grub_fstest_SOURCES): Likewise.
41156 2008-02-05 Robert Millan <rmh@aybabtu.com>
41158 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
41159 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
41160 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
41161 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
41163 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
41164 (translation_table): Replace hardcoded values with macros
41165 provided by `<grub/term.h>'.
41167 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
41168 (keyboard_map): Correct/add a few values, with macros provided
41169 by `<grub/term.h>'.
41170 (keyboard_map_shift): Zero values that don't differ from their
41171 `keyboard_map' equivalents.
41172 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
41173 Discard the second scan code that is always sent by Caps lock.
41174 Only use `keyboard_map_shift' when it provides a non-zero value,
41175 otherwise fallback to `keyboard_map'.
41177 2008-02-04 Bean <bean123ch@gmail.com>
41179 * Makefile.in (enable_grub_fstest): New variable.
41181 * conf/common.rmk (grub_fstest_init.lst): New rule.
41182 (grub_fstest_init.h): Likewise.
41183 (grub_fstest_init.c): Likewise.
41184 (util/grub-fstest.c_DEPENDENCIES): New variable.
41185 (grub_fstest_SOURCES): Likewise.
41187 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
41189 * util/grub-fstest.c: New file.
41191 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
41193 Make grub-setup handle a separate root device.
41195 * util/i386/pc/grub-setup.c (setup): Always open the root device,
41196 so that the root device can be compared with the destination
41198 When embedding the core image, if the root and destination devices
41199 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
41201 When not embedding, set ROOT_DRIVE to 0xFF.
41203 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
41205 Add support for having a grub directory in a different drive. This
41206 is still only the data handling part.
41208 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
41209 (codestart): Save %dh in GRUB_ROOT_DRIVE.
41210 (grub_root_drive): New variable.
41212 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
41213 instead of GRUB_BOOT_DRIVE to construct a device name. Set
41214 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
41217 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
41219 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
41221 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
41223 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
41224 is bogus, because PXE booting does not specify any drive
41227 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
41228 am not sure if this is really correct.
41230 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
41231 is always identical to the boot drive when booting from a CD.
41233 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
41235 (root_drive): New variable.
41236 (real_start): Unconditionally set %dh to ROOT_DRIVE.
41237 (setup_sectors): Push %dx right after popping it, because %dh will
41239 (copy_buffer): Restore %dx.
41241 2008-02-03 Robert Millan <rmh@aybabtu.com>
41243 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
41244 use `cdboot.img' for cdrom images.
41246 2008-02-03 Robert Millan <rmh@aybabtu.com>
41248 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
41249 only setup gfxterm when `font' command has succeeded.
41251 2008-02-03 Robert Millan <rmh@aybabtu.com>
41253 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
41254 (grub_rescue_cmd_multiboot_loader)
41255 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
41257 2008-02-03 Pavel Roskin <proski@gnu.org>
41259 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
41260 %edx and %esi from stack only after grub_gate_a20() is called.
41261 grub_gate_a20() clobbers %edx.
41263 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
41265 * configure.ac (AC_INIT): Bumped to 1.96.
41267 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
41268 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
41269 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
41270 video/readers/png.c.
41272 2008-02-03 Bean <bean123ch@gmail.com>
41274 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
41275 (cdboot_img_SOURCES): New variable.
41276 (cdboot_img_ASFLAGS): New variable.
41277 (cdboot_img_LDFLAGS): New variable.
41279 * boot/i386/pc/cdboot.S: New file.
41281 * disk/i386/pc/biosdisk.c (cd_start): New variable.
41282 (cd_count): Likewise.
41283 (grub_biosdisk_get_drive): Add support for cd device.
41284 (grub_biosdisk_call_hook): Likewise.
41285 (grub_biosdisk_iterate): Likewise.
41286 (grub_biosdisk_open): Likewise.
41287 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
41288 (grub_biosdisk_rw): Support reading from cd device.
41289 (GRUB_MOD_INIT): Iterate cd devices.
41291 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
41292 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
41293 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
41295 * kern/i386/pc/init.c (make_install_device): Check for cd device.
41297 2008-02-02 Robert Millan <rmh@aybabtu.com>
41299 * commands/read.c: New file.
41300 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
41301 (read_mod_SOURCES): New variable.
41302 (read_mod_CFLAGS): Likewise.
41303 (read_mod_LDFLAGS): Likewise.
41305 2008-02-02 Robert Millan <rmh@aybabtu.com>
41307 * normal/main.c (grub_normal_execute): Check for `menu->size' when
41308 determining whether menu has to be displayed.
41310 2008-02-02 Marco Gerards <marco@gnu.org>
41312 * bus/pci.c: New file.
41314 * include/grub/pci.h: Likewise.
41316 * include/grub/i386/pc/pci.h: Likewise.
41318 * commands/lspci.c: Likewise.
41320 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
41322 (pci_mod_SOURCES): New variable.
41323 (pci_mod_CFLAGS): Likewise.
41324 (pci_mod_LDFLAGS): Likewise.
41325 (lspci_mod_SOURCES): Likewise.
41326 (lspci_mod_CFLAGS): Likewise.
41327 (lspci_mod_LDFLAGS): Likewise.
41329 2008-02-02 Bean <bean123ch@gmail.com>
41331 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
41332 (grub_ufs_get_file_block): Fix indirect block calculation problem.
41334 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
41335 (grub_xfs_btree_node): New structure.
41336 (grub_xfs_btree_root): New structure.
41337 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
41338 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
41339 (GRUB_XFS_EXTENT_BLOCK): Likewise.
41340 (GRUB_XFS_EXTENT_SIZE): Likewise.
41341 (grub_xfs_read_block): Support btree format type.
41342 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
41343 Use directory block as basic unit.
41345 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
41347 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
41348 __attribute__ ((__regparm__ (1))).
41350 2008-02-01 Robert Millan <rmh@aybabtu.com>
41352 Correct a mistake in previous commit.
41354 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
41356 (normal/command.c_DEPENDENCIES): New variable.
41358 2008-02-01 Robert Millan <rmh@aybabtu.com>
41360 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
41362 (normal/command.c_DEPENDENCIES): New variable.
41363 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
41364 * conf/i386-ieee1275.rmk: Likewise.
41365 * conf/i386-linuxbios.rmk: Likewise.
41366 * conf/i386-pc.rmk: Likewise.
41367 * conf/sparc64-ieee1275.rmk: Likewise.
41368 * conf/powerpc-ieee1275.rmk: Likewise.
41369 (grub_emu_SOURCES): Add `fs/fshelp.c'.
41371 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
41373 2008-02-01 Robert Millan <rmh@aybabtu.com>
41375 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
41376 call at beginning of function.
41378 2008-01-31 Pavel Roskin <proski@gnu.org>
41380 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
41381 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
41382 (grub_mkrescue_SOURCES): Likewise.
41383 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
41385 2008-01-30 Robert Millan <rmh@aybabtu.com>
41387 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
41388 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
41389 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
41390 (grub_probe_SOURCES): ... to here.
41392 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
41393 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
41394 * conf/i386-ieee1275.rmk: Likewise.
41395 * conf/i386-linuxbios.rmk: Likewise.
41396 * conf/powerpc-ieee1275.rmk: Likewise.
41398 2008-01-30 Tristan Gingold <gingold@free.fr>
41400 * kern/rescue.c: Silently accept empty lines.
41402 2008-01-29 Bean <bean123ch@gmail.com>
41404 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
41405 (real_code_2): Code cleanup and change comment style.
41406 (move_memory): Avoid using 32-bit address mode.
41408 2008-01-29 Bean <bean123ch@gmail.com>
41410 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
41411 (png_mod_SOURCES): New variable.
41412 (png_mod_CFLAGS): Likewise.
41413 (png_mod_LDFLAGS): Likewise.
41415 * video/readers/png.c: New file.
41417 2008-01-28 Robert Millan <rmh@aybabtu.com>
41419 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
41420 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
41421 `ifndef GRUB_MOD_GAP' hack.
41422 * util/elf/grub-mkimage.c (add_segments): Likewise.
41424 2008-01-27 Robert Millan <rmh@aybabtu.com>
41426 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
41427 `GRUB_MOD_GAP' for platforms in which it's not defined.
41428 * util/elf/grub-mkimage.c (add_segments): Likewise.
41430 2008-01-27 Robert Millan <rmh@aybabtu.com>
41432 Get grub-emu to build again (including parallel builds).
41434 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
41436 (util/grub-emu.c_DEPENDENCIES): ... this, ...
41437 (normal/execute.c_DEPENDENCIES): ... this, ...
41438 (grub-emu_DEPENDENCIES): ... and this.
41440 * conf/i386-efi.rmk: Likewise.
41441 * conf/i386-linuxbios.rmk: Likewise.
41442 * conf/i386-ieee1275.rmk: Likewise.
41443 * conf/powerpc-ieee1275.rmk: Likewise.
41444 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
41446 2008-01-27 Robert Millan <rmh@aybabtu.com>
41448 * NEWS: Add a few items.
41450 2008-01-27 Robert Millan <rmh@aybabtu.com>
41452 Fix parallel builds with grub-emu. Based on earlier commit for
41453 grub-probe and grub-setup.
41455 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
41456 (util/grub-emu.c_DEPENDENCIES): ... this.
41457 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
41458 (util/grub-emu.c_DEPENDENCIES): ... this.
41459 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
41460 (util/grub-emu.c_DEPENDENCIES): ... this.
41461 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
41462 (util/grub-emu.c_DEPENDENCIES): ... this.
41463 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
41464 (util/grub-emu.c_DEPENDENCIES): ... this.
41466 2008-01-27 Pavel Roskin <proski@gnu.org>
41468 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
41469 to create a gap between _end and the modules added to the image
41470 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
41471 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
41472 * util/elf/grub-mkimage.c (add_segments): Likewise.
41474 2008-01-26 Pavel Roskin <proski@gnu.org>
41476 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
41477 just return an error.
41479 2008-01-26 Bean <bean123ch@gmail.com>
41481 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
41482 (grub_reiserfs_get_item): Save offset of the next item.
41483 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
41485 2008-01-25 Robert Millan <rmh@aybabtu.com>
41487 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
41488 make all filesystem sources appear together (possibly fixing omissions
41490 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41491 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41492 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41493 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41495 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
41497 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
41498 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
41499 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
41500 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
41502 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
41503 (probe): Add a sanity check to make sure of our ability to read
41504 requested files when probing for filesystem type.
41506 * genmk.rb: Update copyright year (2007).
41508 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
41509 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
41510 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
41511 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
41512 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
41513 : Remove function prototypes.
41515 2008-01-25 Robert Millan <rmh@aybabtu.com>
41517 Revert my previous commits (based on wrong assumption of how grub_errno
41520 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
41521 * kern/file.c (grub_file_open): Likewise.
41523 2008-01-24 Pavel Roskin <proski@gnu.org>
41525 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
41526 that hang if GRUB tries to setup colors.
41527 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
41528 colors for firmwares that don't support it.
41529 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
41530 Recognize Open Hack'Ware, set flags to work around its
41533 2008-01-24 Robert Millan <rmh@aybabtu.com>
41535 * kern/file.c (grub_file_open): Do not account previous failures of
41536 unrelated functions when grub_errno is checked for.
41537 Reported by Oleg Strikov.
41539 2008-01-24 Bean <bean123ch@gmail.com>
41541 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
41542 (grub_ufs_sblock): New member volume name.
41543 (grub_ufs_find_file): Fix string copy bug.
41544 (grub_ufs_label): Implement this function properly.
41546 * fs/hfs.c (grub_hfs_cnid_type): New enum.
41547 (grub_hfs_iterate_records): Use the correct file number for extents
41548 and catalog file. Fix problem in next index calculation.
41549 (grub_hfs_find_node): Replace recursive function call with loop.
41550 (grub_hfs_iterate_dir): Replace recursive function call with loop.
41552 2008-01-23 Robert Millan <rmh@aybabtu.com>
41554 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
41555 `<grub/symbol.h>' and `<grub/multiboot.h>'.
41556 (grub_multiboot2_real_boot): New function prototype.
41558 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
41559 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
41561 * kern/i386/ieee1275/init.c (grub_os_area_addr)
41562 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
41564 2008-01-23 Robert Millan <rmh@aybabtu.com>
41566 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
41567 #ifdef'ed out grub_printf().
41569 2008-01-23 Robert Millan <rmh@aybabtu.com>
41571 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
41572 grub_dprintf calls, since they make "debug=all" mode unusable.
41573 (grub_console_checkkey): Likewise.
41575 2008-01-23 Robert Millan <rmh@aybabtu.com>
41577 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41578 `term/i386/pc/at_keyboard.c'.
41579 (pkglib_MODULES): Add `serial.mod'.
41580 (serial_mod_SOURCES): New variable.
41581 (serial_mod_CFLAGS): Likewise.
41582 (serial_mod_LDFLAGS): Likewise.
41584 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
41585 `<grub/powerpc/ieee1275/console.h>'.
41586 (grub_keyboard_controller_init): New function prototype.
41587 (grub_console_checkkey): Likewise.
41588 (grub_console_getkey): Likewise.
41590 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
41593 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
41594 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
41596 2008-01-23 Robert Millan <rmh@aybabtu.com>
41598 * kern/i386/pc/init.c (make_install_device): When memdisk image is
41599 present, "(memdisk)/boot/grub" becomes the default prefix.
41601 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
41602 a memdisk tarball with all the modules. Add --overlay=DIR option that
41603 allows users to overlay additional files into the image.
41605 2008-01-23 Robert Millan <rmh@aybabtu.com>
41607 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
41608 and `machine/memory.h'.
41609 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
41610 (_multiboot_mod_SOURCES): New variable.
41611 (_multiboot_mod_CFLAGS): Likewise.
41612 (_multiboot_mod_LDFLAGS): Likewise.
41613 (multiboot_mod_SOURCES): Likewise.
41614 (multiboot_mod_CFLAGS): Likewise.
41615 (multiboot_mod_LDFLAGS): Likewise.
41617 * include/grub/i386/ieee1275/loader.h: New file.
41619 * include/grub/i386/ieee1275/machine.h: Likewise.
41621 * include/grub/i386/ieee1275/memory.h: Likewise.
41623 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
41624 variable declaration.
41625 (grub_os_area_size): Likewise.
41627 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
41628 (grub_lower_mem, grub_upper_mem): New variables.
41629 (grub_stop_floppy): New function (just to make
41630 grub_multiboot2_real_boot() happy).
41632 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
41633 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
41634 (grub_stop): New function.
41635 Include `"../realmode.S"' and `"../loader.S"'.
41637 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
41638 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
41640 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
41641 rely on grub_multiboot2_real_boot() for final boot.
41643 2008-01-22 Robert Millan <rmh@aybabtu.com>
41645 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
41646 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
41647 device that doesn't look like an SD card.
41648 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
41649 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
41650 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
41651 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
41654 2008-01-22 Robert Millan <rmh@aybabtu.com>
41656 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
41657 avoid claiming over our own code.
41659 2008-01-22 Bean <bean123ch@gmail.com>
41661 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
41662 (jpeg_mod_SOURCES): New variable.
41663 (jpeg_mod_CFLAGS): Likewise.
41664 (jpeg_mod_LDFLAGS): Likewise.
41666 * video/readers/jpeg.c : New file.
41668 2008-01-22 Bean <bean123ch@gmail.com>
41670 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
41671 there are no more items.
41673 2008-01-21 Robert Millan <rmh@aybabtu.com>
41675 * kern/mm.c (grub_mm_init_region): Improve debug message.
41677 2008-01-21 Robert Millan <rmh@aybabtu.com>
41679 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
41680 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
41682 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
41684 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
41685 Indicates start of upper memory.
41686 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
41687 (generate_image): Abort when image size is big enough to corrupt
41690 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
41691 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
41692 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
41693 instead of hardcoding 0xA0000.
41694 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
41695 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
41696 instead of hardcoding 0xA0000.
41698 2008-01-21 Robert Millan <rmh@aybabtu.com>
41700 * disk/memdisk.c (memdisk_size): New variable.
41701 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
41703 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
41704 image to dynamic memory.
41705 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
41706 `memdisk_size'. Free memdisk block.
41708 2008-01-21 Robert Millan <rmh@aybabtu.com>
41710 Fix detection of very small filesystems (like tar).
41712 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
41713 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
41714 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
41715 a problem with this disk).
41717 2008-01-21 Robert Millan <rmh@aybabtu.com>
41719 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
41720 on grub_biosdisk_rw_standard() error.
41722 2008-01-21 Robert Millan <rmh@aybabtu.com>
41724 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
41726 * kern/elf.c: Likewise.
41727 * kern/ieee1275/ieee1275.c: Likewise.
41728 * kern/powerpc/ieee1275/openfw.c: Likewise.
41729 * term/ieee1275/ofconsole.c: Likewise.
41731 2008-01-21 Robert Millan <rmh@aybabtu.com>
41733 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
41735 * include/grub/kernel.h (grub_arch_memdisk_addr)
41736 (grub_arch_memdisk_size): Moved from here ...
41738 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
41739 (grub_arch_memdisk_size): ... to here.
41741 2008-01-21 Robert Millan <rmh@aybabtu.com>
41743 Mostly based on bugfix from Bean.
41745 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
41746 attribute with hook() parameter.
41747 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
41749 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
41750 attribute with hook() parameter.
41751 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
41754 2008-01-21 Robert Millan <rmh@aybabtu.com>
41756 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
41757 (pkglib_MODULES): Add `memdisk.mod'.
41758 (memdisk_mod_SOURCES): New variable.
41759 (memdisk_mod_CFLAGS): Likewise.
41760 (memdisk_mod_LDFLAGS): Likewise.
41762 * disk/memdisk.c: New file.
41764 * include/grub/disk.h (grub_disk_dev_id): Add
41765 `GRUB_DISK_DEVICE_MEMDISK_ID'.
41767 * include/grub/i386/pc/kernel.h
41768 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
41769 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
41770 (grub_kernel_image_size): New variable declaration.
41771 (grub_total_module_size): Likewise.
41772 (grub_memdisk_image_size): Likewise.
41774 * include/grub/i386/pc/memory.h
41775 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
41777 * include/grub/kernel.h: Include `<grub/symbol.h>'.
41778 (grub_arch_memdisk_addr): New variable declaration.
41779 (grub_arch_memdisk_size): Likewise.
41781 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
41782 (grub_arch_memdisk_size): Likewise.
41784 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
41785 (codestart): Replace hardcoded `0x100000' with
41786 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
41788 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
41789 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
41790 not NULL, append the contents of the file it refers to, at the end of
41791 the compressed kernel image. Initialize `grub_memdisk_image_size'
41792 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
41793 (options): Add "memdisk"|'m' option.
41794 (main): Parse --memdisk|-m option, and pass user-provided path as
41795 parameter to generate_image().
41797 2008-01-20 Robert Millan <rmh@aybabtu.com>
41799 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
41800 grub_dprintf() calls from here ...
41801 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
41803 2008-01-20 Robert Millan <rmh@aybabtu.com>
41805 Fix detection of "real mode" when /options/real-mode? doesn't exist.
41807 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
41809 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
41810 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
41811 `GRUB_IEEE1275_FLAG_REAL_MODE'.
41812 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
41814 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
41815 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
41817 2008-01-19 Robert Millan <rmh@aybabtu.com>
41819 Get rid of confusing function (superseded by
41820 `grub_ieee1275_get_integer_property')
41821 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
41823 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
41825 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
41826 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
41827 in native endianness from grub_ieee1275_get_integer_property().
41829 2008-01-19 Robert Millan <rmh@aybabtu.com>
41831 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
41832 command after "shut-down", since implementations differ on which
41833 the command for halt is.
41835 2008-01-19 Robert Millan <rmh@aybabtu.com>
41837 * include/grub/i386/linuxbios/console.h: Add header protection.
41838 (grub_keyboard_controller_init): New function prototype.
41839 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
41840 (KEYBOARD_COMMAND_READ): Likewise.
41841 (KEYBOARD_COMMAND_WRITE): Likewise.
41842 (KEYBOARD_SCANCODE_SET1): Likewise.
41843 (grub_keyboard_controller_write): New function.
41844 (grub_keyboard_controller_read): Likewise.
41845 (grub_keyboard_controller_init): Likewise.
41847 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
41848 (grub_console_init): On coreboot/LinuxBIOS, call
41849 grub_keyboard_controller_init().
41851 2008-01-19 Robert Millan <rmh@aybabtu.com>
41853 PowerPC changes provided by Pavel Roskin.
41855 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
41856 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
41857 don't rely on cmain() doing it.
41858 * kern/i386/ieee1275/startup.S (_start): Store %eax in
41859 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
41861 2008-01-16 Robert Millan <rmh@aybabtu.com>
41863 * include/grub/i386/linuxbios/memory.h
41864 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
41865 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
41866 receive `table_header' as argument. Instead, probe for it in the
41867 known memory ranges where it can be present.
41868 (grub_available_iterate): Do not pass a fixed `table_header' address
41869 to grub_linuxbios_table_iterate().
41871 2008-01-15 Robert Millan <rmh@aybabtu.com>
41873 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
41874 * conf/i386-ieee1275.rmk: New file.
41875 * include/grub/i386/ieee1275/console.h: Likewise.
41876 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
41877 * include/grub/i386/ieee1275/kernel.h: Likewise.
41878 * include/grub/i386/ieee1275/time.h: Likewise.
41879 * kern/i386/ieee1275/init.c: Likewise.
41880 * kern/i386/ieee1275/startup.S: Likewise.
41882 2008-01-15 Robert Millan <rmh@aybabtu.com>
41884 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
41885 when pointers are 32-bit (but still do set it to one when they are
41888 2008-01-15 Robert Millan <rmh@aybabtu.com>
41890 * include/grub/ieee1275/ieee1275.h
41891 (grub_ieee1275_get_integer_property): New function prototype.
41893 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
41894 (grub_ieee1275_get_integer_property): New function. Wraps around
41895 grub_ieee1275_get_property() to handle endianness.
41897 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
41898 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
41900 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
41901 (grub_map): Likewise.
41902 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
41904 2008-01-15 Bean <bean123ch@gmail.com>
41906 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
41907 (grub_script_execute_cmdline): Reset grub_errno.
41909 * normal/main.c (read_config_file): Reset grub_errno.
41911 * normal/parse.y (script_init): New.
41912 (script): Move function and menuentry here.
41914 (command): Add delimiter at the end of command.
41915 (commands): Adjust to match the new command.
41916 (commandblock): Remove grub_script_lexer_record_start.
41917 (menuentry): Add grub_script_lexer_record_start, use the new commands.
41918 (if): Use the new commands.
41920 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
41922 2008-01-15 Robert Millan <rmh@aybabtu.com>
41924 * normal/menu.c (run_menu): Move timeout message from here ...
41925 (print_timeout): ... to here.
41926 (run_menu): Use print_timeout() once during initial draw to print
41927 the whole message, and again in every clock tick to update only
41928 the number of seconds.
41930 2008-01-15 Robert Millan <rmh@aybabtu.com>
41932 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
41933 actual size of `available' from grub_ieee1275_get_property(), and
41934 restrict parsing to that bound.
41936 2008-01-15 Christian Franke <franke@computer.org>
41938 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
41939 (argp_program_version): Remove variable.
41940 (argp_program_bug_address): Likewise.
41941 (options): Convert from struct argp_option to struct option.
41942 (struct arguments): Remove.
41943 (parse_opt): Remove.
41944 (usage): New function.
41945 (main): Replace struct args members by simple variables.
41946 Replace argp_parse() by getopt_long().
41947 Add switch to evaluate options.
41948 Add missing "(...)" around root_dev in prefix string.
41950 2008-01-14 Robert Millan <rmh@aybabtu.com>
41952 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
41953 for grub_ieee1275_exit(), in order to improve portability.
41955 2008-01-14 Robert Millan <rmh@aybabtu.com>
41957 * util/grub.d/10_linux.in (prefix): Define.
41958 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
41960 2008-01-13 Pavel Roskin <proski@gnu.org>
41962 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
41963 grub_errno if no errors have been detected.
41965 2008-01-12 Robert Millan <rmh@aybabtu.com>
41967 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
41968 (grub_util_get_dev_abstraction): New function prototype.
41970 * util/getroot.c: Include `<grub/util/getroot.h>'
41971 (grub_util_get_grub_dev): Move detection of abstraction type to ...
41972 (grub_util_get_dev_abstraction): ... here (new function).
41974 * util/grub-probe.c: Convert PRINT_* to an enum. Add
41975 `PRINT_ABSTRACTION'.
41976 (probe): Probe for abstraction type when requested.
41977 (main): Understand `--target=abstraction'.
41979 * util/i386/efi/grub-install.in: Add abstraction module to core
41980 image when it is found to be necessary.
41981 * util/i386/pc/grub-install.in: Likewise.
41982 * util/powerpc/ieee1275/grub-install.in: Likewise.
41984 * util/update-grub_lib.in (font_path): Return system path without
41985 converting to GRUB path.
41986 * util/update-grub.in: Convert system path returned by font_path()
41987 to a GRUB path. Use `grub-probe -t abstraction' to determine what
41988 abstraction module is needed for loading fonts (if any). Export
41989 that as `GRUB_PRELOAD_MODULES'.
41990 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
41993 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
41995 Remove some unused code from reiserfs.
41997 * fs/reiserfs.c (struct grub_reiserfs_key)
41998 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
41999 (struct grub_reiserfs_node_body): Removed.
42000 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
42002 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42004 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42006 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42008 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
42010 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
42012 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42013 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42014 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42016 2008-01-10 Robert Millan <rmh@aybabtu.com>
42018 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
42019 Determines if a file is garbage left by packaging systems, etc.
42020 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
42021 for processing /etc/grub.d scripts.
42022 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
42023 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
42024 as a condition for processing Linux images.
42026 2008-01-10 Pavel Roskin <proski@gnu.org>
42028 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
42029 to compile reiserfs.c on PowerPC.
42031 2008-01-10 Robert Millan <rmh@aybabtu.com>
42033 * kern/device.c (grub_device_iterate): Do not abort device iteration
42034 when one of the devices cannot be opened.
42035 * kern/disk.c (grub_disk_open): Do not account previous failures of
42036 unrelated functions when grub_errno is checked for.
42038 2008-01-08 Robert Millan <rmh@aybabtu.com>
42040 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
42041 `! grub_linux_is_bzimage', change order of address comparison to make
42042 it more intuitive, and improve "too big zImage" error message.
42044 2008-01-08 Robert Millan <rmh@aybabtu.com>
42046 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
42047 `$(update-grub_DATA)'.
42048 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
42051 2008-01-07 Robert Millan <rmh@aybabtu.com>
42053 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
42054 which instruction is modified by grub-setup during installation
42055 (since it wasn't obvious by only looking at this file).
42057 2008-01-07 Robert Millan <rmh@aybabtu.com>
42059 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
42060 listing actual TODO items.
42062 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42064 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
42066 (grub_reiserfs_get_key_offset): Likewise.
42067 (grub_reiserfs_set_key_offset): Likewise.
42068 (grub_reiserfs_set_key_type): Likewise.
42069 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
42071 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
42072 better to remove the bitfield version completely.
42074 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42076 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
42077 allocated from the heap, due to the fshelp implementation.
42078 (grub_reiserfs_dir): Free NODE, due to the same reason.
42080 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42082 Mostly from Vincent Pelletier:
42084 * fs/reiserfs.c: New file.
42086 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
42087 (reiserfs_mod_SOURCES): New variable.
42088 (reiserfs_mod_CFLAGS): Likewise.
42089 (reiserfs_mod_LDFLAGS): Likewise.
42091 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
42092 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
42093 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
42096 2008-01-06 Robert Millan <rmh@aybabtu.com>
42098 * normal/color.c: Remove `<grub/env.h>'.
42100 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
42102 * include/grub/normal.h: Include <grub/env.h>.
42104 2008-01-05 Robert Millan <rmh@aybabtu.com>
42106 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
42107 usage example with `(hd0,1)'.
42108 Reported by Samuel Thibault.
42110 2008-01-05 Robert Millan <rmh@aybabtu.com>
42112 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
42113 (grub_linux_boot_zimage): Rename to ...
42114 (grub_linux_boot): ... this.
42115 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
42116 (grub_linux_boot_zimage): Conditionalize zImage copy.
42118 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
42119 (grub_linux_boot_bzimage): Remove prototype.
42120 (grub_linux_boot_zimage): Rename to ...
42121 (grub_linux_boot): ... this.
42123 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
42124 (grub_linux_boot): Remove function.
42126 2008-01-05 Robert Millan <rmh@aybabtu.com>
42128 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
42129 (grub_env_write_color_highlight): Likewise.
42130 (grub_wait_after_message): Likewise.
42132 * normal/color.c: New file.
42134 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42135 (normal_mod_DEPENDENCIES): Likewise.
42137 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42138 (normal_mod_DEPENDENCIES): Likewise.
42140 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42141 (normal_mod_DEPENDENCIES): Likewise.
42143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42144 (normal_mod_DEPENDENCIES): Likewise.
42146 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
42147 for waiting after a message is printed.
42148 * normal/main.c (read_config_file): Likewise.
42149 (grub_normal_init): Register grub_env_write_color_normal() and
42150 grub_env_write_color_highlight() hooks. Mark `color_normal' and
42151 `color_highlight' variables as global.
42153 * normal/menu.c (grub_wait_after_message): New function.
42154 (grub_color_menu_normal): New variable. Replaces ...
42155 (GRUB_COLOR_MENU_NORMAL): ... this macro.
42156 (grub_color_menu_highlight): New variable. Replaces ...
42157 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
42158 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
42159 `GRUB_TERM_COLOR_STANDARD'.
42160 (print_message): Use `grub_setcolorstate' to reload colors. Rename
42161 `normal_code' and `highlight_code' to `old_color_normal' and
42162 `old_color_highlight', respectively.
42163 (grub_menu_init_page): Update colors when drawing the menu, based on
42164 `menu_color_normal' and `menu_color_highlight' variables.
42165 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
42166 a message is printed.
42168 2008-01-05 Robert Millan <rmh@aybabtu.com>
42170 * kern/env.c (grub_env_context_open): Propagate hooks for global
42171 variables to new context.
42173 * kern/main.c (grub_set_root_dev): Export `root' variable.
42175 2008-01-05 Robert Millan <rmh@aybabtu.com>
42177 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
42178 discs unconditionally, since udev and others have options to provide
42181 2008-01-05 Robert Millan <rmh@aybabtu.com>
42183 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
42185 2008-01-04 Christian Franke <franke@computer.org>
42187 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
42190 2008-01-03 Pavel Roskin <proski@gnu.org>
42192 * kern/i386/linuxbios/init.c: Put "void" to all function
42193 declarations with no arguments.
42194 * kern/powerpc/ieee1275/init.c: Likewise.
42195 * term/i386/pc/at_keyboard.c: Likewise.
42196 * term/i386/pc/vga_text.c: Likewise.
42197 * util/grub-mkdevicemap.c: Likewise.
42199 2008-01-02 Robert Millan <rmh@aybabtu.com>
42201 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
42202 message when loaded image is out of bounds.
42203 (grub_multiboot_load_elf64): Likewise.
42205 2008-01-02 Pavel Roskin <proski@gnu.org>
42207 * util/grub.d/10_linux.in: Try version without ".old" when
42208 looking for initrd. It's better to use initrd from the newer
42209 kernel of the same version than no initrd at all.
42211 2008-01-01 Robert Millan <rmh@aybabtu.com>
42213 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
42215 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
42217 * include/grub/video.h: Added grub_video_unmap_color and
42218 grub_video_get_active_render_target.
42219 (grub_video_adapter): Added unmap_color and get_active_render_target.
42221 * video/video.c: Added grub_video_unmap_color and
42222 grub_video_get_active_render_target.
42223 (grub_video_get_info): Changed method to accept NULL pointer as an
42224 argument to allow detection of active video adapter.
42226 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
42227 grub_video_vbe_unmap_color_int.
42228 Added grub_video_vbe_unmap_color and
42229 grub_video_vbe_get_active_render_target.
42230 (grub_video_vbe_adapter): Added unmap_color and
42231 get_active_render_target.
42233 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
42234 with grub_video_vbe_unmap_color_int.
42236 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
42237 (DEFAULT_NORMAL_COLOR): Likewise.
42238 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
42239 (DEFAULT_FG_COLOR): Removed.
42240 (DEFAULT_BG_COLOR): Likewise.
42241 (DEFAULT_CURSOR_COLOR): Changed value.
42242 (grub_virtual_screen): Added standard_color_setting,
42243 normal_color_setting, highlight_color_setting and term_color.
42244 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
42245 (bitmap_width): Added.
42246 (bitmap_height): Likewise.
42247 (bitmap): Likewise.
42248 (set_term_color): Likewise.
42249 (grub_virtual_screen_setup): Changed to use new terminal coloring
42251 (grub_gfxterm_init): Added init for bitmap.
42252 (grub_gfxterm_fini): Added destroy for bitmap.
42253 (redraw_screen_rect): Updated to use background bitmap and new
42255 (scroll_up): Added optimization for case when there is no bitmap.
42256 (grub_gfxterm_cls): Fixed to use correct background color.
42257 (grub_virtual_screen_setcolorstate): Changed to use new terminal
42259 (grub_virtual_screen_setcolor): Likewise.
42260 (grub_virtual_screen_getcolor): Added.
42261 (grub_gfxterm_background_image_cmd): Likewise.
42262 (grub_video_term): Added setcolor and getcolor.
42263 (MOD_INIT): Added registration of background_image command.
42264 (MOD_TERM): Added unregistration for background_image command.
42266 2007-12-30 Pavel Roskin <proski@gnu.org>
42268 * loader/multiboot_loader.c: Fix multiboot command
42269 unregistration. Fix all typos in the word "multiboot".
42271 2007-12-29 Pavel Roskin <proski@gnu.org>
42273 * util/grub.d/10_linux.in: Refactor search for initrd. Add
42274 support for initrd names used in Fedora.
42276 2007-12-26 Bean <bean123ch@gmail.com>
42278 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
42279 (cpio_mod_SOURCES): New variable.
42280 (cpio_mod_CFLAGS): Likewise.
42281 (cpio_mod_LDFLAGS): Likewise.
42283 * fs/cpio.c: New file.
42285 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
42287 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42289 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42291 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42293 2007-12-25 Robert Millan <rmh@aybabtu.com>
42295 * include/grub/term.h (struct grub_term): Add `getcolor' function.
42296 (grub_getcolor): New function.
42298 * kern/term.c (grub_getcolor): New function.
42299 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
42300 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
42301 (print_entry): Set normal and highlight colors to
42302 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
42303 respectively, before printing and restore them to old
42305 (grub_menu_init_page): Likewise. Fill an additional colored space
42306 that would otherwise be left blank.
42308 * term/efi/console.c (grub_console_getcolor): New function.
42309 (struct grub_console_term.getcolor): New variable.
42310 * term/i386/pc/console.c (grub_console_getcolor): New function.
42311 (struct grub_console_term.getcolor): New variable.
42312 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
42313 (struct grub_console_term.getcolor): New variable.
42315 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
42316 (struct grub_console_term.setcolor): Remove variable.
42317 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
42318 (struct grub_console_term.setcolor): Remove variable.
42319 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
42320 (struct grub_console_term.setcolor): Remove variable.
42321 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
42322 (struct grub_console_term.setcolor): Remove variable.
42324 2007-12-25 Robert Millan <rmh@aybabtu.com>
42326 * configure.ac: Search for possible unifont.hex locations, and
42327 define UNIFONT_HEX if found.
42329 * Makefile.in (UNIFONT_HEX): Define variable.
42330 (DATA): Rename to ...
42331 (PKGLIB): ... this. Update all users.
42332 (PKGDATA): New variable.
42333 (pkgdata_IMAGES): Rename to ...
42334 (pkglib_IMAGES): ... this. Update all users.
42335 (pkgdata_MODULES): Rename to ...
42336 (pkglib_MODULES): ... this. Update all users.
42337 (pkgdata_PROGRAMS): Rename to ...
42338 (pkglib_PROGRAMS): ... this. Update all users.
42339 (pkgdata_DATA): Rename to ...
42340 (pkglib_DATA): ... this. Update all users.
42341 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
42342 (unicode.pff, ascii.pff): New rules.
42343 (all-local): Add `$(PKGDATA)' dependency.
42344 (install-local): Process `$(PKGDATA)'.
42346 * util/update-grub_lib.in (font_path): Search for *.pff files in
42347 a few more locations, including `${pkgdata}'.
42349 2007-12-23 Robert Millan <rmh@aybabtu.com>
42351 Patch from Bean <bean123ch@gmail.com>:
42352 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
42355 2007-12-21 Bean <bean123ch@gmail.com>
42357 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
42358 (ntfscomp_mod_SOURCES): New variable.
42359 (ntfscomp_mod_CFLAGS): Likewise.
42360 (ntfscomp_mod_LDFLAGS): Likewise.
42362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
42363 (grub_probe_SOURCES): Likewise.
42364 (grub_emu_SOURCES): Likewise.
42366 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
42367 (grub_emu_SOURCES): Likewise.
42369 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
42370 (grub_emu_SOURCES): Likewise.
42372 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
42373 (grub_emu_SOURCES): Likewise.
42375 * fs/ntfs.c (grub_ntfscomp_func): New variable.
42376 (read_run_list): Renamed to grub_ntfs_read_run_list.
42377 (decomp_nextvcn): Moved to ntfscomp.c.
42378 (decomp_getch): Likewise.
42379 (decomp_get16): Likewise.
42380 (decomp_block): Likewise.
42381 (read_block): Likewise.
42382 (read_data): Partially moved to ntfscomp.c.
42383 (fixup): Change unsigned to grub_uint16_t.
42384 (read_mft): Change unsigned long to grub_uint32_t.
42385 (read_attr): Likewise.
42386 (read_data): Likewise.
42387 (read_run_data): Likewise.
42388 (read_run_list): Likewise.
42389 (read_mft): Likewise.
42391 * fs/ntfscomp.c: New file.
42393 * include/grub/ntfs.h: New file.
42395 2007-12-16 Robert Millan <rmh@aybabtu.com>
42397 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
42398 IDE disk check, since Linux is known to support 20 IDE disks.
42399 Reported by Colin Watson.
42401 2007-12-15 Bean <bean123ch@gmail.com>
42403 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
42404 (lnxboot_img_SOURCES): New variable.
42405 (lnxboot_img_ASFLAGS): Likewise.
42406 (lnxboot_img_LDFLAGS): Likewise.
42408 * boot/i386/pc/lnxboot.S: New file.
42410 2007-11-24 Pavel Roskin <proski@gnu.org>
42412 * configure.ac: Test if '--build-id=none' is supported by the
42413 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
42414 objcopy to generate incorrect binary files (binutils
42415 2.17.50.0.18-1 as shipped by Fedora 8).
42416 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
42417 linking, so that build ID doesn't break the test.
42419 2007-11-24 Pavel Roskin <proski@gnu.org>
42421 * include/grub/i386/time.h: use "void" in the argument list
42422 of grub_cpu_idle().
42423 * include/grub/powerpc/time.h: Likewise.
42424 * include/grub/sparc64/time.h: Likewise.
42426 2007-11-18 Christian Franke <franke@computer.org>
42428 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
42429 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
42430 This fixes the problem that function keys did not work in grub-emu.
42432 2007-11-18 Christian Franke <franke@computer.org>
42434 * disk/host.c (grub_host_open): Remove attribute unused from
42435 name parameter. Add check for "host". This fixes the problem
42436 that grub-emu does not find partitions.
42438 2007-11-18 Christian Franke <franke@computer.org>
42440 * util/hostfs.c (is_dir): New function.
42441 (grub_hostfs_dir): Handle missing dirent.d_type case.
42442 (grub_hostfs_read): Add missing fseek().
42443 (grub_hostfs_label): Clear label pointer. This fixes a crash
42444 of grub-emu on "ls (host)".
42446 2007-11-18 Christian Franke <franke@computer.org>
42448 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
42449 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
42450 to 64 bit boundary by default.
42452 2007-11-18 Bean <bean123ch@gmail.com>
42454 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
42455 (hexdump_mod_SOURCES): New variable.
42456 (hexdump_mod_CFLAGS): Likewise.
42457 (hexdump_mod_LDFLAGS): Likewise.
42459 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
42461 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
42463 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
42465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
42467 * include/grub/hexdump.h: New file.
42469 * commands/hexdump.c: New file.
42471 2007-11-10 Robert Millan <rmh@aybabtu.com>
42473 * commands/i386/pc/play.c (beep_off): Switch order of arguments
42474 in grub_outb() calls.
42475 (beep_on): Likewise.
42477 2007-11-10 Christian Franke <franke@computer.org>
42479 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
42480 (grub_menu_run): Likewise.
42482 2007-11-10 Robert Millan <rmh@aybabtu.com>
42484 * include/grub/i386/efi/machine.h: New file.
42485 * include/grub/i386/linuxbios/machine.h: Likewise.
42486 * include/grub/i386/pc/machine.h: Likewise.
42487 * include/grub/powerpc/ieee1275/machine.h: Likewise.
42488 * include/grub/sparc64/ieee1275/machine.h: Likewise.
42490 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
42491 (serial_hw_io_addr): New variable.
42492 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
42493 instead of `(unsigned short *) 0x400'.
42495 2007-11-10 Bean <bean123ch@gmail.com>
42497 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
42499 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
42501 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
42502 (vga_mod_SOURCES): Added.
42503 (vga_mod_CFLAGS): Likewise.
42504 (vga_mod_LDFLAGS): Likewise.
42506 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
42508 (set_map_mask): Likewise.
42509 (set_read_map): Likewise.
42510 (set_read_address): Likewise.
42511 (vga_font): Removed variable.
42512 (get_vga_glyph): Removed function.
42513 (invalidate_char): Likewise.
42514 (write_char): Changed to use grub_font_get_glyph() for font
42516 (grub_vga_putchar): Likewise.
42517 (grub_vga_getcharwidth): Likewise.
42519 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
42521 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
42523 (pxeboot_img_LDFLAGS): Likewise.
42524 (diskboot_img_LDFLAGS): Likewise.
42525 (kernel_img_LDFLAGS): Likewise.
42527 2007-11-06 Robert Millan <rmh@aybabtu.com>
42529 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
42530 in grub_outb() calls.
42531 (serial_hw_init): Likewise.
42533 2007-11-05 Robert Millan <rmh@aybabtu.com>
42535 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
42536 spaces. Skip non-regular files.
42538 2007-11-05 Robert Millan <rmh@aybabtu.com>
42540 * kern/disk.c (grub_disk_firmware_fini)
42541 (grub_disk_firmware_is_tainted): New variables.
42543 * include/grub/disk.h (grub_disk_firmware_fini)
42544 (grub_disk_firmware_is_tainted): Likewise.
42546 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
42547 (grub_disk_biosdisk_fini): ... to here.
42548 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
42549 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
42550 is set. Register grub_disk_biosdisk_fini() in
42551 `grub_disk_firmware_fini'.
42553 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
42554 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
42555 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
42556 to finish existing firmware disk interface.
42558 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
42559 (ata_mod_SOURCES): New variable.
42560 (ata_mod_CFLAGS): Likewise.
42561 (ata_mod_LDFLAGS): Likewise.
42563 2007-11-05 Robert Millan <rmh@aybabtu.com>
42565 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
42566 (grub_ata_wait): Reimplement using grub_millisleep().
42568 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
42569 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
42571 2007-11-03 Marco Gerards <marco@gnu.org>
42573 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
42574 (CRTC_ADDR_PORT): New macro.
42575 (CRTC_DATA_PORT): Likewise.
42576 (CRTC_CURSOR): Likewise.
42577 (CRTC_CURSOR_ADDR_HIGH): Likewise.
42578 (CRTC_CURSOR_ADDR_LOW): Likewise.
42579 (update_cursor): New function.
42580 (grub_console_real_putchar): Call `update_cursor'.
42581 (grub_console_gotoxy): Likewise.
42582 (grub_console_cls): Set the default color when clearing the
42584 (grub_console_setcursor): Implemented.
42586 2007-11-03 Marco Gerards <marco@gnu.org>
42588 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
42590 (grub_ata_pio_write): Likewise.
42592 (grub_atapi_identify): Wait after issuing an ATA command.
42593 (grub_atapi_packet): Likewise.
42594 (grub_ata_identify): Likewise.
42595 (grub_ata_readwrite): Likewise.
42597 2007-11-03 Marco Gerards <marco@gnu.org>
42599 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
42600 (grub_ata_pio_write): Likewise.
42601 (grub_ata_readwrite): Use `grub_error', instead of
42602 returning `grub_errno'.
42604 2007-11-03 Marco Gerards <marco@gnu.org>
42606 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
42607 grub_ata_pio_write once for every single sector, instead of for
42610 2007-10-31 Robert Millan <rmh@aybabtu.com>
42612 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
42614 * conf/i386-linuxbios.rmk: New file.
42616 * kern/i386/pc/hardware.c: Likewise.
42617 * term/i386/pc/at_keyboard.c: Likewise.
42618 * term/i386/pc/vga_text.c: Likewise.
42620 * include/grub/i386/linuxbios/boot.h: Likewise.
42621 * include/grub/i386/linuxbios/console.h: Likewise.
42622 * include/grub/i386/linuxbios/init.h: Likewise.
42623 * include/grub/i386/linuxbios/kernel.h: Likewise.
42624 * include/grub/i386/linuxbios/loader.h: Likewise.
42625 * include/grub/i386/linuxbios/memory.h: Likewise.
42626 * include/grub/i386/linuxbios/serial.h: Likewise.
42627 * include/grub/i386/linuxbios/time.h: Likewise.
42629 * kern/i386/linuxbios/init.c: Likewise.
42630 * kern/i386/linuxbios/startup.S: Likewise.
42631 * kern/i386/linuxbios/table.c: Likewise.
42633 2007-10-31 Marco Gerards <marco@gnu.org>
42635 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
42636 (ata_mod_SOURCES): New variable.
42637 (ata_mod_CFLAGS): Likewise.
42638 (ata_mod_LDFLAGS): Likewise.
42640 * disk/ata.c: New file.
42642 * include/grub/disk.h (grub_disk_dev_id): Add
42643 `GRUB_DISK_DEV_ATA_ID'.
42645 2007-10-31 Robert Millan <rmh@aybabtu.com>
42647 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
42648 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
42650 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
42651 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
42653 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
42656 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
42658 2007-10-27 Robert Millan <rmh@aybabtu.com>
42660 * include/grub/types.h (ULONG_MAX): Define macro.
42662 2007-10-22 Robert Millan <rmh@aybabtu.com>
42664 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
42666 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
42668 2007-10-22 Robert Millan <rmh@aybabtu.com>
42670 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
42671 (pkgdata_MODULES): Add `biosdisk.mod'.
42672 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
42675 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
42676 (grub_biosdisk_init): Replace with ...
42677 (GRUB_MOD_INIT(biosdisk)): ... this.
42678 (grub_biosdisk_fini): Replace with ...
42679 (GRUB_MOD_FINI(biosdisk)): ... this.
42681 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
42682 (grub_machine_init): Remove call to grub_biosdisk_init().
42683 (grub_machine_fini): Remove call to grub_machine_fini().
42685 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
42687 2007-10-22 Robert Millan <rmh@aybabtu.com>
42689 * include/grub/time.h: New file.
42690 * include/grub/i386/time.h: Likewise.
42691 * include/grub/powerpc/time.h: Likewise.
42692 * include/grub/sparc64/time.h: Likewise.
42694 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
42696 (KERNEL_MACHINE_TIME_HEADER): ... this.
42697 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
42699 (KERNEL_MACHINE_TIME_HEADER): ... this.
42700 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
42702 (KERNEL_MACHINE_TIME_HEADER): ... this.
42704 * kern/i386/efi/init.c: Include `<grub/time.h>'.
42705 (grub_millisleep): New function.
42706 * kern/i386/pc/init.c: Include `<grub/time.h>'.
42707 (grub_millisleep): New function.
42708 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
42709 Remove `grub/machine/time.h' include.
42710 (grub_millisleep): New function.
42711 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
42712 Remove `grub/machine/time.h' include.
42713 (grub_millisleep): New function.
42715 * include/grub/misc.h (grub_div_roundup): New function.
42717 * kern/misc.c: Include `<grub/time.h>'.
42718 (grub_millisleep_generic): New function.
42720 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
42722 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
42724 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
42725 `machine/time.h'. Add `time.h'.
42726 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42728 2007-10-21 Robert Millan <rmh@aybabtu.com>
42730 * include/grub/misc.h (grub_max): New function.
42732 2007-10-21 Robert Millan <rmh@aybabtu.com>
42734 * util/misc.c (grub_util_info): Call fflush() before returning.
42736 2007-10-20 Robert Millan <rmh@aybabtu.com>
42738 * genmk.rb (Image): Copy `extra_flags' from here ...
42739 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
42741 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
42742 to `argc' and `args' arguments.
42744 2007-10-17 Robert Millan <rmh@aybabtu.com>
42746 * kern/i386/loader.S: New file.
42748 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
42749 * kern/i386/loader.S (grub_linux_prot_size)... to here.
42750 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
42751 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
42752 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
42753 * kern/i386/loader.S (grub_linux_real_addr)... to here.
42754 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
42755 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
42756 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
42757 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
42758 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
42759 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
42760 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
42761 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
42763 * kern/i386/realmode.S: New file.
42765 * kern/i386/pc/startup.S (protstack): Moved from here ...
42766 * kern/i386/realmode.S (protstack)... to here.
42767 * kern/i386/pc/startup.S (gdt): Moved from here ...
42768 * kern/i386/realmode.S (gdt)... to here.
42769 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
42770 * kern/i386/realmode.S (prot_to_real)... to here.
42772 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
42773 `kern/i386/realmode.S'.
42775 2007-10-17 Robert Millan <rmh@aybabtu.com>
42777 * include/grub/i386/loader.h: New file.
42779 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
42780 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
42781 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
42782 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
42783 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
42784 * include/grub/i386/loader.h (grub_linux_prot_size)
42785 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
42786 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
42787 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
42788 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
42790 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
42792 2007-10-15 Robert Millan <rmh@aybabtu.com>
42794 * normal/misc.c (grub_normal_print_device_info): Do not probe for
42795 filesystem when dev->disk is unset.
42796 Do probe for filesystem even when dev->disk->has_partitions is set.
42797 In case a filesystem is found, always report it.
42798 In case it isn't, if dev->disk->has_partitions is set, report that
42799 a partition table was found instead of reporting that no filesystem
42800 could be identified.
42802 2007-10-12 Robert Millan <rmh@aybabtu.com>
42804 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
42805 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
42807 * include/grub/types.h (grub_host_to_target16): New macro.
42808 (grub_host_to_target32): Likewise.
42809 (grub_host_to_target64): Likewise.
42810 (grub_target_to_host16): Likewise.
42811 (grub_target_to_host32): Likewise.
42812 (grub_target_to_host64): Likewise.
42814 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
42815 Renamed from to ...
42816 (GRUB_MOD_ALIGN): ...this. Update all users.
42818 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
42819 grub_host_to_target32.
42820 Replace grub_be_to_cpu32 with grub_target_to_host32.
42821 (load_modules): Likewise.
42822 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
42823 Replace grub_be_to_cpu32 with grub_target_to_host32.
42824 Replace grub_cpu_to_be16 with grub_host_to_target16.
42825 Replace grub_cpu_to_be32 grub_host_to_target32.
42827 2007-10-12 Robert Millan <rmh@aybabtu.com>
42829 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
42830 * util/elf/grub-mkimage.c: ... here.
42832 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
42833 `util/powerpc/ieee1275/grub-mkimage.c'.
42835 2007-10-07 Robert Millan <rmh@aybabtu.com>
42837 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
42838 and make it easier to figure out.
42839 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
42840 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
42841 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
42842 leave us with less than HEAP_MIN_SIZE total heap.
42843 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
42845 2007-10-03 Robert Millan <rmh@aybabtu.com>
42847 * include/grub/i386/io.h: New file.
42848 * commands/i386/pc/play.c (inb): Removed.
42850 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42852 * term/i386/pc/serial.c (inb): Removed.
42854 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42856 * term/i386/pc/vga.c (inb): Removed.
42858 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42861 2007-10-02 Robert Millan <rmh@aybabtu.com>
42863 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
42864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42865 Reported by Marcin Kurek.
42867 2007-09-07 Robert Millan <rmh@aybabtu.com>
42869 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
42870 SmartFirmware version updates (as released by Sven Luther), and avoid
42871 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
42872 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
42875 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42877 From Hitoshi Ozeki:
42878 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
42879 when merging two regions.
42881 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42883 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
42884 * normal/completion.c (grub_normal_do_completion): Likewise.
42885 Reported by Hitoshi Ozeki.
42887 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42889 Do not use devices at boot in chainloading.
42891 * loader/i386/pc/chainloader.c (boot_drive): New variable.
42892 (boot_part_addr): Likewise.
42893 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
42894 with BOOT_DRIVE and BOOT_PART_ADDR.
42895 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
42896 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
42898 2007-08-29 Robert Millan <rmh@aybabtu.com>
42900 Patch from Simon Peter <dn.tlp@gmx.net>:
42901 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
42902 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
42903 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
42904 util/i386/pc/grub-setup.c_DEPENDENCIES.
42905 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
42906 util/grub-probe.c_DEPENDENCIES.
42907 * conf/powerpc-ieee1275.rmk: Likewise.
42909 2007-08-28 Robert Millan <rmh@aybabtu.com>
42911 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
42912 to tell grub-mkdevicemap how to name devices.
42913 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
42916 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
42917 util/i386/get_disk_name.c.
42918 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
42919 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
42920 util/ieee1275/get_disk_name.c.
42922 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
42924 * DISTLIST: Add util/i386/get_disk_name.c and
42925 util/ieee1275/get_disk_name.c.
42927 * util/grub-mkdevicemap.c: Replace device naming logic with
42928 grub_util_get_disk_name() calls.
42930 2007-08-20 Robert Millan <rmh@aybabtu.com>
42932 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
42933 (so that it works for both plural and singular quantities).
42935 2007-08-05 Robert Millan <rmh@aybabtu.com>
42937 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
42938 so that [xz] isn't taken into account when determining order.
42940 2007-08-02 Marco Gerards <marco@gnu.org>
42942 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
42943 `include/multiboot2.h', `include/grub/elfload.h',
42944 `include/multiboot.h', `include/grub/multiboot.h',
42945 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
42946 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
42947 `kern/elf.c', `loader/multiboot_loader.c',
42948 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
42949 `loader/i386/pc/multiboot2.c',
42950 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
42951 `util/i386/pc/grub-mkrescue.in'. Remove
42952 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
42953 `include/grub/i386/pc/util/biosdisk.h' and
42954 `include/grub/powerpc/ieee1275/multiboot.h'.
42956 2007-08-02 Bean <bean123ch@gmail.com>
42958 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
42959 (ntfs_mod_SOURCES): New variable.
42960 (ntfs_mod_CFLAGS): Likewise.
42961 (ntfs_mod_LDFLAGS): Likewise.
42963 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
42964 (grub_probe_SOURCES): Likewise.
42965 (grub_emu_SOURCES): Likewise.
42967 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
42968 (grub_emu_SOURCES): Likewise.
42970 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
42971 (grub_emu_SOURCES): Likewise.
42973 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
42975 * fs/ntfs.c: New file.
42977 2007-08-02 Bean <bean123ch@gmail.com>
42979 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
42981 * file.h (grub_file): Likewise.
42983 * fshelp.h (grub_fshelp_read_file): Likewise.
42985 * util/i386/pc/grub-setup.c (setup): Likewise.
42986 (save_first_sector): Likewise.
42987 (save_blocklists): Likewise.
42989 * fs/affs.c (grub_affs_read_file): Likewise.
42991 * fs/ext2.c (grub_ext2_read_file): Likewise.
42993 * fs/fat.c (grub_fat_read_data): Likewise.
42995 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
42997 * fs/hfs.c (grub_hfs_read_file): Likewise.
42999 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
43001 * fs/jfs.c (grub_jfs_read_file): Likewise.
43003 * fs/minix.c (grub_minix_read_file): Likewise.
43005 * fs/sfs.c (grub_sfs_read_file): Likewise.
43007 * fs/ufs.c (grub_ufs_read_file): Likewise.
43009 * fs/xfs.c (grub_xfs_read_file): Likewise.
43011 * command/blocklist.c (read_blocklist): Likewise.
43012 (print_blocklist): Likewise.
43014 2007-08-02 Marco Gerards <marco@gnu.org>
43016 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
43019 * disk/host.c: New file.
43021 * util/hostfs.c: Likewise.
43023 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
43024 return `GRUB_ERR_BAD_FS'.
43025 * fs/sfs.c (grub_sfs_mount): Likewise.
43026 * fs/xfs.c (grub_xfs_mount): Likewise.
43028 * include/grub/disk.h (enum grub_disk_dev_id): Add
43029 `GRUB_DISK_DEVICE_HOST_ID'.
43031 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
43033 2007-07-24 Jerone Young <jerone@gmail.com>
43035 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
43036 modules for compilation.
43037 * conf/powerpc-ieee1275.rmk: Likewise.
43039 * include/multiboot.h: Move multiboot definitions to one file. Rename
43040 many definitions to not get grub specific.
43041 * include/multiboot2.h: Create header with multiboot 2 definitions.
43042 * include/grub/multiboot.h: Header for grub specific function
43043 prototypes and definitions.
43044 * include/grub/multiboot2.h: Likewise.
43045 * include/grub/multiboot_loader.h: Likewise.
43046 * include/grub/i386/pc/multiboot.h: Removed.
43047 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
43049 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
43050 and 2 to allow for one multiboot and module commands.
43051 * loader/multiboot2.c: Add multiboot2 functionality.
43052 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
43053 and definition names.
43054 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
43056 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
43057 ieee1275 specific multiboot2 code.
43059 * kern/i386/pc/startup.S: Change headers and definition names for
43060 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
43062 2007-07-22 Robert Millan <rmh@aybabtu.com>
43064 * geninitheader.sh: Process file specified in first parameter rather
43065 than hardcoding grub_modules_init.lst.
43066 * geninit.sh: Likewise. Also, construct header name dynamically rather
43067 than hardcoding grub_modules_init.h.
43069 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
43070 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
43071 grub_probe_init.[ch] and grub_setup_init.[ch].
43073 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
43074 grub_modules_init.h with grub_emu_init.h.
43075 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
43076 grub_probe_init.[ch] files.
43077 * conf/i386-efi.rmk: Likewise.
43078 * conf/i386-pc.rmk: Likewise.
43079 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
43080 grub_setup_init.[ch] files.
43082 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
43083 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
43084 to initialize modules rather than a list of hardcoded functions.
43085 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
43086 grub_init_all() to initialize modules rather than a list of hardcoded
43089 2007-07-22 Robert Millan <rmh@aybabtu.com>
43091 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
43092 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
43094 2007-07-22 Robert Millan <rmh@aybabtu.com>
43096 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
43097 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
43098 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
43099 flag when running on SmartFirmware.
43100 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
43101 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
43104 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
43105 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
43106 rather than decreasing it.
43108 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
43109 there's not enough space to do it, fail in the same way as when it
43110 can't be done because there are no partitions.
43112 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
43113 when nvsetenv failed.
43115 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
43117 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
43118 because this rule is automatically generated.
43119 (grub-mkrescue): Removed for the same reason as above.
43121 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
43123 Migrate to GNU General Public License Version 3.
43125 * COPYING: Replaced with the plain text version of GPLv3.
43127 * config.guess: Updated from gnulib.
43128 * config.sub: Likewise.
43130 * geninit.sh: Output a GPLv3 copyright notice.
43131 * geninitheader.sh: Likewise.
43132 * genmodsrc.sh: Likewise.
43133 * gensymlist.sh.in: Likewise.
43135 * boot/i386/pc/boot.S: Upgraded to GPLv3.
43136 * boot/i386/pc/diskboot.S: Likewise.
43137 * boot/i386/pc/pxeboot.S: Likewise.
43138 * commands/blocklist.c: Likewise.
43139 * commands/boot.c: Likewise.
43140 * commands/cat.c: Likewise.
43141 * commands/cmp.c: Likewise.
43142 * commands/configfile.c: Likewise.
43143 * commands/echo.c: Likewise.
43144 * commands/help.c: Likewise.
43145 * commands/ls.c: Likewise.
43146 * commands/search.c: Likewise.
43147 * commands/terminal.c: Likewise.
43148 * commands/test.c: Likewise.
43149 * commands/videotest.c: Likewise.
43150 * commands/i386/cpuid.c: Likewise.
43151 * commands/i386/pc/halt.c: Likewise.
43152 * commands/i386/pc/play.c: Likewise.
43153 * commands/i386/pc/reboot.c: Likewise.
43154 * commands/i386/pc/vbeinfo.c: Likewise.
43155 * commands/i386/pc/vbetest.c: Likewise.
43156 * commands/ieee1275/halt.c: Likewise.
43157 * commands/ieee1275/reboot.c: Likewise.
43158 * commands/ieee1275/suspend.c: Likewise.
43159 * disk/loopback.c: Likewise.
43160 * disk/lvm.c: Likewise.
43161 * disk/raid.c: Likewise.
43162 * disk/efi/efidisk.c: Likewise.
43163 * disk/i386/pc/biosdisk.c: Likewise.
43164 * disk/ieee1275/ofdisk.c: Likewise.
43165 * font/manager.c: Likewise.
43166 * fs/affs.c: Likewise.
43167 * fs/ext2.c: Likewise.
43168 * fs/fat.c: Likewise.
43169 * fs/fshelp.c: Likewise.
43170 * fs/hfs.c: Likewise.
43171 * fs/hfsplus.c: Likewise.
43172 * fs/iso9660.c: Likewise.
43173 * fs/jfs.c: Likewise.
43174 * fs/minix.c: Likewise.
43175 * fs/sfs.c: Likewise.
43176 * fs/ufs.c: Likewise.
43177 * fs/xfs.c: Likewise.
43178 * hello/hello.c: Likewise.
43179 * include/grub/acorn_filecore.h: Likewise.
43180 * include/grub/arg.h: Likewise.
43181 * include/grub/bitmap.h: Likewise.
43182 * include/grub/boot.h: Likewise.
43183 * include/grub/cache.h: Likewise.
43184 * include/grub/device.h: Likewise.
43185 * include/grub/disk.h: Likewise.
43186 * include/grub/dl.h: Likewise.
43187 * include/grub/elfload.h: Likewise.
43188 * include/grub/env.h: Likewise.
43189 * include/grub/err.h: Likewise.
43190 * include/grub/file.h: Likewise.
43191 * include/grub/font.h: Likewise.
43192 * include/grub/fs.h: Likewise.
43193 * include/grub/fshelp.h: Likewise.
43194 * include/grub/gzio.h: Likewise.
43195 * include/grub/hfs.h: Likewise.
43196 * include/grub/kernel.h: Likewise.
43197 * include/grub/loader.h: Likewise.
43198 * include/grub/lvm.h: Likewise.
43199 * include/grub/misc.h: Likewise.
43200 * include/grub/mm.h: Likewise.
43201 * include/grub/net.h: Likewise.
43202 * include/grub/normal.h: Likewise.
43203 * include/grub/parser.h: Likewise.
43204 * include/grub/partition.h: Likewise.
43205 * include/grub/pc_partition.h: Likewise.
43206 * include/grub/raid.h: Likewise.
43207 * include/grub/rescue.h: Likewise.
43208 * include/grub/script.h: Likewise.
43209 * include/grub/setjmp.h: Likewise.
43210 * include/grub/symbol.h: Likewise.
43211 * include/grub/term.h: Likewise.
43212 * include/grub/terminfo.h: Likewise.
43213 * include/grub/tparm.h: Likewise.
43214 * include/grub/types.h: Likewise.
43215 * include/grub/video.h: Likewise.
43216 * include/grub/efi/api.h: Likewise.
43217 * include/grub/efi/chainloader.h: Likewise.
43218 * include/grub/efi/console.h: Likewise.
43219 * include/grub/efi/console_control.h: Likewise.
43220 * include/grub/efi/disk.h: Likewise.
43221 * include/grub/efi/efi.h: Likewise.
43222 * include/grub/efi/pe32.h: Likewise.
43223 * include/grub/efi/time.h: Likewise.
43224 * include/grub/i386/linux.h: Likewise.
43225 * include/grub/i386/setjmp.h: Likewise.
43226 * include/grub/i386/types.h: Likewise.
43227 * include/grub/i386/efi/kernel.h: Likewise.
43228 * include/grub/i386/efi/loader.h: Likewise.
43229 * include/grub/i386/efi/time.h: Likewise.
43230 * include/grub/i386/pc/biosdisk.h: Likewise.
43231 * include/grub/i386/pc/boot.h: Likewise.
43232 * include/grub/i386/pc/chainloader.h: Likewise.
43233 * include/grub/i386/pc/console.h: Likewise.
43234 * include/grub/i386/pc/init.h: Likewise.
43235 * include/grub/i386/pc/kernel.h: Likewise.
43236 * include/grub/i386/pc/loader.h: Likewise.
43237 * include/grub/i386/pc/memory.h: Likewise.
43238 * include/grub/i386/pc/multiboot.h: Likewise.
43239 * include/grub/i386/pc/serial.h: Likewise.
43240 * include/grub/i386/pc/time.h: Likewise.
43241 * include/grub/i386/pc/vbe.h: Likewise.
43242 * include/grub/i386/pc/vbeblit.h: Likewise.
43243 * include/grub/i386/pc/vbefill.h: Likewise.
43244 * include/grub/i386/pc/vbeutil.h: Likewise.
43245 * include/grub/i386/pc/vga.h: Likewise.
43246 * include/grub/ieee1275/ieee1275.h: Likewise.
43247 * include/grub/ieee1275/ofdisk.h: Likewise.
43248 * include/grub/powerpc/libgcc.h: Likewise.
43249 * include/grub/powerpc/setjmp.h: Likewise.
43250 * include/grub/powerpc/types.h: Likewise.
43251 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
43252 * include/grub/powerpc/ieee1275/console.h: Likewise.
43253 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
43254 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
43255 * include/grub/powerpc/ieee1275/loader.h: Likewise.
43256 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
43257 * include/grub/powerpc/ieee1275/time.h: Likewise.
43258 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
43259 * include/grub/sparc64/libgcc.h: Likewise.
43260 * include/grub/sparc64/setjmp.h: Likewise.
43261 * include/grub/sparc64/types.h: Likewise.
43262 * include/grub/sparc64/ieee1275/console.h: Likewise.
43263 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
43264 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
43265 * include/grub/sparc64/ieee1275/time.h: Likewise.
43266 * include/grub/util/biosdisk.h: Likewise.
43267 * include/grub/util/getroot.h: Likewise.
43268 * include/grub/util/lvm.h: Likewise.
43269 * include/grub/util/misc.h: Likewise.
43270 * include/grub/util/raid.h: Likewise.
43271 * include/grub/util/resolve.h: Likewise.
43272 * io/gzio.c: Likewise.
43273 * kern/device.c: Likewise.
43274 * kern/disk.c: Likewise.
43275 * kern/dl.c: Likewise.
43276 * kern/elf.c: Likewise.
43277 * kern/env.c: Likewise.
43278 * kern/err.c: Likewise.
43279 * kern/file.c: Likewise.
43280 * kern/fs.c: Likewise.
43281 * kern/loader.c: Likewise.
43282 * kern/main.c: Likewise.
43283 * kern/misc.c: Likewise.
43284 * kern/mm.c: Likewise.
43285 * kern/parser.c: Likewise.
43286 * kern/partition.c: Likewise.
43287 * kern/rescue.c: Likewise.
43288 * kern/term.c: Likewise.
43289 * kern/efi/efi.c: Likewise.
43290 * kern/efi/init.c: Likewise.
43291 * kern/efi/mm.c: Likewise.
43292 * kern/i386/dl.c: Likewise.
43293 * kern/i386/efi/init.c: Likewise.
43294 * kern/i386/efi/startup.S: Likewise.
43295 * kern/i386/pc/init.c: Likewise.
43296 * kern/i386/pc/lzo1x.S: Likewise.
43297 * kern/i386/pc/startup.S: Likewise.
43298 * kern/ieee1275/ieee1275.c: Likewise.
43299 * kern/powerpc/cache.S: Likewise.
43300 * kern/powerpc/dl.c: Likewise.
43301 * kern/powerpc/ieee1275/cmain.c: Likewise.
43302 * kern/powerpc/ieee1275/crt0.S: Likewise.
43303 * kern/powerpc/ieee1275/init.c: Likewise.
43304 * kern/powerpc/ieee1275/openfw.c: Likewise.
43305 * kern/sparc64/cache.S: Likewise.
43306 * kern/sparc64/dl.c: Likewise.
43307 * kern/sparc64/ieee1275/init.c: Likewise.
43308 * kern/sparc64/ieee1275/openfw.c: Likewise.
43309 * loader/efi/chainloader.c: Likewise.
43310 * loader/efi/chainloader_normal.c: Likewise.
43311 * loader/i386/efi/linux.c: Likewise.
43312 * loader/i386/efi/linux_normal.c: Likewise.
43313 * loader/i386/pc/chainloader.c: Likewise.
43314 * loader/i386/pc/chainloader_normal.c: Likewise.
43315 * loader/i386/pc/linux.c: Likewise.
43316 * loader/i386/pc/linux_normal.c: Likewise.
43317 * loader/i386/pc/multiboot.c: Likewise.
43318 * loader/i386/pc/multiboot_normal.c: Likewise.
43319 * loader/powerpc/ieee1275/linux.c: Likewise.
43320 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
43321 * normal/arg.c: Likewise.
43322 * normal/cmdline.c: Likewise.
43323 * normal/command.c: Likewise.
43324 * normal/completion.c: Likewise.
43325 * normal/execute.c: Likewise.
43326 * normal/function.c: Likewise.
43327 * normal/lexer.c: Likewise.
43328 * normal/main.c: Likewise.
43329 * normal/menu.c: Likewise.
43330 * normal/menu_entry.c: Likewise.
43331 * normal/misc.c: Likewise.
43332 * normal/parser.y: Likewise.
43333 * normal/script.c: Likewise.
43334 * normal/i386/setjmp.S: Likewise.
43335 * normal/powerpc/setjmp.S: Likewise.
43336 * normal/sparc64/setjmp.S: Likewise.
43337 * partmap/acorn.c: Likewise.
43338 * partmap/amiga.c: Likewise.
43339 * partmap/apple.c: Likewise.
43340 * partmap/gpt.c: Likewise.
43341 * partmap/pc.c: Likewise.
43342 * partmap/sun.c: Likewise.
43343 * term/gfxterm.c: Likewise.
43344 * term/terminfo.c: Likewise.
43345 * term/efi/console.c: Likewise.
43346 * term/i386/pc/console.c: Likewise.
43347 * term/i386/pc/serial.c: Likewise.
43348 * term/i386/pc/vesafb.c: Likewise.
43349 * term/i386/pc/vga.c: Likewise.
43350 * term/ieee1275/ofconsole.c: Likewise.
43351 * util/biosdisk.c: Likewise.
43352 * util/console.c: Likewise.
43353 * util/genmoddep.c: Likewise.
43354 * util/getroot.c: Likewise.
43355 * util/grub-emu.c: Likewise.
43356 * util/grub-mkdevicemap.c: Likewise.
43357 * util/grub-probe.c: Likewise.
43358 * util/lvm.c: Likewise.
43359 * util/misc.c: Likewise.
43360 * util/raid.c: Likewise.
43361 * util/resolve.c: Likewise.
43362 * util/update-grub.in: Likewise.
43363 * util/update-grub_lib.in: Likewise.
43364 * util/grub.d/00_header.in: Likewise.
43365 * util/grub.d/10_hurd.in: Likewise.
43366 * util/grub.d/10_linux.in: Likewise.
43367 * util/i386/efi/grub-install.in: Likewise.
43368 * util/i386/efi/grub-mkimage.c: Likewise.
43369 * util/i386/pc/grub-install.in: Likewise.
43370 * util/i386/pc/grub-mkimage.c: Likewise.
43371 * util/i386/pc/grub-mkrescue.in: Likewise.
43372 * util/i386/pc/grub-setup.c: Likewise.
43373 * util/i386/pc/misc.c: Likewise.
43374 * util/powerpc/ieee1275/grub-install.in: Likewise.
43375 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
43376 * util/powerpc/ieee1275/misc.c: Likewise.
43377 * video/bitmap.c: Likewise.
43378 * video/video.c: Likewise.
43379 * video/i386/pc/vbe.c: Likewise.
43380 * video/i386/pc/vbeblit.c: Likewise.
43381 * video/i386/pc/vbefill.c: Likewise.
43382 * video/i386/pc/vbeutil.c: Likewise.
43383 * video/readers/tga.c: Likewise.
43385 2007-07-02 Robert Millan <rmh@aybabtu.com>
43387 * conf/i386-efi.rmk: Replace obsolete reference to
43388 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
43389 with util/getroot.c.
43390 * conf/powerpc-ieee1275.rmk: Likewise.
43391 * conf/sparc64-ieee1275.rmk: Likewise.
43393 * util/grub-emu.c (main): Fix unchecked pointer handling.
43395 2007-07-02 Robert Millan <rmh@aybabtu.com>
43397 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
43398 invocation to fail, in order to support partition-less media.
43400 * util/i386/pc/grub-install.in: Likewise.
43402 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
43403 which fs or partmap modules are needed (akin to its sister scripts).
43405 Also use grub-probe to get rid of unportable /proc/mounts check.
43407 Print the same informational message that the other scripts do, before
43410 2007-06-23 Robert Millan <rmh@aybabtu.com>
43412 * util/update-grub_lib.in (font_path): New function. Determine whether
43413 a font file can be found and, if so, echo the GRUB path to it.
43415 * util/update-grub.in: Handle multiple terminals depending on user
43416 input, platform availability and font file presence. Propagate
43417 variables of our findings to /etc/grub.d/ children.
43419 * util/grub.d/00_header.in: Handle multiple terminals, based on
43420 environment setup by update-grub.
43422 2007-06-23 Robert Millan <rmh@aybabtu.com>
43424 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
43426 2007-06-21 Robert Millan <rmh@aybabtu.com>
43428 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
43429 indicate end of data section in kernel image.
43430 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
43431 GRUB_KERNEL_MACHINE_DATA_END.
43433 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
43435 * kern/i386/efi/startup.S: Likewise.
43437 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
43438 during image generation. Implement --prefix option to override this
43440 * util/i386/efi/grub-mkimage.c: Likewise.
43442 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
43443 code to make path relative to its root into a separate function.
43445 * util/i386/pc/grub-install.in: Use newly provided
43446 make_system_path_relative_to_its_root() to convert ${grubdir}, then
43447 pass the result to grub-install --prefix.
43449 2007-06-13 Robert Millan <rmh@aybabtu.com>
43451 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
43452 DEFAULT_DEVICE_MAP.
43453 * util/grub-emu.c: Use above definitions from misc.h instead of
43455 * util/grub-mkdevicemap.c: Likewise.
43456 * util/i386/pc/grub-setup.c: Likewise.
43457 * util/grub-probe.c: Likewise.
43458 (probe): Abort with grub_util_error() when either
43459 grub_guess_root_device or grub_util_get_grub_dev fails.
43461 2007-06-12 Robert Millan <rmh@aybabtu.com>
43463 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
43464 "pager" assignment.
43465 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
43467 * util/grub-probe.c (probe): Likewise for "drive_name".
43469 2007-06-11 Robert Millan <rmh@aybabtu.com>
43471 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
43472 not just the cdrom one.
43474 2007-06-11 Robert Millan <rmh@aybabtu.com>
43476 * util/i386/pc/grub-mkrescue.in: Add "set -e".
43477 Add --pkglibdir=DIR option to override pkglibdir.
43478 Mention --image-type=TYPE in help output.
43479 Fix --grub-mkimage (it was a no-op).
43480 Abort gracefully when no parameter is given.
43482 2007-06-11 Robert Millan <rmh@aybabtu.com>
43484 * util/i386/pc/grub-mkrescue.in: New file.
43485 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
43486 * Makefile.in: Handle bin_SCRIPTS.
43488 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
43490 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
43491 list of video modes.
43493 2007-06-06 Robert Millan <rmh@aybabtu.com>
43495 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
43496 file doesn't exist, or if it is in a filesystem grub can't read.
43498 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
43499 not abort if GRUB_DRIVE could not be defined. Rearrange generated
43500 header comment to fit in 80 columns when the variables are resolved.
43502 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
43503 could be identified by update-grub. Remove redundant check for
43504 unifont.pff existence (since convert_system_path_to_grub_path now
43507 2007-06-04 Robert Millan <rmh@aybabtu.com>
43509 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
43511 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
43513 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
43515 2007-06-04 Robert Millan <rmh@aybabtu.com>
43517 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
43519 * include/grub/partition.h: Declare grub_apple_partition_map_init and
43520 grub_apple_partition_map_fini.
43523 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
43524 to access >2 TiB disks).
43526 Print disk->total_sectors with %llu instead of %lu, since this
43527 variable is always 64-bit (prevents wrong disk size from being displayed
43528 on either >2 TiB disk or big-endian CPU).
43530 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
43531 into a generic case that supports all (sane) partition maps.
43533 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
43536 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
43537 and grub_apple_partition_map_fini() after that.
43539 2007-06-01 Robert Millan <rmh@aybabtu.com>
43541 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
43543 * util/grub.d/00_header.in: Only enable gfxterm when
43544 convert_system_path_to_grub_path() succeeds.
43546 2007-05-20 Robert Millan <rmh@aybabtu.com>
43548 * util/update-grub_lib.in: New file.
43549 * DISTLIST: Add update-grub_lib.in.
43550 * conf/common.rmk: Generate update-grub_lib and install it in
43552 * Makefile.in: Add install routine for $(lib_DATA).
43554 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
43555 function provided by update-grub_lib to support arbitrary paths of
43557 * util/update-grub.in: Use convert_system_path_to_grub_path() to
43558 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
43560 2007-05-19 Robert Millan <rmh@aybabtu.com>
43562 * commands/i386/cpuid.c: New module.
43563 * DISTLIST: Add it.
43564 * conf/i386-efi.rmk: Enable cpuid.mod.
43565 * conf/i386-pc.rmk: Likewise.
43567 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
43569 * kern/disk.c (grub_disk_read): Check return value of
43572 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
43574 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
43576 * disk/raid.c (grub_raid_open): Likewise.
43578 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
43580 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
43581 stack instead of on the heap.
43583 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
43584 before doing a read on it.
43586 * configure.ac: Only use -fno-stack-protector for the target
43589 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
43591 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
43592 __attribute_ ((unused)) to mode_type argument.
43594 * util/getroot.c (grub_guess_root_device): Fix #endif.
43596 * kern/misc.c (memcmp): Fix prototype.
43598 * include/grub/partition.h [GRUB_UTIL]
43599 (grub_gpt_partition_map_init): Add prototype.
43600 (grub_gpt_partition_map_fini): Likewise.
43602 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
43603 at the right place.
43605 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
43606 (grub_fat_read_data): Likewise.
43607 (grub_fat_find_dir): Likewise.
43609 * font/manager.c (find_glyph): Make table a const.
43610 (grub_font_get_glyph): Remove bitmap from if statement.
43612 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
43614 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
43615 code, first search for device in /dev/mapper, then in /dev.
43616 (grub_util_get_grub_dev): New function.
43617 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
43619 * util/grub-probe.c (probe): Remove check for RAID, call
43620 grub_util_get_grub_dev() instead of
43621 grub_util_biosdisk_get_grub_dev().
43622 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
43623 grub_util_biosdisk_get_grub_dev().
43624 * util/i386/pc/grub-setup.c (main): Likewise.
43626 2007-05-16 Robert Millan <rmh@aybabtu.com>
43628 * DISTLIST: Update for the latest changes.
43629 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
43630 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
43631 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
43632 grub/util/biosdisk.h.
43633 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
43634 grub/util/biosdisk.h.
43636 2007-05-16 Robert Millan <rmh@aybabtu.com>
43638 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
43640 2007-05-16 Robert Millan <rmh@aybabtu.com>
43642 * util/i386/efi/grub-install.in: New.
43643 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
43644 newly added grub-install.
43645 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
43647 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
43648 grub/util/biosdisk.h.
43649 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
43650 grub/util/biosdisk.h.
43652 2007-05-16 Robert Millan <rmh@aybabtu.com>
43654 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
43655 * include/grub/util/biosdisk.h: ... here.
43656 * util/i386/pc/biosdisk.c: Moved to ...
43657 * util/biosdisk.c: ... here.
43658 * util/i386/pc/getroot.c: Moved to ...
43659 * util/getroot.c: ... here.
43660 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
43661 * util/grub-mkdevicemap.c: ... here.
43662 * util/i386/pc/grub-probe.c: Moved to ...
43663 * util/grub-probe.c: ... here.
43665 2007-05-15 Robert Millan <rmh@aybabtu.com>
43667 * util/update-grub.in: Remove duplicated line in grub.cfg header
43670 2007-05-13 Robert Millan <rmh@aybabtu.com>
43672 * util/update-grub.in: Fix a few assumptions about the devices holding
43673 /, /boot and /boot/grub being the same.
43674 * util/grub.d/00_header.in: Likewise.
43675 * util/grub.d/10_hurd.in: Likewise.
43676 * util/grub.d/10_linux.in: Likewise.
43678 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
43679 patterns. Use that to define the `.old' suffix as older than `'.
43681 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
43683 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
43684 the grub.cfg header message.
43686 2007-05-11 Robert Millan <rmh@aybabtu.com>
43688 * util/update-grub.in: Create device.map if it doesn't already exist,
43689 before attempting to run grub-probe.
43690 Check for grub-probe and grub-mkdevicemap with the same code
43691 grub-install is using.
43694 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
43696 * Makefile.in: Add the datarootdir autoconf variable.
43698 2007-05-09 Robert Millan <rmh@aybabtu.com>
43700 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
43701 fail gracefully if dev->disk->partition == NULL.
43703 2007-05-07 Robert Millan <rmh@aybabtu.com>
43705 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
43706 determine partition map module.
43707 * util/i386/pc/grub-install.in: Use this feature to decide which
43708 partition module to load, instead of hardcoding pc and gpt.
43710 2007-05-07 Robert Millan <rmh@aybabtu.com>
43712 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
43713 source directory differs from build directory.
43715 2007-05-05 Robert Millan <rmh@aybabtu.com>
43717 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
43720 2007-05-05 Robert Millan <rmh@aybabtu.com>
43722 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
43724 2007-05-05 Robert Millan <rmh@aybabtu.com>
43726 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
43727 command-line arguments via ${GRUB_CMDLINE_LINUX}.
43729 2007-05-05 Robert Millan <rmh@aybabtu.com>
43731 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
43732 (grub_probe_SOURCES): Likewise.
43733 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
43734 GPT and initialize dos_part and bsd_part accordingly.
43735 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
43737 (main): Activate gpt module for use during partition identification,
43738 and deactivate it afterwards.
43739 * util/i386/pc/grub-install.in: Add gpt module to core.img.
43740 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
43741 partition identification, and deactivate it afterwards.
43743 2007-05-05 Robert Millan <rmh@aybabtu.com>
43745 * term/i386/pc/console.c (grub_console_fini): Call
43746 grub_term_set_current() before grub_term_unregister().
43748 2007-05-04 Robert Millan <rmh@aybabtu.com>
43750 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
43751 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
43752 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
43753 and update-grub_DATA.
43754 * conf/common.rmk: Build and install update-grub components.
43755 * conf/common.mk: Regenerate.
43756 * util/update-grub.in: New. Core of update-grub.
43757 * util/grub.d/00_header.in: New. Generates grub.cfg header.
43758 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
43759 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
43760 * util/grub.d/README: New. Document grub.d directory layout.
43762 2007-05-01 Robert Millan <rmh@aybabtu.com>
43764 * util/grub-emu.c: Move initialization functions
43765 grub_util_biosdisk_init() and grub_init_all() before
43766 grub_util_biosdisk_get_grub_dev(), which relies on them.
43768 2007-04-19 Robert Millan <rmh@aybabtu.com>
43770 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
43773 2007-04-18 Jerone Young <jerone@gmail.com>
43775 * kernel/elf.c: Add missing parenthesis for conditional statement
43778 2007-04-10 Jerone Young <jerone@gmail.com>
43780 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
43781 continue on and look for device node with real device name.
43783 2007-04-10 Jerone Young <jerone@gmail.com>
43785 * configure.ac: Add argument for autoconf to use transformation
43787 * Makefile.in: Add autoconf package transformation code.
43788 * util/i386/pc/grub-install.in: Likewise.
43789 * util/powerpc/ieee1275/grub-install.in: Likewise.
43791 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
43793 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
43794 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
43795 (EXT2_REVISION): Likewise.
43796 (EXT2_INODE_SIZE): Likewise.
43797 (struct grub_ext2_block_group): Added a missing member
43799 (grub_ext2_read_inode): Divide by the inode size in a superblock
43800 instead of 128 to obtain INODES_PER_BLOCK.
43801 Use the macro EXT2_INODE_SIZE instead of directly using
43802 SBLOCK->INODE_SIZE.
43804 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
43806 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
43807 superblock instead of the structure size to compute an
43808 offset. This fixes the problem that GRUB could not read a
43809 filesystem when inode size is different from 128-byte.
43811 2007-03-05 Marco Gerards <marco@gnu.org>
43813 * normal/main.c (read_config_file): When "menu" is not set, create
43814 an initial context.
43816 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
43818 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
43819 (HEAP_LIMIT): New macro.
43820 (grub_claim_heap): Claim memory up to `heaplimit'.
43822 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
43824 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
43825 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
43826 (_start): Likewise.
43827 (grub_arch_modules_addr): Return address after `_end'.
43828 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
43829 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
43830 (add_segments): Calculate `_end' from phdr size and location.
43831 (ALIGN_UP): Moved to ...
43832 * include/grub/misc.h: here.
43833 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
43835 (GRUB_IEEE1275_MODULE_BASE): Removed.
43837 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43839 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
43842 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43844 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
43846 (grub_elf64_load_hook_t): Likewise.
43847 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
43850 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43852 * kern/mm.c: Update copyright.
43853 (grub_mm_debug): Correct syntax error.
43854 (grub_mm_dump_free): New function.
43855 (grub_debug_free): Call `grub_free'.
43856 * include/grub/mm.h: Update copyright.
43857 (grub_mm_dump_free): Add declaration.
43859 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
43861 * include/grub/ieee1275/ieee1275.h: Update copyright.
43862 * kern/powerpc/ieee1275/init.c: Likewise.
43863 * kern/powerpc/ieee1275/openfw.c: Likewise.
43865 * loader/powerpc/ieee1275/linux.c: Likewise.
43866 * include/grub/elfload.h: Likewise.
43867 * kern/elf.c: Likewise.
43868 (grub_elf32_load): Pass `base' and `size' parameters. Update all
43870 (grub_elf64_load): Likewise.
43871 (grub_elf32_load_segment): Move to a nested function.
43872 (grub_elf64_load_segment): Likewise.
43874 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
43876 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
43878 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
43879 (grub_heap_len): Likewise.
43880 (HEAP_SIZE): New macro.
43881 (grub_claim_heap): New function.
43882 (grub_machine_init): Don't claim heap directly. Call
43884 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
43885 (grub_available_iterate): New function.
43887 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
43889 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
43890 * configure.ac: Use it for testing the HOST and TARGET compilers.
43892 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
43894 * Makefile.in (enable_grub_emu): New variable.
43895 * configure.ac (--enable-grub-emu): New option.
43896 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
43897 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
43898 * conf/i386-pc.rmk: Likewise.
43899 * conf/powerpc-ieee1275.rmk: Likewise.
43900 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
43902 2006-12-12 Marco Gerards <marco@gnu.org>
43904 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
43906 * kern/env.c (grub_env_unset): Don't free the member `value' when
43907 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
43910 * normal/main.c (current_menu): Removed.
43911 (free_menu): Unset the `menu' environment variable.
43912 (grub_normal_menu_addentry): Make use of the environment variable
43913 `menu', instead of using the global `current_menu'. Allocate
43914 memory for the sourcecode of this entry.
43915 (read_config_file): New argument `nested', changed all callers.
43916 Only in the case of a new context, initialize a new menu. Set the
43917 `menu' environment variable.
43918 (grub_normal_execute): Don't set and unset the environment
43919 variable `menu' here anymore. Only free the menu when leaving the
43922 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
43925 2006-12-11 Marco Gerards <marco@gnu.org>
43927 * normal/menu_entry.c (run): Fix off by one bug so the last line
43928 is executed. Move the loader check to outside the loop.
43930 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
43932 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
43934 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
43936 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
43937 the number of sectors. Reported by Andrey Shuvikov
43938 <mr_hyro@yahoo.com>.
43940 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
43942 * kern/disk.c (grub_disk_read): When there is a read error, always
43943 try to read only the necessary data.
43945 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
43947 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
43949 [GRUB_UTIL] (grub_raid_fini): Likewise.
43950 [GRUB_UTIL] (grub_lvm_init): Likewise.
43951 [GRUB_UTIL] (grub_lvm_fini): Likewise.
43952 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
43953 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
43954 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
43955 and grub_raid_fini().
43957 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
43959 * include/grub/types.h (__unused): Rename to UNUSED.
43960 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
43961 (grub_elf64_size): Likewise.
43963 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
43965 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
43966 grub_error_push and grub_error_pop in the error-handling path.
43967 (grub_elf32_load_segment): Only call grub_file_read with non-zero
43970 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
43972 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
43973 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43974 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43975 (kernel_elf_SOURCES): Likewise.
43976 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
43977 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
43978 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43979 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43980 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
43981 (elf_mod_SOURCES): New variable.
43982 (elf_mod_CFLAGS): Likewise.
43983 (elf_mod_LDFLAGS): Likewise.
43984 * include/grub/types.h (__unused): New macro.
43985 * include/grub/elfload.h: New file.
43986 * kern/elf.c: Likewise.
43987 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
43988 (ELF32_LOADMASK): New macro.
43989 (ELF64_LOADMASK): Likewise.
43990 (vmlinux): Removed.
43991 (grub_linux_load32): New function.
43992 (grub_linux_load64): Likewise.
43993 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
43994 Use grub_elf_t instead of grub_file_t.
43996 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
43998 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
43999 `catch_result' to struct set_color_args.
44001 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44003 * normal/menu.c: Include grub/script.h.
44004 * normal/menu_entry.c: Likewise.
44005 * include/grub/normal.h: Do not include grub/script.h.
44007 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44009 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
44011 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44013 * kern/disk.c (grub_disk_open): Print debug messages when opening a
44015 (grub_disk_close): Print debug messages when closing a disk.
44016 (grub_disk_read): Print debug messages when disk read fails.
44017 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
44019 * kern/partition.c: Include misc.h.
44020 (grub_partition_iterate): Print debug messages when detecting
44023 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44025 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
44027 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
44029 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
44031 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44032 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
44034 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
44036 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
44037 instead of sizeof(lv). Patch by Michael Guntsche.
44039 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
44041 * disk/lvm.c: Rename VGS to VG_LIST.
44042 (grub_lvm_iterate): Change VGS->LV to VG-LV.
44043 (grub_lvm_open): Likewise.
44044 Thanks to Michael Guntsche for finding this bug.
44046 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44048 * configure.ac (AC_INIT): Bumped to 1.95.
44050 2006-10-14 Robert Millan <rmh@aybabtu.com>
44052 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
44053 with "/dev/.static/dev/md".
44055 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
44057 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
44058 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
44059 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
44060 DRIVE_NAME are always freed.
44062 * util/i386/pc/biosdisk.c (make_device_name): Add one into
44063 DOS_PART, as a DOS partition is counted from one instead of zero
44064 now. Reported by Robert Millan.
44066 2006-10-14 Robert Millan <rmh@aybabtu.com>
44068 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
44069 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
44070 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
44071 string returned by grub_guess_root_device.
44072 * util/i386/pc/grub-setup.c: Likewise.
44073 * util/i386/pc/grub-probefs.c: Likewise.
44075 * util/i386/pc/grub-probefs.c: Rename to ...
44076 * util/i386/pc/grub-probe.c: ... this.
44077 * DISTLIST: Remove grub-probefs, add grub-probe.
44078 * conf/i386-efi.rmk: Likewise.
44079 * conf/i386-pc.rmk: Likewise.
44080 * util/i386/pc/grub-install.in: Likewise.
44082 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
44083 choose which information we want to print.
44085 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
44087 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
44088 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
44089 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
44090 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
44091 video/readers/tga.c and video/i386/pc/vbeutil.c.
44093 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
44095 Added support for RAID and LVM.
44097 * disk/lvm.c: New file.
44098 * disk/raid.c: Likewise.
44099 * include/grub/lvm.h: Likewise.
44100 * include/grub/raid.h: Likewise.
44101 * include/grub/util/lvm.h: Likewise.
44102 * include/grub/util/raid.h: Likewise.
44103 * util/lvm.c: Likewise.
44104 * util/raid.c: Likewise.
44106 * include/grub/disk.h (grub_disk_dev_id): Add
44107 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
44108 (grub_disk_get_size): New prototype.
44109 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
44110 returns a partition.
44111 (grub_disk_get_size): New function.
44113 * kern/i386/pc/init.c (make_install_device): Copy the prefix
44114 verbatim if grub_install_dos_part is -2.
44116 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
44119 * util/i386/pc/grub-setup.c (setup): New argument
44120 MUST_EMBED. Force embedding of GRUB when the argument is
44121 true. Close FILE before returning.
44122 (main): Add support for RAID and LVM.
44124 * conf/common.rmk: Add RAID and LVM modules.
44125 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
44127 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
44129 * kern/misc.c (grub_strstr): New function.
44130 * include/grub/misc.h (grub_strstr): New prototype.
44132 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
44134 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
44136 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
44138 * kern/misc.c (grub_strtoull): Guess the base only if not
44141 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
44143 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
44146 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
44148 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
44150 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
44151 Remove `flags' argument. All callers changed.
44152 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
44153 (IEEE1275_IHANDLE_INVALID): New variable.
44154 (IEEE1275_CELL_INVALID): New variable.
44155 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
44156 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
44157 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
44158 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
44159 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
44160 codes from Open Firmware. All callers updated.
44161 (grub_ieee1275_next_property): Directly return Open Firmware return
44163 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
44164 Standardize error checking from `grub_ieee1275_get_property'.
44165 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
44166 `devalias' to `aliases'. Correct comments. Consolidate error paths.
44168 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
44170 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
44171 `instance_to_package_args' to `instance_to_path_args'.
44173 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
44174 `grub_ieee1275_chosen'.
44176 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
44177 `grub_ieee1275_interpret'.
44179 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
44181 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
44183 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
44185 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
44186 (__cmpdi): Likewise.
44188 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
44189 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
44192 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
44194 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
44195 to type `grub_ssize_t'.
44196 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
44198 2006-09-22 Marco Gerards <marco@gnu.org>
44200 * normal/script.c (grub_script_create_cmdmenu): Skip leading
44203 2006-09-22 Marco Gerards <marco@gnu.org>
44205 * commands/echo.c: New file.
44207 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
44209 * conf/common.rmk (echo_mod_SOURCES): New variable.
44210 (echo_mod_CFLAGS): Likewise.
44211 (echo_mod_LDFLAGS): Likewise.
44213 2006-09-22 Marco Gerards <marco@gnu.org>
44215 * normal/main.c (get_line): Malloc memory instead of using
44216 preallocated memory. Removed the arguments `cmdline' and
44217 `max_len'. Updated all callers.
44219 2006-09-22 Marco Gerards <marco@gnu.org>
44221 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
44222 (normal_mod_DEPENDENCIES): Likewise.
44224 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
44225 (normal_mod_DEPENDENCIES): Likewise.
44227 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
44229 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
44231 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
44233 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
44234 (normal_mod_DEPENDENCIES): Likewise.
44235 * conf/i386-pc.mk: Regenerate.
44236 * conf/i386-efi.mk: Likewise
44237 * conf/common.mk: Likewise.
44238 * conf/powerpc-ieee1275.mk: Likewise.
44239 * conf/sparc64-ieee1275.mk: Likewise.
44241 2006-09-22 Robert Millan <rmh@aybabtu.com>
44243 Sync with i386 version.
44244 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
44245 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
44247 2006-09-21 Robert Millan <rmh@aybabtu.com>
44249 Import from GRUB Legacy (lib/device.c):
44250 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
44251 (init_device_map) [__linux__]: Add support for I2O devices.
44253 2006-09-14 Marco Gerards <marco@gnu.org>
44255 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
44258 2006-09-14 Robert Millan <rmh@aybabtu.com>
44260 * util/i386/pc/grub-install.in: Skip menu.lst when removing
44263 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
44265 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
44266 before adding it to device.map.
44268 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
44270 * genmk.rb: Let GCC generate dependencies the first time it
44271 compiles a file; using the -MD option.
44272 * conf/common.mk: Regenerate.
44273 * conf/i386-pc.mk: Likewise.
44274 * conf/i386-efi.mk: Likewise.
44275 * conf/powerpc-ieee1275.mk: Likewise.
44276 * conf/sparc64-ieee1275.mk: Likewise.
44278 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
44280 Move the prototypes of grub_setjmp and grub_longjmp to
44281 cpu/setjmp.h, so that each architecture may specify different
44284 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
44285 (grub_longjmp): Likewise.
44286 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
44287 (grub_longjmp): Likewise.
44288 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
44289 (grub_longjmp): Likewise.
44291 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
44292 [!GRUB_UTIL] (grub_longjmp): Removed.
44294 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
44296 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
44297 "color!" method does not return any value.
44299 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
44301 * include/grub/bitmap.h: New file.
44303 * include/grub/i386/pc/vbeutil.h: Likewise.
44305 * video/bitmap.c: Likewise.
44307 * video/readers/tga.c: Likewise.
44309 * video/i386/pc/vbeutil.c: Likewise.
44311 * commands/videotest.c: Code cleanup and updated to reflect to new
44314 * term/gfxterm.c: Likewise.
44316 * video/video.c: Likewise.
44318 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
44319 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
44320 (bitmap_mod_SOURCES): New entry.
44321 (bitmap_mod_CFLAGS): Likewise.
44322 (bitmap_mod_LDFLAGS): Likewise.
44323 (tga_mod_SOURCES): Likewise.
44324 (tga_mod_CFLAGS): Likewise.
44325 (tga_mod_LDFLAGS): Likewise.
44327 * include/grub/video.h (grub_video_blit_operators): New enum type.
44328 (grub_video_render_target): Changed as forward declaration and moved
44329 actual definition to be video driver specific.
44330 (grub_video_adapter.blit_bitmap): Added blitting operator.
44331 (grub_video_adapter.blit_render_target): Likewise.
44332 (grub_video_blit_bitmap): Likewise.
44333 (grub_video_blit_render_target): Likewise.
44335 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
44336 driver specific render target definition.
44337 (grub_video_vbe_map_rgba): Added driver internal helper.
44338 (grub_video_vbe_unmap_color): Updated to use
44339 grub_video_i386_vbeblit_info.
44340 (grub_video_vbe_get_video_ptr): Likewise.
44342 * include/grub/i386/pc/vbeblit.h
44343 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
44344 grub_video_i386_vbeblit_info.
44345 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
44346 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
44347 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
44348 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
44349 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
44350 (grub_video_i386_vbeblit_index_index): Likewise.
44351 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
44352 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
44353 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
44354 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
44356 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
44359 * video/i386/pc/vbeblit.c: Updated to reflect changes on
44360 include/grub/i386/pc/vbeblit.h.
44362 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
44363 Updated to use grub_video_i386_vbeblit_info.
44364 (grub_video_i386_vbefill_R8G8B8): Likewise.
44365 (grub_video_i386_vbefill_index): Likewise.
44366 (grub_video_i386_vbefill): Added generic filler.
44368 * video/i386/pc/vbefill.c: Updated to reflect changes on
44369 include/grub/i386/pc/vbefill.h.
44371 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
44372 grub_video_i386_vbeblit_info.
44373 (grub_video_vbe_unmap_color): Likewise.
44374 (grub_video_vbe_blit_glyph): Likewise.
44375 (grub_video_vbe_scroll): Likewise.
44376 (grub_video_vbe_draw_pixel): Removed function.
44377 (grub_video_vbe_get_pixel): Likewise.
44378 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
44379 updated code to use it.
44380 (common_blitter): Added common blitter for render target and bitmap.
44381 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
44382 (grub_video_vbe_blit_render_target): Likewise.
44384 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
44386 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
44387 is in text mode if there is no console control protocol instance
44390 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
44392 * include/grub/video.h: Code cleanup.
44394 * include/grub/i386/pc/vbe.h: Likewise.
44396 * video/i386/pc/vbe.c: Likewise.
44398 * video/i386/pc/vbeblit.c: Likewise.
44400 * video/i386/pc/vbefill.c: Likewise.
44402 * video/video.c: Likewise. Also added more comments.
44404 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
44406 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
44407 (struct grub_biosdisk_dap): Likewise.
44409 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
44410 linkage settings for all functions.
44412 2006-07-12 Marco Gerards <marco@gnu.org>
44414 * configure.ac (--enable-mm-debug): Fix typo.
44416 * genkernsyms.sh.in: Use proper quoting for `CC'.
44418 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
44420 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
44421 (normal_mod_ASFLAGS): Remove "-m32".
44423 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
44425 * util/misc.c: Include config.h.
44426 [!HAVE_MEMALIGN]: Do not include malloc.h.
44427 (grub_memalign): Use posix_memalign, if present. Then, use
44428 memalign, if present. Otherwise, emit an error.
44430 * util/grub-emu.c: Do not include malloc.h.
44432 * include/grub/util/misc.h: Include unistd.h. This is required for
44433 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
44434 D. Eades III <hde@foobar-qux.org>.
44436 * configure.ac (AC_GNU_SOURCE): Added.
44437 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
44440 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
44442 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
44443 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
44445 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
44447 * include/grub/types.h (grub_host_addr_t): Rename to
44448 grub_target_addr_t.
44449 (grub_host_off_t): Rename to grub_target_off_t.
44450 (grub_host_size_t): Rename to grub_target_size_t.
44451 (grub_host_ssize_t): Rename to grub_target_ssize_t.
44452 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
44454 * include/grub/kernel.h (struct grub_module_header): Change type
44455 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
44456 (grub_module_info): Likewise.
44458 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
44460 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
44461 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
44462 Velazquez <jesus.velazquez@gmail.com>.
44464 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
44466 Count partitions from 1 instead of 0 in the string representation
44467 of partitions. Still use 0-based internally.
44469 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
44470 (sun_partition_map_iterate): Use grub_partition_t instead of
44471 struct grub_partition *. Cast DESC->START_CYLINDER to
44472 grub_uint64_t after converting the endian.
44473 (sun_partition_map_probe): Subtract 1 for PARTNUM.
44474 (sun_partition_map_get_name): Add 1 to P->INDEX.
44476 * partmap/pc.c (grub_partition_parse): Subtract 1 for
44478 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
44480 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
44481 zero instead of one.
44482 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
44483 (gpt_partition_map_get_name): Add 1 into P->INDEX.
44485 * partmap/apple.c (apple_partition_map_iterate): Change the type
44486 of POS to unsigned.
44487 (apple_partition_map_probe): Subtract 1 for PARTNUM.
44488 (apple_partition_map_get_name): Add 1 into P->INDEX.
44490 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
44491 of POS to unsigned.
44492 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
44493 calculate the offset of a partition.
44494 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
44495 (amiga_partition_map_get_name): Add 1 into P->INDEX.
44497 * partmap/acorn.c (acorn_partition_map_find): Change the type of
44498 SECTOR to grub_disk_addr_t.
44499 (acorn_partition_map_iterate): Likewise.
44500 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
44501 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
44503 (acorn_partition_map_get_name): Add 1 into P->INDEX.
44505 * kern/i386/pc/init.c (make_install_device): Add 1 into
44506 GRUB_INSTALL_DOS_PART.
44508 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
44511 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
44513 Clean up the code to support 64-bit addressing in disks and
44514 files. This change is not enough for filesystems yet.
44516 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
44517 type of "start" to grub_uint64_t.
44518 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
44519 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
44520 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
44523 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
44524 to grub_disk_addr_t.
44526 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
44529 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44531 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
44534 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
44536 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
44538 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
44540 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
44541 to grub_off_t, to detect an error from grub_file_seek.
44542 (grub_multiboot_load_elf32): Likewise.
44544 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
44545 maximum unsigned long value when an overflow is detected.
44546 (grub_strtoull): New function.
44547 (grub_divmod64): Likewise.
44548 (grub_lltoa): use grub_divmod64.
44550 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
44552 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
44553 the pointer to next character. Use grub_strtoull instead of
44555 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
44556 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
44559 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
44560 return value is signed.
44561 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
44562 test if OFFSET is less than zero, as OFFSET is unsigned now.
44564 * kern/disk.c (struct grub_disk_cache): Change the type of
44565 "sector" to grub_disk_addr_t.
44566 (grub_disk_cache_get_index): Change the type of SECTOR to
44567 grub_disk_addr_t. Calculate the hash with SECTOR casted to
44568 unsigned after shifting.
44569 (grub_disk_cache_invalidate): Change the type of SECTOR to
44571 (grub_disk_cache_unlock): Likewise.
44572 (grub_disk_cache_store): Likewise.
44573 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
44574 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
44575 grub_disk_addr_t and grub_uint64_t, respectively.
44576 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
44577 body, as the value of OFFSET is tweaked by
44578 grub_disk_check_range. Change the types of START_SECTOR, LEN and
44579 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
44581 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
44582 body, as the value of OFFSET is tweaked by
44583 grub_disk_check_range. Change the types of LEN and N to
44586 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
44587 and "saved_offset" to grub_off_t.
44588 (test_header): Cast BUF to char *.
44589 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
44591 (grub_gzio_read): Change the types of OFFSET and SIZE to
44592 grub_off_t and grub_size_t, respectively.
44594 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
44596 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
44597 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
44598 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
44599 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
44600 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
44602 * include/grub/types.h (grub_off_t): Unconditionally set to
44604 (grub_disk_addr_t): Changed to grub_uint64_t.
44606 * include/grub/partition.h (struct grub_partition): Change the
44607 types of "start", "len" and "offset" to grub_disk_addr_t,
44608 grub_uint64_t and grub_disk_addr_t, respectively.
44609 (grub_partition_get_start): Return grub_disk_addr_t.
44610 (grub_partition_get_len): Return grub_uint64_t.
44612 * include/grub/misc.h (grub_strtoull): New prototype.
44613 (grub_divmod64): Likewise.
44615 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
44616 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
44617 grub_off_t, respectively.
44618 All callers and references changed.
44620 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
44621 grub_size_t in "read".
44622 All callers and references changed.
44624 * include/grub/file.h (struct grub_file): Change the types of
44625 "offset" and "size" to grub_off_t and grub_off_t,
44626 respectively. Change the type of SECTOR to grub_disk_addr_t in
44628 (grub_file_read): Change the type of LEN to grub_size_t.
44629 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
44631 (grub_file_size): Return grub_off_t.
44632 (grub_file_tell): Likewise.
44633 All callers and references changed.
44635 * include/grub/disk.h (struct grub_disk_dev): Change the types of
44636 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
44638 (struct grub_disk): Change the type of "total_sectors" to
44639 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
44641 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
44642 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
44643 (grub_disk_write): Likewise.
44644 All callers and references changed.
44646 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
44647 char * for grub_strncmp to silence gcc.
44648 (grub_iso9660_mount): Likewise.
44649 (grub_iso9660_mount): Likewise.
44650 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
44652 (grub_iso9660_iterate_dir): Likewise.
44653 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
44655 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
44656 LEN to grub_disk_addr_t and grub_size_t, respectively.
44658 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
44660 * fs/jfs.c (grub_jfs_read_file): Likewise.
44662 * fs/minix.c (grub_jfs_read_file): Likewise.
44664 * fs/sfs.c (grub_jfs_read_file): Likewise.
44666 * fs/ufs.c (grub_jfs_read_file): Likewise.
44668 * fs/xfs.c (grub_jfs_read_file): Likewise.
44670 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
44671 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
44674 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
44675 BLKNR to -1 instead of returning GRUB_ERRNO.
44676 (grub_ext2_read_file): Change the types of SECTOR and
44677 LEN to grub_disk_addr_t and grub_size_t, respectively.
44679 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
44680 LEN to grub_disk_addr_t and grub_size_t, respectively.
44682 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
44685 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
44686 string. Do not cast SECTOR explicitly.
44688 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
44689 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
44690 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
44691 grub_disk_addr_t and grub_size_t, respectively. If the sector is
44692 over 2TB and LBA mode is not supported, raise an error.
44693 (get_safe_sectors): New function.
44694 (grub_biosdisk_read): Use get_safe_sectors.
44695 (grub_biosdisk_write): Likewise.
44697 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
44698 (grub_efidisk_write): Likewise.
44700 * disk/loopback.c (delete_loopback): Cosmetic changes.
44701 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
44703 (grub_loopback_open): Likewise.
44704 (grub_loopback_read): Likewise. Also, change the type of POS to
44705 grub_off_t, and fix the usage of grub_memset.
44707 * commands/i386/pc/play.c: Include grub/machine/time.h.
44709 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
44712 * commands/configfile.c: Include grub/env.h.
44714 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
44715 GRUB_ERRNO directly instead. Change the type of POS to
44716 grub_off_t. Follow the coding standard.
44718 * commands/blocklist.c: Include grub/partition.h.
44719 (grub_cmd_blocklist): Return an error if the underlying device is
44720 not a disk. Take the starting sector of a partition into account,
44721 if a partition is used.
44723 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
44725 (lba_mode): Support 64-bit addresses.
44726 (chs_mode): Likewise.
44727 (copy_buffer): Adapted to the new offsets of a length field and a
44729 (blocklist_default_start): Allocate 64-bit space.
44731 * boot/i386/pc/boot.S (force_lba): Removed.
44732 (boot_drive): Moved to under KERNEL_SECTOR.
44733 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
44735 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
44737 (lba_mode): Refactored to support a 64-bit address. More size
44739 (setup_sectors): Likewise.
44741 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
44743 * DISTLIST: Added include/grub/i386/linux.h. Removed
44744 include/grub/i386/pc/linux.h
44746 * configure.ac (AC_INIT): Bumped to 1.94.
44748 * config.guess: Updated from gnulib.
44749 * config.sub: Likewise.
44750 * install-sh: Likewise.
44751 * mkinstalldirs: Likewise.
44753 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
44755 * conf/common.rmk (grub_modules_init.lst): Depended on
44756 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
44759 * genmk.rb (PModule::rule): Reverted the previous change.
44761 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
44763 * conf/common.rmk (grub_modules_init.lst): Depends on
44764 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
44765 that the target does not exist before producing.
44766 (grub_modules_init.h): Remove the target before generating.
44767 (grub_emu_init.c): Likewise.
44769 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
44771 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
44773 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
44774 for the target-specific tests. Make sure that we also have the
44775 up-to-date target variables for those tests.
44777 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
44779 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
44780 (PModule::rule): Likewise.
44782 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
44784 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
44785 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
44786 target-specific flags should be prefixed.
44787 (PModule::rule): Likewise.
44789 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
44791 * configure.ac (CMP): Check if cmp is available explicitly.
44793 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
44795 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
44796 (target_cpu): New variable.
44797 (pkglibdir): Use target_cpu instead of host_cpu.
44799 * util/i386/pc/grub-install.in (host_cpu): Removed.
44800 (target_cpu): New variable.
44801 (pkglibdir): Use target_cpu instead of host_cpu.
44803 * util/genmoddep.c: Removed.
44805 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
44806 instead of GRUB_HOST_SIZEOF_VOID_P.
44807 * kern/dl.c: Likewise.
44809 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
44811 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44812 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44813 (GRUB_TARGET_SIZEOF_LONG): ... this.
44814 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44815 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44816 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
44818 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44819 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44820 (GRUB_TARGET_SIZEOF_LONG): ... this.
44821 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44822 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44823 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
44825 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44826 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44827 (GRUB_TARGET_SIZEOF_LONG): ... this.
44828 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44829 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44831 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
44832 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
44833 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
44834 instead of GRUB_HOST_SIZEOF_LONG.
44835 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
44836 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
44837 GRUB_CPU_WORDS_BIGENDIAN.
44838 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
44839 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
44842 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
44843 (genmoddep_SOURCES): Likewise.
44844 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
44845 (genmoddep_SOURCES): Likewise.
44846 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
44847 (genmoddep_SOURCES): Likewise.
44848 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
44850 (genmoddep_SOURCES): Likewise.
44852 * genmoddep.awk: New file.
44854 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
44855 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
44856 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
44857 (PModule::rule): Likewise.
44858 (Program::rule): Likewise.
44859 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
44860 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
44863 * configure.ac: Rewritten intensively to use host and target
44864 instead of build and host, respectively.
44866 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
44867 (host_cpu): Removed.
44868 (target_cpu): New variable.
44869 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
44870 (BUILD_CC): Removed.
44871 (BUILD_CFLAGS): Likewise.
44872 (BUILD_CPPFLAGS): Likewise.
44873 (TARGET_CC): New variable.
44874 (TARGET_CFLAGS): Likewise.
44875 (TARGET_CPPFLAGS): Likewise.
44876 (TARGET_LDFLAGS): Likewise.
44878 (include): Use target_cpu instead of host_cpu.
44879 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
44881 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
44883 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
44885 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
44886 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
44887 field 'false' to 'exec_on_false'.
44888 (grub_script_create_cmdif): Renamed argument names to reflect above
44891 * normal/execute.c (grub_script_execute_cmdif): Likewise.
44893 * normal/script.c (grub_script_create_cmdif): Likewise.
44895 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
44897 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
44899 (grub_hfsplus_btree_recptr): Likewise.
44900 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
44901 FILEBLOCK both to pass a block number and store next block
44903 (grub_hfsplus_read_block): Rewritten heavily to support an extent
44904 overflow file correctly. Specify errors appropriately, because
44905 fshelp expects that GRUB_ERRNO is set when fails. Reuse
44906 grub_hfsplus_btree_recptr to get the pointer to a found key.
44907 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
44910 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
44912 (_linux_mod_SOURCES): New variable.
44913 (_linux_mod_CFLAGS): Likewise.
44914 (_linux_mod_LDFLAGS): Likewise.
44915 (linux_mod_SOURCES): Likewise.
44916 (linux_mod_CFLAGS): Likewise.
44917 (linux_mod_LDFLAGS): Likewise.
44919 * DISTLIST: Added loader/i386/efi/linux.c,
44920 loader/i386/efi/linux_normal.c and
44921 include/grub/i386/efi/loader.h.
44923 * loader/i386/efi/linux.c: New file.
44924 * loader/i386/efi/linux_normal.c: Likewise.
44925 * include/grub/i386/efi/loader.h: Likewise.
44927 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
44929 * commands/blocklist.c: New file.
44931 * DISTLIST: Added commands/blocklist.c.
44933 * term/efi/console.c (grub_console_highlight_color): Use a lighter
44934 color for the background, and a darker color for the foreground.
44935 (grub_console_checkkey): Return READ_KEY.
44936 (grub_console_cls): Set the background to
44937 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
44939 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
44941 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
44942 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
44944 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
44947 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
44948 BG. The spec is wrong again.
44950 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
44952 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
44954 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44955 commands/blocklist.c.
44956 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44958 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
44959 (blocklist_mod_SOURCES): New variable.
44960 (blocklist_mod_CFLAGS): Likewise.
44961 (blocklist_mod_LDFLAGS): Likewise.
44963 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
44965 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
44967 (lba_mode): Use %eax more intensively to reduce the code size.
44969 2006-05-20 Marco Gerards <marco@gnu.org>
44971 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
44973 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
44975 (script): Accept leading newlines.
44976 (newlines): New rule to describe 0 or more newlines.
44977 (commands): Accept `command' with trailing newline. Fixed the
44978 order in which arguments were passed to `grub_script_add_cmd'.
44979 Accept commands separated by newlines.
44980 (function): Changed to accept newlines.
44981 (menuentry) Rewritten.
44983 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
44984 front of the list, instead of to the end.
44986 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
44988 * util/i386/pc/grub-install.in (bindir): New variable.
44989 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
44990 Shaver <lbgwjl@gmail.com>.
44992 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
44994 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
44995 grub/machine/linux.h
44996 * loader/i386/pc/linux.c: Likewise.
44998 * include/grub/i386/pc/linux.h: Moved to ...
44999 * include/grub/i386/linux.h: ... here.
45001 * include/grub/i386/linux.h (struct linux_kernel_params): New
45004 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
45006 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
45008 (grub_video_vbe_blit_glyph): Likewise.
45009 (grub_video_vbe_blit_bitmap): Likewise.
45010 (grub_video_vbe_blit_render_target): Likewise.
45012 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
45014 * configure.ac (--with-platform): Properly quote the square
45017 2006-05-08 Marco Gerards <marco@gnu.org>
45019 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
45021 (kernel_elf_HEADERS): ...to this. Updated all users.
45022 (grubof_symlist.c): Renamed from this...
45023 (kernel_elf_symlist.c): ...to this. Updated all users.
45024 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
45025 (grubof_SOURCES): Renamed from this...
45026 (kernel_elf_SOURCES): ...to this.
45027 (grubof_HEADERS): Renamed from this...
45028 (kernel_elf_HEADERS): ...to this.
45029 (grubof_CFLAGS): Renamed from this...
45030 (kernel_elf_CFLAGS): ...to this.
45031 (grubof_ASFLAGS): Renamed from this...
45032 (kernel_elf_ASFLAGS): ...to this.
45033 (grubof_LDFLAGS): Renamed from this...
45034 (kernel_elf_LDFLAGS): ...to this.
45036 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
45038 (kernel_elf_HEADERS): ...to this. Updated all users.
45039 (grubof_symlist.c): Renamed from this...
45040 (kernel_elf_symlist.c): ...to this. Updated all users.
45041 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
45042 (grubof_SOURCES): Renamed from this...
45043 (kernel_elf_SOURCES): ...to this.
45044 (grubof_HEADERS): Renamed from this...
45045 (kernel_elf_HEADERS): ...to this.
45046 (grubof_CFLAGS): Renamed from this...
45047 (kernel_elf_CFLAGS): ...to this.
45048 (grubof_ASFLAGS): Renamed from this...
45049 (kernel_elf_ASFLAGS): ...to this.
45050 (grubof_LDFLAGS): Renamed from this...
45051 (kernel_elf_LDFLAGS): ...to this.
45053 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
45054 `kernel.elf' instead of `grubof'.
45056 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
45058 Add --with-platform to configure. Use pkglibdir instead of
45059 pkgdatadir. This is reported by Roger Leigh.
45061 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
45062 (host_vendor): Likewise.
45063 (host_os): Likewise.
45064 (pkgdatadir): Likewise.
45065 (platform): New variable.
45066 (pkglibdir): Likewise.
45067 Use PKGLIBDIR instead of PKGDATADIR.
45069 * util/i386/pc/grub-install.in (datadir): Removed.
45070 (host_vendor): Likewise.
45071 (host_os): Likewise.
45072 (pkgdatadir): Likewise.
45073 (platform): New variable.
45074 (pkglibdir): Likewise.
45075 Use PKGLIBDIR instead of PKGDATADIR.
45077 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
45078 instead of GRUB_DATADIR.
45080 * util/i386/pc/grub-mkimage.c (usage): Likewise.
45082 * util/i386/efi/grub-mkimage.c (usage): Likewise.
45085 * configure.ac (--with-platform): New option.
45086 Use PLATFORM instead of HOST_VENDOR to specify a platform.
45088 * Makefile.in: Include a makefile based on PLATFORM instead of
45090 (pkgdatadir): Not appended by the machine type.
45091 (pkglibdir): Appended by the machine type.
45092 (host_vendor): Removed.
45093 (platform): New variable.
45094 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
45095 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
45096 (uninstall): Likewise.
45098 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
45100 Use the environment context in the menu. Remove the commands
45101 "default" and "timeout", and use variables instead.
45103 * normal/menu.c: Include grub/env.h.
45104 (print_entry): Cast TITLE to silence gcc.
45105 (get_timeout): New function.
45106 (set_timeout): Likewise.
45107 (get_entry_number): Likewise.
45108 (run_menu): Use a default entry, a fallback entry and a timeout
45109 in the environment variables "default", "fallback" and
45110 "timeout". Also, tweak the default entry if it is not within the
45111 current menu entries.
45112 (grub_menu_run): Use a fallback entry in the environment variable
45115 * normal/main.c (read_config_file): Do not initialize
45116 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
45118 (grub_normal_execute): Use a data slot to store the menu.
45120 * include/grub/normal.h (struct grub_menu): Removed default_entry,
45121 fallback_entry and timeout.
45122 (struct grub_menu_list): Removed.
45123 (grub_menu_list_t): Likewise.
45124 (struct grub_context): Likewise.
45125 (grub_context_t): Likewise.
45126 (grub_context_get): Likewise.
45127 (grub_context_get_current_menu): Likewise.
45128 (grub_context_push_menu): Likewise.
45129 (grub_context_pop_menu): Likewise.
45130 (grub_default_init): Likewise.
45131 (grub_default_fini): Likewise.
45132 (grub_timeout_init): Likewise.
45133 (grub_timeout_fini): Likewise.
45135 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
45137 (normal_mod_SOURCES): Removed normal/context.c.
45139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
45140 commands/default.c, commands/timeout.c and normal/context.c.
45141 (normal_mod_SOURCES): Removed normal/context.c.
45143 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
45144 commands/timeout.c and normal/context.c.
45145 (normal_mod_SOURCES): Removed normal/context.c.
45147 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
45148 commands/default.c, commands/timeout.c and normal/context.c.
45149 (normal_mod_SOURCES): Removed normal/context.c.
45151 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
45153 (default_mod_SOURCES): Removed.
45154 (default_mod_CFLAGS): Likewise.
45155 (default_mod_LDFLAGS): Likewise.
45156 (timeout_mod_SOURCES): Removed.
45157 (timeout_mod_CFLAGS): Likewise.
45158 (timeout_mod_LDFLAGS): Likewise.
45160 * DISTLIST: Removed commands/default.c, commands/timeout.c and
45163 * commands/default.c: Removed.
45164 * commands/timeout.c: Likewise.
45165 * normal/context.c: Likewise.
45167 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
45169 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
45171 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
45173 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
45174 "next" to "prev" for readability.
45175 (struct grub_env_sorted_var): New struct.
45176 (grub_env_context): Renamed to ...
45177 (initial_context): ... this.
45178 (grub_env_var_context): Renamed to ...
45179 (current_context): ... this.
45180 (grub_env_find): Look only at CURRENT_CONTEXT.
45181 (grub_env_context_open): Rewritten to copy exported variables from
45183 (grub_env_context_close): Rewritten according to the new
45184 scheme. Also, add an assertion to prevent the initial context from
45186 (grub_env_insert): Removed the code for the sorted list.
45187 (grub_env_remove): Likewise.
45188 (grub_env_export): Simply mark the variable with
45189 GRUB_ENV_VAR_GLOBAL.
45190 (grub_env_set): A cosmetic change for naming consistency.
45191 (grub_env_get): Likewise.
45192 (grub_env_unset): Likewise.
45193 (grub_env_iterate): Rewritten to sort variables within this
45195 (grub_register_variable_hook): Fixed for naming consistency. Call
45196 grub_env_find again, only if NAME is not found at the first time.
45197 (mangle_data_slot_name): New function.
45198 (grub_env_set_data_slot): Likewise.
45199 (grub_env_get_data_slot): Likewise.
45200 (grub_env_unset_data_slot): Likewise.
45202 * include/grub/env.h (grub_env_var_type): New enum.
45203 (GRUB_ENV_VAR_LOCAL): New constant.
45204 (GRUB_ENV_VAR_GLOBAL): Likewise.
45205 (GRUB_ENV_VAR_DATA): Likewise.
45206 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
45208 (grub_env_set): Replace VAR with NAME for consistency.
45209 (grub_register_variable_hook): Likewise.
45210 (grub_env_export): Specify the name of the argument.
45211 (grub_env_set_data_slot): New prototype.
45212 (grub_env_get_data_slot): Likewise.
45213 (grub_env_unset_data_slot): Likewise.
45215 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
45217 Extend the loader so that GRUB can accept a loader which comes
45218 back to GRUB when a loaded image exits. Also, this change adds
45219 support for a chainloader on EFI.
45221 * term/efi/console.c: Include grub/misc.h.
45222 (grub_console_checkkey): Display a scan code on the top for
45223 debugging. This will be removed once the EFI port gets stable.
45224 Correct the scan code mapping.
45226 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
45227 allocate memory from larger regions, in order to reduce the number
45228 of allocated regions. Otherwise, the MacOSX loader panics.
45229 (filter_memory_map): Avoid less than 1MB for compatibility with
45231 (add_memory_regions): Allocate from the tail of a region, if
45232 possible, to avoid allocating a region near to 1MB, for the MacOSX
45235 * kern/efi/init.c (grub_efi_set_prefix): Specify
45236 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
45238 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
45239 argument IMAGE_HANDLE and specify it to get a loaded image.
45240 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
45241 grub_efi_get_loaded_image.
45242 (grub_efi_get_filename): Divide the length by the size of
45244 (grub_efi_get_device_path): New function.
45245 (grub_efi_print_device_path): Print End Device Path nodes. Divide
45246 the length by the size of grub_efi_char16_t for a file path device
45249 * kern/loader.c (grub_loader_noreturn): New variable.
45250 (grub_loader_set): Accept a new argument NORETURN. Set
45251 GRUB_LOADER_NORETURN to NORETURN.
45252 All callers changed.
45253 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
45256 * include/grub/efi/efi.h (grub_efi_get_device_path): New
45258 (grub_efi_get_loaded_image): Take an argument to specify an image
45261 * include/grub/loader.h (grub_loader_set): Added one more argument
45264 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
45265 instead of grub_efi_open_protocol.
45266 (grub_efidisk_get_device_name): Likewise.
45267 (grub_efidisk_close): Print a newline.
45268 (grub_efidisk_get_device_handle): Fixed to use
45269 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
45270 GRUB_EFI_DEVICE_PATH_TYPE.
45272 * disk/efi/efidisk.c (device_path_guid): Moved to ...
45273 * kern/efi/efi.c (device_path_guid): ... here.
45275 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
45277 (kernel_mod_HEADERS): Added efi/disk.h.
45278 (_chain_mod_SOURCES): New variable.
45279 (_chain_mod_CFLAGS): Likewise.
45280 (_chain_mod_LDFLAGS): Likewise.
45281 (chain_mod_SOURCES): Likewise.
45282 (chain_mod_CFLAGS): Likewise.
45283 (chain_mod_LDFLAGS): Likewise.
45285 * DISTLIST: Added include/grub/efi/chainloader.h,
45286 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
45288 * include/grub/efi/chainloader.h: New file.
45289 * loader/efi/chainloader.c: Likewise.
45290 * loader/efi/chainloader_normal.c: Likewise.
45292 2006-04-30 Marco Gerards <marco@gnu.org>
45294 * commands/configfile.c (grub_cmd_source): New function.
45295 (GRUB_MOD_INIT): Register the commands `source' and `.'.
45296 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
45298 2006-04-30 Marco Gerards <marco@gnu.org>
45300 * normal/execute.c (grub_script_execute_cmd): Change the return
45301 type to `grub_err_t'. Correctly return the error.
45302 (grub_script_execute_cmdline): In case a command line is not a
45303 command or a function, try to interpret it as an assignment.
45305 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
45307 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
45308 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
45309 skip a node whose name is obviously invalid as UTF-16,
45310 i.e. contains a NUL character. Stop the iteration when the last
45311 directory entry is found. Instead of using the return value of
45312 grub_hfsplus_btree_iterate_node, store the value in RET and use
45313 it, because the iterator can be stopped by the last directory
45316 2006-04-30 Marco Gerards <marco@gnu.org>
45318 * include/grub/env.h (grub_env_export): New prototype. Reported
45319 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
45321 2006-04-30 Marco Gerards <marco@gnu.org>
45323 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
45324 size of the extents in a catalog file record.
45326 2006-04-29 Marco Gerards <marco@gnu.org>
45328 * commands/configfile.c (grub_cmd_configfile): Execute the
45329 configfile within its own context.
45331 * include/grub/env.h (grub_env_context_open): New prototype.
45332 (grub_env_context_close): Likewise.
45334 * kern/env.c (grub_env): Removed.
45335 (grub_env_sorted): Likewise.
45336 (grub_env_context): New variable.
45337 (grub_env_var_context): Likewise.
45338 (grub_env_find): Search both the active context and the global
45340 (grub_env_context_open): New function.
45341 (grub_env_context_close): Likewise.
45342 (grub_env_insert): Likewise.
45343 (grub_env_remove): Likewise.
45344 (grub_env_export): Likewise.
45345 (grub_env_set): Changed to use helper functions to avoid code
45347 (grub_env_iterate): Rewritten so both the current context and the
45348 global context are being used.
45350 * normal/command.c (export_command): New function.
45351 (grub_command_init): Register the `export' function.
45353 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
45355 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
45356 explicitly to suppress gcc's warnings.
45357 * fs/fat.c (grub_fat_find_dir): Likewise.
45358 (grub_fat_label): Likewise.
45359 * fs/xfs.c (grub_xfs_read_inode): Likewise.
45360 (grub_xfs_mount): Likewise.
45361 (grub_xfs_label): Likewise.
45362 * fs/affs.c (grub_affs_mount): Likewise.
45363 (grub_affs_label): Likewise.
45364 (grub_affs_iterate_dir): Likewise.
45365 * fs/sfs.c (grub_sfs_mount): Likewise.
45366 (grub_sfs_iterate_dir): Likewise.
45367 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
45368 * fs/hfs.c (grub_hfs_mount): Likewise.
45369 (grub_hfs_cmp_catkeys): Likewise.
45370 (grub_hfs_find_dir): Likewise.
45371 (grub_hfs_dir): Likewise.
45372 (grub_hfs_label): Likewise.
45373 * fs/jfs.c (grub_jfs_mount): Likewise.
45374 (grub_jfs_opendir): Likewise.
45375 (grub_jfs_getent): Likewise.
45376 (grub_jfs_lookup_symlink): Likewise.
45377 (grub_jfs_label): Likewise.
45378 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
45379 (grub_hfsplus_iterate_dir): Likewise.
45380 (grub_hfsplus_btree_iterate_node): Made static.
45382 * util/grub-emu.c (prefix): New variable.
45383 (grub_machine_set_prefix): New function.
45384 (main): Do not set the environment variable "prefix" here. Only
45385 set PREFIX, which is used later by grub_machine_set_prefix.
45387 * include/grub/video.h: Do not include grub/symbol.h.
45388 (grub_video_register): Not exported. This symbol is not defined in
45390 (grub_video_unregister): Likewise.
45391 (grub_video_iterate): Likewise.
45392 (grub_video_setup): Likewise.
45393 (grub_video_restore): Likewise.
45394 (grub_video_get_info): Likewise.
45395 (grub_video_get_blit_format): Likewise.
45396 (grub_video_set_palette): Likewise.
45397 (grub_video_get_palette): Likewise.
45398 (grub_video_set_viewport): Likewise.
45399 (grub_video_get_viewport): Likewise.
45400 (grub_video_map_color): Likewise.
45401 (grub_video_map_rgb): Likewise.
45402 (grub_video_map_rgba): Likewise.
45403 (grub_video_fill_rect): Likewise.
45404 (grub_video_blit_glyph): Likewise.
45405 (grub_video_blit_bitmap): Likewise.
45406 (grub_video_blit_render_target): Likewise.
45407 (grub_video_scroll): Likewise.
45408 (grub_video_swap_buffers): Likewise.
45409 (grub_video_create_render_target): Likewise.
45410 (grub_video_delete_render_target): Likewise.
45411 (grub_video_set_active_render_target): Likewise.
45413 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
45415 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
45417 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
45418 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
45419 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
45420 instead of $(srcdir)/genkernsyms.sh.
45422 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
45423 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
45424 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
45425 instead of $(srcdir)/genkernsyms.sh.
45427 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
45428 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
45429 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
45430 instead of $(srcdir)/genkernsyms.sh.
45432 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
45433 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
45434 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
45435 instead of $(srcdir)/genkernsyms.sh.
45437 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
45440 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
45442 (gensymlist.sh): New target.
45443 (genkernsyms.sh): Likewise.
45445 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
45446 genkernsyms.sh.in and gensymlist.sh.in.
45448 * genkernsyms.sh: Removed.
45449 * gensymlist.sh: Likewise.
45451 * genkernsyms.sh.in: New file.
45452 * gensymlist.sh.in: Likewise.
45454 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
45456 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
45457 clobber "prefix", since we may have already set it manually.
45459 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
45461 * kern/misc.c (abort): New alias for grub_abort.
45463 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
45465 A new machine-specific function "grub_machine_set_prefix" is
45466 defined. This is called after loading modules, so that a prefix
45467 initialization can use modules. Also, this change adds an
45468 intensive debugging feature for the memory manager via the
45469 configure option "--enable-mm-debug".
45471 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
45474 * kern/sparc64/ieee1275/init.c (abort): Removed.
45475 (grub_stop): Likewise.
45476 (grub_exit): New function.
45477 (grub_set_prefix): Renamed to ...
45478 (grub_machine_set_prefix): ... this.
45479 (grub_machine_init): Do not call grub_set_prefix.
45481 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
45482 (grub_machine_set_prefix): ... this.
45483 (grub_machine_init): Do not call grub_set_prefix.
45485 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
45486 (grub_machine_init): Do not set the prefix here.
45488 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
45490 * kern/efi/init.c: Include grub/mm.h.
45491 (grub_efi_set_prefix): New function.
45493 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
45494 (grub_efi_get_filename): New function.
45495 (grub_print_device_path): Renamed to ...
45496 (grub_efi_print_device_path): ... this.
45498 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
45499 [MM_DEBUG] (grub_realloc): Likewise.
45500 [MM_DEBUG] (grub_free): Likewise.
45501 [MM_DEBUG] (grub_memalign): Likewise.
45502 [MM_DEBUG] (grub_mm_debug): New variable.
45503 [MM_DEBUG] (grub_debug_malloc): New function.
45504 [MM_DEBUG] (grub_debug_free): New function.
45505 [MM_DEBUG] (grub_debug_realloc): New function.
45506 [MM_DEBUG] (grub_debug_memalign): New function.
45508 * kern/misc.c (grub_abort): Print a newline to distinguish
45511 * kern/main.c (grub_main): Call grub_machine_set_prefix and
45512 grub_set_root_dev after loading modules. This is necessary when
45513 setting a prefix depends on modules.
45515 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
45516 (grub_efi_print_device_path): ... this.
45517 (grub_efi_get_filename): New prototype.
45518 (grub_efi_set_prefix): Likewise.
45520 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
45522 (grub_efidisk_get_device_handle): New prototype.
45523 (grub_efidisk_get_device_name): Likewise.
45525 * include/grub/mm.h: Include config.h.
45526 (MM_DEBUG): Removed.
45527 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
45528 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
45529 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
45530 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
45531 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
45532 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
45533 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
45534 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
45535 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
45537 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
45539 * disk/efi/efidisk.c: Include grub/partition.h.
45540 (iterate_child_devices): New function.
45541 (add_device): First, compare only last device path nodes, so that
45542 devices are sorted by the types.
45543 (grub_efidisk_get_device_handle): New function.
45544 (grub_efidisk_get_device_name): Likewise.
45546 * configure.ac (--enable-mm-debug): New option to enable the
45547 memory manager debugging feature. This makes the binary much
45548 bigger, so is disabled by default.
45550 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
45552 Use grub_abort instead of grub_stop, and grub_exit must be
45553 define in each architecture now. Also, this change adds support
45556 * util/i386/pc/grub-probefs.c: Include grub/term.h.
45557 (grub_getkey): New function.
45558 (grub_term_get_current): Likewise.
45560 * util/i386/pc/grub-setup.c: Include grub/term.h.
45561 (grub_getkey): New function.
45562 (grub_term_get_current): Likewise.
45564 * util/misc.c (grub_stop): Renamed to ...
45565 (grub_exit): ... this.
45567 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
45568 (grub_exit): ... this.
45569 (grub_machine_init): Use grub_abort instead of abort.
45570 (grub_stop): Removed.
45572 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
45575 * kern/i386/pc/startup.S (grub_exit): New function.
45576 (cold_reboot): New label.
45578 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
45579 (grub_efi_init): Call grub_efidisk_init.
45580 (grub_efi_fini): Call grub_efidisk_fini.
45582 * kern/efi/efi.c: Include grub/mm.h.
45583 (grub_efi_console_control_guid): Renamed to ...
45584 (console_control_guid): ... this.
45585 (grub_efi_loaded_image_guid): Renamed to ...
45586 (loaded_image_guid): ... this.
45587 (grub_efi_locate_handle): New function.
45588 (grub_efi_open_protocol): Likewise.
45589 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
45590 GRUB_EFI_CONSOLE_CONTROL_GUID.
45591 (grub_efi_exit): Removed.
45592 (grub_stop): Likewise.
45593 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
45594 (grub_exit): New function.
45595 (grub_print_device_path): Likewise.
45597 * kern/rescue.c (grub_rescue_cmd_exit): New function.
45598 (grub_enter_rescue_mode): Register "exit".
45600 * kern/misc.c (grub_real_dprintf): A cosmetic change.
45601 (grub_abort): New function.
45603 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
45605 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
45607 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
45609 * include/grub/efi/efi.h (grub_efi_exit): Removed.
45610 (grub_print_device_path): New prototype.
45611 (grub_efi_locate_handle): Likewise.
45612 (grub_efi_open_protocol): Likewise.
45614 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
45615 * disk/efi/efidisk.c: Likewise.
45617 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
45619 * include/grub/efi/console_control.h
45620 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
45622 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
45623 last 8 bytes as an array.
45624 (GRUB_EFI_DISK_IO_GUID): New macro.
45625 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
45626 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
45627 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
45629 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
45630 (struct grub_efi_device_path): Rename the member "sub_type" to
45632 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
45633 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
45634 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
45635 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
45636 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
45637 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
45638 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
45639 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
45640 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
45641 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
45642 (struct grub_efi_pci_device_path): New structure.
45643 (grub_efi_pci_device_path_t): New type.
45644 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
45645 (struct grub_efi_pccard_device_path): New structure.
45646 (grub_efi_pccard_device_path_t): New type.
45647 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
45648 (struct grub_efi_memory_mapped_device_path): New structure.
45649 (grub_efi_memory_mapped_device_path_t): New type.
45650 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
45651 (struct grub_efi_vendor_device_path): New structure.
45652 (grub_efi_vendor_device_path_t): New type.
45653 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
45654 (struct grub_efi_controller_device_path): New structure.
45655 (grub_efi_controller_device_path_t): New type.
45656 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
45657 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
45658 (struct grub_efi_acpi_device_path): New structure.
45659 (grub_efi_acpi_device_path_t): New type.
45660 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
45661 (struct grub_efi_expanded_acpi_device_path): New structure.
45662 (grub_efi_expanded_acpi_device_path_t): New type.
45663 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
45664 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
45665 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
45666 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
45667 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
45668 (struct grub_efi_atapi_device_path): New structure.
45669 (grub_efi_atapi_device_path_t): New type.
45670 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
45671 (struct grub_efi_fibre_channel_device_path): New structure.
45672 (grub_efi_fibre_channel_device_path_t): New type.
45673 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
45674 (struct grub_efi_1394_device_path): New structure.
45675 (grub_efi_1394_device_path_t): New type.
45676 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
45677 (struct grub_efi_usb_device_path): New structure.
45678 (grub_efi_usb_device_path_t): New type.
45679 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
45680 (struct grub_efi_usb_class_device_path): New structure.
45681 (grub_efi_usb_class_device_path_t): New type.
45682 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
45683 (struct grub_efi_i2o_device_path): New structure.
45684 (grub_efi_i2o_device_path_t): New type.
45685 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
45686 (struct grub_efi_mac_address_device_path): New structure.
45687 (grub_efi_mac_address_device_path_t): New type.
45688 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
45689 (struct grub_efi_ipv4_device_path): New structure.
45690 (grub_efi_ipv4_device_path_t): New type.
45691 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
45692 (struct grub_efi_ipv6_device_path): New structure.
45693 (grub_efi_ipv6_device_path_t): New type.
45694 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
45695 (struct grub_efi_infiniband_device_path): New structure.
45696 (grub_efi_infiniband_device_path_t): New type.
45697 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
45698 (struct grub_efi_uart_device_path): New structure.
45699 (grub_efi_uart_device_path_t): New type.
45700 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
45701 (struct grub_efi_vendor_messaging_device_path): New structure.
45702 (grub_efi_vendor_messaging_device_path_t): New type.
45703 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
45704 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
45705 (struct grub_efi_hard_drive_device_path): New structure.
45706 (grub_efi_hard_drive_device_path_t): New type.
45707 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
45708 (struct grub_efi_cdrom_device_path): New structure.
45709 (grub_efi_cdrom_device_path_t): New type.
45710 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
45711 (struct grub_efi_vendor_media_device_path): New structure.
45712 (grub_efi_vendor_media_device_path_t): New type.
45713 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
45714 (struct grub_efi_file_path_device_path): New structure.
45715 (grub_efi_file_path_device_path_t): New type.
45716 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
45717 (struct grub_efi_protocol_device_path): New structure.
45718 (grub_efi_protocol_device_path_t): New type.
45719 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
45720 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
45721 (struct grub_efi_bios_device_path): New structure.
45722 (grub_efi_bios_device_path_t): New type.
45723 (struct grub_efi_disk_io): New structure.
45724 (grub_efi_disk_io_t): New type.
45725 (struct grub_efi_block_io_media): New structure.
45726 (grub_efi_block_io_media_t): New type.
45727 (struct grub_efi_block_io): New structure.
45728 (grub_efi_block_io_t): New type.
45730 * include/grub/misc.h (grub_stop): Removed.
45731 (grub_exit): New prototype.
45732 (grub_abort): Likewise.
45734 * include/grub/disk.h (enum grub_disk_dev_id): Added
45735 GRUB_DISK_DEVICE_EFIDISK_ID.
45737 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
45738 disk/efi/efidisk.c.
45739 (kernel_syms.lst): Remove the target if an error occurs.
45741 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
45743 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
45744 as it was simply too buggy.
45746 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
45748 * kern/misc.c (grub_lltoa): New function.
45749 (grub_vsprintf): Added support for the long long suffix,
45752 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
45754 * Makefile.in (LDFLAGS): Add variable.
45755 (LD): Remove variable.
45756 * configure.ac: Add -m32 to LDFLAGS.
45757 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
45758 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
45759 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
45760 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
45761 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
45763 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
45764 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
45765 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
45767 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
45769 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
45770 length for unknown glyph.
45772 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
45774 Add support for pre-loaded modules into the EFI port.
45776 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
45777 completely. Accept one more argument DIR. The caller has changed.
45779 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
45781 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
45782 (grub_efi_loaded_image_guid): New variable.
45783 (grub_efi_get_loaded_image): New function.
45784 (grub_arch_modules_addr): Likewise.
45786 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
45789 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
45790 (struct grub_efi_loaded_image): New structure.
45791 (grub_efi_loaded_image_t): New type.
45793 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
45795 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
45796 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
45797 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
45799 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
45801 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
45803 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
45805 * DISTLIST: Added include/grub/efi/console.h,
45806 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
45807 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
45809 * include/grub/efi/console.h: New file.
45810 * include/grub/efi/time.h: Likewise.
45811 * include/grub/i386/efi/kernel.h: Likewise.
45812 * kern/efi/init.c: Likewise.
45813 * kern/efi/mm.c: Likewise.
45814 * term/efi/console.c: Likewise.
45816 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
45817 (grub_stop): Removed.
45818 (grub_get_rtc): Likewise.
45819 (grub_machine_init): Simply call grub_efi_init.
45820 (grub_machine_fini): Call grub_efi_fini.
45822 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
45823 (grub_efi_output_string): Removed.
45824 (grub_efi_stall): New function.
45825 (grub_stop): Likewise.
45826 (grub_get_rtc): Likewise.
45828 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
45829 (grub_efi_stall): New prototype.
45830 (grub_efi_allocate_pages): Likewise.
45831 (grub_efi_free_pages): Likewise.
45832 (grub_efi_get_memory_map): Likewise.
45833 (grub_efi_mm_init): Likewise.
45834 (grub_efi_mm_fini): Likewise.
45835 (grub_efi_init): Likewise.
45836 (grub_efi_fini): Likewise.
45838 * include/grub/i386/efi/time.h: Do not include
45839 grub/symbol.h. Include grub/efi/time.h.
45840 (GRUB_TICKS_PER_SECOND): Removed.
45841 (grub_get_rtc): Likewise.
45843 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
45844 Added padding. The EFI spec is buggy.
45845 (GRUB_EFI_BLACK): New macro.
45846 (GRUB_EFI_BLUE): Likewise.
45847 (GRUB_EFI_GREEN): Likewise.
45848 (GRUB_EFI_CYAN): Likewise.
45849 (GRUB_EFI_RED): Likewise.
45850 (GRUB_EFI_MAGENTA): Likewise.
45851 (GRUB_EFI_BROWN): Likewise.
45852 (GRUB_EFI_LIGHTGRAY): Likewise.
45853 (GRUB_EFI_BRIGHT): Likewise.
45854 (GRUB_EFI_DARKGRAY): Likewise.
45855 (GRUB_EFI_LIGHTBLUE): Likewise.
45856 (GRUB_EFI_LIGHTGREEN): Likewise.
45857 (GRUB_EFI_LIGHTCYAN): Likewise.
45858 (GRUB_EFI_LIGHTRED): Likewise.
45859 (GRUB_EFI_LIGHTMAGENTA): Likewise.
45860 (GRUB_EFI_YELLOW): Likewise.
45861 (GRUB_EFI_WHITE): Likewise.
45862 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
45863 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
45864 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
45865 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
45866 (GRUB_EFI_BACKGROUND_RED): Likewise.
45867 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
45868 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
45869 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
45870 (GRUB_EFI_TEXT_ATTR): Likewise.
45872 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
45873 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
45874 (kernel_mod_HEADERS): Added efi/time.h.
45876 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
45878 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
45879 include/grub/efi/api.h, include/grub/efi/console_control.h,
45880 include/grub/efi/efi.h, include/grub/efi/pe32.h,
45881 include/grub/i386/efi/time.h, kern/efi/efi.c,
45882 kern/i386/efi/init.c, kern/i386/efi/startup.S,
45883 and util/i386/efi/grub-mkimage.c.
45885 * Makefile.in (RMKFILES): Added i386-efi.rmk.
45887 * genmk.rb (PModule#rule): Do not export symbols if
45888 #{prefix}_EXPORTS is set to "no".
45890 * conf/i386-efi.mk: New file.
45891 * conf/i386-efi.rmk: Likewise.
45892 * include/grub/efi/api.h: Likewise.
45893 * include/grub/efi/console_control.h: Likewise.
45894 * include/grub/efi/efi.h: Likewise.
45895 * include/grub/efi/pe32.h: Likewise.
45896 * include/grub/i386/efi/time.h: Likewise.
45897 * kern/efi/efi.c: Likewise.
45898 * kern/i386/efi/init.c: Likewise.
45899 * kern/i386/efi/startup.S: Likewise.
45900 * util/i386/efi/grub-mkimage.c: Likewise.
45902 2006-04-17 Marco Gerards <marco@gnu.org>
45904 * include/grub/script.h: Include <grub/parser.h> and
45905 "grub_script.tab.h".
45906 (struct grub_lexer_param): New struct.
45907 (struct grub_parser_param): Likewise.
45908 (grub_script_create_arglist): Pass the state in an argument.
45909 (grub_script_add_arglist): Likewise.
45910 (grub_script_create_cmdline): Likewise.
45911 (grub_script_create_cmdblock): Likewise.
45912 (grub_script_create_cmdif): Likewise.
45913 (grub_script_create_cmdmenu): Likewise.
45914 (grub_script_add_cmd): Likewise.
45915 (grub_script_arg_add): Likewise.
45916 (grub_script_lexer_ref): Likewise.
45917 (grub_script_lexer_deref): Likewise.
45918 (grub_script_lexer_record_start): Likewise.
45919 (grub_script_lexer_record_stop): Likewise.
45920 (grub_script_mem_record): Likewise.
45921 (grub_script_mem_record_stop): Likewise.
45922 (grub_script_malloc): Likewise.
45923 (grub_script_yylex): Likewise.
45924 (grub_script_yyparse): Likewise.
45925 (grub_script_yyerror): Likewise.
45926 (grub_script_yylex): Likewise.
45927 (grub_script_lexer_init): Return the state.
45929 * normal/lexer.c (grub_script_lexer_state): Removed variable.
45930 (grub_script_lexer_done): Likewise.
45931 (grub_script_lexer_getline): Likewise.
45932 (grub_script_lexer_refs): Likewise.
45933 (script): Likewise.
45934 (newscript): Likewise.
45935 (record): Likewise.
45936 (recording): Likewise.
45937 (recordpos): Likewise.
45938 (recordlen): Likewise.
45939 (grub_script_lexer_init): Return the state instead of setting
45941 (grub_script_lexer_ref): Use the newly added argument for state
45942 instead of globals.
45943 (grub_script_lexer_deref): Likewise.
45944 (grub_script_lexer_record_start): Likewise.
45945 (grub_script_lexer_record_stop): Likewise.
45946 (recordchar): Likewise.
45947 (nextchar): Likewise.
45948 (grub_script_yylex2): Likewise.
45949 (grub_script_yylex): Likewise.
45950 (grub_script_yyerror): Likewise.
45952 * normal/parser.y (func_mem): Removed variable.
45953 (menu_entry): Likewise.
45955 (%lex-param): New parser option.
45956 (%parse-param): Likewise.
45957 (script): Always return the AST.
45958 (argument): Pass the state around.
45959 (arguments): Likewise.
45960 (grubcmd): Likewise.
45961 (commands): Likewise.
45962 (function): Likewise.
45963 (menuentry): Likewise.
45964 (if_statement): Likewise.
45967 * normal/script.c (grub_script_memused): Removed variable.
45968 (grub_script_parsed): Likewise.
45969 (grub_script_malloc): Added a state argument. Use that instead of
45971 (grub_script_mem_record): Likewise.
45972 (grub_script_mem_record_stop): Likewise.
45973 (grub_script_arg_add): Likewise.
45974 (grub_script_add_arglist): Likewise.
45975 (grub_script_create_cmdline): Likewise.
45976 (grub_script_create_cmdif): Likewise.
45977 (grub_script_create_cmdmenu): Likewise.
45978 (grub_script_add_cmd): Likewise.
45979 (grub_script_parse): Setup the state before calling the parser.
45981 2006-04-16 Marco Gerards <marco@gnu.org>
45983 * normal/command.c (grub_command_init): Remove the title command.
45985 * normal/lexer.c (grub_script_yylex): Renamed from this...
45986 (grub_script_yylex2): ... to this.
45987 (grub_script_yylex): New function. Temporary
45988 introduced to filter some tokens.
45989 (grub_script_yyerror): Print a newline.
45991 * normal/main.c (read_config_file): Output information about the
45992 lines that contain errors. Wait for a key after all lines have
45993 been processed. Don't return an empty menu.
45995 * normal/parser.y (func_mem): Don't initialize.
45996 (menu_entry): Likewise.
45997 (err): New variable.
45998 (script): Don't return anything when an error was encountered.
45999 (ws, returns): Removed rules.
46000 (argument): Disabled concatenated variable support.
46001 (arguments): Remove explicit separators.
46002 (grubcmd): Likewise.
46003 (function): Likewise.
46004 (menuentry): Likewise.
46006 (commands): Likewise. Add error handling.
46008 * normal/script.c (grub_script_create_cmdline): If
46009 `grub_script_parsed' is 0, assume the parser encountered an error.
46011 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
46013 * configure.ac: Add support for EFI. Fix the typo
46014 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
46016 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
46018 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
46019 foreign multibyte characters should be shown correctly.
46021 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
46023 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
46025 (read_config_file): Made it to close file before returning.
46027 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
46029 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
46030 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
46031 video/i386/pc/vbefill.c.
46033 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
46034 video/i386/pc/vbefill.c.
46036 * include/grub/video.h (grub_video_blit_format): New enum.
46037 (grub_video_mode_info): Added new member blit_format.
46038 (grub_video_get_blit_format): New function prototype.
46040 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
46041 function prototype.
46042 (grub_video_vbe_map_rgb): Likewise.
46043 (grub_video_vbe_unmap_color): Likewise.
46045 * include/grub/i386/pc/vbeblit.h: New file.
46047 * include/grub/i386/pc/vbefill.h: New file.
46049 * video/video.c (grub_video_get_blit_format): New function.
46050 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
46051 (grub_video_vbe_map_rgb): Likewise.
46052 (grub_video_vbe_unmap_color): Likewise.
46054 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
46056 (grub_video_vbe_blit_render_target): Changed to use more optimized
46058 (grub_video_vbe_setup): Added detection for optimized settings.
46059 (grub_video_vbe_create_render_target): Likewise.
46061 * video/i386/pc/vbeblit.c: New file.
46063 * video/i386/pc/vbefill.c: New file.
46065 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
46067 * font/manager.c (grub_font_get_glyph): Removed font fixup from
46070 * util/unifont2pff.rb: ... and moved it to here. Improved argument
46071 parsing to support both hex and dec ranges. If filename was missing
46072 show usage information.
46074 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
46076 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
46077 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
46079 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
46080 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
46081 (video_mod_SOURCES): Added.
46082 (video_mod_CFLAGS): Likewise.
46083 (video_mod_LDFLAGS): Likewise.
46084 (gfxterm_mod_SOURCES): Likewise.
46085 (gfxterm_mod_CFLAGS): Likewise.
46086 (gfxterm_mod_LDFLAGS): Likewise.
46087 (videotest_mod_SOURCES): Likewise.
46088 (videotest_mod_CFLAGS): Likewise.
46089 (videotest_mod_LDFLAGS): Likewise.
46090 (vesafb_mod_SOURCES): Removed.
46091 (vesafb_mod_CFLAGS): Likewise.
46092 (vesafb_mod_LDFLAGS): Likewise.
46093 (vga_mod_SOURCES): Likewise.
46094 (vga_mod_CFLAGS): Likewise.
46095 (vga_mod_LDFLAGS): Likewise.
46097 * commands/videotest.c: New file.
46099 * font/manager.c (fill_with_default_glyph): Modified to use
46101 (grub_font_get_glyph): Likewise.
46102 (fontmanager): Renamed from this...
46103 (font_manager): ... to this.
46105 * include/grub/font.h (grub_font_glyph): Added new structure.
46106 (grub_font_get_glyph): Modified to use grub_font_glyph.
46108 * include/grub/misc.h (grub_abs): Added as inline function.
46110 * include/grub/video.h: New file.
46112 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
46113 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
46114 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
46115 (grub_vbe_get_controller_info): Renamed from this...
46116 (grub_vbe_bios_get_controller_info): ... to this.
46117 (grub_vbe_get_mode_info): Renamed from this...
46118 (grub_vbe_bios_get_mode_info): ... to this.
46119 (grub_vbe_set_mode): Renamed from this...
46120 (grub_vbe_bios_set_mode): ... to this.
46121 (grub_vbe_get_mode): Renamed from this...
46122 (grub_vbe_bios_get_mode): ... to this.
46123 (grub_vbe_set_memory_window): Renamed from this...
46124 (grub_vbe_bios_set_memory_window): ... to this.
46125 (grub_vbe_get_memory_window): Renamed from this...
46126 (grub_vbe_bios_get_memory_window): ... to this.
46127 (grub_vbe_set_scanline_length): Renamed from this...
46128 (grub_vbe_set_scanline_length): ... to this.
46129 (grub_vbe_get_scanline_length): Renamed from this...
46130 (grub_vbe_bios_get_scanline_length): ... to this.
46131 (grub_vbe_set_display_start): Renamed from this...
46132 (grub_vbe_bios_set_display_start): ... to this.
46133 (grub_vbe_get_display_start): Renamed from this...
46134 (grub_vbe_bios_get_display_start): ... to this.
46135 (grub_vbe_set_palette_data): Renamed from this...
46136 (grub_vbe_bios_set_palette_data): ... to this.
46137 (grub_vbe_set_pixel_rgb): Removed.
46138 (grub_vbe_set_pixel_index): Likewise.
46140 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
46142 (grub_vbe_bios_get_controller_info): ... to this.
46143 (grub_vbe_get_mode_info): Renamed from this...
46144 (grub_vbe_bios_get_mode_info): ... to this.
46145 (grub_vbe_set_mode): Renamed from this...
46146 (grub_vbe_bios_set_mode): ... to this.
46147 (grub_vbe_get_mode): Renamed from this...
46148 (grub_vbe_bios_get_mode): ... to this.
46149 (grub_vbe_set_memory_window): Renamed from this...
46150 (grub_vbe_bios_set_memory_window): ... to this.
46151 (grub_vbe_get_memory_window): Renamed from this...
46152 (grub_vbe_bios_get_memory_window): ... to this.
46153 (grub_vbe_set_scanline_length): Renamed from this...
46154 (grub_vbe_set_scanline_length): ... to this.
46155 (grub_vbe_get_scanline_length): Renamed from this...
46156 (grub_vbe_bios_get_scanline_length): ... to this.
46157 (grub_vbe_set_display_start): Renamed from this...
46158 (grub_vbe_bios_set_display_start): ... to this.
46159 (grub_vbe_get_display_start): Renamed from this...
46160 (grub_vbe_bios_get_display_start): ... to this.
46161 (grub_vbe_set_palette_data): Renamed from this...
46162 (grub_vbe_bios_set_palette_data): ... to this.
46163 (grub_vbe_bios_get_controller_info): Fixed problem with registers
46164 getting corrupted after calling it. Added more pushes and pops.
46165 (grub_vbe_bios_set_mode): Likewise.
46166 (grub_vbe_bios_get_mode): Likewise.
46167 (grub_vbe_bios_get_memory_window): Likewise.
46168 (grub_vbe_bios_set_scanline_length): Likewise.
46169 (grub_vbe_bios_get_scanline_length): Likewise.
46170 (grub_vbe_bios_get_display_start): Likewise.
46171 (grub_vbe_bios_set_palette_data): Likewise.
46173 * normal/cmdline.c (cl_set_pos): Refresh the screen.
46174 (cl_insert): Likewise.
46175 (cl_delete): Likewise.
46177 * term/gfxterm.c: New file.
46179 * term/i386/pc/vesafb.c: Removed file.
46181 * video/video.c: New file.
46183 * video/i386/pc/vbe.c (real2pm): Added new function.
46184 (grub_video_vbe_draw_pixel): Likewise.
46185 (grub_video_vbe_get_video_ptr): Likewise.
46186 (grub_video_vbe_get_pixel): Likewise
46187 (grub_video_vbe_init): Likewise.
46188 (grub_video_vbe_fini): Likewise.
46189 (grub_video_vbe_setup): Likewise.
46190 (grub_video_vbe_get_info): Likewise.
46191 (grub_video_vbe_set_palette): Likewise.
46192 (grub_video_vbe_get_palette): Likewise.
46193 (grub_video_vbe_set_viewport): Likewise.
46194 (grub_video_vbe_get_viewport): Likewise.
46195 (grub_video_vbe_map_color): Likewise.
46196 (grub_video_vbe_map_rgb): Likewise.
46197 (grub_video_vbe_map_rgba): Likewise.
46198 (grub_video_vbe_unmap_color): Likewise.
46199 (grub_video_vbe_fill_rect): Likewise.
46200 (grub_video_vbe_blit_glyph): Likewise.
46201 (grub_video_vbe_blit_bitmap): Likewise.
46202 (grub_video_vbe_blit_render_target): Likewise.
46203 (grub_video_vbe_scroll): Likewise.
46204 (grub_video_vbe_swap_buffers): Likewise.
46205 (grub_video_vbe_create_render_target): Likewise.
46206 (grub_video_vbe_delete_render_target): Likewise.
46207 (grub_video_vbe_set_active_render_target): Likewise.
46208 (grub_vbe_set_pixel_rgb): Remove function.
46209 (grub_vbe_set_pixel_index): Likewise.
46210 (index_color_mode): Remove static variable.
46211 (active_mode): Likewise.
46212 (framebuffer): Likewise.
46213 (bytes_per_scan_line): Likewise.
46214 (grub_video_vbe_adapter): Added new static variable.
46215 (framebuffer): Likewise.
46216 (render_target): Likewise.
46217 (initial_mode): Likewise.
46218 (mode_in_use): Likewise.
46219 (mode_list): Likewise.
46221 2006-03-10 Marco Gerards <marco@gnu.org>
46223 * configure.ac (AC_INIT): Bumped to 1.93.
46225 * DISTLIST: Added `include/grub/hfs.h'.
46227 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
46229 * boot/i386/pc/boot.S (general_error): Before looping, try INT
46230 18H, which might help the BIOS falling back to next boot media.
46232 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
46234 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
46235 Poe Chen <poe.poechen@gmail.com>.
46237 2006-01-17 Marco Gerards <marco@gnu.org>
46239 * include/grub/normal.h: Include <grub/script.h>.
46240 (grub_command_list): Removed struct.
46241 (grub_command_list_t): Removed type.
46242 (grub_menu_entry): Remove members `num' and `command_list'. Add
46243 members `commands' and `sourcecode'.
46244 * include/grub/script.h: Add inclusion guards.
46245 (grub_script_cmd_menuentry): New struct.
46246 (grub_script_execute_menuentry): New prototype.
46247 (grub_script_lexer_record_start): Likewise.
46248 (grub_script_lexer_record_stop): Likewise.
46249 * normal/execute.c (grub_script_execute_menuentry): New function.
46250 * normal/lexer.c (record, recording, recordpos, recordlen): New
46252 (grub_script_lexer_record_start): New function.
46253 (grub_script_lexer_record_stop): Likewise.
46254 (recordchar): Likewise.
46255 (nextchar): Likewise.
46256 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
46257 2048 as the buffer size. Add the tokens `menuentry' and `@'.
46258 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
46259 (current_menu): New variable.
46260 (free_menu): Mainly rewritten.
46261 (grub_normal_menu_addentry): New function.
46262 (read_config_file): Rewritten.
46263 * normal/menu.c (run_menu_entry): Mainly rewritten.
46264 * normal/menu_entry.c (make_screen): Rewritten the code to insert
46266 (run): Mainly rewritten.
46267 * normal/parser.y (menu_entry): New variable.
46268 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
46269 (menuentry): New rule.
46270 (command): Add `menuentry'.
46271 (if_statement): Allow additional returns before `fi'.
46272 * normal/script.c (grub_script_create_cmdmenu): New function.
46274 2006-01-03 Marco Gerards <marco@gnu.org>
46276 * INSTALL: GNU Bison is required.
46277 * configure.ac: Rewritten the test to detect Bison.
46278 * Makefile.in (YACC): New variable. Reported by Xun Sun
46279 <xun.sun.cn@gmail.com>.
46281 2006-01-03 Marco Gerards <marco@gnu.org>
46283 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
46284 the HFS+ filesystem to filesystem blocks.
46285 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
46286 GCC warning is silenced.
46288 2006-01-03 Marco Gerards <marco@gnu.org>
46290 * partmap/apple.c (apple_partition_map_iterate): Convert the data
46291 read from disk from big endian to host byte order.
46293 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
46295 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
46297 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
46298 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
46299 embedded HFS+ filesystem.
46300 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
46301 (grub_hfs_sblock): Move from here...
46302 * include/grub/hfs.h: To here... New file.
46303 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
46305 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
46307 (grub_hfsplus_volheader): Change type of member `magic' to
46309 (grub_hfsplus_data): Add new member `embedded_offset'.
46310 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
46312 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
46313 Calculate the offset.
46315 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
46317 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
46319 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
46321 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
46323 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
46324 ENV->NAME is NULL after allocating ENV->VALUE.
46326 2005-12-25 Marco Gerards <marco@gnu.org>
46328 * kern/env.c (grub_env_set): Rewritten the error handling code.
46330 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
46332 * geninit.sh: Made more robust, and more portable.
46334 2005-12-25 Marco Gerards <marco@gnu.org>
46336 Add support for Apple HFS+ filesystems.
46338 * fs/hfsplus.c: New file.
46340 * DISTLIST: Added `fs/hfsplus.c'.
46342 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
46343 (hfsplus_mod_SOURCES): New variable.
46344 (hfsplus_mod_CFLAGS): Likewise.
46345 (hfsplus_mod_LDFLAGS): Likewise.
46346 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
46347 (grub_setup_SOURCES): Likewise.
46348 (grub_mkdevicemap_SOURCES): Likewise.
46349 (grub_emu_SOURCES): Likewise.
46350 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46352 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
46354 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
46356 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
46358 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
46359 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
46360 include/grub/parser.h, include/grub/script.h, kern/parser.c,
46361 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
46362 normal/lexer.c, normal/parser.y, normal/script.c, and
46364 Removed kern/sparc64/cache.c.
46366 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
46367 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
46370 * configure.ac (AC_INIT): Bumped to 1.92.
46372 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
46374 * kern/err.c (grub_error_push): Added new function to support error
46376 (grub_error_pop): Likewise.
46377 (grub_error_stack_items): New local variable to support error stacks.
46378 (grub_error_stack_pos): Likewise.
46379 (grub_error_stack_assert): Likewise.
46380 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
46382 (grub_print_error): Added support to print errors from error stack.
46384 * include/grub/err.h (grub_error_push): Added function prototype.
46385 (grub_error_pop): Likewise.
46387 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
46389 * configure.ac: Accept `powerpc64' as host_cpu.
46390 (amd64): Rename to `biarch32'.
46392 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
46393 non-cacheline-aligned addresses.
46395 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
46396 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
46397 if `size' is non-zero.
46399 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
46401 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
46402 and `cd' to make sure the filename is not prefixed with a
46404 (pkgdata_MODULES): Add `gpt.mod'.
46405 (gpt_mod_SOURCES): New variable.
46406 (gpt_mod_CFLAGS): Likewise.
46407 (gpt_mod_LDFLAGS): Likewise.
46409 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
46411 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
46414 * partmap/gpt.c: New file.
46416 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
46417 GPT partition map is detected.
46419 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
46421 * commands/i386/pc/play.c: New file.
46422 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
46423 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
46426 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
46428 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
46429 ((unused))' to silence gcc warning.
46431 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
46433 * configure.ac: Correct `AC_PROG_YACC' test.
46435 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
46437 * util/powerpc/ieee1275/grub-install.in: Run the mount point
46438 check before installing files.
46440 2005-11-22 Mike Small <smallm@panix.com>
46442 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
46443 number regex so multidigit numbers are recognized correctly.
46445 2005-11-22 Mike Small <smallm@panix.com>
46447 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
46448 debugging message before attempting to claim memory.
46449 (grub_rescue_cmd_initrd): Add a claim debugging message and try
46450 multiple addresses in case of failure.
46452 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
46454 * term/tparm.c (get_space): Remove empty `if' statement.
46456 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
46458 * kern/parser.c (check_varstate): Rename `state' to 's'.
46460 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
46462 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
46463 variable definitions to the beginning of each function. Sort stack
46465 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
46466 `buf' argument to `char *'.
46468 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
46470 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
46471 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
46472 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
46473 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
46474 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
46475 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
46476 configfile.mod, search.mod, gzio.mod and test.mod.
46477 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
46478 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
46479 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
46480 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
46481 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
46482 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
46483 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
46484 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
46485 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
46486 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
46487 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
46488 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
46489 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
46490 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
46491 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
46492 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
46493 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46494 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
46495 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
46496 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
46497 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
46498 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
46499 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
46501 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
46503 (pkgdata_MODULES): Add test.mod.
46505 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46507 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
46508 appending to variables with "+=".
46509 (PModule): Use full pathname to generate *.lst filenames.
46511 * Makefile.in: Fixed list rules moved from genmk.rb.
46512 (.DELETE_ON_ERROR): New special target.
46513 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
46515 * conf/i386-pc.rmk: Include conf/common.mk.
46516 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
46517 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
46518 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
46519 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
46520 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
46521 configfile.mod, search.mod, gzio.mod and test.mod.
46522 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
46523 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
46524 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
46525 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
46526 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
46527 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
46528 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
46529 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
46530 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
46531 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
46532 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
46533 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
46534 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
46535 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
46536 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
46537 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
46538 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46539 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
46540 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
46541 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
46542 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
46543 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
46544 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
46546 * conf/common.rmk: ... to here. New file.
46548 * conf/common.mk: New file.
46550 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
46552 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
46553 (grub_script.tab.c): ... here.
46555 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
46556 (grub_script.tab.c): ... here.
46558 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
46559 (grub_script.tab.c): ... here.
46561 * normal/command.c (grub_command_find): Fixed a memory leak of
46562 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
46564 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46566 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
46567 "@" which marks the start of a comment on ARM.
46568 (VARIABLE): Likewise.
46570 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46572 Add support for Linux/ADFS partition tables.
46574 * partmap/acorn.c: New file.
46576 * include/grub/acorn_filecore.h: Likewise.
46578 * DISTLIST: Added `partmap/acorn.c' and
46579 `include/grub/acorn_filecore.h'.
46581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46583 (pkgdata_MODULES): Add `acorn.mod'.
46584 (acorn_mod_SOURCES): New variable.
46585 (acorn_mod_CFLAGS): Likewise.
46587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
46589 (pkgdata_MODULES): Add `acorn.mod'.
46590 (acorn_mod_SOURCES): New variable.
46591 (acorn_mod_CFLAGS): Likewise.
46593 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
46594 (pkgdata_MODULES): Add `acorn.mod'.
46595 (acorn_mod_SOURCES): New variable.
46596 (acorn_mod_CFLAGS): Likewise.
46597 (acorn_mod_LDFLAGS): Likewise.
46599 * include/types.h (grub_disk_addr_t): New typedef.
46601 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
46603 * geninit.sh: New file.
46605 * geninitheader.sh: Likewise.
46607 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
46608 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
46609 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
46610 * commands/configfile.c (grub_configfile_init)
46611 (grub_configfile_fini): Likewise.
46612 * commands/default.c (grub_default_init, grub_default_fini):
46614 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
46615 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
46616 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
46617 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
46619 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
46620 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
46622 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
46623 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
46625 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
46627 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
46629 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
46630 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
46631 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
46632 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
46633 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
46634 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
46635 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
46636 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
46637 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
46638 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
46639 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
46640 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
46641 * partmap/amiga.c (grub_amiga_partition_map_init)
46642 (grub_amiga_partition_map_fini): Likewise.
46643 * partmap/apple.c (grub_apple_partition_map_init)
46644 (grub_apple_partition_map_fini): Likewise.
46645 * partmap/pc.c (grub_pc_partition_map_init)
46646 (grub_pc_partition_map_fini): Likewise.
46647 * partmap/sun.c (grub_sun_partition_map_init,
46648 grub_sun_partition_map_fini): Likewise.
46649 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
46652 * util/grub-emu.c: Include <grub_modules_init.h>.
46653 (main): Don't initialize and de-initialize any modules directly,
46654 use `grub_init_all' and `grub_fini_all' instead.
46656 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
46657 `grub_vesafb_mod_init'.
46658 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
46660 * term/i386/pc/vga.c (grub_vga_init): Renamed to
46661 `grub_vga_mod_init'. Updated all users.
46662 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
46664 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
46665 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
46668 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
46669 Generate a function to initialize the module in utilities.
46670 Updated all callers.
46671 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
46672 initialize the module in utilities. Updated all callers.
46674 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
46676 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
46677 escape sequence and a literal ^L to clear the screen.
46679 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
46680 when returning from Open Firmware.
46682 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
46684 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
46685 (grub_ofconsole_height): Likewise.
46686 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
46687 manually insert a '\n'.
46688 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
46689 `grub_ofconsole_height'. Return early if these are already set.
46691 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
46693 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
46694 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
46695 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
46696 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
46697 and `normal/script.c'.
46698 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46699 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46700 (test_mod_SOURCES): New variable.
46701 (test_mod_CFLAGS): Likewise.
46702 (test_mod_LDFLAGS): Likewise.
46703 (pkgdata_MODULES): Add `test.mod'.
46704 (grub_script.tab.c): New rule.
46705 (grub_script.tab.h): Likewise.
46707 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
46709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46710 `commands/test.c', `normal/execute.c', `normal/lexer.c',
46711 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46712 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46713 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46714 (test_mod_SOURCES): New variable.
46715 (test_mod_CFLAGS): Likewise.
46716 (pkgdata_MODULES): Add `test.mod'.
46717 (grub_script.tab.c): New rule.
46718 (grub_script.tab.h): Likewise.
46720 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
46722 Add initial scripting support.
46724 * commands/test.c: New file.
46725 * include/grub/script.h: Likewise.
46726 * normal/execute.c: Likewise.
46727 * normal/function.c: Likewise.
46728 * normal/lexer.c: Likewise.
46729 * normal/parser.y: Likewise.
46730 * normal/script.c: Likewise.
46732 * configure.ac: Add `AC_PROG_YACC' test.
46734 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
46735 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
46736 `normal/function.c' and `normal/script.c'.
46737 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46738 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46739 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
46741 (pkgdata_MODULES): Add `test.mod'.
46742 (grub_script.tab.c): New rule.
46743 (grub_script.tab.h): Likewise.
46745 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
46747 * include/grub/normal.h (grub_test_init): New prototype.
46748 (grub_test_fini): Likewise.
46750 * normal/command.c: Include <grub/script.h>.
46751 (grub_command_execute): Rewritten.
46753 * util/grub-emu.c (main): Call `grub_test_init' and
46756 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46758 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
46760 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
46761 there are no pending characters.
46763 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46765 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
46766 `grub_strndup' to drop device arguments. Replace unnecessary
46767 `grub_strndup' with `grub_strdup'.
46769 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46771 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
46772 `debug' environment variable has been set.
46774 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
46776 * Makefile.in (install-local): Use $(DATA).
46777 (uninstall): Likewise.
46778 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
46779 (sbin_UTILITIES): ... to here.
46780 (sbin_SCRIPTS): New variable.
46781 (grub_install_SOURCES): New variable.
46782 * util/powerpc/ieee1275/grub-install.in: New file.
46783 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
46785 (add_segments): Call `grub_util_get_path'.
46787 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
46789 From Timothy Baldwin:
46790 * commands/ls.c (grub_ls_list_files): Close FILE with
46792 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
46794 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
46796 * include/grub/parser.h: New file.
46798 * kern/parser.c: Likewise.
46800 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
46801 (grub_setup_SOURCES): Likewise.
46802 (grub_probefs_SOURCES): Likewise.
46803 (grub_emu_SOURCES): Likewise.
46804 (kernel_img_HEADERS): Add `parser.h'.
46806 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
46807 (grub_emu_SOURCES): Add `kern/parser.c'.
46808 (grubof_SOURCES): Likewise.
46810 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
46811 (grubof_SOURCES): Add `kern/parser.c'.
46813 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
46815 * kern/misc.c (grub_split_cmdline): Removed function.
46817 * kern/rescue.c: Include <grub/parser.h>.
46818 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
46819 of `grub_split_cmdline'.
46821 * normal/command.c: Include <grub/parser.h>.
46822 (grub_command_execute): Use `grub_parser_split_cmdline' instead
46823 of `grub_split_cmdline'.
46825 * normal/completion.c: Include <grub/parser.h>.
46826 (cmdline_state): New variable.
46827 (iterate_dir): End the filename with a quote depending on the
46828 command line state.
46829 (get_state): new function.
46830 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
46831 split the arguments and determine the current argument. When the
46832 argument string is not quoted, escape all spaces.
46834 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46836 * normal/sparc64/setjmp.S: New file.
46838 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46840 * include/grub/sparc64/libgcc.h: New file.
46841 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
46842 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
46843 normal/sparc64/setjmp.c.
46845 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46847 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
46848 * kern/sparc64/cache.S: New file.
46849 * kern/sparc64/cache.c: Removed.
46850 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
46851 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
46853 (COMMON_LDFLAGS): Add -melf64_sparc.
46854 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
46855 (grubof_SOURCES): Use cache.S instead of cache.c.
46856 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
46857 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
46858 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
46860 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
46861 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
46862 (linux_mod_CFLAGS): Commented out.
46863 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
46864 out because module isn't built.
46865 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
46866 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
46867 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
46868 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
46869 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
46870 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
46871 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
46872 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
46873 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
46874 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
46875 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
46876 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
46877 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
46878 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
46880 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
46882 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
46883 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
46884 longer, because HFS should not be used on PC.
46886 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46888 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
46889 consistently within the loop.
46891 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
46893 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
46894 directory can not be read.
46896 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46898 * configure.ac (AC_INIT): Increase the version number to 1.91.
46900 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
46901 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
46902 term/i386/pc/serial.c.
46904 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46906 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
46907 file size must be permitted.
46909 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
46910 between %ah and %al.
46912 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46914 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
46916 Call the hook with a NUL-terminated filename.
46917 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
46920 * kern/term.c (cursor_state): New variable.
46921 (grub_term_set_current): Reset the cursor state on a new
46923 (grub_setcursor): Rewritten to use CURSOR_STATE.
46924 (grub_getcursor): New function.
46926 * include/grub/term.h (grub_getcursor): New prototype.
46928 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
46929 integers on ARM. Reported by Timothy Baldwin
46930 <T.E.Baldwin99@members.leeds.ac.uk>.
46932 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
46934 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
46936 (grub_sfs_dir): Likewise.
46938 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
46940 Add support for the SFS filesystem.
46942 * fs/sfs.c: New file.
46944 * DISTLIST: Added `fs/sfs.c'.
46946 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
46947 (grub_probefs_SOURCES): Likewise.
46948 (grub_emu_SOURCES): Likewise.
46949 (pkgdata_MODULES): Add `sfs.mod'.
46950 (sfs_mod_SOURCES): New variable.
46951 (sfs_mod_CFLAGS): Likewise.
46952 (sfs_mod_LDFLAGS): Likewise.
46954 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
46955 (pkgdata_MODULES): Add `sfs.mod'.
46956 (sfs_mod_SOURCES): New variable.
46957 (sfs_mod_CFLAGS): Likewise.
46959 * util/grub-emu.c (main): Call `grub_sfs_init' and
46962 * include/grub/fs.h (grub_sfs_init): New prototype.
46963 (grub_sfs_fini): Likewise.
46965 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
46967 Add support for the AFFS filesystem.
46969 * fs/affs.c: New file.
46971 * DISTLIST: Added `fs/affs.c'.
46973 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
46974 (grub_probefs_SOURCES): Likewise.
46975 (grub_emu_SOURCES): Likewise.
46976 (pkgdata_MODULES): Add `affs.mod'.
46977 (affs_mod_SOURCES): New variable.
46978 (affs_mod_CFLAGS): Likewise.
46979 (affs_mod_LDFLAGS): Likewise.
46981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
46982 (pkgdata_MODULES): Add `affs.mod'.
46983 (affs_mod_SOURCES): New variable.
46984 (affs_mod_CFLAGS): Likewise.
46986 * util/grub-emu.c (main): Call `grub_affs_init' and
46989 * include/grub/fs.h (grub_affs_init): New prototype.
46990 (grub_affs_fini): Likewise.
46992 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
46994 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
46996 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
46998 * configure.ac: Accept `x86_64' as host_cpu. In that case add
47001 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
47004 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
47005 (COMMON_LDFLAGS): New variable.
47006 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
47007 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
47008 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
47009 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
47010 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
47011 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
47012 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
47013 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
47014 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
47015 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
47016 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
47017 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
47018 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
47019 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
47020 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
47022 (normal_mod_ASFLAGS): Add `-m32'.
47024 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
47025 (grub_host_size_t, grub_host_ssize_t): New types.
47026 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
47027 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
47028 `GRUB_HOST_SIZEOF_VOID_P'.
47030 * include/grub/kernel.h (struct grub_module_header): Type of
47031 member offset changed to `grub_host_off_t'. Type of member size
47032 changed to `grub_host_size_t'.
47033 (struct grub_module_info): Type of member offset changed to
47034 `grub_host_off_t'. Type of member size changed to
47035 `grub_host_size_t'.
47037 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
47039 Make GRUB's kernel compliant to Multiboot Specification.
47041 * kern/i386/pc/startup.S (multiboot_header): New label.
47042 (multiboot_entry): Likewise.
47043 (multiboot_trampoline): Likewise.
47045 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
47046 Increased to 0x4A0.
47048 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
47049 put parentheses after a question mark.
47050 [!GRUB_UTIL] (my_mod): New variable.
47052 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
47054 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
47056 Adds support for the XFS filesystem. Btrees are not supported
47059 * fs/xfs.c: New file.
47061 * DISTLIST: Added `fs/xfs.c'.
47063 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
47064 (grub_probefs_SOURCES): Likewise.
47065 (grub_emu_SOURCES): Likewise.
47066 (pkgdata_MODULES): Add `xfs.mod'.
47067 (xfs_mod_SOURCES): New variable.
47068 (xfs_mod_CFLAGS): Likewise.
47070 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
47071 (pkgdata_MODULES): Add `xfs.mod'.
47072 (xfs_mod_SOURCES): New variable.
47073 (xfs_mod_CFLAGS): Likewise.
47075 * util/grub-emu.c (main): Call `grub_xfs_init' and
47078 * include/grub/fs.h (grub_xfs_init): New prototype.
47079 (grub_xfs_fini): Likewise.
47082 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
47084 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
47085 color modes, allow greater than 16 colors to be configured as
47088 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47090 * normal/completion.c (complete_arguments): Add the qualifier
47091 const into OPTIONS.
47093 From Omniflux <omniflux+lists@omniflux.com>:
47094 * include/grub/terminfo.h: New file.
47095 * include/grub/tparm.h: Likewise.
47096 * include/grub/i386/pc/serial.h: Likewise.
47097 * term/terminfo.c: Likewise.
47098 * term/tparm.c: Likewise.
47099 * term/i386/pc/serial.c: Likewise.
47100 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
47102 (terminfo_mod_SOURCES): New variable.
47103 (terminfo_mod_CFLAGS): Likewise.
47104 (serial_mod_SOURCES): Likewise.
47105 (serial_mod_CFLAGS): Likewise.
47107 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
47109 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
47110 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
47111 and kern/powerpc/ieee1275/cmain.c, respectively.
47113 * boot/powerpc/ieee1275/crt0.S: Moved to ...
47114 * kern/powerpc/ieee1275/crt0.S: ... here.
47116 * boot/powerpc/ieee1275/cmain.c: Moved to ...
47117 * kern/powerpc/ieee1275/cmain.c: ... here.
47119 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
47120 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
47121 instead of boot/powerpc/ieee1275/crt0.S and
47122 boot/powerpc/ieee1275/cmain.c, respectively.
47124 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
47125 sectors. It was not used anyway.
47127 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
47129 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
47130 `unused parameter' warning.
47132 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
47134 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
47136 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
47139 2005-08-28 Marco Gerards <metgerards@student.han.nl>
47141 * include/grub/normal.h (enum grub_completion_type): Added
47142 `GRUB_COMPLETION_TYPE_ARGUMENT'.
47144 * normal/cmdline.c (print_completion): Handle
47145 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
47146 * normal/menu_entry.c (store_completion): Likewise.
47148 * normal/completion.c (complete_arguments): New function.
47149 (grub_normal_do_completion): Call `complete_arguments' when the
47150 current words start with a dash.
47152 2005-08-27 Marco Gerards <metgerards@student.han.nl>
47154 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
47155 `gzio.mod' instead of `io.mod').
47157 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
47159 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
47160 (DISTDIRS): Added io and video.
47161 Rewrite the search routine to make an output consistently.
47163 * DISTLIST: Added conf/sparc64-ieee1275.mk,
47164 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
47165 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
47166 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
47167 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
47168 util/powerpc/ieee1275/misc.c.
47170 * include/grub/gzio.h: New file.
47171 * io/gzio.c: Likewise.
47173 * kern/file.c (grub_file_close): Call grub_device_close only if
47174 FILE->DEVICE is not NULL.
47176 * include/grub/mm.h [!NULL] (NULL): New macro.
47178 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
47180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
47181 (pkgdata_MODULES): Added gzio.mod.
47182 (gzio_mod_SOURCES): New variable.
47183 (gzio_mod_CFLAGS): Likewise.
47185 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
47186 (pkgdata_MODULES): Added gzio.mod.
47187 (gzio_mod_SOURCES): New variable.
47188 (gzio_mod_CFLAGS): Likewise.
47190 * commands/cat.c: Include grub/gzio.h.
47191 (grub_cmd_cat): Use grub_gzfile_open instead of
47194 * commands/cmp.c: Include grub/gzio.h.
47195 (grub_cmd_cmp): Use grub_gzfile_open instead of
47198 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
47199 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
47201 (grub_rescue_cmd_module): Likewise.
47203 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
47205 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
47206 kern/sparc64/ieee1275/init.c because it contains _start.
47207 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
47209 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
47211 * configure.ac: Add support for sparc64 host with ieee1275
47213 * configure: Generated from configure.ac.
47214 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
47216 (grub_ofdisk_read): Likewise.
47217 (grub_ofdisk_open): Use %p to print pointer values, and cast the
47218 pointers as (void *) to remove a warning.
47219 (grub_ofdisk_close): Likewise.
47220 (grub_ofdisk_read): Likewise.
47221 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
47222 returns, so make it return void to remove a warning.
47223 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
47224 Corresponding prototype change.
47225 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
47226 values, and cast the pointers as (void *) to remove a warning.
47227 (grub_mm_dump): Likewise.
47228 * conf/sparc64-ieee1275.mk: New file.
47229 * conf/sparc64-ieee1275.rmk: Likewise.
47230 * include/grub/sparc64/setjmp.h: Likewise.
47231 * include/grub/sparc64/types.h: Likewise.
47232 * include/grub/sparc64/ieee1275/console.h: Likewise.
47233 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47234 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47235 * include/grub/sparc64/ieee1275/time.h: Likewise.
47236 * kern/sparc64/cache.c: Likewise.
47237 * kern/sparc64/dl.c: Likewise.
47238 * kern/sparc64/ieee1275/init.c: Likewise.
47239 * kern/sparc64/ieee1275/openfw.c: Likewise.
47241 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47243 * util/console.c (grub_ncurses_putchar): If C is greater than
47244 0x7f, set C to a question mark.
47245 (grub_ncurses_getcharwidth): New function.
47246 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
47249 * normal/menu.c (print_entry): Made aware of Unicode. First,
47250 convert TITLE to UCS-4, and predict the cursor position by
47253 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
47255 * kern/misc.c (grub_utf16_to_utf8): Likewise.
47257 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
47259 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
47260 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
47263 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
47264 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
47265 grub_strcpy and grub_strlen. Take it into account that a space
47266 character is inserted as a delimiter.
47268 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
47270 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
47271 invalid magic in the error.
47273 * commands/search.c: New file.
47275 * util/grub-emu.c (main): Call grub_search_init and
47278 * kern/rescue.c (grub_rescue_print_disks): Removed.
47279 (grub_rescue_print_devices): New function.
47280 (grub_rescue_cmd_ls): Use grub_device_iterate with
47281 grub_rescue_print_devices instead of grub_disk_dev_iterate with
47282 grub_rescue_print_disks.
47284 * kern/partition.c (grub_partition_iterate): Return the result of
47285 PARTMAP->ITERATE instead of GRUB_ERRNO.
47287 * kern/device.c: Include grub/partition.h.
47288 (grub_device_iterate): New function.
47290 * include/grub/partition.h (grub_partition_iterate): Return int
47291 instead of grub_err_t.
47293 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
47295 [GRUB_UTIL] (grub_search_fini): Likewise.
47297 * include/grub/device.h (grub_device_iterate): New prototype.
47299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47301 (pkgdata_MODULES): Added search.mod.
47302 (search_mod_SOURCES): New variable.
47303 (search_mod_CFLAGS): Likewise.
47305 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
47306 (pkgdata_MODULES): Added search.mod.
47307 (search_mod_SOURCES): New variable.
47308 (search_mod_CFLAGS): Likewise.
47310 * commands/ls.c (grub_ls_list_disks): Renamed to ...
47311 (grub_ls_list_devices): ... this, and use grub_device_iterate.
47312 All callers changed.
47314 * DISTLIST: Added commands/search.c.
47316 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
47318 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
47320 (grub_getcharwidth): New function.
47322 * kern/misc.c (grub_utf8_to_ucs4): New function.
47324 * include/grub/term.h (struct grub_term): Added a new member
47326 (grub_getcharwidth): New prototype.
47328 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
47330 * term/i386/pc/console.c (map_char): New function. Segregated from
47331 grub_console_putchar.
47332 (grub_console_putchar): Use map_char.
47333 (grub_console_getcharwidth): New function.
47334 (grub_console_term): Specified grub_console_getcharwidth as
47337 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
47338 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
47340 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
47342 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
47343 on grub_strtoul completely.
47344 (write_char): Declare local variables in the beginning of the
47346 (grub_vesafb_getcharwidth): New function.
47347 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
47350 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
47352 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
47353 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
47354 commands/i386/pc/vbetest.c.
47356 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
47357 call grub_vbe_get_controller_info again, because the returned
47358 information is volatile.
47359 (grub_vbe_set_video_mode): Mostly rewritten.
47360 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
47361 grub_vbe_status_t correctly.
47362 (grub_vbe_get_video_mode_info): Likewise.
47363 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
47364 several if statements.
47366 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
47367 * commands/i386/pc/vbeinfo.c: ... this.
47369 * commands/i386/pc/vbe_test.c: Renamed to ...
47370 * commands/i386/pc/vbetest.c: ... this.
47372 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
47374 (grub_cmd_vbeinfo): ... this. Save video modes before
47375 iterating. Skip a video mode, if it is not available, not enough
47376 information is given or it is monochrome. Show the memory
47377 model. Leave the interpretation of MODEVAR to grub_strtoul
47379 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
47380 (GRUB_MOD_FINI): Likewise.
47382 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
47383 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
47384 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
47385 duplicated grub_env_get. Leave the interpretation of MODEVAR to
47386 grub_strtoul completely.
47387 (real2pm): Removed.
47388 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
47389 (GRUB_MOD_FINI): Likewise.
47391 * normal/misc.c: Include grub/mm.h.
47393 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
47394 vbe_list_modes with vbetest.mod and vbeinfo.mod.
47395 (vbe_list_modes_mod_SOURCES): Removed.
47396 (vbe_list_modes_mod_CFLAGS): Likewise.
47397 (vbe_test_mod_SOURCES): Likewise.
47398 (vbe_test_mod_CFLAGS): Likewise.
47399 (vbeinfo_mod_SOURCES): New variable.
47400 (vbeinfo_mod_CFLAGS): Likewise.
47401 (vbetest_mod_SOURCES): Likewise.
47402 (vbetest_mod_CFLAGS): Likewise.
47404 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
47406 * normal/misc.c: New file.
47408 * DISTLIST: Added normal/misc.c.
47410 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
47411 DISK to HOOK. Call HOOK with DISK.
47412 * partmap/apple.c (apple_partition_map_iterate): Likewise.
47413 * partmap/pc.c (pc_partition_map_iterate): Likewise.
47414 * partmap/sun.c (sun_partition_map_iterate): Likewise.
47416 * normal/menu_entry.c (struct screen): Added a new member
47417 "completion_shown".
47418 (completion_buffer): New global variable.
47419 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
47420 (store_completion): New function.
47421 (complete): Likewise.
47422 (clear_completions): Likewise.
47423 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
47424 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
47425 a tab, call complete.
47427 * normal/completion.c (disk_dev): Removed.
47428 (print_simple_completion): Likewise.
47429 (print_partition_completion): Likewise.
47430 (print_func): New global variable.
47431 (add_completion): Do not take the arguments WHAT or PRINT any
47432 longer. Added a new argument TYPE. Instead of printing directly,
47433 call PRINT_FUNC if not NULL.
47434 All callers changed.
47435 (complete_device): Use a local variable DEV instead of
47436 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
47437 (grub_normal_do_completion): Take a new argument HOOK. Do not
47438 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
47439 empty string, return NULL instead.
47440 All callers changed.
47442 * normal/cmdline.c (print_completion): New function.
47444 * kern/partition.c (grub_partition_iterate): Add an argument DISK
47446 All callers changed.
47448 * kern/disk.c (grub_print_partinfo): Removed.
47450 * include/grub/partition.h (struct grub_partition_map): Add a new
47451 argument DISK into HOOK of ITERATE.
47452 (grub_partition_iterate): Add a new argument DISK to HOOK.
47454 * include/grub/normal.h (enum grub_completion_type): New enum.
47455 (grub_completion_type_t): New type.
47456 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
47457 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
47458 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
47459 (GRUB_COMPLETION_TYPE_FILE): Likewise.
47460 (grub_normal_do_completion): Added a new argument HOOK.
47461 (grub_normal_print_device_info): New prototype.
47463 * include/grub/disk.h (grub_print_partinfo): Removed.
47465 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
47466 (normal_mod_SOURCES): Likewise.
47467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47468 (normal_mod_SOURCES): Likewise.
47470 * commands/ls.c (grub_ls_list_disks): Use
47471 grub_normal_print_device_info instead of grub_print_partinfo. Free
47473 (grub_ls_list_files): Use grub_normal_print_device_info instead of
47474 duplicating the code.
47476 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
47478 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
47479 follow GCS more precisely.
47480 * commands/i386/pc/vbe_test.c: Likewise.
47481 * include/grub/i386/pc/vbe.h: Likewise.
47482 * term/i386/pc/vesafb.c: Likewise.
47483 * video/i386/pc/vbe.c: Likewise.
47485 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
47487 * DISTLIST: Added term/i386/pc/vesafb.c
47488 DISTLIST: Added video/i386/pc/vbe.c
47489 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
47490 DISTLIST: Added commands/i386/pc/vbe_test.c.
47491 * commands/i386/pc/vbe_list_modes.c: New file.
47492 * commands/i386/pc/vbe_test.c: Likewise.
47493 * term/i386/pc/vesafb.c: Likewise.
47494 * video/i386/pc/vbe.c: Likewise.
47495 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
47496 (grub_vbe_probe) Added prototype.
47497 (grub_vbe_set_video_mode) Likewise.
47498 (grub_vbe_get_video_mode) Likewise.
47499 (grub_vbe_get_video_mode_info) Likewise.
47500 (grub_vbe_set_pixel_rgb) Likewise.
47501 (grub_vbe_set_pixel_index) Likewise.
47502 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
47503 (pkgdata_MODULES): Added vesafb.mod.
47504 (pkgdata_MODULES): Added vbe_list_modes.mod.
47505 (pkgdata_MODULES): Added vbe_test.mod.
47506 (vbe_mod_SOURCES): Added.
47507 (vbe_mod_CFLAGS): Likewise.
47508 (vesafb_mod_SOURCES): Likewise.
47509 (vesafb_mod_CFLAGS): Likewise.
47510 (vbe_list_modes_mod_SOURCES): Likewise.
47511 (vbe_list_modes_mod_CFLAGS): Likewise.
47512 (vbe_test_mod_SOURCES): Likewise.
47513 (vbe_test_mod_CFLAGS): Likewise.
47515 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
47517 * normal/command.c (grub_command_execute): If INTERACTIVE is
47518 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
47519 CMDLINE. Disable the pager if INTERACTIVE is true.
47520 All callers are changed.
47522 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
47523 before reading a config file.
47524 * normal/main.c (read_config_file): Even if a command is not
47525 found, register it if it is within an entry.
47527 * util/grub-emu.c: Include sys/types.h and unistd.h.
47528 (options): Added --hold.
47529 (struct arguments): Added a new member "hold".
47530 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
47532 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
47533 cleared by a debugger, if it is not zero.
47535 * include/grub/normal.h (grub_command_execute): Add an argument
47538 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
47540 * DISTLIST: Added include/grub/i386/pc/vbe.h.
47542 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
47544 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
47545 program with another one, because the old one didn't detect a bug
47546 in gcc-3.4. Always use regparm 2, because the new test is still
47547 not enough for gcc-4.0. Someone must investigate a simple test
47548 case which detects a bug in gcc-4.0.
47550 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
47552 * DISTLIST: Added normal/completion.c.
47554 * normal/completion.c: New file.
47556 * term/i386/pc/console.c (grub_console_getwh): New function.
47557 (grub_console_term): Assign grub_console_getwh to getwh.
47559 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
47560 function is defined in normal/completion.c as
47561 grub_normal_do_completion.
47562 (grub_cmdline_get): Use grub_normal_do_completion instead of
47565 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
47566 returns non-zero, otherwise return 0.
47567 (grub_partition_iterate): First, probe the partition map. Then,
47568 call ITERATE only for this partition map.
47570 * kern/misc.c (grub_strncmp): Rewritten.
47572 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
47573 returns non-zero. Otherwise return 0.
47575 * include/grub/partition.h (grub_partition_map_iterate): Return
47576 int instead of void.
47578 * include/grub/normal.h (grub_normal_do_completion): New prototype.
47580 * include/grub/misc.h (grub_strncmp): Change the type of N to
47583 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
47586 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
47587 unsigned explicitly before comparing it with I.
47589 * kern/main.c (grub_env_write_root): Add the attribute unused into
47592 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47593 normal/completion.c.
47594 (normal_mod_SOURCES): Likewise.
47595 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
47596 (normal_mod_SOURCES): Likewise.
47598 * normal/command.c (grub_iterate_commands): If ITERATE returns
47599 non-zero, return one immediately.
47601 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
47603 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
47604 * kern/i386/pc/startup.S: Updated Global Descriptor table's
47606 (grub_vbe_get_controller_info): New function.
47607 (grub_vbe_get_mode_info): Likewise.
47608 (grub_vbe_set_mode): Likewise.
47609 (grub_vbe_get_mode): Likewise.
47610 (grub_vbe_set_memory_window): Likewise.
47611 (grub_vbe_get_memory_window): Likewise.
47612 (grub_vbe_set_scanline_length): Likewise.
47613 (grub_vbe_get_scanline_length): Likewise.
47614 (grub_vbe_set_display_start): Likewise.
47615 (grub_vbe_get_display_start): Likewise.
47616 (grub_vbe_set_palette_data): Likewise.
47617 * include/grub/i386/pc/vbe.h: New file.
47619 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47621 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
47622 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
47623 * DISTLIST: Likewise.
47624 * kern/ieee1275/of.c: Moved to ...
47625 * kern/ieee1275/ieee1275.c: ... here.
47627 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47629 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
47630 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
47631 Pass 0 as `end' parameter to grub_strtoul().
47633 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47635 * include/grub/powerpc/ieee1275/console.h: Do not include
47636 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
47638 (grub_console_cur_color): Remove i386-specific prototype.
47639 (grub_console_real_putchar): Likewise.
47640 (grub_console_checkkey): Likewise.
47641 (grub_console_getkey): Likewise.
47642 (grub_console_getxy): Likewise.
47643 (grub_console_gotoxy): Likewise.
47644 (grub_console_cls): Likewise.
47645 (grub_console_setcursor): Likewise.
47646 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
47647 Include <grub/machine/console.h>.
47648 * term/ieee1275/ofconsole.c: Likewise.
47650 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
47652 * Makefile.in (LIBLZO): New variable.
47654 * configure.ac: Check for LZO version 2.
47656 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
47657 lzo/lzo1x.h instead of lzo1x.h.
47659 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
47662 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
47663 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
47665 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
47666 copying the data from PARTITION to P.
47668 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47670 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
47671 negative, unload the module.
47673 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
47674 map is "pc_partition_map" but not "pc".
47675 (usage): Fix the description. The options are --boot-image and
47676 --core-image but not --boot-file or --core-file.
47677 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
47678 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
47681 * util/i386/pc/grub-install.in: Do not specify --boot-file or
47682 --core-file. Specify INSTALL_DEVICE as an argument.
47684 * util/console.c: Include config.h.
47685 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
47686 [HAVE_NCURSES_H]: Include ncurses.h.
47687 [HAVE_CURSES_H]: Include curses.h.
47688 [!A_NORMAL] (A_NORMAL): Defined as zero.
47689 [!A_STANDOUT] (A_STANDOUT): Likewise.
47691 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
47693 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
47695 * configure.ac: Check for curses libraries and headers.
47697 * Makefile.in (LIBCURSES): New variable.
47699 * genmk.rb (Script::rule): Set the executable bits.
47701 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
47702 name of the PC partition map is "pc_partition_map" but not "pc".
47704 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47706 * util/i386/pc/grub-install.in (grub_probefs): New variable.
47707 (modules): Likewise.
47708 (usage): Added descriptions for --modules and --grub-probefs.
47709 Handle --modules and --grub-probefs. Save the arguments in MODULES
47710 and GRUB_PROBEFS, respectively.
47711 Auto-detect a filesystem module against GRUBDIR. If the result is
47712 empty and modules are not specified explicitly, abort the
47713 installation. Add the result to MODULES.
47715 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
47716 disk/powerpc/ieee1275/ofdisk.c,
47717 include/grub/powerpc/ieee1275/init.h and
47718 term/powerpc/ieee1275/ofconsole.c.
47719 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
47720 term/ieee1275/ofconsole.c.
47722 * include/grub/powerpc/ieee1275/console.h: Resurrected.
47724 * COPYING: Upgraded to the latest version. Only the address of the
47725 FSF office has changed.
47727 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47729 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
47730 kern/ieee1275.c with kern/ieee1275/of.c.
47732 * kern/ieee1275.c: Moved to ...
47733 * kern/ieee1275/of.c: ... here.
47735 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
47737 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
47740 * config.guess: Updated to the latest version from gnulib.
47741 * config.sub: Likewise.
47742 * install.sh: Likewise.
47743 * mkinstalldirs: Likewise.
47745 * include/grub/console.h: Removed. This file is arch-specific. Do
47746 not put this in include/grub.
47748 * include/grub/i386/pc/console.h: Resurrected.
47750 * util/console.c: Include grub/machine/console.h instead of
47752 * util/grub-emu.c: Likewise.
47754 2005-08-04 Marco Gerards <metgerards@student.han.nl>
47756 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
47759 From Vincent Pelletier <subdino2004@yahoo.fr>
47760 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
47761 Redefined to use grub_getwh.
47762 (grub_term): New member named getwh.
47763 (grub_getwh): New prototype.
47764 * kern/term.c (grub_getwh): New function.
47765 * term/i386/pc/console.c (grub_console_getwh): New function.
47766 (grub_console_term): New member `getwh'.
47767 * term/i386/pc/vga.c (grub_vga_getwh): New function.
47768 (grub_vga_term): New member `getwh'.
47769 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
47771 (grub_ofconsole_getw): New function.
47772 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
47773 (grub_ofconsole_term): New field named getwh and new initial
47776 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
47778 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
47779 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
47780 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
47781 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
47782 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
47783 of <grub/machine/ieee1275.h>.
47784 * commands/ieee1275/reboot.c: Likewise.
47785 * boot/powerpc/ieee1275/ieee1275.c: Move ...
47786 * kern/ieee1275.c: ... to here. All users updated. Change all
47787 parameter structs to use new type `grub_ieee1275_cell_t'.
47788 * term/powerpc/ieee1275/ofconsole.c: Move ...
47789 * term/ieee1275/ofconsole.c: ... to here. All users updated.
47790 * disk/powerpc/ieee1275/ofdisk.c: Move ...
47791 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
47792 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
47794 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
47795 Remove unused prototypes. All users updated.
47796 * include/grub/powerpc/ieee1275/console.h: Removed.
47797 * include/grub/powerpc/ieee1275/ieee1275.h: Define
47798 `grub_ieee1275_cell_t'.
47799 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
47800 Cast comparisons with -1 to the correct type.
47801 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
47802 type to match `grub_ieee1275_entry_fn'.
47804 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
47806 * DISTLIST: Added util/i386/pc/grub-probefs.c.
47808 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
47809 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
47811 (grub_probefs_SOURCES): New variable.
47813 * util/i386/pc/grub-probefs.c: New file.
47815 * util/i386/pc/grub-setup.c (main): Call
47816 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
47817 grub_hfs_init and grub_jfs_init to initialize the system. Call
47818 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
47819 grub_pc_partition_map_fini to finish the system.
47821 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
47823 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
47825 (grub_multiboot_load_elf32): Likewise.
47826 (grub_multiboot_is_elf64): Likewise.
47827 (grub_multiboot_load_elf64): Likewise.
47828 (grub_multiboot_load_elf): Likewise.
47829 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
47830 an ELF32 or ELF64 file.
47831 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
47833 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
47834 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
47835 NULL before calling FS->LABEL.
47836 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
47837 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
47838 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
47839 before calling FS->LABEL.
47841 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
47843 * util/i386/pc/grub-install.in (datadir): New variable.
47845 (pkgdatadir): New variable.
47846 (pkglibdir): Removed.
47848 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
47850 * DISTLIST: Added util/i386/pc/grub-install.in.
47852 * util/i386/pc/grub-install.in: New file.
47854 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
47855 (grub_install_SOURCES): Likewise.
47857 * genmk.rb: Added support for scripts.
47858 (Script): New class.
47859 (scripts): New variable.
47861 * Makefile.in (install-local): Install sbin_SCRIPTS by
47863 (uninstall): Remove sbin_SCRIPTS.
47865 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
47866 device, try to get a GRUB device by
47867 grub_util_biosdisk_get_grub_dev.
47870 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
47871 description for --device-map.
47873 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
47875 Change the semantics of variable hooks. They now return strings
47876 instead of error values.
47878 * util/i386/pc/grub-setup.c: Include grub/env.h.
47879 (setup): Use grub_device_set_root instead of grub_env_set.
47881 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
47882 grub_env_get instead of grub_device_set_root and
47883 grub_device_get_root, respectively.
47885 * kern/main.c (grub_env_write_root): New function.
47886 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
47887 grub_env_set instead of grub_device_set_root.
47889 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
47891 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
47892 rather than calling ENV->WRITE_HOOK afterwards.
47893 (grub_env_get): Return the result of ENV->READ_HOOK rather than
47894 passing a pointer of a pointer.
47895 (grub_register_variable_hook): Change the types of "read_hook" and
47896 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
47898 Allocate the default empty string on the heap, because this string
47899 may be freed later.
47901 * kern/device.c: Include grub/env.h.
47902 (grub_device_set_root): Removed.
47903 (grub_device_get_root): Likewise.
47904 (grub_device_open): Use grub_env_get instead of
47905 grub_device_get_root.
47907 * include/grub/env.h (grub_env_read_hook_t): New type.
47908 (grub_env_write_hook_t): Likewise.
47909 (grub_env_var): Change the types of "read_hook" and "write_hook"
47910 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
47911 (grub_register_variable_hook): Likewise.
47913 * include/grub/device.h (grub_device_set_root): Removed.
47914 (grub_device_set_root): Likewise.
47916 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
47917 make sure that DIRNAME terminates with '/', so that
47918 grub_fat_find_dir will fail if PATH is not a directory.
47920 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
47922 Use the qualifier auto for print_files and print_files_long.
47923 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
47925 Put a newline only if there is no error.
47926 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
47929 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
47931 * kern/partition.c (grub_partition_probe): Initialize PART to
47932 NULL. Otherwise, when no partition map is registered, this returns
47935 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
47937 * partmap/apple.c (apple_partition_map_iterate): Check if POS
47938 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
47941 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
47943 * commands/ls.c (grub_ls_list_disks): Print the filesystem
47944 information on each device, if it does not have partitions. Print
47945 "Device" instead of "Disk", because this function is not specific
47948 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
47949 static to ensure that it is put on the memory rather than a
47952 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47954 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
47955 (grub_cat_init): Likewise.
47956 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
47957 (options): Likewise.
47958 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
47959 (grub_configfile_init): Likewise.
47960 * font/manager.c (GRUB_MOD_INIT): Likewise.
47961 * commands/help.c (GRUB_MOD_INIT): Likewise.
47962 (grub_help_init): Likewise.
47963 * normal/command.c (grub_command_init): Likewise.
47964 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
47965 * disk/loopback.c (grub_loop_init): Likewise.
47966 (GRUB_MOD_INIT): Likewise.
47967 * commands/ls.c (grub_ls_init): Likewise.
47968 (GRUB_MOD_INIT): Likewise.
47969 (options): Likewise.
47970 * commands/boot.c (grub_boot_init): Likewise.
47971 (GRUB_MOD_INIT): Likewise.
47972 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
47973 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
47974 (GRUB_MOD_INIT): Likewise.
47975 * commands/cmp.c (grub_cmp_init): Likewise.
47976 (GRUB_MOD_INIT): Likewise.
47978 * normal/arg.c: Use <> instead of "" to include header files.
47979 (SHORT_ARG_HELP): New macro.
47980 (SHORT_ARG_USAGE): Likewise.
47981 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
47982 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
47984 (find_short): Check if C is 'h' or 'u' explicitly.
47985 (grub_arg_show_help): Use space characters instead of tabs. Treat
47986 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
47987 are shown with --help and --usage only if they are not used for
47988 the command itself.
47989 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
47992 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
47993 const into "longarg". Change the type of "shortarg" to int.
47995 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47997 * boot/i386/pc/boot.S (boot_drive_check): New label.
47999 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
48002 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
48003 which do not pass a boot drive correctly. Copied from GRUB Legacy.
48005 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
48007 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
48008 When turning off Gate A20, skip the check and return immediately,
48009 because this is not fatal usually.
48011 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
48013 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
48014 be 0x7C00 instead of 0x8000.
48016 * boot/i386/pc/pxeboot.S: Rewritten.
48018 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
48020 (gate_a20_check_state): Read a byte from 0x108000. Invert the
48023 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
48025 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
48026 robustness. This routine now supports a BIOS call and System
48027 Control Port A to modify the gate A20.
48029 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48030 Increased to 0x440.
48032 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
48034 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
48035 device path and resulting ihandle.
48036 (grub_ofdisk_close): dprintf the ihandle being closed.
48037 (grub_ofdisk_read): dprintf function parameters.
48038 * kern/mm.c (grub_mm_init_region): Likewise.
48039 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
48040 (grub_linux_boot): dprintf the Linux entry point, initrd address and
48041 size, and boot arguments.
48042 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
48043 before loading into memory.
48044 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
48045 before loading into memory.
48047 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
48049 * kern/mm.c: Added much documentation.
48050 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
48051 8, set to 5 instead of 8.
48053 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
48055 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
48057 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
48058 (grub_mkdevicemap_SOURCES): New variable.
48060 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
48061 lib/device.c of GRUB Legacy.
48063 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
48065 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
48066 instead of PATH is NULL.
48068 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
48070 * commands/cmp.c (BUFFER_SIZE): New macro.
48071 (grub_cmd_cmp): Close the right file at the right time. Compare
48072 only data just read. Don't report files of different size as
48073 identical. Dynamically allocate buffers. Move variable
48074 declarations at the beginning of function.
48076 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
48078 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
48081 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
48083 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
48084 when backspace is pressed at beginning of line.
48086 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
48088 * DISTLIST: Added genfslist.sh.
48090 * normal/main.c (fs_module_list): New variable.
48091 (autoload_fs_module): New function.
48092 (read_fs_list): Likewise.
48093 (grub_normal_execute): Call read_fs_list.
48095 * kern/fs.c (grub_fs_autoload_hook): New variable.
48096 (grub_fs_probe): Added support for auto-loading.
48098 * include/grub/normal.h (struct grub_fs_module_list): New struct.
48099 (grub_fs_module_list_t): New type.
48101 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
48102 (grub_fs_autoload_hook): New prototype.
48104 * genfslist.sh: New file.
48106 * genmk.rb: Added a rule to generate a filesystem list.
48108 2005-06-30 Marco Gerards <metgerards@student.han.nl>
48110 * configure.ac: Fix the test for cross-compiling.
48112 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
48113 define GRUB_UTIL anymore.
48115 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
48116 so this function works on other systems than just big endian.
48117 (load_modules): Likewise.
48118 (add_segments): Likewise.
48120 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
48122 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
48123 contains `l' modifier, get a long from va_arg().
48125 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
48127 * kern/mm.c (grub_free): If the next free block which is being
48128 merged is the first free block, set the first block to the block
48130 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
48132 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
48134 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
48135 `grub_ieee1275_chosen'.
48137 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
48139 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
48140 (grub_ieee1275_chosen): New variable.
48141 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
48143 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
48144 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
48145 Rename first argument to `phandle' for consistency.
48146 (grub_ieee1275_get_property_length): Likewise.
48147 (grub_ieee1275_next_property): Likewise. Change type of first argument
48148 to grub_ieee1275_phandle_t.
48149 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
48150 Move export next to declaration.
48151 (grub_ieee1275_chosen): New variable.
48152 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
48153 Correct cosmetic typo.
48154 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
48155 `grub_ieee1275_chosen'.
48156 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
48157 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
48158 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
48159 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
48160 `grub_ieee1275_chosen'.
48162 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
48164 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
48166 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
48167 /chosen/bootargs as "variable=value" pairs.
48169 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
48171 * include/grub/misc.h (grub_dprintf): New macro.
48172 (grub_real_dprintf): New prototype.
48173 (grub_strword): Likewise.
48174 (grub_iswordseparator): Likewise.
48175 * kern/misc.c (grub_real_dprintf): New function.
48176 (grub_strword): Likewise.
48177 (grub_iswordseparator): Likewise.
48179 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
48181 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
48182 (roundup): Remove macro.
48183 (grub_ieee1275_flags): Make static.
48184 (grub_ieee1275_realmode): Remove.
48185 (grub_ieee1275_test_flag): New function.
48186 (grub_ieee1275_set_flag): Likewise.
48187 (find_options): Rename to `grub_ieee1275_find_options'; update
48188 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
48189 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
48190 (cmain): New prototype.
48191 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
48192 `grub_ieee1275_flags' directly.
48193 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
48194 machine/biosdisk.h.
48195 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
48196 Don't include grub/machine/init.h.
48197 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
48198 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
48200 (grub_ieee1275_realmode): Likewise.
48201 (grub_ieee1275_flag): New enum.
48202 (grub_ieee1275_test_flag): New prototype.
48203 (grub_ieee1275_set_flag): New prototype.
48204 * include/grub/powerpc/ieee1275/init.h: Remove file.
48205 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
48206 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
48207 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
48208 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
48210 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
48211 `grub_ieee1275_test_flag'.
48212 (grub_ieee1275_encode_devname): Likewise.
48214 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
48216 * include/grub/powerpc/ieee1275/ieee1275.h
48217 (grub_ieee1275_encode_devname): New prototype.
48218 (grub_ieee1275_get_filename): Likewise.
48219 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
48221 (grub_set_prefix): Likewise.
48222 (grub_machine_init): Call grub_set_prefix.
48223 * kern/powerpc/ieee1275/openfw.c: Fix typos.
48224 (grub_parse_type): New enum.
48225 (grub_ieee1275_get_devargs): New function.
48226 (grub_ieee1275_get_devname): Likewise.
48227 (grub_ieee1275_parse_args): Likewise.
48228 (grub_ieee1275_get_filename): Likewise.
48229 (grub_ieee1275_encode_devname): Likewise.
48231 2005-03-30 Marco Gerards <metgerards@student.han.nl>
48233 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
48234 `grub_loader_unset'.
48236 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
48238 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
48239 instead of grub_ieee1275_interpret.
48240 (grub_halt_init): New function.
48241 (grub_halt_fini): Likewise.
48242 (GRUB_MOD_INIT): Correct message grammar.
48243 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
48244 instead of grub_ieee1275_interpret.
48245 (grub_reboot_init): New function.
48246 (grub_reboot_fini): Likewise.
48247 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
48248 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
48249 util/i386/pc/misc.c with commands/ieee1275/halt.c,
48250 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
48251 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
48253 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
48255 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
48257 (grub_halt): Likewise.
48258 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
48259 (cmain): Remove __attribute__((unused)).
48260 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
48261 (grub_heap_len): Likewise.
48262 (grub_machine_fini): New function.
48263 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
48264 (grub_halt): Likewise.
48265 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
48267 * util/powerpc/ieee1275/misc.c: New file.
48269 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48271 * DISTLIST: New file.
48272 * gendistlist.sh: Likewise.
48274 * Makefile.in (COMMON_DISTFILES): Removed.
48275 (BOOT_DISTFILES): Likewise.
48276 (CONF_DISTFILES): Likewise.
48277 (DISK_DISTFILES): Likewise.
48278 (FS_DISTFILES): Likewise.
48279 (INCLUDE_DISTFILES): Likewise.
48280 (KERN_DISTFILES): Likewise.
48281 (LOADER_DISTFILES): Likewise.
48282 (TERM_DISTFILES): Likewise.
48283 (UTIL_DISTFILES): Likewise.
48284 (DISTFILES): Likewise.
48285 (uninstall): Uninstall files in $(pkgdata_DATA).
48286 (DISTLIST): New target.
48287 (distdir): Use the contents of the file DISTLIST to get a list of
48290 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48292 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
48293 descriptor. This is ported from GRUB Legacy.
48295 * gencmdlist.sh: Added an extra semicolon to make it work with
48296 old sed versions. Reported by Robert Bihlmeyer
48297 <robbe@orcus.priv.at>.
48299 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
48301 Automatic loading of commands is supported.
48303 * normal/main.c (read_command_list): New function.
48304 (grub_normal_execute): Call read_command_list.
48306 * normal/command.c (grub_register_command): Return zero or CMD.
48307 Allocate CMD->NAME from the heap.
48308 Initialize CMD->MODULE_NAME to zero.
48309 Find the same name as well. If the same command is found and it is
48310 a dummy command, overwrite members. If it is not a dummy command,
48312 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
48313 (grub_command_find): If a dummy command is found, load a module
48314 and retry to find a command only once.
48316 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
48317 make sure that each command is loaded.
48319 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
48321 (struct grub_command): Remove const from the member `name'.
48322 Add a new member `module_name'.
48323 (grub_register_command): Return grub_command_t.
48325 * commands/help.c (grub_cmd_help): Call grub_command_find to make
48326 sure that each command is loaded.
48328 * genmk.rb (PModule::rule): Specify a module name without the
48329 suffix ".mod" to gencmdlist.sh.
48331 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
48333 * gencmdlist.sh: New file.
48335 * genmk.rb (PModule::rule): Generate a rule for a command list.
48337 Generate command.lst from $(COMMANDFILES).
48339 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
48340 (DATA): Added $(pkgdata_DATA).
48341 (install-local): Install files in $(pkgdata_DATA).
48343 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
48345 * term/i386/pc/vga.c (debug_command): Removed.
48346 (GRUB_MOD_INIT): Do not register the command "debug".
48348 From Hollis Blanchard:
48349 * commands/configfile.c: New file.
48350 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48351 commands/configfile.c.
48352 (pkgdata_MODULES): Added configfile.mod.
48353 (configfile_mod_SOURCES): New variable.
48354 (configfile_mod_CFLAGS): Likewise.
48355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48356 commands/configfile.c.
48357 (pkgdata_MODULES): Added configfile.mod.
48358 (configfile_mod_SOURCES): New variable.
48359 (configfile_mod_CFLAGS): Likewise.
48360 * util/grub-emu.c (main): Call grub_configfile_init and
48361 grub_configfile_fini.
48362 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
48364 [GRUB_UTIL] (grub_configfile_fini): Likewise.
48366 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
48368 * normal/arg.c (grub_arg_show_help): Do not show the bug report
48371 * commands/help.c (grub_cmd_help): Do not print newlines after
48372 the last command in print_command_help.
48374 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
48376 * commands/default.h: New file.
48377 * commands/timeout.h: Likewise.
48378 * normal/context.c: Likewise.
48380 * util/misc.c: Do not include sys/times.h.
48381 Include sys/time.h and grub/machine/time.h.
48382 (grub_get_rtc): Rewritten with gettimeofday.
48384 * util/grub-emu.c (main): Call grub_default_init and
48385 grub_timeout_init before grub_normal_init, and call
48386 grub_timeout_fini and grub_default_fini after grub_main.
48388 * util/console.c (grub_ncurses_checkkey): Return the read
48391 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
48394 * normal/main.c (read_config_file): Push MENU. If this fails,
48395 print an error and wait for a user input.
48396 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
48397 If a menu is empty or an error occurs, pop MENU.
48398 (grub_normal_execute): Pop and free MENU after grub_menu_run
48401 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
48403 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
48405 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
48407 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
48409 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
48412 * include/grub/normal.h (struct grub_menu_list): New struct.
48413 (grub_menu_list_t): New type.
48414 (struct grub_context): New struct.
48415 (grub_context_t): New type.
48416 (grub_register_command): Got rid of EXPORT_FUNC.
48417 (grub_unregister_command): Likewise.
48418 (grub_context_get): New prototype.
48419 (grub_context_get_current_menu): Likewise.
48420 (grub_context_push_menu): Likewise.
48421 (grub_context_pop_menu): Likewise.
48422 [GRUB_UTIL] (grub_default_init): Likewise.
48423 [GRUB_UTIL] (grub_default_fini): Likewise.
48424 [GRUB_UTIL] (grub_timeout_init): Likewise.
48425 [GRUB_UTIL] (grub_timeout_fini): Likewise.
48427 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
48428 commands/timeout.c and normal/context.c.
48429 (pkgdata_MODULES): Added default.mod and timeout.mod.
48430 (normal_mod_SOURCES): Added normal/context.c.
48431 (default_mod_SOURCES): New variable.
48432 (default_mod_CFLAGS): Likewise.
48433 (timeout_mod_SOURCES): Likewise.
48434 (timeout_mod_CFLAGS): Likewise.
48435 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
48437 (pkgdata_MODULES): Added default.mod and timeout.mod.
48438 (normal_mod_SOURCES): Added normal/context.c.
48439 (default_mod_SOURCES): New variable.
48440 (default_mod_CFLAGS): Likewise.
48441 (timeout_mod_SOURCES): Likewise.
48442 (timeout_mod_CFLAGS): Likewise.
48444 * Makefile.in (all-local): Added $(MKFILES).
48446 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
48448 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
48449 (grub_emu_SOURCES): Likewise.
48450 (pkgdata_MODULES): Add `sun.mod'.
48451 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
48452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48454 (pkgdata_MODULES): Add `sun.mod'.
48455 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
48456 * include/grub/partition.h (grub_sun_partition_map_init): New
48458 (grub_sun_partition_map_fini): Likewise.
48459 * partmap/sun.c: New file.
48460 * util/grub-emu.c (main): Initialize and de-initialize the sun
48461 partitionmap support.
48463 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
48465 This implements an Emacs-like menu entry editor.
48467 * normal/menu_entry.c: New file.
48469 * util/console.c (grub_ncurses_putchar): Translate some Unicode
48470 characters to ASCII.
48471 (saved_char): New variable.
48472 (grub_ncurses_checkkey): Rewritten completely.
48473 (grub_ncurses_getkey): Likewise.
48474 (grub_ncurses_init): Call raw instead of cbreak.
48476 * normal/menu.c (print_entry): Do not put a space.
48477 (init_page): Renamed to ...
48478 (grub_menu_init_page): ... this. All callers changed.
48479 (edit_menu_entry): Removed.
48480 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
48482 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
48484 * kern/misc.c (grub_vprintf): Call grub_refresh.
48486 * normal/menu.c (DISP_LEFT): Renamed to ...
48487 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
48488 * normal/menu.c (DISP_UP): Renamed to ...
48489 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
48490 * normal/menu.c (DISP_RIGHT): Renamed to ...
48491 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
48492 * normal/menu.c (DISP_DOWN): Renamed to ...
48493 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
48494 * normal/menu.c (DISP_HLINE): Renamed to ...
48495 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
48496 * normal/menu.c (DISP_VLINE): Renamed to ...
48497 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
48498 * normal/menu.c (DISP_UL): Renamed to ...
48499 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
48500 * normal/menu.c (DISP_UR): Renamed to ...
48501 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
48502 * normal/menu.c (DISP_LL): Renamed to ...
48503 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
48504 * normal/menu.c (DISP_LR): Renamed to ...
48505 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
48506 * normal/menu.c (TERM_WIDTH): Renamed to ...
48507 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
48508 * normal/menu.c (TERM_HEIGHT): Renamed to ...
48509 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
48510 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
48511 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
48512 * normal/menu.c (TERM_MARGIN): Renamed to ...
48513 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
48514 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
48515 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
48516 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
48517 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
48518 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
48519 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
48520 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
48521 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
48522 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
48523 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
48524 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
48525 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
48526 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
48527 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
48528 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
48529 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
48530 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
48531 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
48532 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
48533 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
48534 All callers changed.
48536 * include/grub/normal.h: New prototype.
48538 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48539 normal/menu_entry.c.
48540 (normal_mod_SOURCES): Likewise.
48541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48542 (normal_mod_SOURCES): Likewise.
48544 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
48546 * include/grub/normal.h (grub_halt_init): New prototype.
48547 (grub_halt_fini): Likewise.
48548 (grub_reboot_init): Likewise.
48549 (grub_reboot_fini): Likewise.
48551 * util/grub-emu.c: Include signal.h.
48552 (main_env): New global variable.
48553 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
48555 (grub_machine_fini): New function.
48556 (main): Call grub_halt_init and grub_reboot_init before
48557 grub_main, and grub_reboot_fini and grub_halt_fini after it.
48558 Call setjmp with MAIN_ENV to go back afterwards.
48559 Call grub_machine_fini right before return.
48561 * include/grub/util/misc.h: Include setjmp.h.
48562 (main_env): New prototype.
48564 * include/grub/kernel.h (grub_machine_fini): New prototype.
48565 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
48566 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
48568 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
48569 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
48570 * term/i386/pc/console.c (grub_console_fini): Likewise.
48572 * util/i386/pc/misc.c: New file.
48574 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48575 util/i386/pc/misc.c, commands/i386/pc/halt.c and
48576 commands/i386/pc/reboot.c.
48578 2005-02-14 Guillem Jover <guillem@hadrons.org>
48580 * include/grub/dl.h (grub_dl_check_header): New prototype.
48581 (grub_arch_dl_check_header): Change return type to grub_err_t,
48582 remove size parameter and export function. Update all callers.
48583 * kern/dl.c (grub_dl_check_header): New function.
48584 (grub_dl_load_core): Use `grub_dl_check_header' instead of
48585 `grub_arch_dl_check_header'. Check ELF type. Check if sections
48586 are inside the core.
48587 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
48588 independent ELF header checks.
48589 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
48590 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
48591 `grub_dl_check_header' instead of explicit checks. Check for the
48593 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
48594 `grub_dl_check_header' instead of explicit checks. Remove arch
48595 specific ELF header checks.
48597 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
48600 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
48602 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
48603 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
48605 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
48607 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
48608 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
48609 (part_map_iterate): Clear `grub_errno' and return 0 if
48610 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
48611 * partmap/amiga.c (amiga_partition_map_iterate): Return
48612 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
48613 * partmap/apple.c (apple_partition_map_iterate): Likewise.
48615 2005-02-01 Guillem Jover <guillem@hadrons.org>
48617 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
48620 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48622 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
48624 (grub_rescue_cmd_linux): New prototype.
48625 (grub_rescue_cmd_initrd): Likewise.
48626 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
48628 (grub_linux_release_mem): Release the memory for the initrd.
48629 (grub_load_linux): Renamed from this...
48630 (grub_rescue_cmd_linux): ...To this. Changed all callers.
48631 Changed `entry' not to be static. Loop over memory regions to
48632 find another one when the default fails.
48633 (grub_rescue_cmd_initrd): New function.
48634 (grub_linux_init): Remove function.
48635 (grub_linux_fini): Likewise.
48636 (GRUB_MOD_INIT): Register `initrd'.
48637 (GRUB_MOD_FINI): Unregister `initrd'.
48638 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
48640 (grub_linux_normal_fini): Likewise.
48641 (GRUB_MOD_INIT): Register `initrd'.
48642 (GRUB_MOD_FINI): Unregister `initrd'.
48644 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48646 * commands/help.c: New file.
48647 * normal/arg.c (show_help): Renamed to...
48648 (grub_arg_show_help): ... this.
48649 * commands/i386/pc/halt.c: New file.
48650 * commands/i386/pc/reboot.c: Likewise.
48651 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
48652 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
48653 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
48654 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
48656 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48658 (pkgdata_MODULES): Add `help.mod'.
48659 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
48660 * grub/i386/pc/init.h (grub_reboot): New prototype.
48661 (grub_halt): Likewise.
48662 * include/grub/normal.h (grub_arg_show_help): New prototype.
48663 (grub_help_init): Likewise.
48664 (grub_help_fini): Likewise.
48665 * util/grub-emu.c (main): Initialize and deinitialize the help
48668 * normal/cmdline.c (grub_cmdline_get): Doc fix.
48670 * normal/command.c (grub_command_init): Fixed the description of
48671 the `set' and `unset' commands.
48673 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48675 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
48677 * commands/ieee1275/halt.c: New file.
48678 * commands/ieee1275/reboot.c: Likewise.
48679 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
48680 `__attribute__ ((unused))'. Some GCS related fixed.
48681 (grub_suspend_init) [GRUB_UTIL]: Function removed.
48682 (grub_suspend_fini): Likewise.
48683 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
48685 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
48686 (halt_mod_CFLAGS): New variables.
48687 * include/grub/powerpc/ieee1275/ieee1275.h
48688 (grub_ieee1275_interpret): New prototype.
48690 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
48692 * include/grub/misc.h (memmove): New prototype.
48693 (memcpy): Likewise.
48695 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
48697 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
48698 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
48700 2005-01-22 Marco Gerards <metgerards@student.han.nl>
48702 * kern/misc.c (grub_strndup): Function rewritten.
48704 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
48706 * normal/menu.c (TERM_WIDTH): Macro redefined.
48707 (TERM_TOP_BORDER_Y): Likewise.
48708 (draw_border): Replaced while-loop by a for-loop. Make the number
48709 of lines consistent with the number of lines displayed in
48710 print_entries. Added a margin below the rectangle.
48711 (print_entry): Make the entry fit in the rectangle.
48712 (print_entries): Display the scroll arrows next to the right
48715 2005-01-21 Marco Gerards <metgerards@student.han.nl>
48717 * fs/minix.c (grub_minix_find_file): Reserve more space for
48718 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
48719 `grub_strncpy' to copy `path' into it.
48721 2005-01-21 Marco Gerards <metgerards@student.han.nl>
48723 Add the loopback device, a device via which files can be accessed
48726 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
48727 (pkgdata_MODULES): Add loopback.mod.
48728 (loopback_mod_SOURCES): New variable.
48729 (loopback_mod_CFLAGS): Likewise.
48730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48732 (pkgdata_MODULES): Add loopback.mod.
48733 (loopback_mod_SOURCES): New variable.
48734 (loopback_mod_CFLAGS): Likewise.
48735 * disk/loopback.c: new file.
48736 * include/grub/normal.h (grub_loop_init): New prototype.
48737 (grub_loop_fini): New prototype.
48738 * util/grub-emu.c (main): Initialize and de-initialize loopback
48740 * include/grub/disk.h (grub_disk_dev_id): Add
48741 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
48743 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
48745 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
48747 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
48748 (suspend_mod_SOURCES): New variable.
48749 (suspend_mod_CFLAGS): Likewise.
48750 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
48752 * commands/ieee1275/suspend.c: New file.
48754 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48756 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
48757 ((unused))' to `__attribute__ ((used))'.
48758 (GRUB_MOD_FINI): Likewise.
48759 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
48760 * genmk.rb (PModule): Assign space to common symbols when linking
48763 2005-01-20 Marco Gerards <metgerards@student.han.nl>
48765 * include/grub/mm.h (grub_mm_init_region): Change the type of the
48766 `unsigned' arguments to `grub_size_t'.
48767 (grub_malloc): Likewise.
48768 (grub_realloc): Likewise.
48769 (grub_memalign): Likewise.
48770 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
48771 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
48772 * util/misc.c (grub_malloc): Likewise.
48773 (grub_realloc): Likewise.
48774 * kern/mm.c (get_header_from_pointer): Change the casts to
48775 `unsigned' into a cast to `grub_size_t'.
48777 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
48778 point to `currnode' when `currnode' is changed.
48780 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
48781 Schottelius <nico-linux@schottelius.org>.
48783 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
48785 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
48786 (note_path): Remove variable.
48787 (GRUB_IEEE1275_NOTE_NAME): New macro.
48788 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
48789 (grub_ieee1275_note_hdr): New structure.
48790 (grub_ieee1275_note_desc): Likewise.
48791 (grub_ieee1275_note): Likewise.
48792 (load_note): Remove `dir' argument. All callers updated. Remove
48793 `note_img' and `path'. Do not load a file from `note_path'.
48794 Initialize a struct grub_ieee1275_note and write that to `out'.
48795 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
48797 2005-01-05 Marco Gerards <metgerards@student.han.nl>
48799 * util/misc.c (grub_util_read_image): Revert last change. It
48800 called `grub_util_read_at', which seeks from the beginning of the
48803 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
48805 * TODO: Add note about endianness in grub-mkimage.
48806 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
48808 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
48809 (grub_mkimage_SOURCES): New target.
48810 * include/grub/kernel.h (grub_start_addr): Remove variable.
48811 (grub_end_addr): Likewise.
48812 (grub_total_module_size): Likewise.
48813 (grub_kernel_image_size): Likewise.
48814 (GRUB_MODULE_MAGIC): New constant.
48815 (grub_module_info): New structure.
48816 (grub_arch_modules_addr): New prototype.
48817 (grub_get_end_addr): Remove prototype.
48818 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
48819 * include/grub/powerpc/ieee1275/kernel.h: New file.
48820 * include/grub/util/misc.h (grub_util_get_fp_size): New
48822 (grub_util_read_at): Likewise.
48823 (grub_util_write_image_at): Likewise.
48824 * kern/main.c (grub_get_end_addr): Remove function.
48825 (grub_load_modules): Call grub_arch_modules_addr instead of using
48826 grub_end_addr. Look for a grub_module_info struct in memory. Use
48827 the grub_module_info fields instead of calling grub_get_end_addr
48828 as loop conditions. Move grub_add_unused_region code here.
48829 (grub_add_unused_region): Remove function.
48830 * kern/i386/pc/init.c: Include grub/cache.h.
48831 (grub_machine_init): Remove call to grub_get_end_addr. Remove
48832 one call to add_mem_region.
48833 (grub_arch_modules_addr): New function.
48834 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
48835 (grub_total_module_size): Likewise.
48836 Include grub/machine/kernel.h.
48837 (grub_arch_modules_addr): New function.
48838 * util/grub-emu.c (grub_end_addr): Remove variable.
48839 (grub_total_module_size): Likewise.
48840 (grub_arch_modules_addr): New function.
48841 * util/misc.c: Include unistd.h.
48842 (grub_util_get_fp_size): New function.
48843 (grub_util_read_at): Likewise.
48844 (grub_util_write_image_at): Likewise.
48845 (grub_util_read_image): Call grub_util_read_at.
48846 (grub_util_write_image): Call grub_util_write_image_at.
48847 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
48848 additional memory in kernel_img for a struct grub_module_info.
48849 Fill in that grub_module_info.
48850 * util/powerpc/ieee1275/grub-mkimage.c: New file.
48852 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
48854 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
48856 * include/grub/powerpc/ieee1275/ieee1275.h
48857 (grub_ieee1275_milliseconds): New prototype.
48858 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
48860 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
48861 grub_ieee1275_milliseconds.
48863 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
48865 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
48867 (find_options): New function.
48868 (cmain): Call find_options.
48869 * include/grub/powerpc/ieee1275/ieee1275.h
48870 (grub_ieee1275_realmode): New extern variable.
48871 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
48872 grub_map if grub_ieee1275_realmode is false.
48874 2004-12-29 Marco Gerards <metgerards@student.han.nl>
48876 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
48877 lines are inserted and make it work like readline. Reported by
48878 Vincent Pelletier <subdino2004@yahoo.fr>.
48880 2004-12-28 Marco Gerards <metgerards@student.han.nl>
48882 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
48884 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
48885 `kern/powerpc/cache.S'.
48887 2004-12-27 Marco Gerards <metgerards@student.han.nl>
48889 * genmk.rb: Handle the `Program' class in the main loop. Written
48890 by Johan Rydberg <jrydberg@gnu.org>.
48891 (Program): New class.
48892 (programs): New variable.
48893 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
48894 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
48895 instead of "grub/kernel.h". Include <grub/machine/init.h>.
48896 (help_arch): Function removed.
48897 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
48898 `powerpc/libgcc.h' and `loader.h'.
48899 (pkgdata_PROGRAMS): New variable.
48900 (sbin_UTILITIES): Variable removed.
48901 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
48902 (grubof_SOURCES): Variable re-defined so it only includes the
48903 core functionality.
48904 (grubof_CFLAGS): Remove `-DGRUBOF'.
48905 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
48906 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
48907 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
48908 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
48909 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
48910 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
48911 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
48912 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
48913 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
48914 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
48915 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48916 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
48917 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
48918 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
48919 (pc_mod_CFLAGS): New variables.
48920 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
48921 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
48922 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
48923 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
48925 * include/grub/i386/pc/init.h (grub_os_area_addr)
48926 (rub_os_area_size): ... to here.
48927 * include/grub/powerpc/ieee1275/ieee1275.h
48928 (grub_ieee1275_entry_fn): Export symbol.
48929 * include/grub/powerpc/ieee1275/init.h: New file.
48930 * include/grub/powerpc/libgcc.h: Likewise.
48931 * include/grub/cache.h: Likewise.
48932 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
48933 <hollis@penguinppc.org>.
48934 * kern/dl.c: Include <grub/cache.h>.
48935 (grub_dl_flush_cache): New function.
48936 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
48938 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
48939 (grub_console_init): Removed prototypes.
48940 (grub_machine_init): Don't initialize the modules anymore.
48941 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
48943 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
48944 Macro undef removed.
48945 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
48946 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
48947 relocation `R_PPC_REL32'. Return an error when the relocation is
48949 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
48950 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
48951 * util/misc.c (grub_arch_sync_caches): Likewise.
48953 2004-12-19 Marco Gerards <metgerards@student.han.nl>
48955 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
48956 `symlist.c', add `grubof_symlist.c'.
48957 (symlist.c): Variable removed.
48958 (grubof_HEADERS): Variable added.
48959 (grubof_symlist.c): New target.
48960 (kernel_syms.lst): Use `grubof_HEADERS' instead of
48961 `kernel_img_HEADERS'.
48962 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
48963 * kern/powerpc/dl.c: New file.
48964 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
48966 (grub_arch_dl_relocate_symbols): Likewise.
48967 (grub_register_exported_symbols): Likewise.
48969 2004-12-13 Marco Gerards <metgerards@student.han.nl>
48971 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
48972 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
48973 to fail instead. Reported by Vincent Pelletier
48974 <subdino2004@yahoo.fr>.
48976 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
48977 it is not allocated. Reported by Vincent Pelletier
48978 <subdino2004@yahoo.fr>.
48980 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
48981 output so the output looks better.
48983 2004-12-04 Marco Gerards <metgerards@student.han.nl>
48985 Modulize the partition map support and add support for the amiga
48988 * commands/ls.c: Include <grub/partition.h> instead of
48989 <grub/machine/partition.h>.
48990 * kern/disk.c: Likewise.
48991 * kern/rescue.c: Likewise.
48992 * loader/i386/pc/chainloader.c: Likewise.
48993 * normal/cmdline.c: Likewise.
48994 * kern/powerpc/ieee1275/init.c: Likewise.
48995 (grub_machine_init): Call `grub_pc_partition_map_init',
48996 `grub_amiga_partition_map_init' and
48997 `grub_apple_partition_map_init'.
48998 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
48999 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
49000 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
49001 `partition.h' and `pc_partition.h'.
49002 (grub_setup_SOURCES): Remove
49003 `disk/i386/pc/partition.c'. Add `kern/partition.c',
49004 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
49005 (grub_emu_SOURCES): Likewise.
49006 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
49007 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
49008 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
49009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
49010 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
49011 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
49012 (grubof_SOURCES): Likewise.
49013 * disk/i386/pc/partition.c: File removed.
49014 * disk/powerpc/ieee1275/partition.c: Likewise.
49015 * include/grub/powerpc/ieee1275/partition.h: Likewise.
49016 * include/grub/i386/pc/partition.h: Likewise.
49017 * kern/partition.c: New file.
49018 * partmap/amiga.c: Likewise.
49019 * partmap/apple.c: Likewise.
49020 * partmap/pc.c: Likewise.
49021 * include/grub/partition.h: Likewise..
49022 * include/grub/pc_partition.h: Likewise.
49023 * util/grub-emu.c: Include <grub/partition.h> instead of
49024 <grub/machine/partition.h>.
49025 (main): Call `grub_pc_partition_map_init',
49026 `grub_amiga_partition_map_init' and
49027 `grub_apple_partition_map_init' and deinitialize afterwards.
49028 * util/i386/pc/biosdisk.c: Include `#include
49029 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
49030 `<grub/machine/partition.h>'.
49031 * util/i386/pc/grub-setup.c: Likewise.
49032 * util/i386/pc/biosdisk.c: Likewise.
49033 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
49034 partition information in case of a PC partition.
49035 * util/i386/pc/grub-setup.c: Include `#include
49036 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
49037 `<grub/machine/partition.h>'.
49038 (setup): Only access the PC specific partition information in case
49041 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
49043 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
49044 (grub_longjmp): Likewise.
49045 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
49047 * normal/powerpc/setjmp.S: New file.
49048 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
49049 `normal/powerpc/setjmp.S'.
49050 (grubof_CFLAGS): Add `-DGRUBOF'.
49051 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
49052 [GRUB_UTIL && !GRUBOF].
49054 2004-11-16 Marco Gerards <metgerards@student.han.nl>
49056 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
49057 property named `name'. Correctly handle the error returned by
49058 `grub_ieee1275_finddevice' if a device can not be opened.
49060 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
49062 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
49063 `actual' for negativity.
49064 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
49067 2004-11-01 Marco Gerards <metgerards@student.han.nl>
49069 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
49070 (PAGE_OFFSET): New macro.
49071 (CRTC_ADDR_PORT): Likewise.
49072 (CRTC_DATA_PORT): Likewise.
49073 (START_ADDR_HIGH_REGISTER): Likewise.
49074 (START_ADDR_LOW_REGISTER): Likewise.
49075 (GRAPHICS_ADDR_PORT): Likewise.
49076 (GRAPHICS_DATA_PORT): Likewise.
49077 (READ_MAP_REGISTER): Likewise.
49078 (INPUT_STATUS1_REGISTER): Likewise.
49079 (INPUT_STATUS1_VERTR_BIT): Likewise.
49080 (page): New variable.
49081 (wait_vretrace): New function.
49082 (set_read_map): Likewise.
49083 (set_start_address): Likewise.
49084 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
49086 (check_vga_mem): Take the page into account.
49087 (write_char): Likewise.
49088 (write_cursor): Likewise.
49089 (scroll_up): Likewise. Copy the page to the page that is not
49090 shown and switch between both pages.
49091 (grub_vga_putchar): Fix off by one error.
49092 (grub_vga_cls): Wait for the vertical retrace. Take the page into
49095 2004-11-01 Marco Gerards <metgerards@student.han.nl>
49097 Add support for iso9660 (including rockridge).
49099 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
49100 (iso9660_mod_SOURCES): New variable.
49101 (iso9660_mod_CFLAGS): Likewise.
49102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
49103 * include/grub/fs.h (grub_iso9660_init): New prototype.
49104 * util/grub-emu.c (main): Call `grub_iso9660_init'.
49105 * fs/iso9660.c: New file.
49107 * include/grub/misc.h (grub_strncat): New prototype.
49108 * kern/misc.c (grub_strncat): New function.
49110 * fs/hfs.c (grub_hfs_mount): Translate the error
49111 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
49112 * fs/jfs.c (grub_jfs_mount): Likewise.
49113 * fs/ufs.c (grub_ufs_mount): Likewise.
49115 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
49117 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
49118 which initialized BAT registers.
49119 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
49120 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
49122 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
49123 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
49125 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
49126 (grub_mapclaim): Likewise.
49127 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
49128 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
49131 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
49133 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
49134 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
49135 -ffreestanding and -msoft-float.
49137 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
49139 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
49140 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
49141 set in grub_ieee1275_flags.
49143 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
49145 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
49147 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
49148 grub_console_init first.
49149 Change the memory range used for grub_ieee1275_claim and
49150 grub_mm_init_region.
49151 Print an error message if the claim fails.
49152 Include <grub/misc.h>.
49154 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
49156 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
49157 Call grub_children_iterate for device nodes of type `scsi',
49159 (grub_ofdisk_open): Remove manual device alias resolution.
49160 Fix memory leak when device cannot be opened.
49161 * include/grub/powerpc/ieee1275/ieee1275.h
49162 (grub_children_iterate): New prototype.
49163 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
49165 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49166 Return -1 if args.size was -1.
49168 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
49170 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
49171 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
49172 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
49173 Open Firmware's memory for it; claim memory from _start to _end.
49174 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
49175 (_end): New extern.
49176 (_start): Zero BSS from __bss_start to _end.
49177 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49179 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
49181 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
49183 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
49184 -1 if args.base was -1.
49186 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
49188 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
49189 escape sequence instead of a literal ^L. Also call
49190 grub_ofconsole_gotoxy.
49192 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
49194 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
49195 void * arguments to grub_addr_t. All callers updated. Also make
49196 the `result' argument optional.
49197 (grub_ieee1275_release): change void * arguments to grub_addr_t.
49198 All callers updated.
49200 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
49202 * commands/ls.c (grub_ls_list_files): Use the string following the
49203 initial ')', if present, as the filesystem path.
49204 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
49206 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
49208 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
49210 Make the source code of the menu interface more readable.
49212 * normal/menu.c: Include grub/mm.h.
49213 (TERM_WIDTH): New macro.
49214 (TERM_HEIGHT): Likewise.
49215 (TERM_INFO_HEIGHT): Likewise.
49216 (TERM_MARGIN): Likewise.
49217 (TERM_SCROLL_WIDTH): Likewise.
49218 (TERM_TOP_BORDER_Y): Likewise.
49219 (TERM_LEFT_BORDER_X): Likewise.
49220 (TERM_BORDER_WIDTH): Likewise.
49221 (TERM_MESSAGE_HEIGHT): Likewise.
49222 (TERM_BORDER_HEIGHT): Likewise.
49223 (TERM_NUM_ENTRIES): Likewise.
49224 (TERM_FIRST_ENTRY_Y): Likewise.
49225 (TERM_ENTRY_WIDTH): Likewise.
49226 (TERM_CURSOR_X): Likewise.
49227 (draw_border): Use macros instead of magic numbers.
49228 (print_entry): Likewise.
49229 (print_entries): Likewise.
49230 (run_menu): Likewise. Also, handle the key 'e'.
49231 (run_menu_entry): Ignore empty command lines.
49232 (print_message): Added a new argument EDIT. If EDIT is true,
49233 print a different message.
49234 (init_page): Likewise.
49235 (edit_menu_entry): New function. Not implemented yet.
49237 2004-09-17 Marco Gerards <metgerards@student.han.nl>
49239 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
49240 can be loaded from normal mode.
49242 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
49244 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
49245 (multiboot_mod_CFLAGS): New variables.
49246 * loader/i386/pc/linux_normal.c: New file.
49247 * loader/i386/pc/multiboot_normal.c: Likewise.
49249 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
49250 attribute `unused'.
49252 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
49253 `fdiro' to read the mode information from instead of `diro'.
49255 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
49256 looking up a symlink.
49258 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
49260 * normal/command.c (grub_command_execute): Don't parse the
49261 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
49262 flags of the command.
49264 * normal/menu.c (grub_menu_run): Fix typo.
49266 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
49268 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
49270 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
49271 `y + 1' instead of `y - 1'.
49273 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
49275 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
49277 From Hollis Blanchard <hollis@penguinppc.org>:
49278 * kern/misc.c (memmove): New alias for grub_memmove.
49279 (memcmp): New alias for grub_memcmp.
49280 (memset): New alias for grub_memset.
49281 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49282 Change "int handle" to "grub_ieee1275_phandle_t handle".
49283 * include/grub/powerpc/ieee1275/ieee1275.h
49284 (grub_ieee1275_get_property): Likewise.
49286 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
49288 Added normal mode command `chainloader' as module chain.mod, which
49289 depends on normal.mod and _chain.mod.
49291 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
49292 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
49293 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
49295 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
49296 but arguments parsing moved to ...
49297 (grub_chainloader_cmd): ... here. New function.
49298 * include/grub/i386/pc/chainloader.h: New file.
49299 * loader/i386/pc/chainloader_normal.c: Likewise.
49301 2004-09-11 Marco Gerards <metgerards@student.han.nl>
49303 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
49304 (grub_mkimage_LDFLAGS): Likewise.
49305 (grub_emu_SOURCES): Likewise.
49306 (kernel_img_HEADERS): Added fshelp.h.
49307 * fs/ext2.c: Include <grub/fshelp.h>.
49308 (FILETYPE_REG): New macro.
49309 (FILETYPE_INO_REG): Likewise.
49310 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
49312 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
49314 (grub_fshelp_node): New struct.
49315 (grub_ext2_data): Added member `diropen'. Changed member `inode'
49317 (grub_ext2_get_file_block): Removed function.
49318 (grub_ext2_read_block): New function.
49319 (grub_ext2_read_file): Replaced parameter `data' by `node'.
49320 This function was written.
49321 (grub_ext2_mount): Read the root inode. Create a diropen struct.
49322 (grub_ext2_find_file): Removed function.
49323 (grub_ext2_read_symlink): New function.
49324 (grub_ext2_iterate_dir): Likewise.
49325 (grub_ext2_open): Rewritten.
49326 (grub_ext2_dir): Rewritten.
49327 * include/grub/fshelp.h: New file.
49328 * fs/fshelp.c: Likewise.
49330 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
49332 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
49333 (print_message): Add a missing newline.
49334 (run_menu): Added timeout support.
49335 (run_menu_entry): New local function.
49336 (grub_menu_run): Added support for booting.
49338 * kern/loader.c (grub_loader_is_loaded): New function.
49340 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
49341 (grub_get_rtc): Exported.
49343 * include/grub/i386/pc/time.h: Include grub/symbol.h.
49344 (grub_get_rtc): Exported.
49346 * include/grub/normal.h (struct grub_command_list): Remove
49347 constant from the member `command'.
49349 * include/grub/loader.h (grub_loader_is_loaded): Declared.
49351 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
49353 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
49355 2004-08-28 Marco Gerards <metgerards@student.han.nl>
49357 Add support for the JFS filesystem.
49359 * fs/jfs.c: New file.
49360 * include/grub/fs.h (grub_jfs_init): New prototype.
49361 (grub_jfs_fini): New prototype.
49362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
49363 (grub_emu_SOURCES): Likewise.
49364 (pkgdata_MODULES): Add jfs.mod.
49365 (jfs_mod_SOURCES): New variable.
49366 (jfs_mod_CFLAGS): Likewise.
49367 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
49368 (grubof_SOURCES): Likewise.
49369 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
49371 * fs/fat.c (grub_fat_find_dir): Convert the filename little
49372 endian to the host endian.
49373 (grub_fat_utf16_to_utf8): Move function from there...
49374 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
49375 the endianness of the source string anymore.
49376 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
49378 2004-08-24 Marco Gerards <metgerards@student.han.nl>
49380 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
49381 (grub_boot_fini) [GRUB_UTIL]: Likewise.
49382 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
49383 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
49385 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
49386 (grub_hfs_iterate_dir): Make the function static. Add prototypes
49387 for `node_found' and `it_dir'.
49388 (grub_hfs_dir): Add prototype for `dir_hook'.
49390 * fs/minix.c (grub_minix_get_file_block): Add prototype for
49391 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
49392 and `indir32' to silence a gcc warning.
49394 * include/grub/fs.h (grub_hfs_init): New prototype.
49395 (grub_hfs_fini): Likewise.
49398 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
49400 Each disk device has its own id now. This is useful to make use
49401 of multiple disk devices.
49403 * include/grub/disk.h (grub_disk_dev_id): New enum.
49404 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
49405 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
49407 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
49408 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
49410 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
49411 GRUB_DISK_DEVICE_OFDISK_ID as an id.
49413 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
49414 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
49416 * include/grub/disk.h (struct grub_disk_dev): Added a new member
49417 "id" which is used by the cache manager.
49419 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
49422 2004-08-18 Marco Gerards <metgerards@student.han.nl>
49424 * fs/hfs.c: New file.
49425 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
49426 (grub_emu_SOURCES): Likewise.
49427 (pkgdata_MODULES): Add hfs.mod.
49428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
49429 (grubof_SOURCES): Likewise.
49430 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
49432 * include/grub/misc.h (grub_strncasecmp): Add prototype.
49433 * kern/misc.c (grub_strncasecmp): Add function.
49435 2004-08-14 Marco Gerards <metgerards@student.han.nl>
49437 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
49440 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
49441 (grub_ext2_dir): In case the directory entry type is unknown, read
49444 2004-08-02 Peter Bruin <pjbruin@dds.nl>
49446 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
49447 grub_load_linux instead of grub_rescue_cmd_linux as second
49448 argument of grub_rescue_register_command.
49450 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
49452 2004-07-27 Marco Gerards <metgerards@student.han.nl>
49454 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
49456 * commands/boot.c: Remove the check for `GRUB_UTIL'.
49457 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
49458 `loader/powerpc/ieee1275/linux.c',
49459 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
49460 * include/grub/powerpc/ieee1275/ieee1275.h
49461 (grub_ieee1275_release): New prototype.
49462 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
49463 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
49464 normal, boot, linux and linux_normal.
49465 * loader/powerpc/ieee1275/linux.c: New file.
49466 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
49468 2004-07-12 Marco Gerards <metgerards@student.han.nl>
49470 * normal/arg.c (grub_arg_parse): Correct error handling after
49471 reallocating the argumentlist (check if `argl' is not null instead
49472 of checking if `args' is not null).
49473 * kern/mm.c (grub_realloc): Return the same pointer when using the
49474 same region, instead of returning the header address.
49476 2004-07-11 Marco Gerards <metgerards@student.han.nl>
49478 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
49479 one block instead of two when looking for the initial partition.
49480 (grub_partition_probe): Initialize the local variable `p' with 0.
49481 Use base 10 for the grub_strtoul call.
49482 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
49483 need for one local variable.
49484 (grub_strtoul): Don't add the new value to `num', instead of that
49487 2004-07-11 Marco Gerards <metgerards@student.han.nl>
49489 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
49490 (pxeboot_img_SOURCES): New variable.
49491 (pxeboot_img_ASFLAGS): Likewise.
49492 (pxeboot_img_LDFLAGS): Likewise.
49493 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
49494 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
49495 <lode_leroy@hotmail.com>.
49497 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
49499 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
49500 there was no input.
49502 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
49504 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
49505 the history buffer logic.
49507 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
49509 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
49510 (FILETYPE_INO_SYMLINK): New macros.
49511 (grub_ext2_find_file): Check if the node is a directory using the
49512 inode stat information instead of using the filetype in the
49513 dirent. Exclude the first character of an absolute symlink.
49514 (grub_ext2_dir): Mask out the filetype part of the mode member of
49517 2004-05-24 Marco Gerards <metgerards@student.han.nl>
49519 Add support for UFS version 1 and 2. Add support for the minix
49520 filesystem version 1 and 2, both the variants with 14 and 30 long
49523 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
49525 (grub_emu_SOURCES): Likewise.
49526 (pkgdata_MODULES): Add ufs.mod and minix.mod.
49527 (ufs_mod_SOURCES): New variable.
49528 (ufs_mod_CFLAGS): Likewise.
49529 (minix_mod_SOURCES): Likewise.
49530 (minix_mod_CFLAGS): Likewise.
49531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
49533 (grubof_SOURCES): Likewise.
49534 * fs/ufs.c: New file.
49535 * fs/minix.c: New file.
49536 * include/grub/fs.h (grub_ufs_init): New prototype.
49537 (grub_ufs_fini): Likewise.
49538 (grub_minix_init): Likewise.
49539 (grub_minix_fini): Likewise.
49540 * util/grub-emu.c (main): Initialize and deinitialize UFS and
49543 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
49545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
49546 commands/ls.c, commands/terminal.c, commands/boot.c,
49547 commands/cmp.c and commands/cat.c.
49548 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
49550 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
49553 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
49555 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
49556 and grub_, respectively. Because the conversion is trivial and
49557 mechanical, I omit the details here. Please refer to the CVS
49558 if you need more information.
49560 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
49562 * include/pupa: Renamed to ...
49563 * include/grub: ... this.
49564 * util/i386/pc/pupa-mkimage.c: Renamed to ...
49565 * util/i386/pc/grub-mkimage.c: ... this.
49566 * util/i386/pc/pupa-setup.c: Renamed to ...
49567 * util/i386/pc/grub-setup.c: ... this.
49568 * util/pupa-emu.c: Renamed to ...
49569 * util/grub-emu.c: ... this.
49571 2004-03-29 Marco Gerards <metgerards@student.han.nl>
49573 Add support for the newworld apple macintosh (PPC). This has been
49574 tested on the powerbook 2000 only. It only adds support for
49575 generic ieee1275 functions, console and disk support. This should
49576 be easy to port to other architectures with support for Open
49579 * configure.ac: Accept the powerpc as host_cpu. In the case of
49580 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
49581 specific tests are only executed while building for the i386.
49582 Inverse test for crosscompile.
49583 * genmk.rb (Utility): Allow assembler files.
49584 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
49585 * conf/powerpc-ieee1275.rmk: New file.
49586 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
49587 * disk/powerpc/ieee1275/partition.c: Likewise.
49588 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
49589 * include/pupa/powerpc/ieee1275/console.h: Likewise.
49590 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
49591 * include/pupa/powerpc/ieee1275/time.h: Likewise.
49592 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
49593 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
49594 * include/pupa/powerpc/ieee1275/loader.h
49595 * include/pupa/powerpc/setjmp.h: Likewise.
49596 * include/pupa/powerpc/types.h: Likewise.
49597 * kern/powerpc/ieee1275/init.c: Likewise.
49598 * kern/powerpc/ieee1275/openfw.c: Likewise.
49599 * term/powerpc/ieee1275/ofconsole.c: Likewise.
49601 These files were written by Johan Rydberg
49602 (jrydberg@night.trouble.net) and I only modified them slightly.
49604 * boot/powerpc/ieee1275/cmain.c: New file.
49605 * boot/powerpc/ieee1275/crt0.S: Likewise.
49606 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
49607 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
49609 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
49611 * Makefile.in: Update copyright.
49612 * genmodsrc.sh: Likewise.
49613 * gensymlist.sh: Likewise.
49614 * term/i386/pc/vga.c: Indent correctly.
49616 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
49617 bugreporting address.
49618 * util/i386/pc/pupa-setup.c (usage): Likewise,
49619 (main): Call pupa_ext2_init and pupa_ext2_fini.
49621 * fs/fat.c (log2): Renamed to ...
49622 (fat_log2): ... this.
49623 All callers changed.
49624 * kern/misc.c (memcpy): Alias to pupa_memmove.
49625 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
49627 * util/console.c (pupa_ncurses_fini): Return 0.
49629 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
49630 Move fail label here.
49631 [__GNU__]: Don't warn when using stat.
49632 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
49633 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
49634 long int. Use strtol instead of strtoul.
49636 2004-03-14 Marco Gerards <metgerards@student.han.nl>
49638 * commands/boot.c: New file.
49639 * commands/cat.c: Likewise.
49640 * commands/cmp.c: Likewise.
49641 * commands/ls.c: Likewise.
49642 * commands/terminal.c: Likewise.
49643 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
49644 (pupa_register_command): Changed interface to match the new
49646 (pupa_command_execute): Changed (almost rewritten) so it uses
49647 pupa_split_command. Added support for setting variables using the
49649 (rescue_command): Changed to work with the new argument parser.
49650 (terminal_command): Moved from here to commands/terminal.c.
49651 (set_command): New function.
49652 (unset_command): New function.
49653 (insmod_command): New function.
49654 (rmmod_command): New function.
49655 (lsmod_command): New function.
49656 (pupa_command_init): Don't initialize the command terminal
49657 anymore. Initialize the commands set, unset, insmod, rmmod and
49659 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
49660 (kernel_img_HEADERS): Add arg.h and env.h.
49661 (pupa_mkimage_LDFLAGS): Add kern/env.c.
49662 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
49663 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
49665 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
49667 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
49668 (boot_mod_SOURCES): New variable.
49669 (terminal_mod_SOURCES): Likewise.
49670 (ls_mod_SOURCES): Likewise.
49671 (cmp_mod_SOURCES): Likewise.
49672 (cat_mod_SOURCES): Likewise.
49674 * normal/arg.c: New file.
49675 * kern/env.c: Likewise.
49676 * include/pupa/arg.h: Likewise.
49677 * include/pupa/env.h: Likewise.
49678 * font/manager.c (font_command): Changed to match argument parsing
49680 (PUPA_MOD_INIT): Likewise.
49681 * hello/hello.c (pupa_cmd_hello): Likewise.
49682 (PUPA_MOD_INIT): Likewise.
49683 * include/pupa/disk.h: Include <pupa/device.h>.
49684 (pupa_print_partinfo): New prototype.
49685 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
49686 (pupa_dl_get_prefix): Likewise.
49687 * include/pupa/misc.h: Include <pupa/err.h>.
49688 (pupa_isgraph): New prototype.
49689 (pupa_isdigit): Likewise.
49690 (pupa_split_cmdline): Likewise.
49691 * include/pupa/normal.h: Include <pupa/arg.h>.
49692 (pupa_command): Changed the prototype of the member `func' to
49693 match the argument parsing interface. Added member `options'.
49694 (pupa_register_command): Updated to match function.
49695 (pupa_arg_parse): New prototype.
49696 (pupa_hello_init) [PUPA_UTIL]: New prototype.
49697 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
49698 (pupa_ls_init) [PUPA_UTIL]: Likewise.
49699 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
49700 (pupa_cat_init) [PUPA_UTIL]: Likewise.
49701 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
49702 (pupa_boot_init) [PUPA_UTIL]: Likewise.
49703 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
49704 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
49705 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
49706 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
49707 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
49708 * kern/disk.c: Include <pupa/file.h>.
49709 (pupa_print_partinfo): New function.
49710 * kern/dl.c: Include <pupa/env.h>.
49711 (pupa_dl_dir): Variable removed.
49712 (pupa_dl_load): Use the environment variable `prefix' instead of
49713 the variable pupa_dl_dir.
49714 (pupa_dl_set_prefix): Function removed.
49715 (pupa_dl_get_prefix): Likewise.
49716 * kern/i386/pc/init.c: Include <pupa/env.h>.
49717 (pupa_machine_init): Use the environment variable `prefix' instead of
49718 using pupa_dl_set_prefix to set the prefix.
49719 * kern/main.c: Include <pupa/env.h>.
49720 (pupa_set_root_dev): Use the environment variable `prefix' instead of
49721 using pupa_dl_get_prefix to get the prefix.
49722 * kern/misc.c: Include <pupa/env.h>.
49723 (pupa_isdigit): New function.
49724 (pupa_isgraph): Likewise.
49725 (pupa_ftoa): Likewise.
49726 (pupa_vsprintf): Added support for printing values of the type
49727 `double'. Make it possible to format variable output when using
49728 formatting like `%1.2%f'.
49729 (pupa_split_cmdline): New function.
49730 * kern/rescue.c: Include <pupa/env.h>.
49731 (next_word): Removed function.
49732 (pupa_rescue_cmd_prefix): Likewise.
49733 (pupa_rescue_cmd_set): New function.
49734 (pupa_rescue_cmd_unset): New function.
49735 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
49736 split the command line instead of splitting it here. Added
49737 support for setting variables using the syntax `foo=bar'. Don't
49738 initialize the prefix command anymore. Initialized the set and
49740 * normal/cmdline.c: Include <pupa/env.h>.
49741 (pupa_tab_complete): Added prototypes for print_simple_completion,
49742 print_partition_completion, add_completion, iterate_commands,
49743 iterate_dev, iterate_part and iterate_dir. Moved code to print
49744 partition information from here to kern/disk.c.
49745 (pupa_cmdline_run): Don't check if the function exists anymore.
49746 * normal/main.c: Include <pupa/env.h>.
49747 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
49748 instead of using pupa_dl_get_prefix to get the prefix.
49749 * term/i386/pc/vga.c: Include <pupa/arg.h>.
49750 (check_vga_mem): Cast pointers to `void *' to silence a gcc
49752 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
49753 (pupa_vga_setcolor): Declare unused variables with `__attribute__
49754 ((unused))' to silence a gcc warning.
49755 (pupa_vga_setcolor): Likewise.
49756 (debug_command): Changed to match argument parsing
49758 * util/pupa-emu.c: Include <pupa/env.h>.
49759 (options): Added 0's for unused fields to silence a gcc warning.
49761 (main): Use the environment variable `prefix' instead of using
49762 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
49763 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
49766 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
49767 * util/misc.c: Include <malloc.h>.
49768 (pupa_malloc): Rewritten so errors are correctly reported.
49769 (pupa_realloc): Likewise.
49770 (pupa_memalign): Likewise.
49771 (pupa_mm_init_region): Declare unused variables with
49772 `__attribute__ ((unused))' to silence a gcc warning.
49773 * normal/i386/setjmp.S: Remove tab at the end of the file to
49774 silence a gcc warning.
49775 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
49776 variables with `__attribute__ ((unused))' to silence a gcc
49778 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
49779 local variable i unsigned to silence a gcc warning.
49781 * kern/term.c: Include <pupa/misc.h>.
49782 (pupa_more_lines): New variable.
49783 (pupa_more): Likewise.
49784 (pupa_putcode): When the pager is active pause at the end of every
49786 (pupa_set_more): New function.
49787 * include/pupa/term.h (pupa_set_more): New prototype.
49790 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
49792 Now this project is GRUB 2 rather than PUPA. The location of
49793 the CVS repository was moved to GRUB's.
49795 * configure.ac: Use bug-grub as the reporting address.
49796 Use GRUB instead of PUPA.
49797 Change the version number to 1.90.
49799 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
49801 * genkernsyms.sh: Updated copyright information.
49802 * genmk.rb: Likewise.
49803 * genmodsrc.sh: Likewise.
49804 * gensymlist.sh: Likewise.
49805 * boot/i386/pc/boot.S: Likewise.
49806 * boot/i386/pc/diskboot.S: Likewise.
49807 * disk/i386/pc/biosdisk.c: Likewise.
49808 * disk/i386/pc/partition.c: Likewise.
49809 * font/manager.c: Likewise.
49810 * fs/ext2.c: Likewise.
49811 * fs/fat.c: Likewise.
49812 * include/pupa/boot.h: Likewise.
49813 * include/pupa/device.h: Likewise.
49814 * include/pupa/disk.h: Likewise.
49815 * include/pupa/dl.h: Likewise.
49816 * include/pupa/elf.h: Likewise.
49817 * include/pupa/err.h: Likewise.
49818 * include/pupa/file.h: Likewise.
49819 * include/pupa/font.h: Likewise.
49820 * include/pupa/fs.h: Likewise.
49821 * include/pupa/kernel.h: Likewise.
49822 * include/pupa/loader.h: Likewise.
49823 * include/pupa/misc.h: Likewise.
49824 * include/pupa/mm.h: Likewise.
49825 * include/pupa/net.h: Likewise.
49826 * include/pupa/normal.h: Likewise.
49827 * include/pupa/rescue.h: Likewise.
49828 * include/pupa/setjmp.h: Likewise.
49829 * include/pupa/symbol.h: Likewise.
49830 * include/pupa/term.h: Likewise.
49831 * include/pupa/types.h: Likewise.
49832 * include/pupa/i386/setjmp.h: Likewise.
49833 * include/pupa/i386/types.h: Likewise.
49834 * include/pupa/i386/pc/biosdisk.h: Likewise.
49835 * include/pupa/i386/pc/boot.h: Likewise.
49836 * include/pupa/i386/pc/console.h: Likewise.
49837 * include/pupa/i386/pc/init.h: Likewise.
49838 * include/pupa/i386/pc/kernel.h: Likewise.
49839 * include/pupa/i386/pc/linux.h: Likewise.
49840 * include/pupa/i386/pc/loader.h: Likewise.
49841 * include/pupa/i386/pc/memory.h: Likewise.
49842 * include/pupa/i386/pc/multiboot.h: Likewise.
49843 * include/pupa/i386/pc/partition.h: Likewise.
49844 * include/pupa/i386/pc/time.h: Likewise.
49845 * include/pupa/i386/pc/vga.h: Likewise.
49846 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
49847 * include/pupa/util/getroot.h: Likewise.
49848 * include/pupa/util/misc.h: Likewise.
49849 * include/pupa/util/resolve.h: Likewise.
49850 * kern/device.c: Likewise.
49851 * kern/disk.c: Likewise.
49852 * kern/dl.c: Likewise.
49853 * kern/err.c: Likewise.
49854 * kern/file.c: Likewise.
49855 * kern/fs.c: Likewise.
49856 * kern/loader.c: Likewise.
49857 * kern/main.c: Likewise.
49858 * kern/misc.c: Likewise.
49859 * kern/mm.c: Likewise.
49860 * kern/rescue.c: Likewise.
49861 * kern/term.c: Likewise.
49862 * kern/i386/dl.c: Likewise.
49863 * kern/i386/pc/init.c: Likewise.
49864 * kern/i386/pc/lzo1x.S: Likewise.
49865 * kern/i386/pc/startup.S: Likewise.
49866 * loader/i386/pc/chainloader.c: Likewise.
49867 * loader/i386/pc/linux.c: Likewise.
49868 * loader/i386/pc/multiboot.c: Likewise.
49869 * normal/cmdline.c: Likewise.
49870 * normal/command.c: Likewise.
49871 * normal/main.c: Likewise.
49872 * normal/menu.c: Likewise.
49873 * normal/i386/setjmp.S: Likewise.
49874 * term/i386/pc/console.c: Likewise.
49875 * term/i386/pc/vga.c: Likewise.
49876 * util/console.c: Likewise.
49877 * util/genmoddep.c: Likewise.
49878 * util/misc.c: Likewise.
49879 * util/pupa-emu.c: Likewise.
49880 * util/resolve.c: Likewise.
49881 * util/unifont2pff.rb: Likewise.
49882 * util/i386/pc/biosdisk.c: Likewise.
49883 * util/i386/pc/getroot.c: Likewise.
49884 * util/i386/pc/pupa-mkimage.c: Likewise.
49885 * util/i386/pc/pupa-setup.c: Likewise.
49887 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
49889 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
49890 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
49891 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
49892 reading and reset it after reading.
49893 (pupa_ext2_close): Return PUPA_ERR_NONE.
49895 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
49897 (struct linux_kernel_header): Add kernel_version and
49899 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
49900 pupa_file_read succeeds.
49901 (pupa_rescue_cmd_initrd): Implement.
49903 2003-12-03 Marco Gerards <metgerards@student.han.nl>
49905 * fs/ext2.c (pupa_ext2_label): New function.
49906 (pupa_ext2_fs): Added label.
49907 * fs/fat.c (pupa_fat_label): New function.
49908 (pupa_fat_fs): Added label.
49909 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
49911 * kern/misc.c (pupa_strndup): New function.
49912 * include/pupa/misc.h (pupa_strndup): New prototype.
49914 * include/pupa/normal.h: Include <pupa/err.h>.
49915 (pupa_set_history): New prototype.
49916 (pupa_iterate_commands): New prototype.
49917 * normal/cmdline.c: Include <pupa/machine/partition.h>,
49918 <pupa/disk.h>, <pupa/file.h>.
49919 (hist_size): New variable.
49920 (hist_lines): Likewise.
49921 (hist_end): Likewise.
49922 (hist_used): Likewise.
49923 (pupa_set_history): New function.
49924 (pupa_history_get): Likewise.
49925 (pupa_history_add): Likewise.
49926 (pupa_history_replace): Likewise.
49927 (pupa_tab_complete): Likewise.
49928 (pupa_cmdline_run): Added tab completion and history buffer. Tab
49929 completion shows partitionnames while completing partitions, this
49930 feature was suggested by Jeff Bailey.
49931 * normal/command.c (pupa_iterate_commands): New function.
49932 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
49933 (pupa_normal_init): Initialize history buffer.
49934 (PUPA_MOD_INIT): Likewise.
49935 (pupa_normal_fini): Free the history buffer.
49936 (PUPA_MOD_FINI): Likewise.
49938 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
49941 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
49942 * configure.ac [i386]: Check for regparam bug.
49943 (NESTED_FUNC_ATTR) [! i386]: Defined.
49945 2003-11-17 Marco Gerards <metgerards@student.han.nl>
49947 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
49948 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
49949 (pupa_emu_SOURCES): New variable.
49950 (pupa_emu_LDFLAGS): Likewise.
49951 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
49952 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
49953 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
49954 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
49955 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
49956 (pupa_jmp_buf): New typedef.
49957 (pupa_setjmp) [PUPA_UTIL]: New macro.
49958 (pupa_longjmp) [PUPA_UTIL]: Likewise.
49959 * include/pupa/term.h (struct pupa_term): New member `refresh'.
49960 (pupa_refresh): New prototype.
49961 * include/pupa/util/getroot.h: New file.
49962 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
49964 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
49965 (pupa_rescue_cmd_cat): Likewise.
49966 (pupa_rescue_cmd_ls): Likewise.
49967 (pupa_rescue_cmd_testload): Likewise.
49968 (pupa_rescue_cmd_lsmod): Likewise.
49969 * normal/cmdline.c (pupa_cmdline_get): Likewise.
49970 * normal/menu.c (run_menu): Likewise.
49971 * kern/term.c (pupa_cls): Likewise.
49972 (pupa_refresh): New function.
49973 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
49974 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
49975 * util/console.c: New file.
49977 * util/i386/pc/getroot.c: New file.
49978 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
49979 (pupa_putchar): New function.
49980 (pupa_refresh): Likewise.
49981 (xgetcwd): Function moved to ...
49982 (strip_extra_slashes): Likewise.
49983 (get_prefix): Likewise.
49984 * util/i386/pc/getroot.c: ... here.
49985 (find_root_device): Function moved and renamed to...
49986 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
49987 Changed all callers.
49988 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
49990 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
49991 Changed all callers.
49992 * util/misc.c (pupa_memalign): New function.
49993 (pupa_mm_init_region): Likewise.
49994 (pupa_register_exported_symbols): Likewise.
49995 (pupa_putchar): Function removed.
49996 * util/pupa-emu.c: New file.
49998 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
50000 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
50001 (_multiboot_mod_SOURCES): New variable.
50002 (_multiboot_mod_CFLAGS): Likewise.
50003 * loader/i386/pc/multiboot.c: New file.
50004 * include/pupa/i386/pc/multiboot.h: Likewise.
50005 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
50006 (pupa_multiboot_real_boot): New function.
50007 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
50008 (pupa_multiboot_real_boot): New prototype.
50009 (pupa_rescue_cmd_multiboot): Likewise
50010 (pupa_rescue_cmd_module): Likewise.
50012 * kern/loader.c (pupa_loader_set): Continue when
50013 pupa_loader_unload_func() fails.
50014 (pupa_loader_unset): New function.
50015 * include/pupa/loader.h (pupa_loader_unset): New prototype.
50017 * kern/misc.c (pupa_stpcpy): New function.
50018 * include/pupa/misc.h (pupa_stpcpy): New prototype.
50020 2003-11-12 Marco Gerards <metgerards@student.han.nl>
50022 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
50023 for available extensions.
50025 * include/pupa/i386/pc/time.h: New file.
50026 * kern/disk.c: Include <pupa/machine/time.h>.
50027 (PUPA_CACHE_TIMEOUT): New macro.
50028 (pupa_last_time): New variable.
50029 (pupa_disk_open): Flush the cache when there was a timeout.
50030 (pupa_disk_close): Reset the timer.
50031 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
50033 * util/misc.c: Include <sys/times.h>
50034 (pupa_get_rtc): New function.
50036 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
50038 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
50040 (pupa_ext2_get_file_block): Use blocks member.
50042 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
50043 first block. Return -1 instead of pupa_errno on error.
50045 2003-10-27 Marco Gerards <metgerards@student.han.nl>
50047 * README: In the pupa-mkimage example use _chain instead of chain
50048 and ext2 instead of fat.
50049 * TODO: Replace ext2fs with jfs as an example. Add an item for
50050 adding journal playback for ext2fs.
50051 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
50052 (pkgdata_MODULES): Added ext2.mod.
50053 (ext2_mod_SOURCES): New variable.
50054 (ext2_mod_CFLAGS): Likewise.
50055 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
50056 * include/pupa/misc.h (pupa_strncpy): New prototype.
50057 (pupa_strcat): Likewise.
50058 (pupa_strncmp): Likewise.
50059 * kern/misc.c (pupa_strcat): Enable function.
50060 (pupa_strncpy): New function.
50061 (pupa_strncmp): Likewise.
50062 * fs/ext2.c: New file.
50064 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
50065 when the read failed before retrying.
50066 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
50067 (_FILE_OFFSET_BITS): Likewise.
50068 * configure.ac: Added AC_SYS_LARGEFILE.
50070 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
50072 * genmk.rb (PModule#rule): Make sure to get only symbol names
50073 from the output of nm.
50074 Reported by Robert Millan <rmh.grub@aybabtu.com>.
50076 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
50078 I forgot to check in these changes for a long time. This adds
50079 incomplete support for VGA console, and this is still very
50080 buggy. Also, a lot of consideration is required for I18N,
50081 UNICODE, and VGA font issues. Therefore, assume that this is
50082 such that "better than nothing".
50084 * font/manager.c: New file.
50085 * include/pupa/font.h: Likewise.
50086 * include/pupa/i386/pc/vga.h: Likewise.
50087 * term/i386/pc/vga.c: Likewise.
50088 * util/unifont2pff.rb: Likewise.
50090 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
50091 (pkgdata_MODULES): Added vga.mod and font.mod.
50092 (vga_mod_SOURCES): New variables.
50093 (vga_mod_CFLAGS): Likewise.
50094 (font_mod_SOURCES): Likewise.
50095 (font_mod_CFLAGS): Likewise.
50097 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
50099 * include/pupa/term.h: Include pupa/err.h.
50100 (struct pupa_term): Added init and fini.
50101 Changed the argument of putchar to pupa_uint32_t.
50103 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
50104 (pupa_console_real_putchar): New prototype.
50105 (pupa_console_putchar): Removed.
50106 (pupa_console_checkkey): Exported.
50107 (pupa_console_getkey): Likewise.
50109 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
50112 * kern/term.c (pupa_term_set_current): Rewritten.
50113 (pupa_putchar): Likewise.
50114 (pupa_putcode): New function.
50116 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
50117 (pupa_console_real_putchar): ... this.
50118 (pupa_vga_set_mode): New function.
50119 (pupa_vga_get_font): Likewise.
50121 * normal/command.c: Include pupa/term.h.
50122 (terminal_command): New function.
50123 (pupa_command_init): Register the command "terminal".
50125 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
50126 (DISP_UP): Likewise.
50127 (DISP_RIGHT): Likewise.
50128 (DISP_DOWN): Likewise.
50129 (DISP_HLINE): Likewise.
50130 (DISP_VLINE): Likewise.
50131 (DISP_UL): Likewise.
50132 (DISP_UR): Likewise.
50133 (DISP_LL): Likewise.
50134 (DISP_LR): Likewise.
50136 * term/i386/pc/console.c (pupa_console_putchar): New function.
50138 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
50140 * util/resolve.c (pupa_util_resolve_dependencies): BUG
50141 FIX. Reverse the path_list.
50143 * include/pupa/normal.h: Export pupa_register_command and
50144 pupa_unregister_command.
50146 * hello/hello.c (pupa_cmd_hello): New module.
50147 * conf/i386-pc.rmk: Added hello.mod.
50149 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
50151 * kern/i386/pc/lzo1x.S: New file.
50153 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
50154 (compress_kernel): New variable.
50155 (generate_image): Heavily modified to support compressing a
50156 large part of the core image.
50158 * util/misc.c (pupa_util_read_image): Fix a file descriptor
50160 (pupa_util_load_image): New function.
50162 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
50163 (pupa_compressed_size): New variable.
50164 (codestart): Enable Gate A20 here.
50165 Decompress the compressed part of the core image.
50166 Rearrange the code to put functions and variables which are
50167 required for initialization in the non-compressed part.
50170 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
50173 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
50175 * include/pupa/i386/pc/kernel.h
50176 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
50177 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
50178 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
50179 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
50180 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
50182 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
50184 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
50185 (Utility#rule): Likewise.
50187 * configure.ac: Check if LZO is available.
50189 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
50191 * include/pupa/normal.h: New file.
50192 * include/pupa/setjmp.h: Likewise.
50193 * include/pupa/i386/setjmp.h: Likewise.
50194 * normal/cmdline.c: Likewise.
50195 * normal/command.c: Likewise.
50196 * normal/main.c: Likewise.
50197 * normal/menu.c: Likewise.
50198 * normal/i386/setjmp.S: Likewise.
50200 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
50201 (pupa_rescue_cmd_initrd): Likewise.
50203 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
50206 * kern/i386/pc/startup.S (translation_table): New variable.
50207 (translate_keycode): New function.
50208 (pupa_console_getkey): Call translate_keycode.
50210 * kern/rescue.c (attempt_normal_mode): New function.
50211 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
50212 it failed, print a message.
50214 * kern/mm.c (pupa_real_malloc): Print more information when a
50215 free magic is broken.
50216 (pupa_free): If the first free header is not free actually, set
50219 * kern/main.c (pupa_load_normal_mode): Just load the module
50221 (pupa_main): Don't print the message
50222 "Entering into rescue mode..." here.
50224 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
50226 (pupa_rescue_cmd_initrd): Likewise.
50227 (pupa_rescue_cmd_initrd): Likewise.
50229 * include/pupa/symbol.h (FUNCTION): Specify the type.
50230 (VARIABLE): Likewise.
50232 * include/pupa/err.h (pupa_err_t): Added
50233 PUPA_ERR_UNKNOWN_COMMAND.
50235 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
50236 (pupa_dl_get_prefix): Likewise.
50238 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
50239 Added _chain.mod and _linux.mod instead of chain.mod and
50241 (chain_mod_SOURCES): Renamed to ...
50242 (_chain_mod_SOURCES): ... this.
50243 (chain_mod_CFLAGS): Renamed to ...
50244 (_chain_mod_CFLAGS): ... this.
50245 (linux_mod_SOURCES): Renamed to ...
50246 (_linux_mod_SOURCES): ... this.
50247 (linux_mod_CFLAGS): Renamed to ...
50248 (_linux_mod_CFLAGS): ... this.
50249 (normal_mod_SOURCES): New variable.
50250 (normal_mod_CFLAGS): Likewise.
50251 (normal_mod_ASFLAGS): Likewise.
50253 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
50255 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
50258 * kern/dl.c (pupa_dl_ref): Refer depending modules
50260 (pupa_dl_unref): Unrefer depending modules recursively.
50261 Don't call pupa_dl_unload implicitly, because PUPA can crash if
50262 a module is unloaded before one depending on that module is
50264 (pupa_dl_unload): Unload depending modules explicitly,
50267 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
50269 * include/pupa/i386/pc/linux.h: New file.
50270 * loader/i386/pc/linux.c: Likewise.
50272 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
50274 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
50275 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
50276 of PUPA_CHAINLOADER_BOOT_SECTOR.
50278 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
50279 (pupa_linux_prot_size): New variable.
50280 (pupa_linux_tmp_addr): Likewise.
50281 (pupa_linux_real_addr): Likewise.
50282 (pupa_linux_boot_zimage): New function.
50283 (pupa_linux_boot_bzimage): Likewise.
50285 * kern/i386/pc/init.c (struct mem_region): New structure.
50286 (MAX_REGIONS): New macro.
50287 (mem_regions): New variable.
50288 (num_regions): Likewise.
50289 (pupa_os_area_addr): Likewise.
50290 (pupa_os_area_size): Likewise.
50291 (pupa_lower_mem): Likewise.
50292 (pupa_upper_mem): Likewise.
50293 (add_mem_region): New function.
50294 (compact_mem_regions): Likewise.
50295 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
50296 the size of the conventional memory and that of so-called upper
50297 memory (before the first memory hole).
50298 Instead of adding each found region to free memory, use
50299 add_mem_region and add them after removing overlaps.
50300 Also, add only 1/4 of the upper memory to free memory. The rest
50301 is used for loading OS images. Maybe this is ad hoc, but this
50302 makes it much easier to relocate OS images when booting.
50304 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
50305 (pupa_enter_rescue_mode): Don't register initrd and module.
50307 * kern/mm.c: Include pupa/dl.h.
50309 * kern/main.c: Include pupa/file.h and pupa/device.h.
50311 * kern/loader.c (pupa_loader_load_module_func): Removed.
50312 (pupa_loader_load_module): Likewise.
50314 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
50317 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
50318 (pupa_linux_tmp_addr): Likewise.
50319 (pupa_linux_real_addr): Likewise.
50320 (pupa_linux_boot_zimage): Likewise.
50321 (pupa_linux_boot_bzimage): Likewise.
50323 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
50324 (pupa_upper_mem): Likewise.
50325 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
50326 module is too dangerous.
50328 * include/pupa/loader.h (pupa_os_area_addr): Declared.
50329 (pupa_os_area_size): Likewise.
50330 (pupa_loader_set): Remove the first argument. Loader doesn't
50331 manage modules or initrd any longer.
50332 (pupa_loader_load_module): Removed.
50334 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
50335 (linux_mod_SOURCES): New variable.
50336 (linux_mod_CFLAGS): Likewise.
50338 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
50340 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
50341 the length of a blocklist correctly.
50343 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
50344 Use ioctl only if the OS file is a block device.
50345 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
50346 not very useful for normal files.
50348 * kern/main.c (pupa_set_root_dev): New function.
50349 (pupa_load_normal_mode): Likewise.
50350 (pupa_main): Call those above.
50352 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
50355 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
50357 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
50359 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
50360 (setup): Configure the installed partition information and the
50363 * loader/i386/pc/chainloader.c (my_mod): New variable.
50364 (pupa_chainloader_unload): New function.
50365 (pupa_rescue_cmd_chainloader): Refer itself.
50366 (PUPA_MOD_INIT): Save its own module in MY_MOD.
50368 * kern/i386/pc/startup.S (install_partition): Removed.
50369 (version_string): Likewise.
50370 (config_file): Likewise.
50371 (pupa_install_dos_part): New variable.
50372 (pupa_install_bsd_part): Likewise.
50373 (pupa_prefix): Likewise.
50374 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
50376 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
50378 (make_install_device): New function.
50379 (pupa_machine_init): Set the dl prefix.
50381 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
50382 (buf): Renamed to ...
50383 (linebuf): ... this.
50384 (pupa_rescue_cmd_prefix): New function.
50385 (pupa_rescue_cmd_insmod): Likewise.
50386 (pupa_rescue_cmd_rmmod): Likewise.
50387 (pupa_rescue_cmd_lsmod): Likewise.
50388 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
50391 * kern/mm.c (pupa_memalign): If failed even after invalidating
50392 disk caches, unload unneeded modules and retry.
50394 * kern/misc.c (pupa_memmove): New function.
50395 (pupa_memcpy): Removed.
50396 (pupa_strcpy): New function.
50397 (pupa_itoa): Made static.
50399 * kern/dl.c (pupa_dl_iterate): New function.
50400 (pupa_dl_ref): Likewise.
50401 (pupa_dl_unref): Likewise.
50402 (pupa_dl_unload): Return if succeeded or not.
50403 (pupa_dl_unload_unneeded): New function.
50404 (pupa_dl_unload_all): Likewise.
50405 (pupa_dl_init): Renamed to ...
50406 (pupa_dl_set_prefix): ... this.
50407 (pupa_dl_get_prefix): New function.
50409 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
50410 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
50411 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
50412 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
50413 (pupa_install_dos_part): Declared.
50414 (pupa_install_bsd_part): Likewise.
50415 (pupa_prefix): Likewise.
50416 (pupa_boot_drive): Likewise.
50418 * include/pupa/types.h: Fix a typo.
50420 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
50422 (pupa_memmove): Declared.
50423 (pupa_strcpy): Likewise.
50425 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
50426 pupa_mod_init takes one argument, its own module.
50427 (pupa_dl_unload_unneeded): Declared.
50428 (pupa_dl_unload_all): Likewise.
50429 (pupa_dl_ref): Likewise.
50430 (pupa_dl_unref): Likewise.
50431 (pupa_dl_iterate): Likewise.
50432 (pupa_dl_init): Renamed to ...
50433 (pupa_dl_set_prefix): ... this.
50434 (pupa_dl_get_prefix): Declared.
50436 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
50437 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
50439 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
50440 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
50442 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
50443 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
50445 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
50447 * util/i386/pc/pupa-setup.c (setup): Define the internal
50448 function find_first_partition_start at the top level, because GCC
50449 3.0.x cannot compile internal functions in deeper scopes
50451 (find_root_device): Use lstat instead of stat.
50452 Don't follow symbolic links.
50453 Fix the path-constructing code.
50455 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
50456 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
50457 by a BLKGETSIZE ioctl first, because block devices don't fill
50458 the member st_mode of the structure stat on Linux.
50459 [__linux__] (linux_find_partition): Use a temporary buffer
50460 REAL_DEV for the working space. Copy it to DEV before returning.
50461 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
50462 buffer cache consistent.
50463 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
50464 strncmp. The previous value was merely wrong.
50465 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
50467 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
50468 FAT size is 12. The previous value was merely wrong.
50470 * kern/main.c (pupa_main): Don't split the starting message from
50473 * kern/term.c (pupa_putchar): Put CR after LF instead of before
50474 LF, because BIOS goes crazy about character attributes in this
50477 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
50479 * include/i386/pc/util/biosdisk.h: New file.
50480 * util/i386/pc/biosdisk.c: Likewise.
50481 * util/i386/pc/pupa-setup.c: Likewise.
50483 * Makefile.in (INCLUDE_DISTFILES): Added
50484 include/pupa/i386/pc/util/biosdisk.h.
50485 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
50486 directory util/i386/pc.
50487 (install-local): Added a rule for sbin_UTILITIES.
50488 (uninstall): Likewise.
50490 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
50492 * util/misc.c (xrealloc): New function.
50493 (pupa_malloc): Likewise.
50494 (pupa_free): Likewise.
50495 (pupa_realloc): Likewise.
50496 (pupa_stop): Likewise.
50497 (pupa_putchar): Likewise.
50499 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
50501 * include/pupa/util/misc.h (xrealloc): Declared.
50503 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
50505 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
50506 (PUPA_BOOT_MACHINE_BPB_END): ... this.
50508 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
50509 [PUPA_UTIL] (pupa_fat_fini): Likewise.
50511 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
50512 way should be implemented.
50513 [PUPA_UTIL] (pupa_fat_fini): Likewise.
50515 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
50516 the size of NAME for safety.
50517 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
50520 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
50521 (pupa_setup_SOURCES): Likewise.
50523 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
50525 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
50527 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
50528 bunch of pushl's from pusha, because this destroys the return
50531 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
50533 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
50534 This means that any missing prototypes could be fatal. Also, you
50535 must take care when writing assembly code. See the comments at
50536 the beginning of startup.S, for more details.
50538 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
50539 compilation mechanism.
50540 (pupa_chainloader_real_boot): Likewise.
50541 (pupa_biosdisk_rw_int13_extensions): Likewise.
50542 (pupa_biosdisk_rw_standard): Likewise.
50543 (pupa_biosdisk_check_int13_extensions): Likewise.
50544 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
50545 (pupa_biosdisk_get_diskinfo_standard): Likewise.
50546 (pupa_get_memsize): Likewise.
50547 (pupa_get_mmap_entry): Likewise.
50548 (pupa_console_putchar): Likewise.
50549 (pupa_console_setcursor): Likewise.
50550 (pupa_getrtsecs): Use pushl instead of push.
50552 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
50553 memory instead of the stack for a mmap entry, because some
50554 BIOSes may ignore the maximum size and overflow.
50556 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
50558 * genmk.rb (PModule#rule): Compile automatically generated
50559 sources with module-specific CFLAGS as well as other sources.
50561 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50563 * configure.ac: Check ld.
50564 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
50565 respectively, before checking endianness and sizes.
50567 * Makefile.in (LD): New variable.
50569 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50571 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
50573 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50575 * Changelog: New file.