asm_linux_arm.s 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Copyright 2009 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 gc
  5. // +build gc
  6. #include "textflag.h"
  7. //
  8. // System calls for arm, Linux
  9. //
  10. // Just jump to package syscall's implementation for all these functions.
  11. // The runtime may know about them.
  12. TEXT ·Syscall(SB),NOSPLIT,$0-28
  13. B syscall·Syscall(SB)
  14. TEXT ·Syscall6(SB),NOSPLIT,$0-40
  15. B syscall·Syscall6(SB)
  16. TEXT ·SyscallNoError(SB),NOSPLIT,$0-24
  17. BL runtime·entersyscall(SB)
  18. MOVW trap+0(FP), R7
  19. MOVW a1+4(FP), R0
  20. MOVW a2+8(FP), R1
  21. MOVW a3+12(FP), R2
  22. MOVW $0, R3
  23. MOVW $0, R4
  24. MOVW $0, R5
  25. SWI $0
  26. MOVW R0, r1+16(FP)
  27. MOVW $0, R0
  28. MOVW R0, r2+20(FP)
  29. BL runtime·exitsyscall(SB)
  30. RET
  31. TEXT ·RawSyscall(SB),NOSPLIT,$0-28
  32. B syscall·RawSyscall(SB)
  33. TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
  34. B syscall·RawSyscall6(SB)
  35. TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24
  36. MOVW trap+0(FP), R7 // syscall entry
  37. MOVW a1+4(FP), R0
  38. MOVW a2+8(FP), R1
  39. MOVW a3+12(FP), R2
  40. SWI $0
  41. MOVW R0, r1+16(FP)
  42. MOVW $0, R0
  43. MOVW R0, r2+20(FP)
  44. RET
  45. TEXT ·seek(SB),NOSPLIT,$0-28
  46. B syscall·seek(SB)