From 67286d8b3fee662a3d548144f71cfa2f30c5ef70 Mon Sep 17 00:00:00 2001 From: Thomas A Date: Sat, 6 Jun 2020 15:20:47 -0700 Subject: [PATCH] __darling_mach_syscall: Get rid of negative check for x86_64 This check might have made sense on i386, but x86_64 uses `rax` to hold the syscall number. --- src/kernel/emulation/linux/mach/darling_mach_syscall.S | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/kernel/emulation/linux/mach/darling_mach_syscall.S b/src/kernel/emulation/linux/mach/darling_mach_syscall.S index ca1a05fa1..0960c1ace 100644 --- a/src/kernel/emulation/linux/mach/darling_mach_syscall.S +++ b/src/kernel/emulation/linux/mach/darling_mach_syscall.S @@ -5,10 +5,6 @@ #if defined(__x86_64__) __darling_mach_syscall: - cmpl $0, %eax - jnl Lpositive - negl %eax -Lpositive: Lentry_hook: .space 13, 0x90 movq ___mach_syscall_table@GOTPCREL(%rip), %r10 -- 2.51.2