about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-03-01 23:42:02 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-03-01 23:42:02 +0100
commit23bbab10b4d119fb53f0649ee45674e978c43b91 (patch)
treeabe7ef61d370ab285111b8c1f1124d82acf1b7be /src
parent8b1f55aff0201549279684dc3f1d59f42a8fb0d4 (diff)
downloadbox64-23bbab10b4d119fb53f0649ee45674e978c43b91.tar.gz
box64-23bbab10b4d119fb53f0649ee45674e978c43b91.zip
One more syscall
Diffstat (limited to 'src')
-rwxr-xr-xsrc/emu/x64syscall.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/emu/x64syscall.c b/src/emu/x64syscall.c
index edcbfff4..ca60b4c9 100755
--- a/src/emu/x64syscall.c
+++ b/src/emu/x64syscall.c
@@ -139,7 +139,8 @@ scwrap_t syscallwrap[] = {
     { 125, __NR_capget, 2},
     { 126, __NR_capset, 2},
     { 127, __NR_rt_sigpending, 2},
-    //{ 131, __NR_sigaltstack, 2},  // wrapped to use my_sigaltstack
+    //{ 131, __NR_sigaltstack, 2},  // wrapped to use my_sigaltstack*
+    { 155, __NR_pivot_root, 2},
     { 157, __NR_prctl, 5 },     // needs wrapping?
     //{ 158, __NR_arch_prctl, 2},   //need wrapping
     { 186, __NR_gettid, 0 },    //0xBA
@@ -385,9 +386,9 @@ void EXPORT x64Syscall(x64emu_t *emu)
             }
             else
                 #ifdef NOALIGN
-                return syscall(__NR_clone, R_RSI, R_RDX, R_R10, R_R8, R_R9);
+                R_RAX = syscall(__NR_clone, R_RSI, R_RDX, R_R10, R_R8, R_R9);
                 #else
-                return syscall(__NR_clone, R_RSI, R_RDX, R_R10, R_R9, R_R8);    // invert R_R8/R_R9 on Aarch64 and most other
+                R_RAX = syscall(__NR_clone, R_RSI, R_RDX, R_R10, R_R9, R_R8);    // invert R_R8/R_R9 on Aarch64 and most other
                 #endif
             break;
         #ifndef __NR_fork