grub/conf
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
..
common.mk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
common.rmk 2008-08-14 Robert Millan <rmh@aybabtu.com> 2008-08-14 18:59:33 +00:00
i386-coreboot.mk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
i386-coreboot.rmk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
i386-efi.mk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
i386-efi.rmk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
i386-ieee1275.mk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
i386-ieee1275.rmk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
i386-pc-cygwin-img-ld.sc 2008-07-24 Bean <bean123ch@gmail.com> 2008-07-24 14:56:30 +00:00
i386-pc.mk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
i386-pc.rmk 2008-08-17 Robert Millan <rmh@aybabtu.com> 2008-08-17 16:32:18 +00:00
powerpc-ieee1275.mk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
powerpc-ieee1275.rmk 2008-08-14 Robert Millan <rmh@aybabtu.com> 2008-08-14 18:59:33 +00:00
sparc64-ieee1275.mk Urgh, and now actually add the files :-) 2008-08-05 12:26:29 +00:00
sparc64-ieee1275.rmk 2008-08-05 Colin D Bennett <colin@gibibit.com> 2008-08-05 11:54:37 +00:00
x86_64-efi.mk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00
x86_64-efi.rmk 2008-08-15 Bean <bean123ch@gmail.com> 2008-08-15 15:39:02 +00:00