Commit a76099f0 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

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/9212Reviewed-by: 's avatarMinux Ma <minux@golang.org>
parent 15648d2e
...@@ -538,11 +538,11 @@ TEXT ·asmcgocall(SB),NOSPLIT,$0-16 ...@@ -538,11 +538,11 @@ TEXT ·asmcgocall(SB),NOSPLIT,$0-16
BL asmcgocall<>(SB) BL asmcgocall<>(SB)
RET RET
TEXT ·asmcgocall_errno(SB),NOSPLIT,$0-24 TEXT ·asmcgocall_errno(SB),NOSPLIT,$0-20
MOVD fn+0(FP), R1 MOVD fn+0(FP), R1
MOVD arg+8(FP), R0 MOVD arg+8(FP), R0
BL asmcgocall<>(SB) BL asmcgocall<>(SB)
MOVD R0, ret+16(FP) MOVW R0, ret+16(FP)
RET RET
// asmcgocall common code. fn in R1, arg in R0. returns errno in R0. // asmcgocall common code. fn in R1, arg in R0. returns errno in R0.
......
...@@ -33,5 +33,5 @@ func sigtramp() ...@@ -33,5 +33,5 @@ func sigtramp()
//go:noescape //go:noescape
func setitimer(mode int32, new, old *itimerval) func setitimer(mode int32, new, old *itimerval)
func raise(int32) func raise(sig int32)
func raiseproc(int32) func raiseproc(int32)
...@@ -81,7 +81,7 @@ TEXT runtime·read(SB),NOSPLIT,$0 ...@@ -81,7 +81,7 @@ TEXT runtime·read(SB),NOSPLIT,$0
RET RET
TEXT runtime·exit(SB),NOSPLIT,$-8 TEXT runtime·exit(SB),NOSPLIT,$-8
MOVW n+0(FP), R0 MOVW code+0(FP), R0
MOVW $SYS_exit, R16 MOVW $SYS_exit, R16
SVC $0x80 SVC $0x80
MOVD $1234, R0 MOVD $1234, R0
...@@ -419,14 +419,14 @@ TEXT runtime·kqueue(SB),NOSPLIT,$0 ...@@ -419,14 +419,14 @@ TEXT runtime·kqueue(SB),NOSPLIT,$0
MOVW R0, ret+0(FP) MOVW R0, ret+0(FP)
RET 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 TEXT runtime·kevent(SB),NOSPLIT,$0
MOVW kq+0(FP), R0 MOVW kq+0(FP), R0
MOVD changelist+8(FP), R1 MOVD ch+8(FP), R1
MOVW nchanges+16(FP), R2 MOVW nch+16(FP), R2
MOVD eventlist+24(FP), R3 MOVD ev+24(FP), R3
MOVW nevents+32(FP), R4 MOVW nev+32(FP), R4
MOVD timeout+40(FP), R5 MOVD ts+40(FP), R5
MOVW $SYS_kevent, R16 MOVW $SYS_kevent, R16
SVC $0x80 SVC $0x80
BCC 2(PC) BCC 2(PC)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment