From 71ab9fa312f8266379dbb358b9ee9303cde7bd6b Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Mon, 11 Jul 2016 16:05:57 -0700 Subject: all: fix assembly vet issues Add missing function prototypes. Fix function prototypes. Use FP references instead of SP references. Fix variable names. Update comments. Clean up whitespace. (Not for vet.) All fairly minor fixes to make vet happy. Updates #11041 Change-Id: Ifab2cdf235ff61cdc226ab1d84b8467b5ac9446c Reviewed-on: https://go-review.googlesource.com/27713 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/runtime/sys_linux_amd64.s | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/runtime/sys_linux_amd64.s') diff --git a/src/runtime/sys_linux_amd64.s b/src/runtime/sys_linux_amd64.s index 8a8f3cce8b..830441ed78 100644 --- a/src/runtime/sys_linux_amd64.s +++ b/src/runtime/sys_linux_amd64.s @@ -388,10 +388,10 @@ TEXT runtime·futex(SB),NOSPLIT,$0 MOVL AX, ret+40(FP) RET -// int32 clone(int32 flags, void *stack, M *mp, G *gp, void (*fn)(void)); +// int32 clone(int32 flags, void *stk, M *mp, G *gp, void (*fn)(void)); TEXT runtime·clone(SB),NOSPLIT,$0 MOVL flags+0(FP), DI - MOVQ stack+8(FP), SI + MOVQ stk+8(FP), SI MOVQ $0, DX MOVQ $0, R10 @@ -548,7 +548,7 @@ TEXT runtime·access(SB),NOSPLIT,$0 TEXT runtime·connect(SB),NOSPLIT,$0-28 MOVL fd+0(FP), DI MOVQ addr+8(FP), SI - MOVL addrlen+16(FP), DX + MOVL len+16(FP), DX MOVL $42, AX // syscall entry SYSCALL MOVL AX, ret+24(FP) @@ -557,8 +557,8 @@ TEXT runtime·connect(SB),NOSPLIT,$0-28 // int socket(int domain, int type, int protocol) TEXT runtime·socket(SB),NOSPLIT,$0-20 MOVL domain+0(FP), DI - MOVL type+4(FP), SI - MOVL protocol+8(FP), DX + MOVL typ+4(FP), SI + MOVL prot+8(FP), DX MOVL $41, AX // syscall entry SYSCALL MOVL AX, ret+16(FP) -- cgit v1.3-5-g9baa