USe more low memory on i386-qemu

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-05-02 16:27:22 +02:00
parent 92517362b2
commit 4fc5ff74f2

View file

@ -52,6 +52,11 @@ grub_machine_mmap_iterate (int NESTED_FUNC_ATTR (*hook) (grub_uint64_t, grub_uin
GRUB_MACHINE_MEMORY_AVAILABLE)) GRUB_MACHINE_MEMORY_AVAILABLE))
return 1; return 1;
if (hook ((grub_addr_t) _end,
0xa0000 - (grub_addr_t) _end,
GRUB_MACHINE_MEMORY_AVAILABLE))
return 1;
if (hook (GRUB_MEMORY_MACHINE_UPPER, if (hook (GRUB_MEMORY_MACHINE_UPPER,
0x100000 - GRUB_MEMORY_MACHINE_UPPER, 0x100000 - GRUB_MEMORY_MACHINE_UPPER,
GRUB_MACHINE_MEMORY_RESERVED)) GRUB_MACHINE_MEMORY_RESERVED))