X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/39236c6e673c41db228275375ab7fdb0f837b292..527f99514973766e9c0382a4d8550dfb00f54939:/libsyscall/custom/__syscall.s diff --git a/libsyscall/custom/__syscall.s b/libsyscall/custom/__syscall.s index f00894425..81e49f11a 100644 --- a/libsyscall/custom/__syscall.s +++ b/libsyscall/custom/__syscall.s @@ -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 +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