1 // Copyright 2019 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 riscv64, Linux
11 // func rawVforkSyscall(trap, a1, a2 uintptr) (r1, err uintptr)
12 TEXT ·rawVforkSyscall(SB),NOSPLIT|NOFRAME,$0-40
19 MOV trap+0(FP), A7 // syscall entry
23 MOV A0, r1+24(FP) // r1
24 MOV ZERO, err+32(FP) // errno
28 MOV T0, r1+24(FP) // r1
30 MOV A0, err+32(FP) // errno
33 TEXT ·rawSyscallNoError(SB),NOSPLIT,$0-48
37 MOV trap+0(FP), A7 // syscall entry