about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorrajdakin <rajdakin@gmail.com>2021-04-13 11:38:33 +0200
committerrajdakin <rajdakin@gmail.com>2021-04-14 13:12:04 +0200
commit51fa96c44b4b307a6d512a7fe943fb75b4f681ac (patch)
treead1e801517ea5ca1fa494c23f20a1ffc328fdfe9 /src/include
parent48d61351061dcf1ee3148c67d208f20bdf22a3b8 (diff)
downloadbox64-51fa96c44b4b307a6d512a7fe943fb75b4f681ac.tar.gz
box64-51fa96c44b4b307a6d512a7fe943fb75b4f681ac.zip
Second pass
Diffstat (limited to 'src/include')
-rw-r--r--src/include/custommem.h18
-rwxr-xr-xsrc/include/debug.h1
2 files changed, 9 insertions, 10 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h
index bd687468..14a8248c 100644
--- a/src/include/custommem.h
+++ b/src/include/custommem.h
@@ -21,10 +21,10 @@ typedef struct dynablock_s dynablock_t;
 typedef struct dynablocklist_s dynablocklist_t;
 // custom protection flag to mark Page that are Write protected for Dynarec purpose
 uintptr_t AllocDynarecMap(dynablock_t* db, size_t size);
-void FreeDynarecMap(dynablock_t* db, uintptr_t addr, uint32_t size);
+void FreeDynarecMap(dynablock_t* db, uintptr_t addr, size_t size);
 
-void addDBFromAddressRange(uintptr_t addr, uintptr_t size);
-void cleanDBFromAddressRange(uintptr_t addr, uintptr_t size, int destroy);
+void addDBFromAddressRange(uintptr_t addr, size_t size);
+void cleanDBFromAddressRange(uintptr_t addr, size_t size, int destroy);
 
 dynablocklist_t* getDB(uintptr_t idx);
 void addJumpTableIfDefault64(void* addr, void* jmp);
@@ -38,14 +38,14 @@ uintptr_t getJumpTableAddress64(uintptr_t addr);
 #define PROT_ALLOC      0x40
 #define PROT_CUSTOM     (PROT_DYNAREC|PROT_ALLOC)
 
-void updateProtection(uintptr_t addr, uintptr_t size, uint32_t prot);
-void setProtection(uintptr_t addr, uintptr_t size, uint32_t prot);
-void freeProtection(uintptr_t addr, uintptr_t size);
+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);
 #ifdef DYNAREC
-void protectDB(uintptr_t addr, uintptr_t size);
-void protectDBnolock(uintptr_t addr, uintptr_t size);
-void unprotectDB(uintptr_t addr, uintptr_t size);
+void protectDB(uintptr_t addr, size_t size);
+void protectDBnolock(uintptr_t addr, size_t size);
+void unprotectDB(uintptr_t addr, size_t size);
 void lockDB();
 void unlockDB();
 #endif
diff --git a/src/include/debug.h b/src/include/debug.h
index b1ac8146..ddf1d8b7 100755
--- a/src/include/debug.h
+++ b/src/include/debug.h
@@ -11,7 +11,6 @@ extern int box64_pagesize;
 extern int box64_dynarec_dump;
 extern int box64_dynarec_trace;
 extern int box64_dynarec_forced;
-extern int box64_dynarec_largest;
 extern uintptr_t box64_nodynarec_start, box64_nodynarec_end;
 #endif
 extern int dlsym_error;    // log dlsym error