]> git.proxmox.com Git - grub2.git/log
grub2.git
16 years ago2008-01-15 Christian Franke <franke@computer.org>
robertmh [Tue, 15 Jan 2008 11:49:22 +0000 (11:49 +0000)]
2008-01-15  Christian Franke  <franke@computer.org>

        * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
        (argp_program_version): Remove variable.
        (argp_program_bug_address): Likewise.
        (options): Convert from struct argp_option to struct option.
        (struct arguments): Remove.
        (parse_opt): Remove.
        (usage): New function.
        (main): Replace struct args members by simple variables.
        Replace argp_parse() by getopt_long().
        Add switch to evaluate options.
        Add missing "(...)" around root_dev in prefix string.

16 years ago2008-01-14 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 14 Jan 2008 14:30:59 +0000 (14:30 +0000)]
2008-01-14  Robert Millan  <rmh@aybabtu.com>

        * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
        for grub_ieee1275_exit(), in order to improve portability.

16 years ago2008-01-14 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 14 Jan 2008 12:24:48 +0000 (12:24 +0000)]
2008-01-14  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_linux.in (prefix): Define.
        (exec_prefix): Likewise.  Both definitions are later used by `libdir'.

16 years ago* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
proski [Mon, 14 Jan 2008 04:16:20 +0000 (04:16 +0000)]
* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
grub_errno if no errors have been detected.

16 years ago2008-01-12 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 12 Jan 2008 15:11:57 +0000 (15:11 +0000)]
2008-01-12  Robert Millan  <rmh@aybabtu.com>

        * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
        (grub_util_get_dev_abstraction): New function prototype.

        * util/getroot.c: Include `<grub/util/getroot.h>'
        (grub_util_get_grub_dev): Move detection of abstraction type to ...
        (grub_util_get_dev_abstraction): ... here (new function).

        * util/grub-probe.c: Convert PRINT_* to an enum.  Add
        `PRINT_ABSTRACTION'.
        (probe): Probe for abstraction type when requested.
        (main): Understand `--target=abstraction'.

        * util/i386/efi/grub-install.in: Add abstraction module to core
        image when it is found to be necessary.
        * util/i386/pc/grub-install.in: Likewise.
        * util/powerpc/ieee1275/grub-install.in: Likewise.

        * util/update-grub_lib.in (font_path): Return system path without
        converting to GRUB path.
        * util/update-grub.in: Convert system path returned by font_path()
        to a GRUB path.  Use `grub-probe -t abstraction' to determine what
        abstraction module is needed for loading fonts (if any).  Export
        that as `GRUB_PRELOAD_MODULES'.
        * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
        insmod commands).

