mirror of
https://github.com/golang/go
synced 2024-11-17 12:34:46 -07:00
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>
This commit is contained in:
parent
049c8dbfdb
commit
6b692300a1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user