diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-12-21 15:32:17 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-12-21 15:32:17 +0100 |
| commit | 3e745474d3516891131d5efc1ec70486425a3b30 (patch) | |
| tree | 0ed75add40be05d5adfc2ae168ab3fa3ae4a4f60 /src/include | |
| parent | 5ad2f155c14faf25a5d54aafaf1c8bdc453d9c87 (diff) | |
| download | box64-3e745474d3516891131d5efc1ec70486425a3b30.tar.gz box64-3e745474d3516891131d5efc1ec70486425a3b30.zip | |
Improved memory tracking and 32bits memory allocation
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h index 13874592..e21f5514 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -136,7 +136,13 @@ int isInHotPage(uintptr_t addr); 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); +// 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); void reserveHighMem(); |