github.com/primecitizens/pcz/std@v0.2.1/core/debug/asm_riscv64.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 && riscv64
     9  
    10  #include "textflag.h"
    11  
    12  TEXT ·Breakpoint(SB),NOSPLIT|NOFRAME,$0-0
    13  	EBREAK
    14  	RET
    15  
    16  TEXT ·Abort(SB),NOSPLIT|NOFRAME,$0-0
    17  	EBREAK
    18  	RET
    19  
    20  TEXT ·Return0(SB),NOSPLIT,$0
    21  	MOV $0, A0
    22  	RET
    23  
    24  TEXT ·GetCallerPC<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-0
    25  	MOV 0(X2), X10 // LR saved by caller
    26  	RET