From: David du Colombier <0intro@gmail.com> Date: Tue, 25 Oct 2016 22:07:27 +0000 (+0200) Subject: syscall: use name+(NN)FP on plan9/amd64 X-Git-Tag: go1.8beta1~627 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=263a825b0534a55916d472ba17feff7d1ed47569;p=gostls13.git syscall: use name+(NN)FP on plan9/amd64 Generated from go vet. Change-Id: Ie775c29b505166e0bd511826ef20eeb153a0424c Reviewed-on: https://go-review.googlesource.com/32071 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/syscall/asm_plan9_amd64.s b/src/syscall/asm_plan9_amd64.s index 19b4df200d..84050235e0 100644 --- a/src/syscall/asm_plan9_amd64.s +++ b/src/syscall/asm_plan9_amd64.s @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) -// so that go vet can check that they are correct. - #include "textflag.h" #include "funcdata.h" @@ -21,8 +18,8 @@ TEXT ·Syscall(SB),NOSPLIT,$0-64 CALL runtime·entersyscall(SB) MOVQ trap+0(FP), BP // syscall entry // slide args down on top of system call number - LEAQ 16(SP), SI - LEAQ 8(SP), DI + LEAQ a1+8(FP), SI + LEAQ trap+0(FP), DI CLD MOVSQ MOVSQ @@ -56,8 +53,8 @@ TEXT ·Syscall6(SB),NOSPLIT,$0-88 CALL runtime·entersyscall(SB) MOVQ trap+0(FP), BP // syscall entry // slide args down on top of system call number - LEAQ 16(SP), SI - LEAQ 8(SP), DI + LEAQ a1+8(FP), SI + LEAQ trap+0(FP), DI CLD MOVSQ MOVSQ @@ -93,8 +90,8 @@ copyresult4: TEXT ·RawSyscall(SB),NOSPLIT,$0-56 MOVQ trap+0(FP), BP // syscall entry // slide args down on top of system call number - LEAQ 16(SP), SI - LEAQ 8(SP), DI + LEAQ a1+8(FP), SI + LEAQ trap+0(FP), DI CLD MOVSQ MOVSQ @@ -108,8 +105,8 @@ TEXT ·RawSyscall(SB),NOSPLIT,$0-56 TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 MOVQ trap+0(FP), BP // syscall entry // slide args down on top of system call number - LEAQ 16(SP), SI - LEAQ 8(SP), DI + LEAQ a1+8(FP), SI + LEAQ trap+0(FP), DI CLD MOVSQ MOVSQ