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 && (ppc64 || ppc64le)
10 // System calls for ppc64, Linux
13 // func rawVforkSyscall(trap, a1, a2, a3 uintptr) (r1, err uintptr)
14 TEXT ·rawVforkSyscall(SB),NOSPLIT|NOFRAME,$0-48
21 MOVD trap+0(FP), R9 // syscall entry
25 MOVD R4, r1+32(FP) // r1
26 MOVD R3, err+40(FP) // errno
29 MOVD R3, r1+32(FP) // r1
30 MOVD R0, err+40(FP) // errno
33 TEXT ·rawSyscallNoError(SB),NOSPLIT,$0-48
40 MOVD trap+0(FP), R9 // syscall entry