16 years ago2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 12 Jan 2008 00:51:34 +0000 (00:51 +0000)]
2008-01-12  Yoshinori K. Okuji  <okuji@enbug.org>

    Remove some unused code from reiserfs.

    * fs/reiserfs.c (struct grub_reiserfs_key)
    [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
    (struct grub_reiserfs_node_body): Removed.
    (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
    Likewise.
    (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
    Likewise.
    (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
    Likewise.
    (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
    Likewise.
    (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
    Likewise.
    (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
    Likewise.
    (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
    (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
    (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.

16 years ago2008-01-10 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 10 Jan 2008 13:52:24 +0000 (13:52 +0000)]
2008-01-10  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
        Determines if a file is garbage left by packaging systems, etc.
        * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
        for processing /etc/grub.d scripts.
        * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
        * util/grub.d/10_linux.in: Likewise.  Use grub_file_is_not_garbage()
        as a condition for processing Linux images.

16 years ago* include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
proski [Thu, 10 Jan 2008 07:27:08 +0000 (07:27 +0000)]
* include/grub/powerpc/libgcc.h (__ucmpdi2): New export.  Needed
to compile reiserfs.c on PowerPC.

16 years agoOoops, fix wrong date.
robertmh [Wed, 9 Jan 2008 23:27:36 +0000 (23:27 +0000)]
Ooops, fix wrong date.

16 years ago2008-01-08 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 9 Jan 2008 23:25:54 +0000 (23:25 +0000)]
2008-01-08  Robert Millan  <rmh@aybabtu.com>

        * kern/device.c (grub_device_iterate): Do not abort device iteration
        when one of the devices cannot be opened.
        * kern/disk.c (grub_disk_open): Do not account previous failures of
        unrelated functions when grub_errno is checked for.

16 years ago2008-01-08 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 8 Jan 2008 11:38:18 +0000 (11:38 +0000)]
2008-01-08  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
        `! grub_linux_is_bzimage', change order of address comparison to make
        it more intuitive, and improve "too big zImage" error message.

16 years ago2008-01-08 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 8 Jan 2008 10:00:42 +0000 (10:00 +0000)]
2008-01-08  Robert Millan  <rmh@aybabtu.com>

        * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
        `$(update-grub_DATA)'.
        (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
        targets.

16 years ago2008-01-07 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 7 Jan 2008 19:52:08 +0000 (19:52 +0000)]
2008-01-07  Robert Millan  <rmh@aybabtu.com>

        * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
        which instruction is modified by grub-setup during installation
        (since it wasn't obvious by only looking at this file).

16 years ago2008-01-07 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 7 Jan 2008 19:21:34 +0000 (19:21 +0000)]
2008-01-07  Robert Millan  <rmh@aybabtu.com>

        * TODO: Rewrite.  Just refer to the wiki and the BTS instead of
        listing actual TODO items.

16 years ago2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 6 Jan 2008 22:57:50 +0000 (22:57 +0000)]
2008-01-06  Yoshinori K. Okuji  <okuji@enbug.org>

    * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
    correctly.
    (grub_reiserfs_get_key_offset): Likewise.
    (grub_reiserfs_set_key_offset): Likewise.
    (grub_reiserfs_set_key_type): Likewise.
    (grub_reiserfs_iterate_dir): Return 1 if found, otheriwise 0.

    (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
    better to remove the bitfield version completely.

16 years ago2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 6 Jan 2008 15:34:11 +0000 (15:34 +0000)]
2008-01-06  Yoshinori K. Okuji  <okuji@enbug.org>

    * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
    allocated from the heap, due to the fshelp implementation.
    (grub_reiserfs_dir): Free NODE, due to the same reason.

16 years ago2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 6 Jan 2008 14:14:31 +0000 (14:14 +0000)]
2008-01-06  Yoshinori K. Okuji  <okuji@enbug.org>

    Mostly from Vincent Pelletier:

    * fs/reiserfs.c: New file.

    * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
    (reiserfs_mod_SOURCES): New variable.
    (reiserfs_mod_CFLAGS): Likewise.
    (reiserfs_mod_LDFLAGS): Likewise.

    * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
    disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
    include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
    normal/color.c.

16 years ago2008-01-06 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 6 Jan 2008 12:58:46 +0000 (12:58 +0000)]
2008-01-06  Robert Millan  <rmh@aybabtu.com>

        * normal/color.c: Remove `<grub/env.h>'.

16 years ago2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
jeroen [Sat, 5 Jan 2008 21:45:21 +0000 (21:45 +0000)]
2008-01-05  Jeroen Dekkers  <jeroen@dekkers.cx>

* include/grub/normal.h: Include <grub/env.h>.

16 years agoActually apply change described in:
robertmh [Sat, 5 Jan 2008 17:13:08 +0000 (17:13 +0000)]
Actually apply change described in:

        * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
        (normal_mod_DEPENDENCIES): Likewise.

16 years agoOops, add missing normal/color.c.
robertmh [Sat, 5 Jan 2008 13:03:34 +0000 (13:03 +0000)]
Oops, add missing normal/color.c.

16 years agoGive credit to the person who reported that..
robertmh [Sat, 5 Jan 2008 12:21:08 +0000 (12:21 +0000)]
Give credit to the person who reported that..

16 years ago2008-01-05 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 5 Jan 2008 12:20:28 +0000 (12:20 +0000)]
2008-01-05  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
        usage example with `(hd0,1)'.

16 years ago2008-01-05 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 5 Jan 2008 12:14:05 +0000 (12:14 +0000)]
2008-01-05  Robert Millan  <rmh@aybabtu.com>

        * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
        (grub_linux_boot_zimage): Rename to ...
        (grub_linux_boot): ... this.
        (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
        (grub_linux_boot_zimage): Conditionalize zImage copy.

        * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
        (grub_linux_boot_bzimage): Remove prototype.
        (grub_linux_boot_zimage): Rename to ...
        (grub_linux_boot): ... this.

        * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
        (grub_linux_boot): Remove function.

16 years ago2008-01-05 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 5 Jan 2008 12:10:28 +0000 (12:10 +0000)]
2008-01-05  Robert Millan  <rmh@aybabtu.com>

* include/grub/normal.h (grub_env_write_color_normal): New prototype.
(grub_env_write_color_highlight): Likewise.
(grub_wait_after_message): Likewise.

* normal/color.c: New file.

* conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
(normal_mod_DEPENDENCIES): Likewise.

* conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
(normal_mod_DEPENDENCIES): Likewise.

* conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
(normal_mod_DEPENDENCIES): Likewise.

* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
(normal_mod_DEPENDENCIES): Likewise.

* normal/menu_entry.c (run): Rely on grub_wait_after_message()
for waiting after a message is printed.
* normal/main.c (read_config_file): Likewise.
(grub_normal_init): Register grub_env_write_color_normal() and
grub_env_write_color_highlight() hooks.  Mark `color_normal' and
`color_highlight' variables as global.

* normal/menu.c (grub_wait_after_message): New function.
(grub_color_menu_normal): New variable.  Replaces ...
(GRUB_COLOR_MENU_NORMAL): ... this macro.
(grub_color_menu_highlight): New variable.  Replaces ...
(GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
(draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
`GRUB_TERM_COLOR_STANDARD'.
(print_message): Use `grub_setcolorstate' to reload colors.  Rename
`normal_code' and `highlight_code' to `old_color_normal' and
`old_color_highlight', respectively.
(grub_menu_init_page): Update colors when drawing the menu, based on
`menu_color_normal' and `menu_color_highlight' variables.
(grub_menu_run): Rely on grub_wait_after_message() for waiting after
a message is printed.

16 years ago2008-01-05 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 5 Jan 2008 12:04:35 +0000 (12:04 +0000)]
2008-01-05  Robert Millan  <rmh@aybabtu.com>

        * kern/env.c (grub_env_context_open): Propagate hooks for global
        variables to new context.

        * kern/main.c (grub_set_root_dev): Export `root' variable.

16 years ago2008-01-05 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 5 Jan 2008 12:02:03 +0000 (12:02 +0000)]
2008-01-05  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
        discs unconditionaly, since udev and others have options to provide
        them.

16 years ago2008-01-05 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 5 Jan 2008 11:59:34 +0000 (11:59 +0000)]
2008-01-05  Robert Millan  <rmh@aybabtu.com>

        * normal/completion.c (iterate_dir): Skip `.' and `..' directories.

16 years ago2008-01-04 Christian Franke <franke@computer.org>
robertmh [Fri, 4 Jan 2008 08:31:36 +0000 (08:31 +0000)]
2008-01-04  Christian Franke  <franke@computer.org>

        * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
        of eisa_mmap.

16 years ago2008-01-03 Pavel Roskin <proski@gnu.org>
proski [Thu, 3 Jan 2008 22:43:46 +0000 (22:43 +0000)]
2008-01-03  Pavel Roskin  <proski@gnu.org>

* kern/i386/linuxbios/init.c: Put "void" to all function
declarations with no arguments.
* kern/powerpc/ieee1275/init.c: Likewise.
* term/i386/pc/at_keyboard.c: Likewise.
* term/i386/pc/vga_text.c: Likewise.
* util/grub-mkdevicemap.c: Likewise.

16 years ago2008-01-02 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 2 Jan 2008 11:55:23 +0000 (11:55 +0000)]
2008-01-02  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
        message when loaded image is out of bounds.
        (grub_multiboot_load_elf64): Likewise.

16 years ago* util/grub.d/10_linux.in: Try version without ".old" when
proski [Wed, 2 Jan 2008 08:34:41 +0000 (08:34 +0000)]
* util/grub.d/10_linux.in: Try version without ".old" when
looking for initrd.  It's better to use initrd from the newer
kernel of the same version than no initrd at all.

16 years ago2008-01-01 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 1 Jan 2008 21:59:03 +0000 (21:59 +0000)]
2008-01-01  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.

16 years ago2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Tue, 1 Jan 2008 12:02:07 +0000 (12:02 +0000)]
2008-01-01  Vesa Jaaskelainen  <chaac@nic.fi>

        * include/grub/video.h: Added grub_video_unmap_color and
        grub_video_get_active_render_target.
        (grub_video_adapter): Added unmap_color and get_active_render_target.

        * video/video.c: Added grub_video_unmap_color and
        grub_video_get_active_render_target.
        (grub_video_get_info): Changed method to accept NULL pointer as an
        argument to allow detection of active video adapter.

        * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
        grub_video_vbe_unmap_color_int.
        Added grub_video_vbe_unmap_color and
        grub_video_vbe_get_active_render_target.
        (grub_video_vbe_adapter): Added unmap_color and
        get_active_render_target.

        * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
        with grub_video_vbe_unmap_color_int.

        * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
        (DEFAULT_NORMAL_COLOR): Likewise.
        (DEFAULT_HIGHLIGHT_COLOR) Likewise.
        (DEFAULT_FG_COLOR): Removed.
        (DEFAULT_BG_COLOR): Likewise.
        (DEFAULT_CURSOR_COLOR): Changed value.
        (grub_virtual_screen): Added standard_color_setting,
        normal_color_setting, highlight_color_setting and term_color.
        (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
        (bitmap_width): Added.
        (bitmap_height): Likewise.
        (bitmap): Likewise.
        (set_term_color): Likewise.
        (grub_virtual_screen_setup): Changed to use new terminal coloring
        settings.
        (grub_gfxterm_init): Added init for bitmap.
        (grub_gfxterm_fini): Added destroy for bitmap.
        (redraw_screen_rect): Updated to use background bitmap and new
        terminal coloring.
        (scroll_up): Added optimization for case when there is no bitmap.
        (grub_gfxterm_cls): Fixed to use correct background color.
        (grub_virtual_screen_setcolorstate): Changed to use new terminal
        coloring.
        (grub_virtual_screen_setcolor): Likewise.
        (grub_virtual_screen_getcolor): Added.
        (grub_gfxterm_background_image_cmd): Likewise.
        (grub_video_term): Added setcolor and getcolor.
        (MOD_INIT): Added registration of background_image command.
        (MOD_TERM): Added unregistration for background_image command.

16 years agoFix date
proski [Mon, 31 Dec 2007 16:21:15 +0000 (16:21 +0000)]
Fix date

16 years agoTypo fixes in comments and variable names.
proski [Sun, 30 Dec 2007 08:52:06 +0000 (08:52 +0000)]
Typo fixes in comments and variable names.

16 years ago* loader/multiboot_loader.c: Fix multiboot command
proski [Sun, 30 Dec 2007 08:49:57 +0000 (08:49 +0000)]
* loader/multiboot_loader.c: Fix multiboot command
unregistration.  Fix all typos in the word "multiboot".

16 years ago* util/grub.d/10_linux.in: Refactor search for initrd. Add
proski [Sat, 29 Dec 2007 20:53:20 +0000 (20:53 +0000)]
* util/grub.d/10_linux.in: Refactor search for initrd.  Add
support for initrd names used in Fedora.

16 years ago2007-12-26 Bean <bean123ch@gmail.com>
robertmh [Wed, 26 Dec 2007 07:51:19 +0000 (07:51 +0000)]
2007-12-26  Bean  <bean123ch@gmail.com>

* conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
(cpio_mod_SOURCES): New variable.
(cpio_mod_CFLAGS): Likewise.
(cpio_mod_LDFLAGS): Likewise.

* fs/cpio.c: New file.

* conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.

* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.

* conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.

* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.

16 years ago2007-12-25 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 25 Dec 2007 11:10:47 +0000 (11:10 +0000)]
2007-12-25  Robert Millan  <rmh@aybabtu.com>

* include/grub/term.h (struct grub_term): Add `getcolor' function.
(grub_getcolor): New function.

* kern/term.c (grub_getcolor): New function.
* normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
(GRUB_COLOR_MENU_HIGHLIGHT): New macro.
(print_entry): Set normal and highlight colors to
`GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
respectively, before printing and restore them to old
values afterwards.
(grub_menu_init_page): Likewise.  Fill an additional colored space
that would otherwise be left blank.

* term/efi/console.c (grub_console_getcolor): New function.
(struct grub_console_term.getcolor): New variable.
* term/i386/pc/console.c (grub_console_getcolor): New function.
(struct grub_console_term.getcolor): New variable.
* term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
(struct grub_console_term.getcolor): New variable.

* term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
(struct grub_console_term.setcolor): Remove variable.
* term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
(struct grub_console_term.setcolor): Remove variable.
* term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
(struct grub_console_term.setcolor): Remove variable.
* term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
(struct grub_console_term.setcolor): Remove variable.

16 years ago2007-12-25 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 25 Dec 2007 09:09:43 +0000 (09:09 +0000)]
2007-12-25  Robert Millan  <rmh@aybabtu.com>

