Skip to content

Commit f6e9f91

Browse files
committed
Fixing Setting Linux Syscall Number
The syscall number is suppose to be set at x8, not x7.
1 parent 9b73823 commit f6e9f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

darling/src/libsystem_kernel/emulation/linux/linux-syscall.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ _linux_syscall:
7373
ret
7474

7575
#elif defined(__arm64__)
76-
mov x7, x6
76+
mov x8, x6
7777
svc #0
7878
ret
7979

0 commit comments

Comments
 (0)