]> git.proxmox.com Git - grub2.git/log
grub2.git
16 years ago2008-08-30 Pavel Roskin <proski@gnu.org>
proski [Sun, 31 Aug 2008 02:19:17 +0000 (02:19 +0000)]
2008-08-30  Pavel Roskin  <proski@gnu.org>

* util/genmoddep.c: Remove for real this time.
* DISTLIST: Remove util/genmoddep.c.

16 years ago2008-08-30 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 30 Aug 2008 17:51:24 +0000 (17:51 +0000)]
2008-08-30  Robert Millan  <rmh@aybabtu.com>

        * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
        as required by Multiboot spec (it was already 4-byte aligned, but
        only by chance).

16 years ago2008-08-29 Pavel Roskin <proski@gnu.org>
proski [Fri, 29 Aug 2008 21:54:26 +0000 (21:54 +0000)]
2008-08-29  Pavel Roskin  <proski@gnu.org>

* kern/powerpc/ieee1275/crt0.S: Rename to ...
* kern/powerpc/ieee1275/startup.S: ... this.
* conf/powerpc-ieee1275.rmk: Adjust for the above.
* DISTLIST: Likewise.

16 years ago2008-08-29 Pavel Roskin <proski@gnu.org>
proski [Fri, 29 Aug 2008 21:46:17 +0000 (21:46 +0000)]
2008-08-29  Pavel Roskin  <proski@gnu.org>

* kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
grub/cpu/kernel.h.  Add start label for consistency with other
platforms.  Add grub_prefix immediately after start.  Add jump
to the code after grub_prefix.
* include/grub/powerpc/kernel.h: Provide valid values for
GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.

16 years ago2008-08-29 Bean <bean123ch@gmail.com>
bean [Fri, 29 Aug 2008 19:55:23 +0000 (19:55 +0000)]
2008-08-29  Bean  <bean123ch@gmail.com>

* configure.ac: Change host_os to cygwin for mingw.
(asprintf): New check for function.

* include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
#if ! defined (__CYGWIN__) && ! defined (__MINGW32__).

* include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
declear asprintf if HAVE_ASPRINTF is not set, declear fseeko, ftello,
sync, sleep and grub_util_get_disk_size for mingw.

* util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
to get size in mingw.
(open_device): Use flag O_BINARY if it's defined.
(find_root_device): Add dummy code for mingw.

* util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
(get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
(get_scsi_disk_name): Return 0 for mingw.

* util/hostfs.c: #include <grub/util/misc.h>.
(grub_hostfs_open): Use "rb" flag to open file, use
grub_util_get_disk_size to get disk size for mingw.

* util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
(asprintf): New function if HAVE_ASPRINTF is not set.
(sync): New function for mingw.
(sleep): Likewise.
(grub_util_get_disk_size): Likewise.

16 years ago2008-08-28 Pavel Roskin <proski@gnu.org>
proski [Fri, 29 Aug 2008 01:08:05 +0000 (01:08 +0000)]
2008-08-28  Pavel Roskin  <proski@gnu.org>

* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
kern/time.c.

16 years ago2008-08-28 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 28 Aug 2008 19:08:21 +0000 (19:08 +0000)]
2008-08-28  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.

16 years ago2008-08-28 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 28 Aug 2008 14:36:18 +0000 (14:36 +0000)]
2008-08-28  Robert Millan  <rmh@aybabtu.com>

        Change find_grub_drive() syntax so it doesn't prevent it from
        detecting NULL names as errors.

        * util/biosdisk.c (find_grub_drive): Move free slot search code
        from here ...
        (find_free_slot): ... to here.
        (read_device_map): Use find_free_slot() to search for free slots.

16 years ago2008-08-27 Marco Gerards <marco@gnu.org>
marco_g [Wed, 27 Aug 2008 15:05:00 +0000 (15:05 +0000)]
2008-08-27  Marco Gerards  <marco@gnu.org>

* conf/common.rmk (pkglib_MODULES): Add scsi.mod.
(scsi_mod_SOURCES): New variable.
(scsi_mod_CFLAGS): Likewise
(scsi_mod_LDFLAGS): Likewise.

