asm_linux_arm.s 1.1 KB

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