aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2023-12-29 21:31:53 +0100
committerLibravatar Rutger Broekhoff2023-12-29 21:31:53 +0100
commit404aeae4545d2426c089a5f8d5e82dae56f5212b (patch)
tree2d84e00af272b39fc04f3795ae06bc48970e57b5 /vendor/golang.org/x/sys/unix/asm_linux_mipsx.s
parent209d8b0187ed025dec9ac149ebcced3462877bff (diff)
downloadgitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.tar.gz
gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.zip
Make Nix builds work
Diffstat (limited to 'vendor/golang.org/x/sys/unix/asm_linux_mipsx.s')
-rw-r--r--vendor/golang.org/x/sys/unix/asm_linux_mipsx.s52
1 files changed, 52 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s b/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s
new file mode 100644
index 0000000..f08f628
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s
@@ -0,0 +1,52 @@
1// Copyright 2016 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//go:build linux && (mips || mipsle) && gc
6
7#include "textflag.h"
8
9//
10// System calls for mips, Linux
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-28
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-40
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-52
23 JMP syscall·Syscall9(SB)
24
25TEXT ·SyscallNoError(SB),NOSPLIT,$0-24
26 JAL runtime·entersyscall(SB)
27 MOVW a1+4(FP), R4
28 MOVW a2+8(FP), R5
29 MOVW a3+12(FP), R6
30 MOVW R0, R7
31 MOVW trap+0(FP), R2 // syscall entry
32 SYSCALL
33 MOVW R2, r1+16(FP) // r1
34 MOVW R3, r2+20(FP) // r2
35 JAL runtime·exitsyscall(SB)
36 RET
37
38TEXT ·RawSyscall(SB),NOSPLIT,$0-28
39 JMP syscall·RawSyscall(SB)
40
41TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
42 JMP syscall·RawSyscall6(SB)
43
44TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24
45 MOVW a1+4(FP), R4
46 MOVW a2+8(FP), R5
47 MOVW a3+12(FP), R6
48 MOVW trap+0(FP), R2 // syscall entry
49 SYSCALL
50 MOVW R2, r1+16(FP)
51 MOVW R3, r2+20(FP)
52 RET