diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h index 551063d1..15f38596 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -34,9 +34,13 @@ uintptr_t getJumpTable64(); uintptr_t getJumpTableAddress64(uintptr_t addr); #endif -#define PROT_DYNAREC 0x80 +#define PROT_DYNAREC 0x80 +#define PROT_ALLOC 0x40 +#define PROT_CUSTOM (PROT_DYNAREC|PROT_ALLOC) + void updateProtection(uintptr_t addr, uintptr_t size, uint32_t prot); void setProtection(uintptr_t addr, uintptr_t size, uint32_t prot); +void freeProtection(uintptr_t addr, uintptr_t size); uint32_t getProtection(uintptr_t addr); #ifdef DYNAREC void protectDB(uintptr_t addr, uintptr_t size); @@ -45,9 +49,8 @@ void unprotectDB(uintptr_t addr, uintptr_t size); void lockDB(); void unlockDB(); #endif -#ifndef NOALIGN void* find32bitBlock(size_t size); -#endif +void* findBlockNearHint(void* hint, size_t size); void init_custommem_helper(box64context_t* ctx); |