]> git.proxmox.com Git - grub2.git/log
grub2.git
16 years ago2008-08-06 Christian Franke <franke@computer.org>
chrfranke [Wed, 6 Aug 2008 18:45:51 +0000 (18:45 +0000)]
2008-08-06  Christian Franke  <franke@computer.org>

* conf/common.rmk: Build and install `10_windows'.
* util/grub.d/10_windows.in: New script.

16 years agoRemove executable flag
proski [Wed, 6 Aug 2008 13:42:02 +0000 (13:42 +0000)]
Remove executable flag

16 years ago2008-08-06 Pavel Roskin <proski@gnu.org>
proski [Wed, 6 Aug 2008 13:28:28 +0000 (13:28 +0000)]
2008-08-06  Pavel Roskin  <proski@gnu.org>

* kern/i386/pit.c: Include `<grub/i386/pit.h>'.

16 years ago2008-08-06 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 6 Aug 2008 12:27:28 +0000 (12:27 +0000)]
2008-08-06  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
        * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.

16 years ago2008-08-06 Bean <bean123ch@gmail.com>
bean [Wed, 6 Aug 2008 06:17:14 +0000 (06:17 +0000)]
2008-08-06  Bean  <bean123ch@gmail.com>

* fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
(grub_pxefs_fs_int): Remove dummy definition.
(grub_pxefs_open): Use data->block_size to store the current block
size setting.
(grub_pxefs_read): Use block size stored in data->block_size. As the
value of grub_pxe_blksize can be changed after the file is opened.

16 years ago2008-08-06 Bean <bean123ch@gmail.com>
bean [Wed, 6 Aug 2008 04:05:12 +0000 (04:05 +0000)]
2008-08-06  Bean  <bean123ch@gmail.com>

