Second part of p2v support

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2010-04-21 19:13:45 +02:00
1 parent 368c17f85d
commit 4b2ec20b41
15 files changed
+361 -212

No files matched your search

+3 -1
View File
@@ -51,13 +51,15 @@ grub_err_t
grub_xnu_heap_malloc (int size, void **src, grub_addr_t *target)
{
grub_err_t err;
grub_relocator_chunk_t ch;
err = grub_relocator_alloc_chunk_addr (grub_xnu_relocator, src,
err = grub_relocator_alloc_chunk_addr (grub_xnu_relocator, &ch,
grub_xnu_heap_target_start
+ grub_xnu_heap_size, size);
if (err)
return err;
*src = get_virtual_current_address (ch);
*target = grub_xnu_heap_target_start + grub_xnu_heap_size;
grub_xnu_heap_size += size;
grub_dprintf ("xnu", "val=%p\n", *src);