From: Vladimir Serbinenko Date: Sun, 21 Feb 2016 17:41:39 +0000 (+0100) Subject: coreboot memory before _start X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78e9b82d2ce0e175d12e4ba542f8ffed38d7fba7;p=thirdparty%2Fgrub.git coreboot memory before _start --- diff --git a/grub-core/kern/arm/coreboot/init.c b/grub-core/kern/arm/coreboot/init.c index 859bac335..4af2907e1 100644 --- a/grub-core/kern/arm/coreboot/init.c +++ b/grub-core/kern/arm/coreboot/init.c @@ -70,7 +70,14 @@ heap_init (grub_uint64_t addr, grub_uint64_t size, grub_memory_type_t type, return 0; if (modend && begin < modend) - begin = modend; + { + if (begin < (grub_addr_t)_start) + { + grub_mm_init_region ((void *) (grub_addr_t) begin, (grub_size_t) ((grub_addr_t)_start - begin)); + have_memory = 1; + } + begin = modend; + } if (end <= begin) return 0;