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_ppc64x.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_ppc64x.s')
| -rw-r--r-- | vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s b/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s new file mode 100644 index 0000000..bdfc024 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | // Copyright 2014 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 && (ppc64 || ppc64le) && gc | ||
| 6 | |||
| 7 | #include "textflag.h" | ||
| 8 | |||
| 9 | // | ||
| 10 | // System calls for ppc64, 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 ·SyscallNoError(SB),NOSPLIT,$0-48 | ||
| 17 | BL runtime·entersyscall(SB) | ||
| 18 | MOVD a1+8(FP), R3 | ||
| 19 | MOVD a2+16(FP), R4 | ||
| 20 | MOVD a3+24(FP), R5 | ||
| 21 | MOVD R0, R6 | ||
| 22 | MOVD R0, R7 | ||
| 23 | MOVD R0, R8 | ||
| 24 | MOVD trap+0(FP), R9 // syscall entry | ||
| 25 | SYSCALL R9 | ||
| 26 | MOVD R3, r1+32(FP) | ||
| 27 | MOVD R4, r2+40(FP) | ||
| 28 | BL runtime·exitsyscall(SB) | ||
| 29 | RET | ||
| 30 | |||
| 31 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 | ||
| 32 | MOVD a1+8(FP), R3 | ||
| 33 | MOVD a2+16(FP), R4 | ||
| 34 | MOVD a3+24(FP), R5 | ||
| 35 | MOVD R0, R6 | ||
| 36 | MOVD R0, R7 | ||
| 37 | MOVD R0, R8 | ||
| 38 | MOVD trap+0(FP), R9 // syscall entry | ||
| 39 | SYSCALL R9 | ||
| 40 | MOVD R3, r1+32(FP) | ||
| 41 | MOVD R4, r2+40(FP) | ||
| 42 | RET | ||