diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-02-01 16:41:16 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-02-01 16:42:16 +0100 |
| commit | 1344b1837909da6d91153cf686557a4a10bcb468 (patch) | |
| tree | 4094e4397b3b0c3d7170687ed2f9dd69bba5f5c5 /src/include | |
| parent | 1deec05f3dfaa93b034d0bb7cf00b0f9d73d4016 (diff) | |
| download | box64-1344b1837909da6d91153cf686557a4a10bcb468.tar.gz box64-1344b1837909da6d91153cf686557a4a10bcb468.zip | |
[DYNAREC] Handling of memfd_create backed mmap on dynarec (help #1234 but doesn't solve it completly)
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h index aa0e7f4d..71ed1b0c 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -70,11 +70,13 @@ uintptr_t getJumpAddress64(uintptr_t addr); #endif //SAVE_MEM #endif +#define PROT_NEVERCLEAN 0x100 #define PROT_DYNAREC 0x80 #define PROT_DYNAREC_R 0x40 #define PROT_NOPROT 0x20 -#define PROT_DYN (PROT_DYNAREC | PROT_DYNAREC_R | PROT_NOPROT) -#define PROT_CUSTOM (PROT_DYNAREC | PROT_DYNAREC_R | PROT_NOPROT) +#define PROT_DYN (PROT_DYNAREC | PROT_DYNAREC_R | PROT_NOPROT | PROT_NEVERCLEAN) +#define PROT_CUSTOM (PROT_DYNAREC | PROT_DYNAREC_R | PROT_NOPROT | PROT_NEVERCLEAN) +#define PROT_NEVERPROT (PROT_NOPROT | PROT_NEVERCLEAN) #define PROT_WAIT 0xFF void updateProtection(uintptr_t addr, size_t size, uint32_t prot); |