Text file src/runtime/internal/syscall/asm_linux_ppc64x.s

     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  	BVC	ok
    20  	MOVD	$-1, R4
    21  	MOVD	R4, r1+56(FP)
    22  	MOVD	R0, r2+64(FP)
    23  	MOVD	R3, errno+72(FP)
    24  	RET
    25  ok:
    26  	MOVD	R3, r1+56(FP)
    27  	MOVD	R4, r2+64(FP)
    28  	MOVD	R0, errno+72(FP)
    29  	RET
    30  

View as plain text