]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
xnu: Include relocated EFI in heap size.
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 11 Feb 2016 11:30:45 +0000 (12:30 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 11 Feb 2016 11:30:45 +0000 (12:30 +0100)
grub-core/loader/i386/xnu.c

index 7962b0e1dc3fe3ade5412280dc02d4f90324f999..7b11c65f0ec6f8285d45f4abd7a266c024cadaf1 100644 (file)
@@ -1103,7 +1103,7 @@ grub_xnu_boot (void)
   bootparams_common->efi_mmap = memory_map_target;
   bootparams_common->efi_mmap_size = memory_map_size;
   bootparams_common->heap_start = grub_xnu_heap_target_start;
-  bootparams_common->heap_size = grub_xnu_heap_size;
+  bootparams_common->heap_size = curruntimepage * GRUB_XNU_PAGESIZE - grub_xnu_heap_target_start;
 
   /* Parameters for asm helper. */
   grub_xnu_stack = bootparams_common->heap_start