grub/kern
robertmh 3bd0a12aca 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.
2008-08-02 12:17:44 +00:00
..
efi 2008-07-17 Pavel Roskin <proski@gnu.org> 2008-07-18 01:11:33 +00:00
i386 2008-08-02 Robert Millan <rmh@aybabtu.com> 2008-08-02 12:17:44 +00:00
ieee1275 2008-07-30 Robert Millan <rmh@aybabtu.com> 2008-07-30 10:42:11 +00:00
powerpc 2008-04-18 Robert Millan <rmh@aybabtu.com> 2008-04-18 15:53:20 +00:00
sparc64 2008-01-15 Robert Millan <rmh@aybabtu.com> 2008-01-15 16:14:33 +00:00
x86_64 Typo fix 2008-07-18 03:47:33 +00:00
device.c 2008-08-02 Robert Millan <rmh@aybabtu.com> 2008-08-02 12:17:44 +00:00
disk.c 2008-06-26 Robert Millan <rmh@aybabtu.com> 2008-06-26 14:26:07 +00:00
dl.c 2008-07-24 Bean <bean123ch@gmail.com> 2008-07-24 14:56:30 +00:00
elf.c 2008-07-14 Pavel Roskin <proski@gnu.org> 2008-07-14 04:46:19 +00:00
env.c 2008-07-14 Pavel Roskin <proski@gnu.org> 2008-07-14 05:03:19 +00:00
err.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
file.c 2008-01-25 Robert Millan <rmh@aybabtu.com> 2008-01-25 20:57:40 +00:00
fs.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
loader.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
main.c 2008-08-02 Robert Millan <rmh@aybabtu.com> 2008-08-02 12:17:44 +00:00
misc.c 2008-06-15 Pavel Roskin <proski@gnu.org> 2008-06-16 00:42:48 +00:00
mm.c 2008-01-23 Robert Millan <rmh@aybabtu.com> 2008-01-23 14:57:40 +00:00
parser.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
partition.c 2008-07-04 Robert Millan <rmh@aybabtu.com> 2008-07-03 22:56:43 +00:00
rescue.c 2008-02-19 Pavel Roskin <proski@gnu.org> 2008-02-19 19:52:42 +00:00
term.c 2007-12-25 Robert Millan <rmh@aybabtu.com> 2007-12-25 11:10:47 +00:00