grub/kern
robertmh deceb3ecd3 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.
2008-08-17 16:32:18 +00:00
..
efi 2008-07-17 Pavel Roskin <proski@gnu.org> 2008-07-18 01:11:33 +00:00
generic Urgh, and now actually add the files :-) 2008-08-05 12:26:29 +00:00
i386 2008-08-17 Robert Millan <rmh@aybabtu.com> 2008-08-17 16:32:18 +00:00
ieee1275 2008-08-14 Robert Millan <rmh@aybabtu.com> 2008-08-14 18:59:33 +00:00
powerpc 2008-04-18 Robert Millan <rmh@aybabtu.com> 2008-04-18 15:53:20 +00:00
sparc64 2008-08-05 Colin D Bennett <colin@gibibit.com> 2008-08-05 11:54:37 +00:00
x86_64 Typo fix 2008-07-18 03:47:33 +00:00
device.c 2008-08-11 Robert Millan <rmh@aybabtu.com> 2008-08-11 10:33:14 +00:00
disk.c 2008-08-08 Robert Millan <rmh@aybabtu.com> 2008-08-07 23:48:13 +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-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
err.c 2008-08-14 Felix Zielcke <fzielcke@z-51.de> 2008-08-14 18:46:47 +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-04 Pavel Roskin <proski@gnu.org> 2008-08-04 22:54:06 +00:00
misc.c 2008-08-14 Felix Zielcke <fzielcke@z-51.de> 2008-08-14 18:46:47 +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
time.c actually add kern/time.c 2008-08-05 12:38:12 +00:00