]>
git.saurik.com Git - apple/xnu.git/blob - tests/vm_set_max_addr_helper.c
5ea7818b14c8fc6d9a3a2930fca5dacec91a41c1
1 #include <mach/mach_init.h>
2 #include <mach/mach_vm.h>
9 mach_vm_address_t addr
= 50ULL * 1024ULL * 1024ULL * 1024ULL;
11 kr
= mach_vm_allocate(current_task(), &addr
, 4096, VM_FLAGS_FIXED
);
13 if (kr
== KERN_SUCCESS
) {