summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/asm_plan9_amd64.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/syscall/asm_plan9_amd64.s')
-rw-r--r--src/pkg/syscall/asm_plan9_amd64.s14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/pkg/syscall/asm_plan9_amd64.s b/src/pkg/syscall/asm_plan9_amd64.s
index 40cc12642..880bf7c6f 100644
--- a/src/pkg/syscall/asm_plan9_amd64.s
+++ b/src/pkg/syscall/asm_plan9_amd64.s
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+#include "../../cmd/ld/textflag.h"
+
//
// System call support for Plan 9
//
@@ -14,7 +16,7 @@
// Trap # in BP, args on stack above caller pc.
// NxM requires that Plan 9 system calls be
// marked with $0x8000 in AX.
-TEXT ·Syscall(SB),7,$0
+TEXT ·Syscall(SB),NOSPLIT,$0-64
CALL runtime·entersyscall(SB)
MOVQ $0x8000, AX // for NxM
MOVQ 8(SP), BP // syscall entry
@@ -50,7 +52,7 @@ copyresult3:
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0
+TEXT ·Syscall6(SB),NOSPLIT,$0-88
CALL runtime·entersyscall(SB)
MOVQ $0x8000, AX // for NxM
MOVQ 8(SP), BP // syscall entry
@@ -89,7 +91,7 @@ copyresult4:
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0
+TEXT ·RawSyscall(SB),NOSPLIT,$0-64
MOVQ $0x8000, AX // for NxM
MOVQ 8(SP), BP // syscall entry
// slide args down on top of system call number
@@ -105,7 +107,7 @@ TEXT ·RawSyscall(SB),7,$0
MOVQ AX, err+56(SP)
RET
-TEXT ·RawSyscall6(SB),7,$0
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
MOVQ $0x8000, AX // for NxM
MOVQ 8(SP), BP // syscall entry
// slide args down on top of system call number
@@ -127,7 +129,7 @@ TEXT ·RawSyscall6(SB),7,$0
#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),7,$0
+TEXT ·seek(SB),NOSPLIT,$0-64
LEAQ newoffset+40(SP), AX
MOVQ AX, placeholder+8(SP)
@@ -158,7 +160,7 @@ copyresult6:
//func exit(code int)
// Import runtime·exit for cleanly exiting.
-TEXT ·exit(SB),7,$8
+TEXT ·exit(SB),NOSPLIT,$8-4
MOVQ code+0(FP), AX
MOVQ AX, 0(SP)
CALL runtime·exit(SB)