diff options
author | Yifan Lu | 2016-10-08 22:41:57 -0700 |
---|---|---|
committer | Yifan Lu | 2016-10-08 22:44:43 -0700 |
commit | abf235858588a5943cd9f532a5f1757e2baab80b (patch) | |
tree | 96640eefa1c3494f85cff520e49dc6c5c46d9905 /lib/darwin/execmem.c | |
parent | Added support for platform specific aux data to execmem (diff) | |
download | substitute-abf235858588a5943cd9f532a5f1757e2baab80b.tar.gz |
Added slab allocator for trampoline in Vita platform
Added support for smaller (non-page) allocations for trampoline
Diffstat (limited to '')
-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 44b26ae..ce3bafd 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 void *opt) { +int execmem_seal(void *page, UNUSED uintptr_t vma, 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 void *opt) { +void execmem_free(void *page, UNUSED uintptr_t vma, UNUSED void *opt) { munmap(page, PAGE_SIZE); } |