aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_darwin_arm64.s
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2015-04-21 16:15:05 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2015-04-22 02:30:11 +0000
commita76099f0d9699ee0017951a541197bdaa2c2d112 (patch)
treecc19e390aef11a04ee50536aeb39df39f69f377e /src/runtime/sys_darwin_arm64.s
parent15648d2e77fa8116edd51a13fb5233e8ce0e98b3 (diff)
downloadgo-a76099f0d9699ee0017951a541197bdaa2c2d112.tar.gz
go-a76099f0d9699ee0017951a541197bdaa2c2d112.zip
runtime: fix arm64 asm vet issues
Several naming changes and a real issue in asmcgocall_errno. Change-Id: Ieb0a328a168819fe233d74e0397358384d7e71b3 Reviewed-on: https://go-review.googlesource.com/9212 Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/runtime/sys_darwin_arm64.s')
-rw-r--r--src/runtime/sys_darwin_arm64.s14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/runtime/sys_darwin_arm64.s b/src/runtime/sys_darwin_arm64.s
index de040e3bb7..7aaf6b681b 100644
--- a/src/runtime/sys_darwin_arm64.s
+++ b/src/runtime/sys_darwin_arm64.s
@@ -81,7 +81,7 @@ TEXT runtime·read(SB),NOSPLIT,$0
RET
TEXT runtime·exit(SB),NOSPLIT,$-8
- MOVW n+0(FP), R0
+ MOVW code+0(FP), R0
MOVW $SYS_exit, R16
SVC $0x80
MOVD $1234, R0
@@ -419,14 +419,14 @@ TEXT runtime·kqueue(SB),NOSPLIT,$0
MOVW R0, ret+0(FP)
RET
-// int32 runtime·kevent(int kq, Kevent *changelist, int nchanges, Kevent *eventlist, int events, Timespec *timeout)
+// int32 runtime·kevent(int kq, Kevent *ch, int nch, Kevent *ev, int nev, Timespec *ts)
TEXT runtime·kevent(SB),NOSPLIT,$0
MOVW kq+0(FP), R0
- MOVD changelist+8(FP), R1
- MOVW nchanges+16(FP), R2
- MOVD eventlist+24(FP), R3
- MOVW nevents+32(FP), R4
- MOVD timeout+40(FP), R5
+ MOVD ch+8(FP), R1
+ MOVW nch+16(FP), R2
+ MOVD ev+24(FP), R3
+ MOVW nev+32(FP), R4
+ MOVD ts+40(FP), R5
MOVW $SYS_kevent, R16
SVC $0x80
BCC 2(PC)