From d1b860168c977fab6ef41b044a97594806fe4d82 Mon Sep 17 00:00:00 2001 From: Jay Vaughan Date: Thu, 29 May 2025 15:58:33 +0200 Subject: [PATCH] arm64: syscalls added to project --- turbo/syscall.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/turbo/syscall.lua b/turbo/syscall.lua index f7487bd..9694795 100755 --- a/turbo/syscall.lua +++ b/turbo/syscall.lua @@ -122,6 +122,22 @@ elseif ffi.arch == "arm" then SYS_clock_getres = 264, SYS_clock_nanosleep = 265 } +elseif ffi.arch == "arm64" then + cmds = { + SYS_stat = 80, + SYS_fstat = 80, -- Note: Same as stat on aarch64 (uses statx internally) + SYS_lstat = 80, -- Note: Same as stat on aarch64 (uses statx internally) + SYS_getdents = 61, + SYS_io_setup = 0, + SYS_io_destroy = 1, + SYS_io_getevents = 4, + SYS_io_submit = 2, + SYS_io_cancel = 3, + SYS_clock_settime = 112, + SYS_clock_gettime = 113, + SYS_clock_getres = 114, + SYS_clock_nanosleep = 115 + } elseif ffi.arch == "mipsel" or ffi.arch == "mips" then cmds = { SYS_stat = 4106,