github.com/primecitizens/pcz/std@v0.2.1/core/debug/asm_ppc64x.s (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  //
     4  // Copyright 2009 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  //go:build pcz && (ppc64 || ppc64le)
     9  
    10  #include "textflag.h"
    11  
    12  TEXT ·Breakpoint(SB),NOSPLIT|NOFRAME,$0-0
    13  	TW $31, R0, R0
    14  	RET
    15  
    16  TEXT ·Abort(SB),NOSPLIT|NOFRAME,$0-0
    17  	MOVW (R0), R0
    18  	UNDEF
    19  
    20  TEXT ·Return0(SB),NOSPLIT,$0
    21  	MOVW $0, R3
    22  	RET
    23  
    24  TEXT ·GetCallerPC<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-0
    25  	MOVD 0(R1), R3  // LR saved by caller
    26  	RET