diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-07-01 17:09:03 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-07-01 17:09:03 +0200 |
| commit | 56401f667525063eac16081d19395527d3403e60 (patch) | |
| tree | 996b917a9d139eaa26e3d313fe3672a8abc6d010 /src/include | |
| parent | 99ba7707f63d906f5e22a44ae2cbbc8dbd5e3f3e (diff) | |
| download | box64-56401f667525063eac16081d19395527d3403e60.tar.gz box64-56401f667525063eac16081d19395527d3403e60.zip | |
Improved low memory pre-allocation and added 47bits pre-allocation for Wine64
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 3 | ||||
| -rwxr-xr-x | src/include/debug.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h index 14a8248c..4e4ff6b4 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -42,6 +42,7 @@ void updateProtection(uintptr_t addr, size_t size, uint32_t prot); void setProtection(uintptr_t addr, size_t size, uint32_t prot); void freeProtection(uintptr_t addr, size_t size); uint32_t getProtection(uintptr_t addr); +void loadProtectionFromMap(); #ifdef DYNAREC void protectDB(uintptr_t addr, size_t size); void protectDBnolock(uintptr_t addr, size_t size); @@ -51,6 +52,8 @@ void unlockDB(); #endif void* find32bitBlock(size_t size); void* findBlockNearHint(void* hint, size_t size); +void* find47bitBlock(size_t size); +void* find47bitBlockNearHint(void* hint, size_t size); // unlock mutex that are locked by current thread (for signal handling). Return a mask of unlock mutex int unlockCustommemMutex(); diff --git a/src/include/debug.h b/src/include/debug.h index 1b6ae3c8..5341435f 100755 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -24,6 +24,7 @@ extern char* trace_func; #endif extern int allow_missing_libs; extern int box64_steam; +extern int box64_wine; extern int box64_nopulse; // disabling the use of wrapped pulseaudio extern int box64_nogtk; // disabling the use of wrapped gtk extern int box64_novulkan; // disabling the use of wrapped vulkan |