about summary refs log tree commit diff stats
path: root/src/include/custommem.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-07-01 17:09:03 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-07-01 17:09:03 +0200
commit56401f667525063eac16081d19395527d3403e60 (patch)
tree996b917a9d139eaa26e3d313fe3672a8abc6d010 /src/include/custommem.h
parent99ba7707f63d906f5e22a44ae2cbbc8dbd5e3f3e (diff)
downloadbox64-56401f667525063eac16081d19395527d3403e60.tar.gz
box64-56401f667525063eac16081d19395527d3403e60.zip
Improved low memory pre-allocation and added 47bits pre-allocation for Wine64
Diffstat (limited to 'src/include/custommem.h')
-rw-r--r--src/include/custommem.h3
1 files changed, 3 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();