* disk/scsi.c: New file.

* include/grub/scsi.h: Likewise.

* include/grub/scsicmd.h: Likewise.

* disk/ata.c: Include <grub/scsi.h>.
(grub_atapi_packet): Do not use grub_ata_cmd, use registers
instead.
(grub_ata_iterate): Skip ATAPI devices.
(grub_ata_open): Only handle ATAPI devices.
(struct grub_atapi_read): Removed.
(grub_atapi_readsector): Likewise.
(grub_ata_read): No longer handle ATAPI devices.
(grub_ata_write): Likewise.
(grub_atapi_iterate): New function.
(grub_atapi_read): Likewise.
(grub_atapi_write): Likewise.
(grub_atapi_open): Likewise.
(grub_atapi_close): Likewise.
(grub_atapi_dev): New variable.
(GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
(GRUB_MOD_FINI(ata)): Unregister ATAPI.

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

16 years ago2008-08-26 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 26 Aug 2008 19:09:07 +0000 (19:09 +0000)]
2008-08-26  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (grub_util_biosdisk_open, open_device)
        (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
        descriptive.

16 years ago2008-08-23 Bean <bean123ch@gmail.com>
bean [Sat, 23 Aug 2008 14:51:19 +0000 (14:51 +0000)]
2008-08-23  Bean  <bean123ch@gmail.com>

* conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
(grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
(pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
dm_nv.mod.
(raid5rec_mod_SOURCES): New macro.
(raid5rec_mod_CFLAGS): Likewise.
(raid5rec_mod_LDFLAGS): Likewise.
(raid6rec_mod_SOURCES): Likewise.
(raid6rec_mod_CFLAGS): Likewise.
(raid6rec_mod_LDFLAGS): Likewise.
(mdraid_mod_SOURCES): Likewise.
(mdraid_mod_CFLAGS): Likewise.
(mdraid_mod_LDFLAGS): Likewise.
(dm_nv_mod_SOURCES): Likewise.
(dm_nv_mod_CFLAGS): Likewise.
(dm_nv_mod_LDFLAGS): Likewise.

* conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
(grub_emu_SOURCES):  Add disk/raid5_recover.c, disk/raid6_recover.c,
disk/mdraid_linux.c and disk/dmraid_nvidia.c.

* conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.

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

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

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

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

* disk/raid5_recover.c: New file.

* disk/raid6_recover.c: Likewise.

* disk/mdraid_linux.c: Likewise.

* disk/dmraid_nvidia.c: Likewise.

* disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
ULONG_MAX.

* disk/raid.c (grub_raid_open): Use the size of the smallest disk to
calculate the size of raid device.
(grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
different layout of raid5.
(grub_raid_scan_device): Remove code specific to mdraid.
(grub_raid_list): New variable.
(free_array): New function.
(grub_raid_register): Likewise.
(grub_raid_unregister): Likewise.
(grub_raid_rescan): Likewise.
(GRUB_MOD_INIT): Don't iterate device here.
(GRUB_MOD_FINI): Use free_array to release resource.

* include/grub/raid.h: Remove macro and structure specific to mdraid.
(grub_raid5_recover_func_t): New function variable type.
(grub_raid6_recover_func_t): Likewise.
(grub_raid5_recover_func): New variable.
(grub_raid6_recover_func): Likewise.
(grub_raid_register): New function.
(grub_raid_unregister): Likewise.
(grub_raid_rescan): Likewise.
(grub_raid_block_xor): Likewise.

* util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
(CMD_CRC): New macro.
(part): Removed.
(read_file): Handle device as well as file.
(cmd_crc): New function.
(fstest): Handle multiple disks.
(options): Remove part, raw and long, add root and diskcount.
(usage): Add crc, remove -p, -r, -l, add -r and -c.
(main): Find the first non option entry and ignore subsequence options,
add handling for the new options, support multiple disks.

* util/grub-probe.c (probe): Add mdraid to abstraction_name.

16 years ago2008-08-22 Bean <bean123ch@gmail.com>
bean [Sat, 23 Aug 2008 14:20:45 +0000 (14:20 +0000)]
2008-08-22  Bean  <bean123ch@gmail.com>

* normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.

* genfslist.sh: Ignore kernel.mod.

* genpartmaplist.sh: Likewise.

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

        * util/getroot.c (find_root_device): Skip anything that starts with
        a dot, not just directories.  This avoids things like /dev/.tmp.md0.

16 years ago2008-08-22 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Fri, 22 Aug 2008 12:58:46 +0000 (12:58 +0000)]
2008-08-22  Felix Zielcke  <fzielcke@z-51.de>

* util/update-grub.in (GRUB_GFXMODE): Export variable.
* util/grub.d/00_header.in: Allow the administrator to change default
gfxmode via ${GRUB_GFXMODE}.

16 years ago2008-08-21 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Thu, 21 Aug 2008 13:30:32 +0000 (13:30 +0000)]
2008-08-21  Felix Zielcke  <fzielcke@z-51.de>

        * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.

16 years ago2008-08-21 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 21 Aug 2008 13:18:07 +0000 (13:18 +0000)]
2008-08-21  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/linux.c: New file.  Implements generic 32-bit Linux
        loader.
        * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
        `loader/i386/pc/linux.c' with `loader/i386/linux.c'.

16 years ago2008-08-20 Carles Pina i Estany <carles@pina.cat>
robertmh [Wed, 20 Aug 2008 10:07:56 +0000 (10:07 +0000)]
2008-08-20  Carles Pina i Estany  <carles@pina.cat>

        * menu/normal.c (run_menu): Replace hardcoded numbers with macros
        (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)

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

        * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
        (struct grub_virtual_screen): Remove `cursor_color'.
        (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
        initialization.
        (write_cursor): Use `virtual_screen.fg_color' to draw cursor.

16 years ago2008-08-18 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 18 Aug 2008 13:46:31 +0000 (13:46 +0000)]
2008-08-18  Robert Millan  <rmh@aybabtu.com>

        Unify (identical) linux_normal.c files.
        * loader/i386/efi/linux_normal.c: Move from here ...
        * loader/linux_normal.c: ... to here.  Update all users.
        * loader/i386/pc/linux_normal.c: Delete.  Update all users.
        * loader/i386/ieee1275/linux_normal.c: Likewise.

