diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/asm_linux_s390x.s')
| -rw-r--r-- | vendor/golang.org/x/sys/unix/asm_linux_s390x.s | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/asm_linux_s390x.s b/vendor/golang.org/x/sys/unix/asm_linux_s390x.s new file mode 100644 index 0000000..2c394b1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_s390x.s | |||
| @@ -0,0 +1,54 @@ | |||
| 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 && s390x && gc | ||
| 6 | |||
| 7 | #include "textflag.h" | ||
| 8 | |||
| 9 | // | ||
| 10 | // System calls for s390x, 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 | BR syscall·Syscall(SB) | ||
| 18 | |||
| 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 | ||
| 20 | BR syscall·Syscall6(SB) | ||
| 21 | |||
| 22 | TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 | ||
| 23 | BL runtime·entersyscall(SB) | ||
| 24 | MOVD a1+8(FP), R2 | ||
| 25 | MOVD a2+16(FP), R3 | ||
| 26 | MOVD a3+24(FP), R4 | ||
| 27 | MOVD $0, R5 | ||
| 28 | MOVD $0, R6 | ||
| 29 | MOVD $0, R7 | ||
| 30 | MOVD trap+0(FP), R1 // syscall entry | ||
| 31 | SYSCALL | ||
| 32 | MOVD R2, r1+32(FP) | ||
| 33 | MOVD R3, r2+40(FP) | ||
| 34 | BL runtime·exitsyscall(SB) | ||
| 35 | RET | ||
| 36 | |||
| 37 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 | ||
| 38 | BR syscall·RawSyscall(SB) | ||
| 39 | |||
| 40 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 | ||
| 41 | BR syscall·RawSyscall6(SB) | ||
| 42 | |||
| 43 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 | ||
| 44 | MOVD a1+8(FP), R2 | ||
| 45 | MOVD a2+16(FP), R3 | ||
| 46 | MOVD a3+24(FP), R4 | ||
| 47 | MOVD $0, R5 | ||
| 48 | MOVD $0, R6 | ||
| 49 | MOVD $0, R7 | ||
| 50 | MOVD trap+0(FP), R1 // syscall entry | ||
| 51 | SYSCALL | ||
| 52 | MOVD R2, r1+32(FP) | ||
| 53 | MOVD R3, r2+40(FP) | ||
| 54 | RET | ||