about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-03-27 12:33:42 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-03-27 12:33:42 +0200
commit35e35ec5db52c96e71f8ed207265941e8734d8a1 (patch)
tree896633a09b219897d57abe30d160fc8b79429e91 /src/emu
parentde2b3afa17112423551c757d153df8c73d2e275e (diff)
downloadbox64-35e35ec5db52c96e71f8ed207265941e8734d8a1.tar.gz
box64-35e35ec5db52c96e71f8ed207265941e8734d8a1.zip
Added clone wrapped function and libgbm wrapped lib
Diffstat (limited to 'src/emu')
-rwxr-xr-xsrc/emu/x64syscall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/x64syscall.c b/src/emu/x64syscall.c
index c9fa59dc..1dfe94fe 100755
--- a/src/emu/x64syscall.c
+++ b/src/emu/x64syscall.c
@@ -163,6 +163,7 @@ scwrap_t syscallwrap[] = {
     { 254, __NR_inotify_add_watch, 3},
     { 255, __NR_inotify_rm_watch, 2},
     { 257, __NR_openat, 4},
+    { 272, __NR_unshare, 1},
     { 274, __NR_get_robust_list, 3},
     { 294, __NR_inotify_init1, 1},
     { 298, __NR_perf_event_open, 5},
@@ -258,9 +259,10 @@ typedef struct old_utsname_s {
 //	int  xss;
 //};
 
-int clone_fn(void* arg)
+static int clone_fn(void* arg)
 {
     x64emu_t *emu = (x64emu_t*)arg;
+    thread_set_emu(emu);
     R_RAX = 0;
     DynaRun(emu);
     int ret = R_EAX;