Commit 87054c47 authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

runtime: fix more vet reported issues

Change-Id: Ie8dfdb592ee0bfc736d08c92c3d8413a37b6ac03
Reviewed-on: https://go-review.googlesource.com/9241Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 3a56aa0d
...@@ -686,11 +686,11 @@ TEXT ·asmcgocall(SB),NOSPLIT,$0-16 ...@@ -686,11 +686,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), R3 MOVD fn+0(FP), R3
MOVD arg+8(FP), R4 MOVD arg+8(FP), R4
BL asmcgocall<>(SB) BL asmcgocall<>(SB)
MOVD R3, ret+16(FP) MOVW R3, ret+16(FP)
RET RET
// asmcgocall common code. fn in R3, arg in R4. returns errno in R3. // asmcgocall common code. fn in R3, arg in R4. returns errno in R3.
......
...@@ -277,8 +277,8 @@ TEXT runtime·munmap(SB),NOSPLIT,$0 ...@@ -277,8 +277,8 @@ TEXT runtime·munmap(SB),NOSPLIT,$0
RET RET
TEXT runtime·sigaltstack(SB),NOSPLIT,$0 TEXT runtime·sigaltstack(SB),NOSPLIT,$0
MOVQ new+8(SP), DI MOVQ new+0(FP), DI
MOVQ old+16(SP), SI MOVQ old+8(FP), SI
MOVQ $(0x2000000+53), AX MOVQ $(0x2000000+53), AX
SYSCALL SYSCALL
JCC 2(PC) JCC 2(PC)
...@@ -308,9 +308,9 @@ TEXT runtime·bsdthread_create(SB),NOSPLIT,$0 ...@@ -308,9 +308,9 @@ TEXT runtime·bsdthread_create(SB),NOSPLIT,$0
// Set up arguments to bsdthread_create system call. // Set up arguments to bsdthread_create system call.
// The ones in quotes pass through to the thread callback // The ones in quotes pass through to the thread callback
// uninterpreted, so we can put whatever we want there. // uninterpreted, so we can put whatever we want there.
MOVQ fn+24(SP), DI MOVQ fn+16(FP), DI
MOVQ arg+16(SP), SI MOVQ arg+8(FP), SI
MOVQ stk+8(SP), DX MOVQ stk+0(FP), DX
MOVQ $0x01000000, R8 // flags = PTHREAD_START_CUSTOM MOVQ $0x01000000, R8 // flags = PTHREAD_START_CUSTOM
MOVQ $0, R9 // paranoia MOVQ $0, R9 // paranoia
MOVQ $0, R10 // paranoia, "pthread" MOVQ $0, R10 // paranoia, "pthread"
...@@ -318,10 +318,10 @@ TEXT runtime·bsdthread_create(SB),NOSPLIT,$0 ...@@ -318,10 +318,10 @@ TEXT runtime·bsdthread_create(SB),NOSPLIT,$0
SYSCALL SYSCALL
JCC 4(PC) JCC 4(PC)
NEGQ AX NEGQ AX
MOVL AX, ret+32(FP) MOVL AX, ret+24(FP)
RET RET
MOVL $0, AX MOVL $0, AX
MOVL AX, ret+32(FP) MOVL AX, ret+24(FP)
RET RET
// The thread that bsdthread_create creates starts executing here, // The thread that bsdthread_create creates starts executing here,
......
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