diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-03-27 12:33:42 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-03-27 12:33:42 +0200 |
| commit | 35e35ec5db52c96e71f8ed207265941e8734d8a1 (patch) | |
| tree | 896633a09b219897d57abe30d160fc8b79429e91 /src/emu | |
| parent | de2b3afa17112423551c757d153df8c73d2e275e (diff) | |
| download | box64-35e35ec5db52c96e71f8ed207265941e8734d8a1.tar.gz box64-35e35ec5db52c96e71f8ed207265941e8734d8a1.zip | |
Added clone wrapped function and libgbm wrapped lib
Diffstat (limited to 'src/emu')
| -rwxr-xr-x | src/emu/x64syscall.c | 4 |
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; |