about summary refs log tree commit diff stats
path: root/src/include/custommem.h
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-04-09 01:12:55 +0800
committerGitHub <noreply@github.com>2025-04-08 19:12:55 +0200
commitd592c1996d74e9e6e728026486cdab6a75f43aaa (patch)
tree935f142dff05d4640f2cd5865f8d63f8c3ca8cf9 /src/include/custommem.h
parent8b3d4404d77bcc806631e17038f046d409cb6b69 (diff)
downloadbox64-d592c1996d74e9e6e728026486cdab6a75f43aaa.tar.gz
box64-d592c1996d74e9e6e728026486cdab6a75f43aaa.zip
[WOW64] Add wow64 PE build scaffolding (#2513)
Diffstat (limited to 'src/include/custommem.h')
-rw-r--r--src/include/custommem.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h
index b17eff99..5e883570 100644
--- a/src/include/custommem.h
+++ b/src/include/custommem.h
@@ -138,13 +138,9 @@ int checkInHotPage(uintptr_t addr);
 #endif
 
 // this will simulate an x86_64 version of the function (no tracking will done, but tracking will be used)
-void* box_mmap(void *addr, unsigned long length, int prot, int flags, int fd, ssize_t offset);
+void* box_mmap(void* addr, size_t length, int prot, int flags, int fd, ssize_t offset);
 // this will simulate an x86_64 version of the function (no tracking will done)
-int box_munmap(void* addr, unsigned long length);
-// this will call the syscall directly
-void* internal_mmap(void *addr, unsigned long length, int prot, int flags, int fd, ssize_t offset);
-// this will call the syscall directly
-int internal_munmap(void* addr, unsigned long length);
+int box_munmap(void* addr, size_t length);
 
 void reserveHighMem();