diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-04-02 18:45:04 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-04-02 18:45:04 +0200 |
| commit | b3a2031484465e26f71c9bee00ce5e2e9d6fc65a (patch) | |
| tree | 4134f14fb911f03a5abbb7850fbcd7a89b6388b6 /src/include | |
| parent | abf6e4856c62db53eba7b5a06e9a83d234cad8c8 (diff) | |
| download | box64-b3a2031484465e26f71c9bee00ce5e2e9d6fc65a.tar.gz box64-b3a2031484465e26f71c9bee00ce5e2e9d6fc65a.zip | |
[DYNAREC] Never protect bridge memory (ported from box86)
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h index e03db81c..5f9164f3 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -51,9 +51,10 @@ uintptr_t getJumpAddress64(uintptr_t addr); #define PROT_DYNAREC 0x80 #define PROT_DYNAREC_R 0x40 -#define PROT_MMAP 0x20 -#define PROT_DYN (PROT_DYNAREC | PROT_DYNAREC_R) -#define PROT_CUSTOM (PROT_DYNAREC | PROT_DYNAREC_R | PROT_MMAP) +#define PROT_NOPROT 0x20 +#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) void updateProtection(uintptr_t addr, size_t size, uint32_t prot); void setProtection(uintptr_t addr, size_t size, uint32_t prot); |