* configure.ac: Search for possible unifont.hex locations, and
define UNIFONT_HEX if found.

* Makefile.in (UNIFONT_HEX): Define variable.
(DATA): Rename to ...
(PKGLIB): ... this.  Update all users.
(PKGDATA): New variable.
(pkgdata_IMAGES): Rename to ...
(pkglib_IMAGES): ... this. Update all users.
(pkgdata_MODULES): Rename to ...
(pkglib_MODULES): ... this. Update all users.
(pkgdata_PROGRAMS): Rename to ...
(pkglib_PROGRAMS): ... this. Update all users.
(pkgdata_DATA): Rename to ...
(pkglib_DATA): ... this. Update all users.
(CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
(unicode.pff, ascii.pff): New rules.
(all-local): Add `$(PKGDATA)' dependency.
(install-local): Process `$(PKGDATA)'.

* util/update-grub_lib.in (font_path): Search for *.pff files in
a few more locations, including `${pkgdata}'.

16 years ago2007-12-23 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 23 Dec 2007 21:28:03 +0000 (21:28 +0000)]
2007-12-23  Robert Millan  <rmh@aybabtu.com>

Patch from Bean  <bean123ch@gmail.com>:
* disk/loopback.c (grub_loopback_read): Add missing bit shift to
`size'.

16 years ago2007-12-21 Bean <bean123ch@gmail.com>
robertmh [Fri, 21 Dec 2007 11:41:23 +0000 (11:41 +0000)]
2007-12-21  Bean  <bean123ch@gmail.com>

* conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
(ntfscomp_mod_SOURCES): New variable.
(ntfscomp_mod_CFLAGS): Likewise.
(ntfscomp_mod_LDFLAGS): Likewise.

* conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
(grub_probe_SOURCES): Likewise.
(grub_emu_SOURCES): Likewise.

* conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
(grub_emu_SOURCES): Likewise.

* conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
(grub_emu_SOURCES): Likewise.

* conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
(grub_emu_SOURCES): Likewise.

* fs/ntfs.c (grub_ntfscomp_func): New variable.
(read_run_list): Renamed to grub_ntfs_read_run_list.
(decomp_nextvcn): Moved to ntfscomp.c.
(decomp_getch): Likewise.
(decomp_get16): Likewise.
(decomp_block): Likewise.
(read_block): Likewise.
(read_data): Partially moved to ntfscomp.c.
(fixup): Change unsigned to grub_uint16_t.
(read_mft): Change unsigned long to grub_uint32_t.
(read_attr): Likewise.
(read_data): Likewise.
(read_run_data): Likewise.
(read_run_list): Likewise.
(read_mft): Likewise.

* fs/ntfscomp.c: New file.

* include/grub/ntfs.h: New file.

16 years ago2007-12-16 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 15 Dec 2007 23:08:25 +0000 (23:08 +0000)]
2007-12-16  Robert Millan  <rmh@aybabtu.com>

