diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-10-01 08:38:57 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-10-01 08:38:57 +0200 |
| commit | 1c680d3aaa1aa6b018c7902d61616b2c1257e146 (patch) | |
| tree | 4d6aff4fa24de197346e099d6e67d6fc9481c344 /src/include | |
| parent | eed9ea35f9987f3e28ec87845c064a84f728b56f (diff) | |
| download | box64-1c680d3aaa1aa6b018c7902d61616b2c1257e146.tar.gz box64-1c680d3aaa1aa6b018c7902d61616b2c1257e146.zip | |
[DYNAREC] Changed lock mecanism for memory protection
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h index 13e73c4f..d3536ae3 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -56,6 +56,7 @@ uintptr_t getJumpAddress64(uintptr_t addr); #define PROT_MMAP 0x10 #define PROT_DYN (PROT_DYNAREC | PROT_DYNAREC_R | PROT_NOPROT) #define PROT_CUSTOM (PROT_DYNAREC | PROT_DYNAREC_R | PROT_MMAP | PROT_NOPROT) +#define PROT_WAIT 0xFF void updateProtection(uintptr_t addr, size_t size, uint32_t prot); void setProtection(uintptr_t addr, size_t size, uint32_t prot); |