16 years ago2008-08-18 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 18 Aug 2008 13:01:01 +0000 (13:01 +0000)]
2008-08-18  Robert Millan  <rmh@aybabtu.com>

        * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
        (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
        (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
        (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
        (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
        New macros.
        (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
        * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
        (GRUB_LINUX_CL_END_OFFSET): ... to here.
        * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
        (GRUB_LINUX_CL_OFFSET): ... this.  Update all users.
        (GRUB_EFI_CL_END_OFFSET): Rename to ...
        (GRUB_LINUX_CL_END_OFFSET): ... this.  Update all users.
        (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
        Initialize `params->video_cursor_x' and `params->video_cursor_y'
        portably using grub_getxy().
        Replace `-EFI' with `-bzImage' in boot message.

16 years ago2008-08-17 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 17 Aug 2008 20:28:00 +0000 (20:28 +0000)]
2008-08-17  Robert Millan  <rmh@aybabtu.com>

        * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).

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

        * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.

        * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
        (GRUB_MACHINE_MEMORY_RESERVED): New macros.
        (grub_machine_mmap_iterate): New function declaration.
        * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
        structure.
        (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
        macros.

        * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
        type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
        Move e820 parsing from here ...
        * kern/i386/pc/mmap.c: New file.
        (grub_machine_mmap_iterate): ... to here.

        * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
        (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
        (GRUB_MACHINE_MEMORY_AVAILABLE): ... this.  Update all users.
        (grub_available_iterate): Redeclare to return `void', and redeclare
        its hook to use grub_uint64_t as addr and size parameters, and rename
        to ...
        (grub_machine_mmap_iterate): ... this.  Update all users.

        * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
        to make it more readable.  Rename to ...
        (grub_machine_mmap_iterate): ... this.

        * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
        (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
        (grub_multiboot): Allocate an extra region after the payload, and fill
        it with a Multiboot memory map.  Adjust a.out loader to calculate size
        with the extra space.
        (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
        with the extra space.

16 years agochanging spaces to \t again sigh
fzielcke [Sun, 17 Aug 2008 15:50:36 +0000 (15:50 +0000)]
changing spaces to \t again sigh

16 years ago2008-08-17 Carles Pina i Estany <carles@pina.cat>
fzielcke [Sun, 17 Aug 2008 10:30:25 +0000 (10:30 +0000)]
2008-08-17  Carles Pina i Estany  <carles@pina.cat>

        * menu/normal.c (run_menu): Add Home and End keys in grub-menu.

16 years ago2008-08-17 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sun, 17 Aug 2008 09:12:59 +0000 (09:12 +0000)]
2008-08-17  Felix Zielcke  <fzielcke@z-51.de>

        * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
        mdate-sh to the list `find' searches for.
        * DISTLIST: Regenerated.

16 years agofix previous changelog commit
fzielcke [Sat, 16 Aug 2008 20:25:46 +0000 (20:25 +0000)]
fix previous changelog commit

16 years ago2008-08-16 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sat, 16 Aug 2008 20:21:07 +0000 (20:21 +0000)]
2008-08-16  Felix Zielcke  <fzielcke@z-51.de>

        * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
        genkernsyms.sh.  Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
        genmoddep.awk, gensymlist.sh.in
        (DISTDIRS): Add bus, docs, hook, lib
        * DISTLIST: Regenerated.
        * NEWS: Add cygwin support and change `os-prober' entry a bit.

(NEWS is in previous commit.)

16 years agoAdd Cygwin support and update `os-prober' item in NEWS.
fzielcke [Sat, 16 Aug 2008 18:56:49 +0000 (18:56 +0000)]
Add Cygwin support and update `os-prober' item in NEWS.

16 years agochange spaces to tabs for changelog entry of r1805
fzielcke [Sat, 16 Aug 2008 13:16:36 +0000 (13:16 +0000)]
change spaces to tabs for changelog entry of r1805

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

        * disk/raid.c (grub_raid_init): Handle/report errors set by
        grub_device_iterate().
        * disk/lvm.c (grub_lvm_init): Likewise.

16 years ago2008-08-15 Bean <bean123ch@gmail.com>
bean [Fri, 15 Aug 2008 15:39:02 +0000 (15:39 +0000)]
2008-08-15  Bean  <bean123ch@gmail.com>

* conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
and datehook.mod.
(datetime_mod_SOURCES): New macro.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.

* conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
and datehook.mod.
(datetime_mod_SOURCES): New macro.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.

* conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
and datehook.mod.
(datetime_mod_SOURCES): New macro.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.

* conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
and datehook.mod.
(datetime_mod_SOURCES): New macro.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.

* conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
and datehook.mod.
(datetime_mod_SOURCES): New macro.
(datetime_mod_CFLAGS): Likewise.
(datetime_mod_LDFLAGS): Likewise.
(date_mod_SOURCES): Likewise.
(date_mod_CFLAGS): Likewise.
(date_mod_LDFLAGS): Likewise.
(datehook_mod_SOURCES): Likewise.
(datehook_mod_CFLAGS): Likewise.
(datehook_mod_LDFLAGS): Likewise.

* kern/env.c (grub_env_insert): Fix a bug in prevp pointer.

* commands/date.c: New file.

* hook/datehook.c: Likewise.

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

* include/grub/i386/cmos.h: Likewise.

* lib/datetime.c: Likewise.

* lib/i386/datetime.c: Likewise.

* lib/efi/datetime.c: Likewise.

16 years agooops, missed the changelog entry
robertmh [Thu, 14 Aug 2008 19:05:28 +0000 (19:05 +0000)]
oops, missed the changelog entry

16 years ago2008-08-14 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 14 Aug 2008 18:59:33 +0000 (18:59 +0000)]
2008-08-14  Robert Millan  <rmh@aybabtu.com>

        * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
        (grub_mkelfimage_SOURCES): New variable.
        (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.

        * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
        (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
        * conf/powerpc-ieee1275.rmk: Likewise.
        * conf/i386-ieee1275.rmk: Likewise.

        * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
        * kern/i386/coreboot/init.c: Likewise.

        * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
        with `<grub/cpu/kernel.h>'.
        (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
        to ...
        (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
        * kern/i386/coreboot/startup.S: Likewise.

        * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
        (GRUB_MOD_GAP): Remove.
        * include/grub/powerpc/kernel.h: New file.
        * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
        (GRUB_KERNEL_MACHINE_DATA_END): Remove.
        * include/grub/i386/kernel.h: New file.
        * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
        (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
        (GRUB_KERNEL_MACHINE_DATA_END): Remove.

        * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
        `grub-mkelfimage'.
        Use --directory when invoking grub_mkimage.

        * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
        (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
        GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
        and GRUB_KERNEL_CPU_PREFIX.

16 years ago2008-08-14 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Thu, 14 Aug 2008 18:46:47 +0000 (18:46 +0000)]
2008-08-14  Felix Zielcke  <fzielcke@z-51.de>

        * include/grub/err.h (grub_err_printf): New function prototype.
        * util/misc.c (grub_err_printf): New function.
        * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
        grub_printf.
        * kern/err.c (grub_print_error): Use grub_err_printf.

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

        * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.

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

        * docs/grub.cfg: Use the native device name for the example GNU/Hurd
        boot entry.

16 years ago2008-08-12 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 12 Aug 2008 15:40:26 +0000 (15:40 +0000)]
2008-08-12  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
        of the relocation code from here ...
        (grub_multiboot): ... to here.
        (forward_relocator, backward_relocator): Move from here ...
        * kern/i386/loader.S (grub_multiboot_forward_relocator)
        (grub_multiboot_backward_relocator): ... to here.
        (grub_multiboot_real_boot): Use %edx for entry offset.  Put Multiboot
        magic in %eax.  Use %ebp for jumping (so %edx is not trashed).
        * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
        (grub_multiboot_forward_relocator_end)
        (grub_multiboot_backward_relocator)
        (grub_multiboot_backward_relocator_end): New variables.

16 years ago2008-08-12 Bean <bean123ch@gmail.com>
bean [Tue, 12 Aug 2008 13:58:29 +0000 (13:58 +0000)]
2008-08-12  Bean  <bean123ch@gmail.com>

* disk/raid.c (grub_raid_read): Fix a bug in raid0 code.

16 years ago2008-08-11 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 11 Aug 2008 14:57:39 +0000 (14:57 +0000)]
2008-08-11  Robert Millan  <rmh@aybabtu.com>

        * kern/i386/linuxbios/startup.S: Move from here ...
        * kern/i386/coreboot/startup.S: ... to here.

        * kern/i386/linuxbios/init.c: Move from here ...
        * kern/i386/coreboot/init.c: ... to here.

        * kern/i386/linuxbios/table.c: Move from here ...
        * kern/i386/coreboot/mmap.c: ... to here.

        * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.

16 years ago2008-08-11 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 11 Aug 2008 10:33:14 +0000 (10:33 +0000)]
2008-08-11  Robert Millan  <rmh@aybabtu.com>

        * kern/device.c (grub_device_open): Do not handle grub_disk_open()
        errors.  Leave it to the upper layer to handle them.

16 years ago2008-08-09 Christian Franke <franke@computer.org>
chrfranke [Sat, 9 Aug 2008 12:30:26 +0000 (12:30 +0000)]
2008-08-09  Christian Franke  <franke@computer.org>

* Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
* conf/common.rmk: Install `grub-pe2elf' only if requested.
Install `grub.d/10_windows' only on Cygwin.
* configure.ac: Add subst of `target_os'.
Check `target_os' also before setting TARGET_OBJ2ELF.
Add `--enable-grub-pe2elf'.

16 years ago2008-08-08 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 7 Aug 2008 23:48:13 +0000 (23:48 +0000)]
2008-08-08  Robert Millan  <rmh@aybabtu.com>

        * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
        (grub_last_time): Change type to grub_uint64_t.
        (grub_disk_open): Migrate code from to using grub_get_time_ms().
        (grub_disk_close): Likewise.

        * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
        (run_menu): Migrate code from to using grub_get_time_ms().

        * util/misc.c (grub_get_time_ms): New function.

16 years ago2008-08-08 Marco Gerards <marco@gnu.org>
marco_g [Thu, 7 Aug 2008 23:37:33 +0000 (23:37 +0000)]
2008-08-08  Marco Gerards  <marco@gnu.org>

* disk/ata.c (grub_ata_regget): Change return type to
`grub_uint8_t'.
(grub_ata_regget2): Likewise.
(grub_ata_wait_status): New function.
(grub_ata_wait_busy): Removed function, updated all users to use
`grub_ata_wait_status'.
(grub_ata_wait_drq): Likewise.
(grub_ata_cmd): New function.
(grub_ata_pio_read): Change return type to `grub_uint8_t'.  Add
error handling.
(grub_ata_pio_write): Add error handling.
(grub_atapi_identify): Likewise.
(grub_atapi_packet): Use `grub_ata_cmd' and improve error
handling.
(grub_ata_identify): Use `grub_ata_cmd' and improve error
handling.  Actually use the detected registers.  Reorder the
detection logic such that it is easier to read.
(grub_ata_pciinit): Do not assign the same ID to each controller.
(grub_ata_setaddress): Use `grub_ata_cmd' and improve error
handling.
(grub_atapi_readsector): Check the result of `grub_ata_pio_read'.

* include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.

16 years agoSome fixes to the last commit
marco_g [Thu, 7 Aug 2008 22:55:50 +0000 (22:55 +0000)]
Some fixes to the last commit

16 years ago2008-08-08 Marco Gerards <marco@gnu.org>
marco_g [Thu, 7 Aug 2008 22:43:03 +0000 (22:43 +0000)]
2008-08-08  Marco Gerards  <marco@gnu.org>

* NEWS: Update.

16 years ago2008-08-07 Bean <bean123ch@gmail.com>
bean [Thu, 7 Aug 2008 20:16:59 +0000 (20:16 +0000)]
2008-08-07  Bean  <bean123ch@gmail.com>

* include/grub/x86_64/pci.h: New file.

16 years ago2008-08-07 Christian Franke <franke@computer.org>
chrfranke [Thu, 7 Aug 2008 19:43:36 +0000 (19:43 +0000)]
2008-08-07  Christian Franke  <franke@computer.org>

* kern/i386/pit.c (TIMER2_SPEAKER): New define.
(TIMER2_GATE): Likewise.
(grub_pit_wait): Add enable/disable of the timer2 gate
bit of port 0x61.  This fixes a possible infinite loop.

16 years ago2008-08-07 Bean <bean123ch@gmail.com>
bean [Thu, 7 Aug 2008 19:21:25 +0000 (19:21 +0000)]
2008-08-07  Bean  <bean123ch@gmail.com>

* conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
kern/i386/tsc.c and kern/i386/pit.c.

* include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
x86_64 platform.

* kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
<grub/i386/tsc.h>.

* kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.

16 years agoMigrate .cvsignore to svn:ignore property
robertmh [Thu, 7 Aug 2008 14:34:19 +0000 (14:34 +0000)]
Migrate .cvsignore to svn:ignore property

16 years ago2008-08-07 Bean <bean123ch@gmail.com>
bean [Thu, 7 Aug 2008 11:58:55 +0000 (11:58 +0000)]
2008-08-07  Bean  <bean123ch@gmail.com>

* conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.

* conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,

* include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
multiple inclusion. Add #include <grub/types.h>.

16 years agoAdd 10_windows.in to DISTLIST.
robertmh [Thu, 7 Aug 2008 10:49:06 +0000 (10:49 +0000)]
Add 10_windows.in to DISTLIST.

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