about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-01-24 14:58:18 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-01-24 14:58:18 +0100
commit0004f193251f9e2a3eec9866a1caaaca58fe0141 (patch)
treeb32684d34a9ce2d81f52b0db3c1a7a5f1b88d3bb /src
parentda724e3dd5f477efa6896ba94775322efe17a5b9 (diff)
downloadbox64-0004f193251f9e2a3eec9866a1caaaca58fe0141.tar.gz
box64-0004f193251f9e2a3eec9866a1caaaca58fe0141.zip
[MMAP32] 31bits address space is in fact 3GB address space (so 31.5 bits?)
Diffstat (limited to 'src')
-rw-r--r--src/custommem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c
index 6e83a6b6..03d02e24 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -1248,7 +1248,7 @@ void* find31bitBlockNearHint(void* hint, size_t size, uintptr_t mask)
     uintptr_t bend = 0;
     uintptr_t cur = (uintptr_t)hint;
     if(!mask) mask = 0xffff;
-    while(bend<0x80000000LL) {
+    while(bend<0xc0000000LL) {
         if(!rb_get_end(mapallmem, cur, &prot, &bend)) {
             if(bend-cur>=size)
                 return (void*)cur;