You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

asm_linux_s390x.s 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. //go:build linux && s390x && gc
  5. #include "textflag.h"
  6. //
  7. // System calls for s390x, Linux
  8. //
  9. // Just jump to package syscall's implementation for all these functions.
  10. // The runtime may know about them.
  11. TEXT ·Syscall(SB),NOSPLIT,$0-56
  12. BR syscall·Syscall(SB)
  13. TEXT ·Syscall6(SB),NOSPLIT,$0-80
  14. BR syscall·Syscall6(SB)
  15. TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
  16. BL runtime·entersyscall(SB)
  17. MOVD a1+8(FP), R2
  18. MOVD a2+16(FP), R3
  19. MOVD a3+24(FP), R4
  20. MOVD $0, R5
  21. MOVD $0, R6
  22. MOVD $0, R7
  23. MOVD trap+0(FP), R1 // syscall entry
  24. SYSCALL
  25. MOVD R2, r1+32(FP)
  26. MOVD R3, r2+40(FP)
  27. BL runtime·exitsyscall(SB)
  28. RET
  29. TEXT ·RawSyscall(SB),NOSPLIT,$0-56
  30. BR syscall·RawSyscall(SB)
  31. TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
  32. BR syscall·RawSyscall6(SB)
  33. TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
  34. MOVD a1+8(FP), R2
  35. MOVD a2+16(FP), R3
  36. MOVD a3+24(FP), R4
  37. MOVD $0, R5
  38. MOVD $0, R6
  39. MOVD $0, R7
  40. MOVD trap+0(FP), R1 // syscall entry
  41. SYSCALL
  42. MOVD R2, r1+32(FP)
  43. MOVD R3, r2+40(FP)
  44. RET