github.com/mtsmfm/go/src@v0.0.0-20221020090648-44bdcb9f8fde/runtime/internal/syscall/asm_linux_ppc64x.s (about) 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. 4 5 //go:build linux && (ppc64 || ppc64le) 6 7 #include "textflag.h" 8 9 // func Syscall6(num, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, errno uintptr) 10 TEXT ·Syscall6(SB),NOSPLIT,$0-80 11 MOVD num+0(FP), R9 // syscall entry 12 MOVD a1+8(FP), R3 13 MOVD a2+16(FP), R4 14 MOVD a3+24(FP), R5 15 MOVD a4+32(FP), R6 16 MOVD a5+40(FP), R7 17 MOVD a6+48(FP), R8 18 SYSCALL R9 19 MOVD R0, r2+64(FP) // r2 is not used. Always set to 0. 20 BVC ok 21 MOVD $-1, R4 22 MOVD R4, r1+56(FP) 23 MOVD R3, errno+72(FP) 24 RET 25 ok: 26 MOVD R3, r1+56(FP) 27 MOVD R0, errno+72(FP) 28 RET