diff options
| author | Rutger Broekhoff | 2023-12-29 21:31:53 +0100 |
|---|---|---|
| committer | Rutger Broekhoff | 2023-12-29 21:31:53 +0100 |
| commit | 404aeae4545d2426c089a5f8d5e82dae56f5212b (patch) | |
| tree | 2d84e00af272b39fc04f3795ae06bc48970e57b5 /vendor/golang.org/x/sys/unix/asm_linux_mips64x.s | |
| parent | 209d8b0187ed025dec9ac149ebcced3462877bff (diff) | |
| download | gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.tar.gz gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.zip | |
Make Nix builds work
Diffstat (limited to 'vendor/golang.org/x/sys/unix/asm_linux_mips64x.s')
| -rw-r--r-- | vendor/golang.org/x/sys/unix/asm_linux_mips64x.s | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s b/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s new file mode 100644 index 0000000..f84bae7 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | // 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 | //go:build linux && (mips64 || mips64le) && gc | ||
| 6 | |||
| 7 | #include "textflag.h" | ||
| 8 | |||
| 9 | // | ||
| 10 | // System calls for mips64, Linux | ||
| 11 | // | ||
| 12 | |||
| 13 | // Just jump to package syscall's implementation for all these functions. | ||
| 14 | // The runtime may know about them. | ||
| 15 | |||
| 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 | ||
| 17 | JMP syscall·Syscall(SB) | ||
| 18 | |||
| 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 | ||
| 20 | JMP syscall·Syscall6(SB) | ||
| 21 | |||
| 22 | TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 | ||
| 23 | JAL runtime·entersyscall(SB) | ||
| 24 | MOVV a1+8(FP), R4 | ||
| 25 | MOVV a2+16(FP), R5 | ||
| 26 | MOVV a3+24(FP), R6 | ||
| 27 | MOVV R0, R7 | ||
| 28 | MOVV R0, R8 | ||
| 29 | MOVV R0, R9 | ||
| 30 | MOVV trap+0(FP), R2 // syscall entry | ||
| 31 | SYSCALL | ||
| 32 | MOVV R2, r1+32(FP) | ||
| 33 | MOVV R3, r2+40(FP) | ||
| 34 | JAL runtime·exitsyscall(SB) | ||
| 35 | RET | ||
| 36 | |||
| 37 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 | ||
| 38 | JMP syscall·RawSyscall(SB) | ||
| 39 | |||
| 40 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 | ||
| 41 | JMP syscall·RawSyscall6(SB) | ||
| 42 | |||
| 43 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 | ||
| 44 | MOVV a1+8(FP), R4 | ||
| 45 | MOVV a2+16(FP), R5 | ||
| 46 | MOVV a3+24(FP), R6 | ||
| 47 | MOVV R0, R7 | ||
| 48 | MOVV R0, R8 | ||
| 49 | MOVV R0, R9 | ||
| 50 | MOVV trap+0(FP), R2 // syscall entry | ||
| 51 | SYSCALL | ||
| 52 | MOVV R2, r1+32(FP) | ||
| 53 | MOVV R3, r2+40(FP) | ||
| 54 | RET | ||