From 56401f667525063eac16081d19395527d3403e60 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 1 Jul 2021 17:09:03 +0200 Subject: Improved low memory pre-allocation and added 47bits pre-allocation for Wine64 --- src/include/custommem.h | 3 +++ src/include/debug.h | 1 + 2 files changed, 4 insertions(+) (limited to 'src/include') 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 -- cgit 1.4.1