blob: ab9d63831a75af45f4d319bce59e7e0d1838a7eb [file] [log] [blame]
Don Newton98fd8812019-09-23 15:15:02 -04001// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build linux
6// +build mips64 mips64le
7// +build !gccgo
8
9#include "textflag.h"
10
11//
12// System calls for mips64, Linux
13//
14
15// Just jump to package syscall's implementation for all these functions.
16// The runtime may know about them.
17
18TEXT ·Syscall(SB),NOSPLIT,$0-56
19 JMP syscall·Syscall(SB)
20
21TEXT ·Syscall6(SB),NOSPLIT,$0-80
22 JMP syscall·Syscall6(SB)
23
24TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
25 JAL runtime·entersyscall(SB)
26 MOVV a1+8(FP), R4
27 MOVV a2+16(FP), R5
28 MOVV a3+24(FP), R6
29 MOVV R0, R7
30 MOVV R0, R8
31 MOVV R0, R9
32 MOVV trap+0(FP), R2 // syscall entry
33 SYSCALL
34 MOVV R2, r1+32(FP)
35 MOVV R3, r2+40(FP)
36 JAL runtime·exitsyscall(SB)
37 RET
38
39TEXT ·RawSyscall(SB),NOSPLIT,$0-56
40 JMP syscall·RawSyscall(SB)
41
42TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
43 JMP syscall·RawSyscall6(SB)
44
45TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
46 MOVV a1+8(FP), R4
47 MOVV a2+16(FP), R5
48 MOVV a3+24(FP), R6
49 MOVV R0, R7
50 MOVV R0, R8
51 MOVV R0, R9
52 MOVV trap+0(FP), R2 // syscall entry
53 SYSCALL
54 MOVV R2, r1+32(FP)
55 MOVV R3, r2+40(FP)
56 RET