asm_linux_s390x.s 1.1 KB

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