grub/kern
robertmh 55a581dc06 2008-01-21 Robert Millan <rmh@aybabtu.com>
* conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
        (pkglib_MODULES): Add `memdisk.mod'.
        (memdisk_mod_SOURCES): New variable.
        (memdisk_mod_CFLAGS): Likewise.
        (memdisk_mod_LDFLAGS): Likewise.

        * disk/memdisk.c: New file.

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

        * include/grub/i386/pc/kernel.h
        (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
        (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
        (grub_kernel_image_size): New variable declaration.
        (grub_total_module_size): Likewise.
        (grub_memdisk_image_size): Likewise.

        * include/grub/i386/pc/memory.h
        (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.

        * include/grub/kernel.h: Include `<grub/symbol.h>'.
        (grub_arch_memdisk_addr): New variable declaration.
        (grub_arch_memdisk_size): Likewise.

        * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
        (grub_arch_memdisk_size): Likewise.

        * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
        (codestart): Replace hardcoded `0x100000' with
        `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.

        * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
        (generate_image): Add `memdisk_path' parameter.  When `memdisk_path' is
        not NULL, append the contents of the file it refers to, at the end of
        the compressed kernel image.  Initialize `grub_memdisk_image_size'
        variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
        (options): Add "memdisk"|'m' option.
        (main): Parse --memdisk|-m option, and pass user-provided path as
        parameter to generate_image().
2008-01-20 23:20:36 +00:00
..
efi 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
i386 2008-01-21 Robert Millan <rmh@aybabtu.com> 2008-01-20 23:20:36 +00:00
ieee1275 2008-01-19 Robert Millan <rmh@aybabtu.com> 2008-01-19 22:31:04 +00:00
powerpc 2008-01-20 Robert Millan <rmh@aybabtu.com> 2008-01-20 17:20:48 +00:00
sparc64 2008-01-15 Robert Millan <rmh@aybabtu.com> 2008-01-15 16:14:33 +00:00
device.c 2008-01-08 Robert Millan <rmh@aybabtu.com> 2008-01-09 23:25:54 +00:00
disk.c 2008-01-08 Robert Millan <rmh@aybabtu.com> 2008-01-09 23:25:54 +00:00
dl.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
elf.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
env.c 2008-01-05 Robert Millan <rmh@aybabtu.com> 2008-01-05 12:04:35 +00:00
err.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
file.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +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-01-05 Robert Millan <rmh@aybabtu.com> 2008-01-05 12:04:35 +00:00
misc.c 2008-01-15 Robert Millan <rmh@aybabtu.com> 2008-01-15 17:22:09 +00:00
mm.c Typo fixes in comments and variable names. 2007-12-30 08:52:06 +00:00
parser.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
partition.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
rescue.c 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org> 2007-09-03 20:28:24 +00:00
term.c 2007-12-25 Robert Millan <rmh@aybabtu.com> 2007-12-25 11:10:47 +00:00