]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix arm64 asm vet issues
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 21 Apr 2015 23:15:05 +0000 (16:15 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 22 Apr 2015 02:30:11 +0000 (02:30 +0000)
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>
src/runtime/asm_arm64.s
src/runtime/os_darwin.go
src/runtime/sys_darwin_arm64.s

index d124f9b7b3359e8979075868017463b6f1b2b188..c43621a997573d2f8e2b19006ed25f51847a601f 100644 (file)
@@ -538,11 +538,11 @@ TEXT ·asmcgocall(SB),NOSPLIT,$0-16
        BL      asmcgocall<>(SB)
        RET
 
-TEXT ·asmcgocall_errno(SB),NOSPLIT,$0-24
+TEXT ·asmcgocall_errno(SB),NOSPLIT,$0-20
        MOVD    fn+0(FP), R1
        MOVD    arg+8(FP), R0
        BL      asmcgocall<>(SB)
-       MOVD    R0, ret+16(FP)
+       MOVW    R0, ret+16(FP)
        RET
 
 // asmcgocall common code. fn in R1, arg in R0. returns errno in R0.
index 573eb13531b04945c644c4b35c29d8532a8076ad..c432c99208b90e2b8f3f3a3a2855128376f6f44d 100644 (file)
@@ -33,5 +33,5 @@ func sigtramp()
 //go:noescape
 func setitimer(mode int32, new, old *itimerval)
 
-func raise(int32)
+func raise(sig int32)
 func raiseproc(int32)
index de040e3bb7bafd414f1c32c3e9c6e7ec7c8b6cf4..7aaf6b681bb1307cc85ef3800ba2dbced0b6fe4b 100644 (file)
@@ -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)