]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/custom/__syscall.s
xnu-4570.1.46.tar.gz
[apple/xnu.git] / libsyscall / custom / __syscall.s
index f00894425bff71771e4b775602a68dec7174c34d..81e49f11aceaeac9f8d122573545ea673854216b 100644 (file)
@@ -50,6 +50,24 @@ END(___syscall)
 // that value anyway.
 __SYSCALL(___syscall, syscall, 0);
 
+#elif defined(__arm__)
+
+__SYSCALL(___syscall, syscall, 7)
+
+#elif defined(__arm64__)
+
+/* 
+ * Ignore nominal number of arguments: just pop from stack and let the kernel 
+ * interpret.
+ */
+#include <mach/arm64/asm.h>
+MI_ENTRY_POINT(___syscall)
+               ldp x1, x2, [sp]
+               ldp x3, x4, [sp, #16]
+               ldp x5, x6, [sp, #32]
+               ldr x7, [sp, #48]
+               DO_SYSCALL(SYS_syscall, cerror)
+               ret
 #else
 #error Unsupported architecture
 #endif