about summary refs log tree commit diff stats
path: root/src/core.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-08-17 15:59:09 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-08-17 15:59:09 +0200
commitc845d0cf81a259e0d21be46841dc41a0f0ba5b0e (patch)
tree4c34964f41a1e28c1c833266463b55c4ff7c1a3c /src/core.c
parentd47b1b0e5679652e6b5fb5fd4cee52b775229a63 (diff)
downloadbox64-c845d0cf81a259e0d21be46841dc41a0f0ba5b0e.tar.gz
box64-c845d0cf81a259e0d21be46841dc41a0f0ba5b0e.zip
[BOX32] Added 32bits elf alloc and load
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index bfba08f8..eae05d67 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2087,8 +2087,10 @@ int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elf
     }
     #ifdef BOX32
     box64_is32bits = FileIsX86ELF(my_context->fullpath);
-    if(box64_is32bits)
+    if(box64_is32bits) {
         printf_log(LOG_INFO, "BOX64: Using Box32 to load 32bits elf\n");
+        reserveHighMem();
+    }
     #endif
     elfheader_t *elf_header = LoadAndCheckElfHeader(f, my_context->fullpath, 1);
     if(!elf_header) {