From 6b692300a136ab92bd16ccc6134a0f19f2cd63be Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sun, 28 Apr 2019 18:02:36 +1000 Subject: [PATCH] runtime: remove spurious register loads for openbsd/amd64 kqueue The kqueue system call takes no arguments, hence there should be no need to zero the registers used for the first syscall arguments. Change-Id: Ia79b2d4f4d568bb6795cb885e1464cf1fc2bf7c7 Reviewed-on: https://go-review.googlesource.com/c/go/+/174128 Run-TryBot: Benny Siegert TryBot-Result: Gobot Gobot Reviewed-by: Benny Siegert --- src/runtime/sys_openbsd_amd64.s | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/runtime/sys_openbsd_amd64.s b/src/runtime/sys_openbsd_amd64.s index 227e81869c..d5c030dd8d 100644 --- a/src/runtime/sys_openbsd_amd64.s +++ b/src/runtime/sys_openbsd_amd64.s @@ -348,9 +348,6 @@ TEXT runtime·sysctl(SB),NOSPLIT,$0 // int32 runtime·kqueue(void); TEXT runtime·kqueue(SB),NOSPLIT,$0 - MOVQ $0, DI - MOVQ $0, SI - MOVQ $0, DX MOVL $269, AX SYSCALL JCC 2(PC) -- 2.50.0