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 regels
1.1 KiB

  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 ·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), R3
  20. MOVD a2+16(FP), R4
  21. MOVD a3+24(FP), R5
  22. MOVD R0, R6
  23. MOVD R0, R7
  24. MOVD R0, R8
  25. MOVD trap+0(FP), R9 // syscall entry
  26. SYSCALL R9
  27. MOVD R3, r1+32(FP)
  28. MOVD R4, 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), R3
  37. MOVD a2+16(FP), R4
  38. MOVD a3+24(FP), R5
  39. MOVD R0, R6
  40. MOVD R0, R7
  41. MOVD R0, R8
  42. MOVD trap+0(FP), R9 // syscall entry
  43. SYSCALL R9
  44. MOVD R3, r1+32(FP)
  45. MOVD R4, r2+40(FP)
  46. RET