github.com/primecitizens/pcz/std@v0.2.1/core/debug/asm_s390x.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 && s390x
     9  
    10  #include "textflag.h"
    11  
    12  TEXT ·Breakpoint(SB),NOSPLIT|NOFRAME,$0-0
    13  	BRRK
    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(SB),NOSPLIT|NOFRAME,$0-8
    25  	MOVD 0(R15), R3 // LR saved by caller
    26  	MOVD R3, ret+0(FP)
    27  	RET