asm_linux_ppc64x.s 921 B

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