github.com/go-xe2/third@v1.0.3/golang.org/x/sys/unix/asm_linux_arm64.s (about) 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 5 // +build linux 6 // +build arm64 7 // +build !gccgo 8 9 #include "textflag.h" 10 11 // Just jump to package syscall's implementation for all these functions. 12 // The runtime may know about them. 13 14 TEXT ·Syscall(SB),NOSPLIT,$0-56 15 B syscall·Syscall(SB) 16 17 TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 B syscall·Syscall6(SB) 19 20 TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 21 BL runtime·entersyscall(SB) 22 MOVD a1+8(FP), R0 23 MOVD a2+16(FP), R1 24 MOVD a3+24(FP), R2 25 MOVD $0, R3 26 MOVD $0, R4 27 MOVD $0, R5 28 MOVD trap+0(FP), R8 // syscall entry 29 SVC 30 MOVD R0, r1+32(FP) // r1 31 MOVD R1, r2+40(FP) // r2 32 BL runtime·exitsyscall(SB) 33 RET 34 35 TEXT ·RawSyscall(SB),NOSPLIT,$0-56 36 B syscall·RawSyscall(SB) 37 38 TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 39 B syscall·RawSyscall6(SB) 40 41 TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 42 MOVD a1+8(FP), R0 43 MOVD a2+16(FP), R1 44 MOVD a3+24(FP), R2 45 MOVD $0, R3 46 MOVD $0, R4 47 MOVD $0, R5 48 MOVD trap+0(FP), R8 // syscall entry 49 SVC 50 MOVD R0, r1+32(FP) 51 MOVD R1, r2+40(FP) 52 RET