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

  1. // Copyright 2015 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 mips64 mips64le
  6. // +build !gccgo
  7. #include "textflag.h"
  8. //
  9. // System calls for mips64, 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. JMP syscall·Syscall(SB)
  15. TEXT ·Syscall6(SB),NOSPLIT,$0-80
  16. JMP syscall·Syscall6(SB)
  17. TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
  18. JAL runtime·entersyscall(SB)
  19. MOVV a1+8(FP), R4
  20. MOVV a2+16(FP), R5
  21. MOVV a3+24(FP), R6
  22. MOVV R0, R7
  23. MOVV R0, R8
  24. MOVV R0, R9
  25. MOVV trap+0(FP), R2 // syscall entry
  26. SYSCALL
  27. MOVV R2, r1+32(FP)
  28. MOVV R3, r2+40(FP)
  29. JAL runtime·exitsyscall(SB)
  30. RET
  31. TEXT ·RawSyscall(SB),NOSPLIT,$0-56
  32. JMP syscall·RawSyscall(SB)
  33. TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
  34. JMP syscall·RawSyscall6(SB)
  35. TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
  36. MOVV a1+8(FP), R4
  37. MOVV a2+16(FP), R5
  38. MOVV a3+24(FP), R6
  39. MOVV R0, R7
  40. MOVV R0, R8
  41. MOVV R0, R9
  42. MOVV trap+0(FP), R2 // syscall entry
  43. SYSCALL
  44. MOVV R2, r1+32(FP)
  45. MOVV R3, r2+40(FP)
  46. RET