1 // Copyright 2022 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.
8 // System calls for loong64, Linux
11 // func rawVforkSyscall(trap, a1, a2 uintptr) (r1, err uintptr)
12 TEXT ·rawVforkSyscall(SB),NOSPLIT,$0-40
19 MOVV trap+0(FP), R11 // syscall entry
24 MOVV R12, r1+24(FP) // r1
26 MOVV R4, err+32(FP) // errno
29 MOVV R4, r1+24(FP) // r1
30 MOVV R0, err+32(FP) // errno
33 TEXT ·rawSyscallNoError(SB),NOSPLIT,$0-48
40 MOVV trap+0(FP), R11 // syscall entry
43 MOVV R0, r2+40(FP) // r2 is not used. Always set to 0.