github.com/go-xe2/third@v1.0.3/golang.org/x/sys/unix/asm_linux_mipsx.s (about) 1 // Copyright 2016 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 mips mipsle 7 // +build !gccgo 8 9 #include "textflag.h" 10 11 // 12 // System calls for mips, Linux 13 // 14 15 // Just jump to package syscall's implementation for all these functions. 16 // The runtime may know about them. 17 18 TEXT ·Syscall(SB),NOSPLIT,$0-28 19 JMP syscall·Syscall(SB) 20 21 TEXT ·Syscall6(SB),NOSPLIT,$0-40 22 JMP syscall·Syscall6(SB) 23 24 TEXT ·Syscall9(SB),NOSPLIT,$0-52 25 JMP syscall·Syscall9(SB) 26 27 TEXT ·SyscallNoError(SB),NOSPLIT,$0-24 28 JAL runtime·entersyscall(SB) 29 MOVW a1+4(FP), R4 30 MOVW a2+8(FP), R5 31 MOVW a3+12(FP), R6 32 MOVW R0, R7 33 MOVW trap+0(FP), R2 // syscall entry 34 SYSCALL 35 MOVW R2, r1+16(FP) // r1 36 MOVW R3, r2+20(FP) // r2 37 JAL runtime·exitsyscall(SB) 38 RET 39 40 TEXT ·RawSyscall(SB),NOSPLIT,$0-28 41 JMP syscall·RawSyscall(SB) 42 43 TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 44 JMP syscall·RawSyscall6(SB) 45 46 TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24 47 MOVW a1+4(FP), R4 48 MOVW a2+8(FP), R5 49 MOVW a3+12(FP), R6 50 MOVW trap+0(FP), R2 // syscall entry 51 SYSCALL 52 MOVW R2, r1+16(FP) 53 MOVW R3, r2+20(FP) 54 RET