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.

asm_linux_arm64.s 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 && arm64 && gc
  5. #include "textflag.h"
  6. // Just jump to package syscall's implementation for all these functions.
  7. // The runtime may know about them.
  8. TEXT ·Syscall(SB),NOSPLIT,$0-56
  9. B syscall·Syscall(SB)
  10. TEXT ·Syscall6(SB),NOSPLIT,$0-80
  11. B syscall·Syscall6(SB)
  12. TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
  13. BL runtime·entersyscall(SB)
  14. MOVD a1+8(FP), R0
  15. MOVD a2+16(FP), R1
  16. MOVD a3+24(FP), R2
  17. MOVD $0, R3
  18. MOVD $0, R4
  19. MOVD $0, R5
  20. MOVD trap+0(FP), R8 // syscall entry
  21. SVC
  22. MOVD R0, r1+32(FP) // r1
  23. MOVD R1, r2+40(FP) // r2
  24. BL runtime·exitsyscall(SB)
  25. RET
  26. TEXT ·RawSyscall(SB),NOSPLIT,$0-56
  27. B syscall·RawSyscall(SB)
  28. TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
  29. B syscall·RawSyscall6(SB)
  30. TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
  31. MOVD a1+8(FP), R0
  32. MOVD a2+16(FP), R1
  33. MOVD a3+24(FP), R2
  34. MOVD $0, R3
  35. MOVD $0, R4
  36. MOVD $0, R5
  37. MOVD trap+0(FP), R8 // syscall entry
  38. SVC
  39. MOVD R0, r1+32(FP)
  40. MOVD R1, r2+40(FP)
  41. RET