* util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
IDE disk check, since Linux is known to support 20 IDE disks.
Reported by Colin Watson.

16 years ago2007-12-15 Bean <bean123ch@gmail.com>
robertmh [Sat, 15 Dec 2007 10:42:17 +0000 (10:42 +0000)]
2007-12-15  Bean  <bean123ch@gmail.com>

* conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
(lnxboot_img_SOURCES): New variable.
(lnxboot_img_ASFLAGS): Likewise.
(lnxboot_img_LDFLAGS): Likewise.

* boot/i386/pc/lnxboot.S: New file.

16 years agoAdd kernel.elf and kernel_elf_symlist.c, they are generated on PowerPC
proski [Mon, 26 Nov 2007 05:43:50 +0000 (05:43 +0000)]
Add kernel.elf and kernel_elf_symlist.c, they are generated on PowerPC

16 years ago* configure.ac: Test if '--build-id=none' is supported by the
proski [Sun, 25 Nov 2007 02:01:30 +0000 (02:01 +0000)]
* configure.ac: Test if '--build-id=none' is supported by the
linker.  If yes, add it to TARGET_LDFLAGS.  Build ID causes
objcopy to generate incorrect binary files (binutils
2.17.50.0.18-1 as shipped by Fedora 8).
* aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
linking, so that build ID doesn't break the test.

16 years agoRegenerate
proski [Sun, 25 Nov 2007 01:49:22 +0000 (01:49 +0000)]
Regenerate

16 years ago* include/grub/i386/time.h: use "void" in the argument list
proski [Sun, 25 Nov 2007 01:46:59 +0000 (01:46 +0000)]
* include/grub/i386/time.h: use "void" in the argument list
of grub_cpu_idle().
* include/grub/powerpc/time.h: Likewise.
* include/grub/sparc64/time.h: Likewise.

16 years agoFix ChangeLog entry.
robertmh [Sun, 18 Nov 2007 11:54:12 +0000 (11:54 +0000)]
Fix ChangeLog entry.

