* grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low

tables for low memory calculations.
This commit is contained in:
Vladimir Serbinenko 2014-02-28 09:50:47 +01:00
parent 4a70fed815
commit dfc5ccfa97
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
tables for low memory calculations.
2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit

View File

@ -31,8 +31,12 @@ lower_hook (grub_uint64_t addr, grub_uint64_t size, grub_memory_type_t type,
if (type != GRUB_MEMORY_AVAILABLE)
return 0;
#ifdef GRUB_MACHINE_COREBOOT
if (addr <= 0x1000)
#else
if (addr == 0)
*lower = size;
#endif
*lower = size + addr;
return 0;
}