mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 17:49:23 +00:00
Second part of p2v support
This commit is contained in:
1 parent
368c17f85d
commit
4b2ec20b41
15 files changed
+361
-212
No files matched your search
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user