16 years ago2007-11-18 Christian Franke <franke@computer.org>
robertmh [Sun, 18 Nov 2007 07:20:45 +0000 (07:20 +0000)]
2007-11-18  Christian Franke  <franke@computer.org>

* util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
now return control chars instead of GRUB_CONSOLE_KEY_* constants.
This fixes the problem that function keys did not work in grub-emu.

16 years ago2007-11-18 Christian Franke <franke@computer.org>
robertmh [Sun, 18 Nov 2007 07:17:40 +0000 (07:17 +0000)]
2007-11-18  Christian Franke  <franke@computer.org>

* disk/host.c (grub_host_open): Remove attribute unused from
name parameter. Add check for "host". This fixes the problem
that grub-emu does not find partitions.

16 years ago2007-11-18 Christian Franke <franke@computer.org>
robertmh [Sun, 18 Nov 2007 07:14:26 +0000 (07:14 +0000)]
2007-11-18  Christian Franke  <franke@computer.org>

* util/hostfs.c (is_dir): New function.
(grub_hostfs_dir):  Handle missing dirent.d_type case.
(grub_hostfs_read): Add missing fseek().
(grub_hostfs_label): Clear label pointer.  This fixes a crash
of grub-emu on "ls (host)".

16 years ago2007-11-18 Christian Franke <franke@computer.org>
robertmh [Sun, 18 Nov 2007 07:10:47 +0000 (07:10 +0000)]
2007-11-18  Christian Franke  <franke@computer.org>

* include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
Add attribute packed, gcc 3.4.4 on Cygwin aligns this
to 64 bit boundary by default.

16 years agoOops. Add include/grub/hexdump.h.
robertmh [Sun, 18 Nov 2007 06:43:28 +0000 (06:43 +0000)]
Oops.  Add include/grub/hexdump.h.

16 years ago2007-11-18 Bean <bean123ch@gmail.com>
robertmh [Sun, 18 Nov 2007 06:41:46 +0000 (06:41 +0000)]
2007-11-18  Bean  <bean123ch@gmail.com>

* conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
(hexdump_mod_SOURCES): New variable.
(hexdump_mod_CFLAGS): Likewise.
(hexdump_mod_LDFLAGS): Likewise.

* conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.

* conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.

* conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.

* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.

* include/grub/hexdump.h: New file.

* commands/hexdump.c: New file.

16 years ago2007-11-10 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 10 Nov 2007 21:36:24 +0000 (21:36 +0000)]
2007-11-10  Robert Millan  <rmh@aybabtu.com>

* commands/i386/pc/play.c (beep_off): Switch order of arguments
in grub_outb() calls.
(beep_on): Likewise.

16 years ago2007-11-10 Christian Franke <franke@computer.org>
robertmh [Sat, 10 Nov 2007 20:32:32 +0000 (20:32 +0000)]
2007-11-10  Christian Franke  <franke@computer.org>

* normal/menu.c (run_menu): Check for empty menu to avoid crash.
(grub_menu_run): Likewise.

16 years ago2007-11-10 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 10 Nov 2007 20:23:14 +0000 (20:23 +0000)]
2007-11-10  Robert Millan  <rmh@aybabtu.com>

* include/grub/i386/efi/machine.h: New file.
* include/grub/i386/linuxbios/machine.h: Likewise.
* include/grub/i386/pc/machine.h: Likewise.
* include/grub/powerpc/ieee1275/machine.h: Likewise.
* include/grub/sparc64/ieee1275/machine.h: Likewise.

