aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2019-04-28 18:02:36 +1000
committerBenny Siegert <bsiegert@gmail.com>2019-04-28 18:20:42 +0000
commit6b692300a136ab92bd16ccc6134a0f19f2cd63be (patch)
treeef226aa3dbeed87d03cfbffa498cc4c87c501c84 /src
parent049c8dbfdbdd414359699c215f15764a7aa733b5 (diff)
downloadgo-6b692300a136ab92bd16ccc6134a0f19f2cd63be.tar.xz
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 <bsiegert@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/sys_openbsd_amd64.s3
1 files changed, 0 insertions, 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)