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.
 
 
 

57 lines
1.1 KiB

  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