From: Joel Sing Date: Sun, 28 Apr 2019 08:02:36 +0000 (+1000) Subject: runtime: remove spurious register loads for openbsd/amd64 kqueue X-Git-Tag: go1.13beta1~517 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6b692300a136ab92bd16ccc6134a0f19f2cd63be;p=gostls13.git 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 --- 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)