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.

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