diff options
Diffstat (limited to 'src/pkg/syscall/asm_plan9_amd64.s')
-rw-r--r-- | src/pkg/syscall/asm_plan9_amd64.s | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/pkg/syscall/asm_plan9_amd64.s b/src/pkg/syscall/asm_plan9_amd64.s index 880bf7c6f..2154a87d5 100644 --- a/src/pkg/syscall/asm_plan9_amd64.s +++ b/src/pkg/syscall/asm_plan9_amd64.s @@ -2,6 +2,9 @@ // 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 "../../cmd/ld/textflag.h" // @@ -91,7 +94,7 @@ copyresult4: CALL runtime·exitsyscall(SB) RET -TEXT ·RawSyscall(SB),NOSPLIT,$0-64 +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 MOVQ $0x8000, AX // for NxM MOVQ 8(SP), BP // syscall entry // slide args down on top of system call number @@ -107,7 +110,7 @@ TEXT ·RawSyscall(SB),NOSPLIT,$0-64 MOVQ AX, err+56(SP) RET -TEXT ·RawSyscall6(SB),NOSPLIT,$0-88 +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 MOVQ $0x8000, AX // for NxM MOVQ 8(SP), BP // syscall entry // slide args down on top of system call number @@ -129,7 +132,7 @@ TEXT ·RawSyscall6(SB),NOSPLIT,$0-88 #define SYS_SEEK 39 /* from zsysnum_plan9_amd64.go */ //func seek(placeholder uintptr, fd int, offset int64, whence int) (newoffset int64, err string) -TEXT ·seek(SB),NOSPLIT,$0-64 +TEXT ·seek(SB),NOSPLIT,$0-56 LEAQ newoffset+40(SP), AX MOVQ AX, placeholder+8(SP) @@ -160,7 +163,7 @@ copyresult6: //func exit(code int) // Import runtime·exit for cleanly exiting. -TEXT ·exit(SB),NOSPLIT,$8-4 +TEXT ·exit(SB),NOSPLIT,$8-8 MOVQ code+0(FP), AX MOVQ AX, 0(SP) CALL runtime·exit(SB) |