This commit is contained in:
Vladimir Serbinenko committed 2016-02-21 20:28:10 +01:00
1 parent dc491ff04a
commit 0b71582111
5 files changed
+27 -3

No files matched your search

+4
View File
@@ -38,6 +38,7 @@
extern grub_uint8_t _start[];
extern grub_uint8_t _end[];
extern grub_uint8_t _edata[];
grub_addr_t start_of_ram = ~(grub_addr_t)0;
void __attribute__ ((noreturn))
grub_exit (void)
@@ -66,6 +67,9 @@ heap_init (grub_uint64_t addr, grub_uint64_t size, grub_memory_type_t type,
end = GRUB_ULONG_MAX;
#endif
if (start_of_ram > begin)
start_of_ram = begin;
if (type != GRUB_MEMORY_AVAILABLE)
return 0;