* term/i386/pc/serial.c: Include <grub/machine/machine.h>.
(serial_hw_io_addr): New variable.
(serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
instead of `(unsigned short *) 0x400'.

16 years ago2007-11-10 Bean <bean123ch@gmail.com>
robertmh [Sat, 10 Nov 2007 20:08:33 +0000 (20:08 +0000)]
2007-11-10  Bean  <bean123ch@gmail.com>

* fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.

16 years ago2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Sat, 10 Nov 2007 18:34:48 +0000 (18:34 +0000)]
2007-11-10  Vesa Jaaskelainen  <chaac@nic.fi>

        * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
        (vga_mod_SOURCES): Added.
        (vga_mod_CFLAGS): Likewise.
        (vga_mod_LDFLAGS): Likewise.

        * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
        grub_outb() calls.
        (set_map_mask): Likewise.
        (set_read_map): Likewise.
        (set_read_address): Likewise.
        (vga_font): Removed variable.
        (get_vga_glyph): Removed function.
        (invalidate_char): Likewise.
        (write_char): Changed to use grub_font_get_glyph() for font
        information.
        (grub_vga_putchar): Likewise.
        (grub_vga_getcharwidth): Likewise.

16 years ago2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Sat, 10 Nov 2007 18:30:40 +0000 (18:30 +0000)]
2007-11-10  Vesa Jaaskelainen  <chaac@nic.fi>

        * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
        flags.
        (pxeboot_img_LDFLAGS): Likewise.
        (diskboot_img_LDFLAGS): Likewise.
        (kernel_img_LDFLAGS): Likewise.

16 years ago2007-11-06 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 6 Nov 2007 21:23:59 +0000 (21:23 +0000)]
2007-11-06  Robert Millan  <rmh@aybabtu.com>

* term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
in grub_outb() calls.
(serial_hw_init): Likewise.

16 years ago2007-11-05 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 5 Nov 2007 16:22:30 +0000 (16:22 +0000)]
2007-11-05  Robert Millan  <rmh@aybabtu.com>

* util/update-grub.in: Allow files in ${update_grub_dir} to contain
spaces.  Skip non-regular files.

16 years ago2007-11-05 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 5 Nov 2007 16:15:27 +0000 (16:15 +0000)]
2007-11-05  Robert Millan  <rmh@aybabtu.com>

* kern/disk.c (grub_disk_firmware_fini)
(grub_disk_firmware_is_tainted): New variables.

* include/grub/disk.h (grub_disk_firmware_fini)
(grub_disk_firmware_is_tainted): Likewise.

* disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
(grub_disk_biosdisk_fini): ... to here.
(GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
(GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
is set.  Register grub_disk_biosdisk_fini() in
`grub_disk_firmware_fini'.

* disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
(GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
to finish existing firmware disk interface.

* conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
(ata_mod_SOURCES): New variable.
(ata_mod_CFLAGS): Likewise.
(ata_mod_LDFLAGS): Likewise.

16 years ago2007-11-05 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 5 Nov 2007 14:54:00 +0000 (14:54 +0000)]
2007-11-05  Robert Millan  <rmh@aybabtu.com>

* disk/ata.c: Remove `<grub/machine/time.h>'.  Include `<grub/time.h>'.
(grub_ata_wait): Reimplement using grub_millisleep().

* include/grub/misc.h (grub_div_roundup): Fix parenthesization.
* include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.

16 years ago2007-11-03 Marco Gerards <marco@gnu.org>
marco_g [Sat, 3 Nov 2007 16:46:40 +0000 (16:46 +0000)]
2007-11-03  Marco Gerards  <marco@gnu.org>

* term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
(CRTC_ADDR_PORT): New macro.
(CRTC_DATA_PORT): Likewise.
(CRTC_CURSOR): Likewise.
(CRTC_CURSOR_ADDR_HIGH): Likewise.
(CRTC_CURSOR_ADDR_LOW): Likewise.
(update_cursor): New function.
(grub_console_real_putchar): Call `update_cursor'.
(grub_console_gotoxy): Likewise.
(grub_console_cls): Set the default color when clearing the
screen.
(grub_console_setcursor): Implemented.

16 years ago2007-11-03 Marco Gerards <marco@gnu.org>
marco_g [Sat, 3 Nov 2007 15:45:07 +0000 (15:45 +0000)]
2007-11-03  Marco Gerards  <marco@gnu.org>

* disk/ata.c (grub_ata_pio_read): Don't wait for the command to
become activate.
(grub_ata_pio_write): Likewise.

(grub_atapi_identify): Wait after issuing an ATA command.
(grub_atapi_packet): Likewise.
(grub_ata_identify): Likewise.
(grub_ata_readwrite): Likewise.

16 years ago2007-11-03 Marco Gerards <marco@gnu.org>
marco_g [Sat, 3 Nov 2007 13:12:52 +0000 (13:12 +0000)]
2007-11-03  Marco Gerards  <marco@gnu.org>

* disk/ata.c (grub_ata_pio_read): Detect and return the error code.
(grub_ata_pio_write): Likewise.
(grub_ata_readwrite): Use `grub_error', instead of
returning `grub_errno'.

16 years ago2007-11-03 Marco Gerards <marco@gnu.org>
marco_g [Sat, 3 Nov 2007 12:25:19 +0000 (12:25 +0000)]
2007-11-03  Marco Gerards  <marco@gnu.org>

* disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
grub_ata_pio_write once for every single sector, instead of for
multiple sectors.

16 years ago2007-10-31 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 31 Oct 2007 22:35:13 +0000 (22:35 +0000)]
2007-10-31  Robert Millan  <rmh@aybabtu.com>

* configure.ac: Add `i386-linuxbios' to the list of supported targets.

* conf/i386-linuxbios.rmk: New file.

* kern/i386/pc/hardware.c: Likewise.
* term/i386/pc/at_keyboard.c: Likewise.
* term/i386/pc/vga_text.c: Likewise.

* include/grub/i386/linuxbios/boot.h: Likewise.
* include/grub/i386/linuxbios/console.h: Likewise.
* include/grub/i386/linuxbios/init.h: Likewise.
* include/grub/i386/linuxbios/kernel.h: Likewise.
* include/grub/i386/linuxbios/loader.h: Likewise.
* include/grub/i386/linuxbios/memory.h: Likewise.
* include/grub/i386/linuxbios/serial.h: Likewise.
* include/grub/i386/linuxbios/time.h: Likewise.

* kern/i386/linuxbios/init.c: Likewise.
* kern/i386/linuxbios/startup.S: Likewise.
* kern/i386/linuxbios/table.c: Likewise.

16 years ago2007-10-31 Marco Gerards <marco@gnu.org>
marco_g [Wed, 31 Oct 2007 22:29:20 +0000 (22:29 +0000)]
2007-10-31  Marco Gerards  <marco@gnu.org>

* conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
(ata_mod_SOURCES): New variable.
(ata_mod_CFLAGS): Likewise.
(ata_mod_LDFLAGS): Likewise.

* disk/ata.c: New file.

* include/grub/disk.h (grub_disk_dev_id): Add
`GRUB_DISK_DEV_ATA_ID'.

16 years ago2007-10-31 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 31 Oct 2007 22:14:50 +0000 (22:14 +0000)]
2007-10-31  Robert Millan  <rmh@aybabtu.com>

* include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
* include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.

* include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
* include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.

* include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
`<grub/types.h>'.

* loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.

16 years agoInclude all generated files we don't want under version control
proski [Mon, 29 Oct 2007 15:40:03 +0000 (15:40 +0000)]
Include all generated files we don't want under version control

16 years agoadjust last ChangeLog entry.
robertmh [Sat, 27 Oct 2007 12:11:25 +0000 (12:11 +0000)]
adjust last ChangeLog entry.

16 years ago2007-10-27 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 27 Oct 2007 11:56:58 +0000 (11:56 +0000)]
2007-10-27  Robert Millan  <rmh@aybabtu.com>

