about summary refs log tree commit diff stats
path: root/src/box64context.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-09-12 13:59:10 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-09-12 13:59:10 +0200
commit6141421f92aa8a552ae612524ac67f3fa8c7eee8 (patch)
treee9b3895eda1535f5849e5a84d8bcdb476a6db9e2 /src/box64context.c
parent911ecc4489593b28d87fec30e94500693d03457c (diff)
downloadbox64-6141421f92aa8a552ae612524ac67f3fa8c7eee8.tar.gz
box64-6141421f92aa8a552ae612524ac67f3fa8c7eee8.zip
[DYNAREC] some fixes to alternate handling and vsyscall support
Diffstat (limited to 'src/box64context.c')
-rwxr-xr-xsrc/box64context.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/box64context.c b/src/box64context.c
index eb2512b3..1558811e 100755
--- a/src/box64context.c
+++ b/src/box64context.c
@@ -169,9 +169,9 @@ box64context_t *NewBox64Context(int argc)
     context->vsyscalls[1] = AddVSyscall(context->system, 201);
     context->vsyscalls[2] = AddVSyscall(context->system, 309);
     // create the alternate to map at address
-    addAlternate((void*)context->vsyscalls[0], (void*)0xffffffffff600000);
-    addAlternate((void*)context->vsyscalls[1], (void*)0xffffffffff600400);
-    addAlternate((void*)context->vsyscalls[2], (void*)0xffffffffff600800);
+    addAlternate((void*)0xffffffffff600000, (void*)context->vsyscalls[0]);
+    addAlternate((void*)0xffffffffff600400, (void*)context->vsyscalls[1]);
+    addAlternate((void*)0xffffffffff600800, (void*)context->vsyscalls[2]);
     // get handle to box64 itself
     context->box64lib = dlopen(NULL, RTLD_NOW|RTLD_GLOBAL);
     context->dlprivate = NewDLPrivate();