1 // Copyright 2014 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.
5 //go:build linux && (mips64 || mips64le)
10 // System calls for mips64, Linux
13 // func rawVforkSyscall(trap, a1, a2 uintptr) (r1, err uintptr)
14 TEXT ·rawVforkSyscall(SB),NOSPLIT|NOFRAME,$0-40
21 MOVV trap+0(FP), R2 // syscall entry
25 MOVV R1, r1+24(FP) // r1
26 MOVV R2, err+32(FP) // errno
29 MOVV R2, r1+24(FP) // r1
30 MOVV R0, err+32(FP) // errno
33 TEXT ·rawSyscallNoError(SB),NOSPLIT,$0-48
40 MOVV trap+0(FP), R2 // syscall entry
41 MOVV R0, R3 // reset R3 to zero as 1-ret SYSCALL keeps it
43 MOVV R2, r1+32(FP) // r1
44 MOVV R3, r2+40(FP) // r2