diff options
author | Pwn20wnd <pwn20wndstuff@gmail.com> | 2019-03-09 23:30:26 +0300 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-03-20 23:27:12 -1000 |
commit | 7bca6ad19e54e2edc4ec9cfa10da20a26e294334 (patch) | |
tree | 9805a17e7d5ecdedc2aeb0a0328c6b2df1b26828 /kernel_call/mach_vm.h | |
parent | 4abbd1f554d3f1a185fd7079ee84944f1b0a355b (diff) |
Merge pwn's changes to support arm64e via rebase
Diffstat (limited to 'kernel_call/mach_vm.h')
-rwxr-xr-x | kernel_call/mach_vm.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/kernel_call/mach_vm.h b/kernel_call/mach_vm.h new file mode 100755 index 0000000..93263f0 --- /dev/null +++ b/kernel_call/mach_vm.h @@ -0,0 +1,46 @@ +/* + * mach_vm.h + * Brandon Azad + */ +#ifndef VOUCHER_SWAP__MACH_VM_H_ +#define VOUCHER_SWAP__MACH_VM_H_ + +#include <mach/mach.h> + +extern +kern_return_t mach_vm_allocate +( + vm_map_t target, + mach_vm_address_t *address, + mach_vm_size_t size, + int flags +); + +extern +kern_return_t mach_vm_deallocate +( + vm_map_t target, + mach_vm_address_t address, + mach_vm_size_t size +); + +extern +kern_return_t mach_vm_write +( + vm_map_t target_task, + mach_vm_address_t address, + vm_offset_t data, + mach_msg_type_number_t dataCnt +); + +extern +kern_return_t mach_vm_read_overwrite +( + vm_map_t target_task, + mach_vm_address_t address, + mach_vm_size_t size, + mach_vm_address_t data, + mach_vm_size_t *outsize +); + +#endif |