* fs/i386/pc/pxe.c (curr_file): new variable.
(grub_pxefs_open): Simply the handling of pxe file system. Don't
require the dummy internal file system anymore.
(grub_pxefs_read): Removed.
(grub_pxefs_close): Likewise.
(grub_pxefs_fs_int): Likewise.
(grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
connection when we switch file.
(grub_pxefs_close_int): Renamed to grub_pxefs_close.

16 years ago2008-08-06 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 6 Aug 2008 00:20:04 +0000 (00:20 +0000)]
2008-08-06  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
        `halt.mod'.
        (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
        (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.

        * kern/i386/halt.c: New file.
        * kern/i386/reboot.c: Likewise.
        * include/grub/i386/reboot.h: Likewise.
        * include/grub/i386/halt.h: Likewise.

        * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
        Include `<grub/cpu/halt.h>'.
        * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
        [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.

        * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
        (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
        (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
        (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
        (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
        (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
        from here ...
        * include/grub/i386/at_keyboard.h: ... to here.

16 years ago2008-08-05 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 5 Aug 2008 20:24:00 +0000 (20:24 +0000)]
2008-08-05  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
        * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
        * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
        `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
        `kern/generic/millisleep.c'.

        * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
        instead of grub_get_rtc().
        (grub_tsc_init): Initialize `tsc_boot_time'.

        * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
        (grub_machine_init): Use grub_tsc_init() rather than
        installing an RTC-based handler via grub_install_get_time_ms().

        * kern/i386/pit.c: New file.
        * include/grub/i386/pit.h: Likewise.

16 years ago2008-08-05 Bean <bean123ch@gmail.com>
bean [Tue, 5 Aug 2008 15:15:59 +0000 (15:15 +0000)]
2008-08-05  Bean  <bean123ch@gmail.com>

* boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.

* conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
(pkglib_MODULES): Add pxe.mod and pxecmd.mod.
(pxe_mod_SOURCES): New macro.
(pxe_mod_CFLAGS): Likewise.
(pxe_mod_LDFLAGS): Likewise.
(pxecmd_mod_SOURCES): Likewise.
(pxecmd_mod_CFLAGS): Likewise.
(pxecmd_mod_LDFLAGS): Likewise.

* kern/i386/pc/startup.S (grub_pxe_scan): New function.
(grub_pxe_call): Likewise.

* include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.

* commands/i386/pc/pxecmd.c: New file.

* disk/i386/pc/pxe.c: Likewise.

* include/grub/i386/pc/pxe.h: Likewise.

16 years ago2008-08-05 Bean <bean123ch@gmail.com>
bean [Tue, 5 Aug 2008 14:20:00 +0000 (14:20 +0000)]
2008-08-05  Bean  <bean123ch@gmail.com>

* util/console.c (grub_console_cur_color): New variable.
(grub_console_standard_color): Likewise.
(grub_console_normal_color): Likewise.
(grub_console_highlight_color): Likewise.
(color_map): Likewise.
(use_color): Likewise.
(NUM_COLORS): New macro.
(grub_ncurses_setcolorstate): Handle color properly.
(grub_ncurses_setcolor): Don't change color here, just remember the
settings, color will be set in grub_ncurses_setcolorstate.
(grub_ncurses_getcolor): New function.
(grub_ncurses_init): Initialize color pairs.
(grub_ncurses_term): New member grub_ncurses_getcolor.

16 years agoactually add kern/time.c
marco_g [Tue, 5 Aug 2008 12:38:12 +0000 (12:38 +0000)]
actually add kern/time.c

16 years agoUrgh, and now actually add the files :-)
marco_g [Tue, 5 Aug 2008 12:30:42 +0000 (12:30 +0000)]
Urgh, and now actually add the files :-)

16 years agoUrgh, and now actually add the files :-)
marco_g [Tue, 5 Aug 2008 12:26:29 +0000 (12:26 +0000)]
Urgh, and now actually add the files :-)

16 years ago2008-08-05 Colin D Bennett <colin@gibibit.com>
marco_g [Tue, 5 Aug 2008 11:54:37 +0000 (11:54 +0000)]
2008-08-05  Colin D Bennett  <colin@gibibit.com>

High resolution timer support.  Implemented for x86 CPUs using TSC.
Extracted generic grub_millisleep() so it's linked in only as needed.
This requires a Pentium compatible CPU; if the RDTSC instruction is
not supported, then it falls back on the generic grub_get_time_ms()
implementation that uses the machine's RTC.

* conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
`kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
`kern/generic/millisleep.c'.

* conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
`kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.

* conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
`kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.

* conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.

* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
`kern/generic/millisleep.c'.

* conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.

* conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.

* kern/generic/rtc_get_time_ms.c: New file.

* kern/generic/millisleep.c: New file.

* kern/misc.c: Don't include
<kern/time.h> anymore.
(grub_millisleep_generic): Removed.

* commands/sleep.c (grub_interruptible_millisleep): Uses
grub_get_time_ms() instead of grub_get_rtc().

* include/grub/i386/tsc.h (grub_get_tsc): New file.  New inline
function.
(grub_cpu_is_cpuid_supported): New inline function.
(grub_cpu_is_tsc_supported): New inline function.
(grub_tsc_init): New function prototype.
(grub_tsc_get_time_ms): New function prototype.

* kern/i386/tsc.c (grub_get_time_ms): New file.

* include/grub/time.h: Include <grub/types.h.
(grub_millisleep_generic): Removed.
(grub_get_time_ms): New prototype.
(grub_install_get_time_ms): New prototype.
(grub_rtc_get_time_ms): New prototype.

* kern/time.c (grub_get_time_ms): New function.
(grub_install_get_time_ms): New function.

* kern/i386/efi/init.c: Include <grub/cpu/tsc.h>.  Don't include
<grub/time.h> anymore.
(grub_millisleep): Removed.
(grub_machine_init): Call grub_tsc_init.

* kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
get_time_ms() implementation.

* kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
(ieee1275_get_time_ms): New function.
(grub_machine_init): Install get_time_ms() implementation.

* kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
(grub_machine_init): Call grub_tsc_init().
(grub_millisleep): Removed.

* kern/ieee1275/init.c (grub_millisleep): Removed.
(grub_machine_init): Install ieee1275_get_time_ms()
implementation.
(ieee1275_get_time_ms): New function.
(grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
real work.

16 years ago2008-08-05 Marco Gerards <marco@gnu.org>
marco_g [Tue, 5 Aug 2008 09:41:10 +0000 (09:41 +0000)]
2008-08-05  Marco Gerards  <marco@gnu.org>

* disk/ata.c: Include <grub/pci.h>.
(enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
(grub_ata_initialize): Rewritten.
(grub_ata_device_initialize): New function.

16 years ago2008-08-04 Pavel Roskin <proski@gnu.org>
proski [Mon, 4 Aug 2008 22:54:06 +0000 (22:54 +0000)]
2008-08-04  Pavel Roskin  <proski@gnu.org>

* kern/main.c: Include grub/mm.h.

16 years agoTypos, spacing
proski [Mon, 4 Aug 2008 22:50:09 +0000 (22:50 +0000)]
Typos, spacing

16 years ago2008-08-04 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 4 Aug 2008 11:38:45 +0000 (11:38 +0000)]
2008-08-04  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
        (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
        corruption problem).

16 years ago2008-08-04 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 4 Aug 2008 09:30:36 +0000 (09:30 +0000)]
2008-08-04  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
        warnings introduced in my last commit.

16 years agoAdd a few new files.
robertmh [Sun, 3 Aug 2008 20:28:36 +0000 (20:28 +0000)]
Add a few new files.

16 years ago2008-08-03 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 3 Aug 2008 18:14:07 +0000 (18:14 +0000)]
2008-08-03  Robert Millan  <rmh@aybabtu.com>

        Make PCI available on all i386 architectures.

        * include/grub/i386/pc/pci.h: Move from here ...
        * include/grub/i386/pci.h: ... to here.

        * include/grub/i386/pc/pci.h: Remove.
        * include/grub/i386/efi/pci.h: Remove.
        * include/grub/x86_64/efi/pci.h: Remove.

        * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
        `<grub/cpu/pci.h>'.

        * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
        (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
        (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.

        * conf/i386-ieee1275.rmk: Likewise.

16 years ago2008-08-03 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 3 Aug 2008 17:09:21 +0000 (17:09 +0000)]
2008-08-03  Robert Millan  <rmh@aybabtu.com>

        * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
        (grub_console_setcursor): Make it possible to set cursor off.

16 years ago2008-08-03 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 3 Aug 2008 16:38:40 +0000 (16:38 +0000)]
2008-08-03  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/00_header.in: Be platform-agnostic.  Probe for existence
        of modules instead of assuming which platform provides what.
        * util/update-grub.in: Likewise.

16 years ago2008-08-03 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 2 Aug 2008 23:24:34 +0000 (23:24 +0000)]
2008-08-03  Robert Millan  <rmh@aybabtu.com>

        * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
        instead of `grub_install_dos_part' to determine whether a drive needs
        to be prepended to prefix (`grub_install_dos_part' is not reliable,
        because it can be overriden when loading GRUB via Multiboot).

16 years ago2008-08-02 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 2 Aug 2008 20:30:19 +0000 (20:30 +0000)]
2008-08-02  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-install.in: Remove trailing slash from prefix.

16 years ago2008-08-02 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 2 Aug 2008 15:51:12 +0000 (15:51 +0000)]
2008-08-02  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
        of informational grub_dprintf() calls.

16 years ago2008-08-02 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 2 Aug 2008 12:17:44 +0000 (12:17 +0000)]
2008-08-02  Robert Millan  <rmh@aybabtu.com>

        * disk/memdisk.c (memdisk_size): Don't initialize.
        (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().

        * include/grub/i386/pc/kernel.h
        (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
        (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
        (grub_memdisk_image_size, grub_arch_memdisk_addr)
        (grub_arch_memdisk_size): Remove.

        * include/grub/kernel.h (struct grub_module_header): Remove `offset'
        field (was only used to transfer a constant).  Add `type' field to
        support multiple module types.
        (grub_module_iterate): New function.

        * kern/device.c (grub_device_open): Do not hide error messages
        when grub_disk_open() fails.  Use grub_print_error() instead.

        * kern/i386/pc/init.c (grub_arch_modules_addr)
        (grub_arch_memdisk_size): Remove functions.
        (grub_arch_modules_addr): Return the module address in high memory
        (now that it isn't copied anymore).

        * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
        (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
        decompression routine (grub_total_module_size already includes that
        now).  Don't copy modules back to low memory.

        * kern/main.c: Include `<grub/mm.h>'.
        (grub_load_modules): Split out (and use) ...
        (grub_module_iterate): ... this function, which iterates through
        module objects and runs a hook.
        Comment out grub_mm_init_region() call, as it would cause non-ELF
        modules to be overwritten.

        * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
        the memdisk image in its own region, make it part of the module list.
        * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
        (main): Parse --memdisk|-m option, and pass user-provided path as
        parameter to generate_image().
        (add_segments): Pass `memdisk_path' down to load_modules().
        (load_modules): Embed memdisk image in module section when requested.
        * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
        `header.type' instead of `header.offset'.

        * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
        (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
        (memdisk_mod_LDFLAGS): New variables.
        * conf/i386-coreboot.rmk: Likewise.
        * conf/i386-ieee1275.rmk: Likewise.

16 years ago2008-08-02 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 2 Aug 2008 12:12:14 +0000 (12:12 +0000)]
2008-08-02  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (playground, forward_relocator)
        (backward_relocator): New variables.  Used to allocate and relocate
        the payload, respectively.
        (grub_multiboot_load_elf32): Load into heap instead of requested
        address, install the appropiate relocator code in each bound of
        the payload, and set the entry point such that
        grub_multiboot_real_boot() will jump to one of them.

        * kern/i386/loader.S (grub_multiboot_payload_size)
        (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
        (grub_multiboot_payload_entry_offset): New variables.
        (grub_multiboot_real_boot): Set cpu context to what the relocator
        expects, and jump to the relocator instead of the payload.

        * include/grub/i386/loader.h (grub_multiboot_payload_size)
        (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
        (grub_multiboot_payload_entry_offset): Export.

16 years ago2008-08-01 Bean <bean123ch@gmail.com>
bean [Fri, 1 Aug 2008 18:18:32 +0000 (18:18 +0000)]
2008-08-01  Bean  <bean123ch@gmail.com>

* normal/menu_entry.c (editor_getline): Don't return the original
string as result, as it will be released by lexer once it has done
using it.

16 years ago2008-08-01 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 1 Aug 2008 12:56:56 +0000 (12:56 +0000)]
2008-08-01  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
        within menuentries, not before them.
        util/grub.d/10_hurd.in: Likewise.

16 years ago2008-08-01 Bean <bean123ch@gmail.com>
bean [Fri, 1 Aug 2008 04:06:55 +0000 (04:06 +0000)]
2008-08-01  Bean  <bean123ch@gmail.com>

* conf/common.rmk (pkglib_MODULES): Add bufio.mod.
(bufio_mod_SOURCES): New macro.
(bufio_mod_CFLAGS): Likewise.
(bufio_mod_LDFLAGS): Likewise.

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

* io/bufio.c: Likewise.

* video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
(grub_video_reader_png): Use grub_buffile_open to open file.

* video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
(grub_video_reader_jpeg): Use grub_buffile_open to open file.

* video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
(grub_video_reader_tga): Use grub_buffile_open to open file.

* font/manager.c: Include <grub/bufio.h>.
(add_font): Use grub_buffile_open to open file.

16 years ago2008-07-31 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 31 Jul 2008 20:48:40 +0000 (20:48 +0000)]
2008-07-31  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
        ELF segments, use a macro for arbitrarily accessing any of them instead
        of preparing a pointer that allows access to one at a time.
        (grub_multiboot_load_elf64): Likewise.

16 years agoAdd missing copyright years for recent changes
robertmh [Thu, 31 Jul 2008 19:33:23 +0000 (19:33 +0000)]
Add missing copyright years for recent changes

16 years ago2008-07-31 Bean <bean123ch@gmail.com>
bean [Thu, 31 Jul 2008 14:15:53 +0000 (14:15 +0000)]
2008-07-31  Bean  <bean123ch@gmail.com>

* boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
GRUB_KERNEL_MACHINE_DATA_END.

16 years ago2008-07-30 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 30 Jul 2008 10:44:38 +0000 (10:44 +0000)]
2008-07-30  Robert Millan  <rmh@aybabtu.com>

        * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
        Increase from 0x50 to 0x60.
        * util/i386/pc/grub-install.in: Detect cross-disk installs, and
        use UUIDs to identify the root drive for them.  If that's not
        possible, abort.
        * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
        check, for cross-disk installs.

16 years ago2008-07-30 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 30 Jul 2008 10:42:11 +0000 (10:42 +0000)]
2008-07-30  Robert Millan  <rmh@aybabtu.com>

        * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
        is non-empty, use it to set the `prefix' environment variable instead
        of the usual approach.
        * kern/i386/linuxbios/init.c (make_install_device): Remove function.
        (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
        environment variable instead of dummy make_install_device().

        * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
        (start): Insert a data section, with `grub_prefix' variable.
        * kern/i386/linuxbios/startup.S: Likewise.

        * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
        New variable reference.
        * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
        New macro.  Defines offset of `grub_prefix' within startup.S (relative
        to `start').
        (GRUB_KERNEL_MACHINE_DATA_END): New macro.  Defines the end of data
        section within startup.S (relative to `start').
        * include/grub/i386/coreboot/kernel.h: Likewise.

        * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
        Overwrite grub_prefix with its contents, at the beginning of the
        first segment.
        (main): Understand -p|--prefix.

16 years ago2008-07-30 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 30 Jul 2008 00:21:35 +0000 (00:21 +0000)]
2008-07-30  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_hurd.in: Source /grub/update-grub_lib.

16 years ago2008-07-30 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 29 Jul 2008 23:29:03 +0000 (23:29 +0000)]
2008-07-30  Robert Millan  <rmh@aybabtu.com>

        * term/i386/pc/vga_text.c (grub_console_cls): Use
        grub_console_gotoxy() to go back to beginning of the screen.
        Found by Patrick Georgi <patrick.georgi@coresystems.de>

16 years ago2008-07-29 Christian Franke <franke@computer.org>
chrfranke [Tue, 29 Jul 2008 16:47:31 +0000 (16:47 +0000)]
2008-07-29  Christian Franke  <franke@computer.org>

* util/update-grub_lib.in (make_system_path_relative_to_its_root):
Add conversion of emulated mount points on Cygwin.

16 years ago2008-07-29 Christian Franke <franke@computer.org>
chrfranke [Tue, 29 Jul 2008 15:38:05 +0000 (15:38 +0000)]
2008-07-29  Christian Franke  <franke@computer.org>

* util/update-grub.in: Add a check for admin
group on Cygwin.
Remove old `grub.cfg.new' before creation.
Add `-f' to `mv' to handle the different filesystem
semantics of Windows.

16 years ago2008-07-29 Bean <bean123ch@gmail.com>
bean [Tue, 29 Jul 2008 15:07:47 +0000 (15:07 +0000)]
2008-07-29  Bean  <bean123ch@gmail.com>

* normal/main.c (get_line): Fix buffer overflow bug.

16 years ago2008-07-28 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 28 Jul 2008 22:37:32 +0000 (22:37 +0000)]
2008-07-28  Robert Millan  <rmh@aybabtu.com>

        * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
        (struct grub_apple_header): New struct.  Describes the layout of
        the partmap header.
        (apple_partition_map_iterate): Check the header magic as well as the
        partition magic (which was already being checked).

16 years ago2008-07-28 Pavel Roskin <proski@gnu.org>
proski [Mon, 28 Jul 2008 22:35:40 +0000 (22:35 +0000)]
2008-07-28  Pavel Roskin  <proski@gnu.org>

* genmk.rb: Add a warning to the beginning of the output that
it's a generated file and should not be edited.

16 years agoautogen.sh: touch stamp-h.in after running autoheader
proski [Mon, 28 Jul 2008 19:34:15 +0000 (19:34 +0000)]
autogen.sh: touch stamp-h.in after running autoheader

This prevents autoheader from being rerun by make if somebody changes
configure.ac or aclocal.m4 and runs autogen.sh.

Suggested by Christian Franke <Christian.Franke@t-online.de>

16 years agoFix spacing
proski [Mon, 28 Jul 2008 19:27:42 +0000 (19:27 +0000)]
Fix spacing

16 years ago2008-07-28 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 28 Jul 2008 09:25:37 +0000 (09:25 +0000)]
2008-07-28  Robert Millan  <rmh@aybabtu.com>

        * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
        with the same number are found, just use issue a warning with
        grub_dprintf(), as this error has been reported to be non-fatal.

16 years ago2008-07-27 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 27 Jul 2008 20:57:43 +0000 (20:57 +0000)]
2008-07-27  Robert Millan  <rmh@aybabtu.com>

        * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
        information.

16 years agoadd grub/term.h like ChangeLog says..
robertmh [Sun, 27 Jul 2008 15:44:37 +0000 (15:44 +0000)]
add grub/term.h like ChangeLog says..

16 years agoforgot to checkin last commit
robertmh [Sun, 27 Jul 2008 15:41:43 +0000 (15:41 +0000)]
forgot to checkin last commit

16 years ago2008-07-27 Bean <bean123ch@gmail.com>
bean [Sun, 27 Jul 2008 14:46:45 +0000 (14:46 +0000)]
2008-07-27  Bean  <bean123ch@gmail.com>

* fs/fat.c (GRUB_FAT_MAXFILE): New constant.
(grub_fat_find_dir): Ignore case when comparing filename.

16 years ago2008-07-27 Bean <bean123ch@gmail.com>
bean [Sun, 27 Jul 2008 14:20:49 +0000 (14:20 +0000)]
2008-07-27  Bean  <bean123ch@gmail.com>

* fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
smallino, as it's more descriptive, and i8count can be confused with
the other field count.
(grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
inode type.

16 years ago2008-07-27 Bean <bean123ch@gmail.com>
bean [Sun, 27 Jul 2008 13:51:30 +0000 (13:51 +0000)]
2008-07-27  Bean  <bean123ch@gmail.com>

* commands/crc.c: New file.

* lib/crc.c: Likewise.

* include/grub/lib/crc.h: Likewise.

* util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.

* commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
(hexdump): Move this function to ...

* lib/hexdump.c: ... here.

* include/grub/hexdump.h: Renamed to ...

* include/grub/lib/hexdump.h: ... this.

* commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h

* util/grub-editenv.c: Likewise.

* include/envblk.h: Renamed to ...

* include/lib/envblk.h: ... this.

* util/envblk.c: Renamed to ...

* lib/envblk.c: ... this.

* conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
lib/hexdump.c.
(grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
(pkglib_MODULES): Add crc.mod.
(hexdump_mod_SOURCES): Add lib/hexdump.c.
(loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
(crc_mod_SOURCES): New macro.
(crc_mod_CFLAGS): Likewise.
(crc_mod_LDFLAGS): Likewise.

* conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.

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

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

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

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

16 years ago2008-07-27 Felix Zielcke <fzielcke@z-51.de>
robertmh [Sun, 27 Jul 2008 13:04:02 +0000 (13:04 +0000)]
2008-07-27 Felix Zielcke <fzielcke@z-51.de>

        * commands/help.c: Include <grub/term.h>.
        (TERM_WIDTH): Removed.  Updated all users.

16 years ago2008-07-27 Pavel Roskin <proski@gnu.org>
proski [Sun, 27 Jul 2008 05:57:10 +0000 (05:57 +0000)]
2008-07-27  Pavel Roskin  <proski@gnu.org>

* util/getroot.c (find_root_device): Rephrase a comment to avoid
spurious warnings about a comment within a comment.

16 years ago2008-07-25 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 25 Jul 2008 19:05:06 +0000 (19:05 +0000)]
2008-07-25  Robert Millan  <rmh@aybabtu.com>

        * util/getroot.c (find_root_device): Skip devices that match
        /dev/dm-[0-9].  This lets the real device be found for any type of
        abstraction (LVM, EVMS, RAID..).
        (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
        and /dev/evms (for EVMS) before traversing /dev.  If a /dev/dm-[0-9]
        device is found first, find_root_device() will now skip it.

16 years agoTypo fix
proski [Thu, 24 Jul 2008 23:37:22 +0000 (23:37 +0000)]
Typo fix

16 years ago2008-07-24 Pavel Roskin <proski@gnu.org>
proski [Thu, 24 Jul 2008 23:36:13 +0000 (23:36 +0000)]
2008-07-24  Pavel Roskin  <proski@gnu.org>

* include/grub/types.h: Use __builtin_bswap32() and
__builtin_bswap64() with gcc 4.3 and newer.

16 years agoRemove trailing whitespace.
chrfranke [Thu, 24 Jul 2008 19:40:05 +0000 (19:40 +0000)]
Remove trailing whitespace.

16 years ago2008-07-24 Christian Franke <franke@computer.org>
chrfranke [Thu, 24 Jul 2008 19:02:47 +0000 (19:02 +0000)]
2008-07-24  Christian Franke  <franke@computer.org>

* util/i386/pc/grub-install.in: If `--debug' is specified,
pass `--verbose' to grub-setup.
Abort script if make_system_path_relative_to_its_root() fails.

16 years ago2008-07-24 Bean <bean123ch@gmail.com>
bean [Thu, 24 Jul 2008 18:14:41 +0000 (18:14 +0000)]
2008-07-24  Bean  <bean123ch@gmail.com>

* configure.ac: Fixed a bug caused by the previous cygwin patch,
variable `target_platform' should be `platform'.

16 years ago2008-07-24 Bean <bean123ch@gmail.com>
bean [Thu, 24 Jul 2008 15:02:36 +0000 (15:02 +0000)]
2008-07-24  Bean  <bean123ch@gmail.com>

* video/reader/png.c (DELFATE_HLIT_MAX): Change value.
(grub_png_init_fixed_block): New function.
(grub_png_decode_image_data): Handle fixed huffman code compression.

16 years ago2008-07-24 Bean <bean123ch@gmail.com>
bean [Thu, 24 Jul 2008 14:56:30 +0000 (14:56 +0000)]
2008-07-24  Bean  <bean123ch@gmail.com>

* common.rmk (bin_UTILITIES): Add grub-pe2elf.
(grub_pe2elf_SOURCES): New macro.
(CLEANFILES): Add grub-pe2elf.

* include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
(GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
(GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
(GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
(GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
(GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
(GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
(GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
(GRUB_PE32_SCN_ALIGN_MASK): Likewise.
(GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
(GRUB_PE32_SYM_CLASS_STATIC): Likewise.
(GRUB_PE32_SYM_CLASS_FILE): Likewise.
(GRUB_PE32_DT_FUNCTION): Likewise.
(GRUB_PE32_REL_I386_DIR32): Likewise.
(GRUB_PE32_REL_I386_REL32): Likewise.
(grub_pe32_symbol): New structure.
(grub_pe32_reloc): Likewise.

* util/grub-pe2elf.c: New file.

* configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
start symbol in non pc platform.

* genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.

The following patches are from Christian Franke.

* include/grub/dl.h: Remove .previous, gas supports this only
for ELF format.

* include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
Remove .type, gas supports this only for ELF format.

* kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
nullbytes in symbol table. This fixes an infinite loop if table is
zero filled.

* Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
TARGET_IMG_LDFLAGS and EXEEXT.

* aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
TARGET_IMG_LDFLAGS_AC.
(grub_CHECK_STACK_ARG_PROBE): New function.

* conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.

* conf/i386-pc-cygwin-ld-img.sc: New linker script.

* configure.ac: Add check for linker script "conf/${target}-img-ld.c"
to set TARGET_IMG_LD* accordingly.
Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
Add call to grub_CHECK_STACK_ARG_PROBE.
Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.

* genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.

* genmk.rb: Add EXEEXT to CLEANFILES.

16 years ago2008-07-23 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 22 Jul 2008 22:23:45 +0000 (22:23 +0000)]
2008-07-23  Robert Millan  <rmh@aybabtu.com>

        * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
        define the codes for arrows and lines used for the menu).
        (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
        as well.

        * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
        fonts, because the latter are too slow.

16 years ago2008-07-21 Bean <bean123ch@gmail.com>
bean [Mon, 21 Jul 2008 10:40:01 +0000 (10:40 +0000)]
2008-07-21  Bean  <bean123ch@gmail.com>

* kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
a20. Run keyboard test last, as it will cause macbook to halt.

16 years ago2008-07-18 Pavel Roskin <proski@gnu.org>
proski [Fri, 18 Jul 2008 16:11:35 +0000 (16:11 +0000)]
2008-07-18  Pavel Roskin  <proski@gnu.org>

* kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P.  We cannot
load foreign architecture modules correctly anyway.  Keep
support for loading host architecture modules, whether we
compile them or not.

16 years agoTypo fix
proski [Fri, 18 Jul 2008 03:47:33 +0000 (03:47 +0000)]
Typo fix

16 years ago2008-07-17 Pavel Roskin <proski@gnu.org>
proski [Fri, 18 Jul 2008 03:21:47 +0000 (03:21 +0000)]
2008-07-17  Pavel Roskin  <proski@gnu.org>

* configure.ac: Use -m32 or -m64 regardless of whether we had to
change target_cpu.  The compiler default can mismatch target_cpu
in any case.

16 years agoTypo fix
proski [Fri, 18 Jul 2008 01:13:58 +0000 (01:13 +0000)]
Typo fix

16 years ago2008-07-17 Pavel Roskin <proski@gnu.org>
proski [Fri, 18 Jul 2008 01:11:33 +0000 (01:11 +0000)]
2008-07-17  Pavel Roskin  <proski@gnu.org>

* disk/efi/efidisk.c: Fix format warnings on x86_64.
* kern/efi/efi.c: Likewise.

16 years ago2008-07-17 Pavel Roskin <proski@gnu.org>
proski [Thu, 17 Jul 2008 20:19:55 +0000 (20:19 +0000)]
2008-07-17  Pavel Roskin  <proski@gnu.org>

* aclocal.m4 (grub_PROG_TARGET_CC): New macro.  Check if the
target compiler is functional.
* configure.ac: Call grub_PROG_TARGET_CC once all target flags
are set up.

16 years ago2008-07-17 Pavel Roskin <proski@gnu.org>
proski [Thu, 17 Jul 2008 18:13:57 +0000 (18:13 +0000)]
2008-07-17  Pavel Roskin  <proski@gnu.org>

* configure.ac: Default to efi platform for x86_64-apple.  Allow
powerpc64 CPU, default to ieee1275 platform for it.  Split CPU
adjustments from the rest, only do them if target is not
explicitly given.  Merge other adjustments with the final sanity
check.  Remove an extraneous check for supported CPU.  Be
specific which CPU and which platform is not supported.

16 years ago2008-07-17 Pavel Roskin <proski@gnu.org>
proski [Thu, 17 Jul 2008 15:31:16 +0000 (15:31 +0000)]
2008-07-17  Pavel Roskin  <proski@gnu.org>

* configure.ac: Default to pc platform for x86_64.

16 years ago2008-07-17 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 17 Jul 2008 15:05:12 +0000 (15:05 +0000)]
2008-07-17  Robert Millan  <rmh@aybabtu.com>

        Partial LinuxBIOS -> Coreboot rename.

        * conf/i386-linuxbios.rmk: Renamed to ...
        * conf/i386-coreboot.rmk: ... this.
        * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
        * configure.ac: Accept coreboot as input platform (but maintain
        compatibility with linuxbios).
        * include/grub/i386/linuxbios: Renamed to ...
        * include/grub/i386/coreboot: ... this.

16 years ago2008-07-17 Bean <bean123ch@gmail.com>
bean [Thu, 17 Jul 2008 09:50:26 +0000 (09:50 +0000)]
2008-07-17  Bean  <bean123ch@gmail.com>

* conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
(appleldr_mod_SOURCE): New variavle.
(appleldr_mod_CFLAGS): Likewise.
(appleldr_mod_LDFLAGS): Likewise.
(pci_mod_SOURCES): Likewise.
(pci_mod_CFLAGS): Likewise.
(pci_mod_LDFLAGS): Likewise.
(lspci_mod_SOURCES): Likewise.
(lspci_mod_CFLAGS): Likewise.
(lspci_mod_LDFLAGS): Likewise.

* conf/x86_64-efi.rmk: New file.

* disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
macro.
(grub_efidisk_write): Likewise.

* include/efi/api.h (efi_call_0): New macro.
(efi_call_1): Likewise.
(efi_call_2): Likewise.
(efi_call_3): Likewise.
(efi_call_4): Likewise.
(efi_call_5): Likewise.
(efi_call_6): Likewise.

* include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
grub_rescue_cmd_chainloader.

* include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
(grub_pe32_optional_header): Change some fields based on i386 or
x86_64 platform.
(GRUB_PE32_PE32_MAGIC): Likewise.

* include/grub/efi/uga_draw.h: New file.

* include/grub/elf.h (STN_ABS): New constant.
(R_X86_64_NONE): Relocation constant for x86_64.
(R_X86_64_64): Likewise.
(R_X86_64_PC32): Likewise.
(R_X86_64_GOT32): Likewise.
(R_X86_64_PLT32): Likewise.
(R_X86_64_COPY): Likewise.
(R_X86_64_GLOB_DAT): Likewise.
(R_X86_64_JUMP_SLOT): Likewise.
(R_X86_64_RELATIVE): Likewise.
(R_X86_64_GOTPCREL): Likewise.
(R_X86_64_32): Likewise.
(R_X86_64_32S): Likewise.
(R_X86_64_16): Likewise.
(R_X86_64_PC16): Likewise.
(R_X86_64_8): Likewise.
(R_X86_64_PC8): Likewise.

* include/grub/i386/efi/pci.h: New file.

* include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
Change it value based on platform.
(GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
(GRUB_E820_RAM): Likewise.
(GRUB_E820_RESERVED): Likewise.
(GRUB_E820_ACPI): Likewise.
(GRUB_E820_NVS): Likewise.
(GRUB_E820_EXEC_CODE): Likewise.
(GRUB_E820_MAX_ENTRY): Likewise.
(grub_e820_mmap): New structure.
(linux_kernel_header): Change the efi field according to different
kernel version, also field from linux_kernel_header.

* include/grub/kernel.h (grub_module_info): Add padding for x86_64.

* include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
(GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
(GRUB_PCI_ADDR_SPACE_IO): Likewise.
(GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
(GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
(GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
(GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
(GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
(GRUB_PCI_ADDR_MEM_MASK): Likewise.
(GRUB_PCI_ADDR_IO_MASK): Likewise.

* include/grub/x86_64/efi/kernel.h: New file.

* include/grub/x86_64/efi/loader.h: Likewise.

* include/grub/x86_64/efi/machine.h: Likewise.

* include/grub/x86_64/efi/pci.h: Likewise.

* include/grub/x86_64/efi/time.h: Likewise.

* include/grub/x86_64/linux.h: Likewise.

* include/grub/x86_64/setjmp.h: Likewise.

* include/grub/x86_64/time.h: Likewise.

* include/grub/x86_64/types.h: Likewise.

* kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
 GRUB_TARGET_SIZEOF_VOID_P.

* kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
(grub_efi_locate_handle): Likewise.
(grub_efi_open_protocol): Likewise.
(grub_efi_set_text_mode): Likewise.
(grub_efi_stall): Likewise.
(grub_exit): Likewise.
(grub_reboot): Likewise.
(grub_halt): Likewise.
(grub_efi_exit_boot_services): Likewise.
(grub_get_rtc): Likewise.

* kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
(GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
(grub_efi_allocate_pages): Wrap efi calls.
(grub_efi_free_pages): Wrap efi calls.
(grub_efi_get_memory_map): Wrap efi calls.

* kern/x86_64/dl.c: New file.

* kern/x86_64/efi/callwrap.S: Likewise.

* kern/x86_64/efi/startup.S: Likewise.

* loader/efi/appleloader.c: Likewise.

* loader/efi/chainloader.c (cmdline): New variable.
(grub_chainloader_unload): Wrap efi calls.
(grub_chainloader_boot): Likewise.
(grub_rescue_cmd_chainloader): Wrap efi calls, handle
command line.

* loader/efi/chainloader_normal.c (chainloader_command):
Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
command line.

* loader/i386/efi/linux.c (allocate_pages): Change allocation
method.
(grub_e820_add_region): New function.
(grub_linux_boot): Construct e820 map from efi map, handle x86_64
booting.
(grub_find_video_card): New function.
(grub_linux_setup_video): New function.
(grub_rescue_cmd_linux): Probe for video information.

* normal/x86_64/setjmp.S: New file.

* term/efi/console.c (map_char): New function.
(grub_console_putchar): Map unicode char.
(grub_console_checkkey): Wrap efi calls.
(grub_console_getkey): Likewise.
(grub_console_getwh): Likewise.
(grub_console_gotoxy): Likewise.
(grub_console_cls): Likewise.
(grub_console_setcolorstate): Likewise.
(grub_console_setcursor): Likewise.

* util/i386/efi/grub-mkimage.c: Add support for x86_64.

16 years ago2008-07-16 Pavel Roskin <proski@gnu.org>
proski [Wed, 16 Jul 2008 07:06:11 +0000 (07:06 +0000)]
2008-07-16  Pavel Roskin  <proski@gnu.org>

* loader/i386/efi/linux.c (allocate_pages): Fix warnings in
format strings.

16 years ago2008-07-16 Pavel Roskin <proski@gnu.org>
proski [Wed, 16 Jul 2008 06:55:42 +0000 (06:55 +0000)]
2008-07-16  Pavel Roskin  <proski@gnu.org>

* util/i386/efi/grub-mkimage.c (get_target_address): Return a
pointer, not an integer.  This fixes a warning and prevents
precision loss on 64-bit systems.
(relocate_addresses): Remove unneeded cast.

16 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 13:29:53 +0000 (13:29 +0000)]
2008-07-15  Pavel Roskin  <proski@gnu.org>

* kern/i386/ieee1275/init.c: Include grub/cache.h.

16 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 13:27:02 +0000 (13:27 +0000)]
2008-07-15  Pavel Roskin  <proski@gnu.org>

* term/ieee1275/ofconsole.c: Disable code unused on i386.

16 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 13:22:27 +0000 (13:22 +0000)]
2008-07-15  Pavel Roskin  <proski@gnu.org>

* kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
Fix comparison between signed and unsigned.

16 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 04:37:32 +0000 (04:37 +0000)]
2008-07-15  Pavel Roskin  <proski@gnu.org>

* include/grub/i386/ieee1275/console.h: Declare
grub_console_init() and grub_console_fini().

16 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 04:17:48 +0000 (04:17 +0000)]
2008-07-15  Pavel Roskin  <proski@gnu.org>

* loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
It's empty and unused.

16 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 04:12:28 +0000 (04:12 +0000)]
2008-07-15  Pavel Roskin  <proski@gnu.org>

* fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
beginning to avoid warnings with some compilers.

16 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 04:07:37 +0000 (04:07 +0000)]
2008-07-15  Pavel Roskin  <proski@gnu.org>

* loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
[__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.

16 years ago2008-07-14 Pavel Roskin <proski@gnu.org>
proski [Mon, 14 Jul 2008 05:03:19 +0000 (05:03 +0000)]
2008-07-14  Pavel Roskin  <proski@gnu.org>

* kern/env.c (grub_register_variable_hook): Don't copy empty
string, it leaks memory.  Pass "" to grub_env_set(), it should
handle constant strings.

16 years ago2008-07-14 Pavel Roskin <proski@gnu.org>
proski [Mon, 14 Jul 2008 04:46:19 +0000 (04:46 +0000)]
2008-07-14  Pavel Roskin  <proski@gnu.org>

* commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
* commands/cmp.c (grub_cmd_cmp): Likewise.
* kern/dl.c (grub_dl_flush_cache): Likewise.
(grub_dl_load_core): Likewise.
* kern/elf.c (grub_elf32_load_phdrs): Likewise.
(grub_elf64_load_phdrs): Likewise.

16 years agoFix typos in ChangeLog and comments
proski [Sun, 13 Jul 2008 18:13:36 +0000 (18:13 +0000)]
Fix typos in ChangeLog and comments

16 years ago2008-07-13 Pavel Roskin <proski@gnu.org>
proski [Sun, 13 Jul 2008 17:46:25 +0000 (17:46 +0000)]
2008-07-13  Pavel Roskin  <proski@gnu.org>

* lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
between signed and unsigned.
(LzmaEnc_Finish): Fix warning about an unused parameter.

16 years ago2008-07-13 Bean <bean123ch@gmail.com>
bean [Sun, 13 Jul 2008 01:55:15 +0000 (01:55 +0000)]
2008-07-13  Bean  <bean123ch@gmail.com>

* Makefile.in (enable_lzo): New rule.

* conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.

* configure.ac (ENABLE_LZO): New option --enable-lzo.

* boot/i386/pc/lnxboot.S: #include <config.h>.

* include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
its value accordding to the compression algorithm used, lzo or lzma.

* util/i386/pc/grub-mkimage.c (compress_kernel): Use different
compression algorithm according to configure macro.

* kern/i386/pc/startup.S (codestart): Likewise.

* kern/i386/pc/lzma_decode.S: New file.

* include/grub/lib/LzFind.h: Likewise.

* include/grub/lib/LzHash.h: Likewise.

* include/grub/lib/LzmaDec.h: Likewise.

* include/grub/lib/LzmaEnc.h: Likewise.

* include/grub/lib/LzmaTypes.h: Likewise.

* lib/LzFind.c: Likewise.

* lib/LzmaDec.c: Likewise.

* lib/LzmaEnc.c: Likewise.

16 years ago2008-07-13 Bean <bean123ch@gmail.com>
bean [Sun, 13 Jul 2008 01:13:12 +0000 (01:13 +0000)]
2008-07-13  Bean  <bean123ch@gmail.com>

* fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
(grub_ext4_extent_header): New structure.
(grub_ext4_extent): Likewise.
(grub_ext4_extent_idx): Likewise.
(grub_ext4_find_leaf): New function.
(grub_ext2_read_block): Handle extents.

16 years ago2008-07-12 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 12 Jul 2008 15:40:50 +0000 (15:40 +0000)]
2008-07-12  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.

16 years ago2008-07-11 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 11 Jul 2008 20:09:14 +0000 (20:09 +0000)]
2008-07-11  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/40_custom.in: New file. Example on how to add custom
        entries to /etc/grub.d.
        * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
        40_custom (implicitly, by merging all the grub.d rules).

16 years ago2008-07-11 Pavel Roskin <proski@gnu.org>
proski [Fri, 11 Jul 2008 17:35:06 +0000 (17:35 +0000)]
2008-07-11  Pavel Roskin  <proski@gnu.org>

* commands/read.c (grub_getline): Fix invalid memory access.
Don't add newline to the variable value.

16 years ago2008-07-11 Pavel Roskin <proski@gnu.org>
proski [Fri, 11 Jul 2008 16:40:45 +0000 (16:40 +0000)]
2008-07-11  Pavel Roskin  <proski@gnu.org>

* term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
[!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
(serial_hw_get_port): Check validity of the port number.
(grub_cmd_serial): Check return value of serial_hw_get_port().

16 years ago2008-07-07 Pavel Roskin <proski@gnu.org>
proski [Mon, 7 Jul 2008 15:11:06 +0000 (15:11 +0000)]
2008-07-07  Pavel Roskin  <proski@gnu.org>

* boot/i386/pc/diskboot.S (notification_string): Replace
"Loading kernel" with just "loading".  This is shorter, less
confusing and saves a few bytes for possible future changes.

16 years ago2008-07-05 Pavel Roskin <proski@gnu.org>
proski [Sun, 6 Jul 2008 01:24:19 +0000 (01:24 +0000)]
2008-07-05  Pavel Roskin  <proski@gnu.org>

* disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
size for ATAPI devices, they are undefined.  Output sector
number in decimal form.

16 years ago2008-07-05 Pavel Roskin <proski@gnu.org>
proski [Sun, 6 Jul 2008 00:57:36 +0000 (00:57 +0000)]
2008-07-05  Pavel Roskin  <proski@gnu.org>

* disk/ata.c: Use named constants for status bits.

16 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 03:26:10 +0000 (03:26 +0000)]
2008-07-04  Pavel Roskin  <proski@gnu.org>

* kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
grub_addr_t before casting it to the void pointer to fix a
warning.  Non-addressable regions are discarded earlier.
(grub_arch_modules_addr): Cast _end to grub_addr_t.
* kern/i386/linuxbios/table.c: Include grub/misc.h.
(check_signature): Don't shadow table_header.
(grub_linuxbios_table_iterate): Cast numeric constants to
grub_linuxbios_table_header_t.
* include/grub/i386/linuxbios/init.h: Add noreturn attribute to
grub_stop().

16 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 03:01:55 +0000 (03:01 +0000)]
2008-07-04  Pavel Roskin  <proski@gnu.org>

* kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
prevent warnings.

16 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 02:12:54 +0000 (02:12 +0000)]
2008-07-04  Pavel Roskin  <proski@gnu.org>

* include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
pointer, which can cause warnings.  Support 64-bit addresses.

16 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 01:53:52 +0000 (01:53 +0000)]
2008-07-04  Pavel Roskin  <proski@gnu.org>

* util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
of sizeof(long).  This fixes PowerPC image generation on x86_64.