* include/grub/types.h: Define ULONG_MAX.

16 years ago2007-10-22 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 22 Oct 2007 20:14:45 +0000 (20:14 +0000)]
2007-10-22  Robert Millan  <rmh@aybabtu.com>

* kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'.  Include
`"../realmode.S"'.
Remove `"kern/i386/loader.S"'.  Include `"../loader.S"'.

16 years ago2007-10-22 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 22 Oct 2007 20:05:27 +0000 (20:05 +0000)]
2007-10-22  Robert Millan  <rmh@aybabtu.com>

* conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
(pkgdata_MODULES): Add `biosdisk.mod'.
(biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
variables.

* disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
(grub_biosdisk_init): Replace with ...
(GRUB_MOD_INIT(biosdisk)): ... this.
(grub_biosdisk_fini): Replace with ...
(GRUB_MOD_FINI(biosdisk)): ... this.

* kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
(grub_machine_init): Remove call to grub_biosdisk_init().
(grub_machine_fini): Remove call to grub_machine_fini().

* util/i386/pc/grub-install.in (modules): Add `biosdisk'.

16 years agoActually add the files, and propagate changes..
robertmh [Mon, 22 Oct 2007 20:02:16 +0000 (20:02 +0000)]
Actually add the files, and propagate changes..

16 years ago2007-10-22 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 22 Oct 2007 19:59:33 +0000 (19:59 +0000)]
2007-10-22  Robert Millan  <rmh@aybabtu.com>

* include/grub/time.h: New file.
* include/grub/i386/time.h: Likewise.
* include/grub/powerpc/time.h: Likewise.
* include/grub/sparc64/time.h: Likewise.

* include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
instances to ...
(KERNEL_MACHINE_TIME_HEADER): ... this.
* include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
instances to ...
(KERNEL_MACHINE_TIME_HEADER): ... this.
* include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
instances to ...
(KERNEL_MACHINE_TIME_HEADER): ... this.

* kern/i386/efi/init.c: Include `<grub/time.h>'.
(grub_millisleep): New function.
* kern/i386/pc/init.c: Include `<grub/time.h>'.
(grub_millisleep): New function.
* kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
Remove `grub/machine/time.h' include.
(grub_millisleep): New function.
* kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
Remove `grub/machine/time.h' include.
(grub_millisleep): New function.

* include/grub/misc.h (grub_div_roundup): New function.

* kern/misc.c: Include `<grub/time.h>'.
(grub_millisleep_generic): New function.

* conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
Add `time.h'.
* conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
Add `time.h'.
* conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
`machine/time.h'.  Add `time.h'.
* conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.

16 years ago2007-10-21 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 21 Oct 2007 12:58:21 +0000 (12:58 +0000)]
2007-10-21  Robert Millan  <rmh@aybabtu.com>

* include/grub/misc.h (grub_max): New function.

16 years ago2007-10-21 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 21 Oct 2007 12:29:33 +0000 (12:29 +0000)]
2007-10-21  Robert Millan  <rmh@aybabtu.com>

* util/misc.c (grub_util_info): Call fflush() before returning.

16 years ago2007-10-20 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 20 Oct 2007 18:32:18 +0000 (18:32 +0000)]
2007-10-20  Robert Millan  <rmh@aybabtu.com>

* genmk.rb (Image): Copy `extra_flags' from here ...
(PModule): ... to here.  Use it in `#{obj}: #{src}' rule.

* commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
to `argc' and `args' arguments.

16 years agoOops, add missing files.
robertmh [Wed, 17 Oct 2007 20:04:23 +0000 (20:04 +0000)]
Oops, add missing files.

16 years ago2007-10-17 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 17 Oct 2007 20:02:56 +0000 (20:02 +0000)]
2007-10-17  Robert Millan  <rmh@aybabtu.com>

* kern/i386/loader.S: New file.

* kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
* kern/i386/loader.S (grub_linux_prot_size)... to here.
* kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
* kern/i386/loader.S (grub_linux_tmp_addr)... to here.
* kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
* kern/i386/loader.S (grub_linux_real_addr)... to here.
* kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
* kern/i386/loader.S (grub_linux_boot_zimage)... to here.
* kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
* kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
* kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
* kern/i386/loader.S (grub_multiboot_real_boot)... to here.
* kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
* kern/i386/loader.S (grub_multiboot2_real_boot)... to here.

* kern/i386/realmode.S: New file.

* kern/i386/pc/startup.S (protstack): Moved from here ...
* kern/i386/realmode.S (protstack)... to here.
* kern/i386/pc/startup.S (gdt): Moved from here ...
* kern/i386/realmode.S (gdt)... to here.
* kern/i386/pc/startup.S (prot_to_real): Moved from here ...
* kern/i386/realmode.S (prot_to_real)... to here.

* kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
`kern/i386/realmode.S'.

16 years ago2007-10-17 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 17 Oct 2007 09:38:55 +0000 (09:38 +0000)]
2007-10-17  Robert Millan  <rmh@aybabtu.com>

* include/grub/i386/loader.h: New file.

* include/grub/i386/pc/loader.h (grub_linux_prot_size)
(grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
(grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
(grub_multiboot_real_boot, grub_multiboot2_real_boot)
(grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
* include/grub/i386/loader.h (grub_linux_prot_size)
(grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
(grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
(grub_multiboot_real_boot, grub_multiboot2_real_boot)
(grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.

* include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.

16 years ago2007-10-15 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 15 Oct 2007 10:59:38 +0000 (10:59 +0000)]
2007-10-15  Robert Millan  <rmh@aybabtu.com>

* normal/misc.c (grub_normal_print_device_info): Do not probe for
filesystem when dev->disk is unset.
Do probe for filesystem even when dev->disk->has_partitions is set.
In case a filesystem is found, always report it.
In case it isn't, if dev->disk->has_partitions is set, report that
a partition table was found instead of reporting that no filesystem
could be identified.

16 years ago2007-10-12 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 12 Oct 2007 10:22:31 +0000 (10:22 +0000)]
2007-10-12  Robert Millan  <rmh@aybabtu.com>

* conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.

* include/grub/types.h (#ifdef GRUB_CPU_WORDS_BIGENDIAN): Define
grub_host_to_target16, grub_host_to_target32, grub_host_to_target64,
grub_target_to_host16, grub_target_to_host32 and grub_target_to_host64.
(#else): Likewise.

* include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
Renamed from to ...
(GRUB_MOD_ALIGN): ...this.  Update all users.

* util/elf/grub-mkimage.c: Replace grub_cpu_to_be16, grub_cpu_to_be32,
grub_be_to_cpu16 and grub_be_to_cpu32 macros with grub_host_to_target16,
grub_host_to_target32, grub_target_to_host16 and grub_target_to_host32,
respectively.

16 years agocvs didn't delete it...
robertmh [Fri, 12 Oct 2007 10:19:00 +0000 (10:19 +0000)]
cvs didn't delete it...

16 years ago2007-10-12 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 12 Oct 2007 10:18:13 +0000 (10:18 +0000)]
2007-10-12  Robert Millan  <rmh@aybabtu.com>

* util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
* util/elf/grub-mkimage.c: ... here.

* DISTLIST: Add `util/elf/grub-mkimage.c'.  Remove
`util/powerpc/ieee1275/grub-mkimage.c'.

16 years ago2007-10-07 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 7 Oct 2007 15:32:52 +0000 (15:32 +0000)]
2007-10-07  Robert Millan  <rmh@aybabtu.com>

* kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
and make it easier to figure out.
Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
(grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
Do not avoid claiming a region above HEAP_MAX_ADDR if that would
leave us with less than HEAP_MIN_SIZE total heap.
Avoid our total amount of heap to surpass HEAP_MAX_SIZE.

16 years ago2007-10-05 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 5 Oct 2007 11:02:40 +0000 (11:02 +0000)]
2007-10-05  Robert Millan  <rmh@aybabtu.com>

* loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify available
and required memory sizes in "too small lower memory" error.

16 years agoAdjust ChangeLog entry as recommended by Marco.
robertmh [Wed, 3 Oct 2007 21:33:11 +0000 (21:33 +0000)]
Adjust ChangeLog entry as recommended by Marco.

16 years ago2007-10-03 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 3 Oct 2007 20:13:21 +0000 (20:13 +0000)]
2007-10-03  Robert Millan  <rmh@aybabtu.com>

* include/grub/i386/io.h: New file.
* commands/i386/pc/play.c (inb): Removed.
(outb): Removed.
Include grub/cpu/io.h.  Replace inb() with grub_inb() and outb()
with grub_outb().
* term/i386/pc/serial.c: Likewise.
* term/i386/pc/vga.c: Likewise.

16 years ago2007-10-02 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 2 Oct 2007 21:38:44 +0000 (21:38 +0000)]
2007-10-02  Robert Millan  <rmh@aybabtu.com>

* conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
Reported by Marcin Kurek.

16 years ago2007-09-07 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 7 Sep 2007 21:59:03 +0000 (21:59 +0000)]
2007-09-07  Robert Millan  <rmh@aybabtu.com>

* kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
SmartFirmware version updates (as released by Sven Luther), and avoid
setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
known broken.

16 years ago2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 3 Sep 2007 20:33:20 +0000 (20:33 +0000)]
2007-09-03  Yoshinori K. Okuji  <okuji@enbug.org>

    From Hitoshi Ozeki:
    * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
    when merging two regions.

16 years ago2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 3 Sep 2007 20:28:24 +0000 (20:28 +0000)]
2007-09-03  Yoshinori K. Okuji  <okuji@enbug.org>

    * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
    * normal/completion.c (grub_normal_do_completion): Likewise.
    Reported by Hitoshi Ozeki.

16 years ago2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 3 Sep 2007 20:10:19 +0000 (20:10 +0000)]
2007-09-03  Yoshinori K. Okuji  <okuji@enbug.org>

    Do not use devices at boot in chainloading.

    * loader/i386/pc/chainloader.c (boot_drive): New variable.
    (boot_part_addr): Likewise.
    (grub_chainloader_boot): Simply call grub_chainloader_real_boot
    with BOOT_DRIVE and BOOT_PART_ADDR.
    (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
    Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.

16 years ago2007-08-29 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 29 Aug 2007 10:39:42 +0000 (10:39 +0000)]
2007-08-29  Robert Millan  <rmh@aybabtu.com>

Patch from Simon Peter <dn.tlp@gmx.net>:
* genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
* conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
util/grub-probe.c_DEPENDENCIES.  Replace grub-setup_DEPENDENCIES with
util/i386/pc/grub-setup.c_DEPENDENCIES.
* conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
util/grub-probe.c_DEPENDENCIES.
* conf/powerpc-ieee1275.rmk: Likewise.