diff options
author | Yifan Lu | 2016-10-09 10:12:46 -0700 |
---|---|---|
committer | Yifan Lu | 2016-10-09 10:12:46 -0700 |
commit | 5848726e6ab91bfb685afb7f5c8f46d1526d6385 (patch) | |
tree | e8de8bad63a49db1c4d357174885c77fcd4039ce /lib/darwin | |
parent | Added slab allocator for trampoline in Vita platform (diff) | |
download | substitute-5848726e6ab91bfb685afb7f5c8f46d1526d6385.tar.gz |
Slab allocation mirroring for Vita
Diffstat (limited to 'lib/darwin')
-rw-r--r-- | lib/darwin/execmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/darwin/execmem.c b/lib/darwin/execmem.c index ce3bafd..44b26ae 100644 --- a/lib/darwin/execmem.c +++ b/lib/darwin/execmem.c @@ -74,13 +74,13 @@ int execmem_alloc_unsealed(uintptr_t hint, void **page_p, uintptr_t *vma_p, return SUBSTITUTE_OK; } -int execmem_seal(void *page, UNUSED uintptr_t vma, UNUSED void *opt) { +int execmem_seal(void *page, UNUSED void *opt) { if (mprotect(page, PAGE_SIZE, PROT_READ | PROT_EXEC)) return SUBSTITUTE_ERR_VM; return SUBSTITUTE_OK; } -void execmem_free(void *page, UNUSED uintptr_t vma, UNUSED void *opt) { +void execmem_free(void *page, UNUSED void *opt) { munmap(page, PAGE_SIZE); } |