github.com/primecitizens/pcz/std@v0.2.1/core/debug/asm_mipsx.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 && (mips || mipsle)
     9  
    10  #include "textflag.h"
    11  
    12  TEXT ·Breakpoint(SB),NOSPLIT,$0-0
    13  	BREAK
    14  	RET
    15  
    16  TEXT ·Abort(SB),NOSPLIT,$0-0
    17  	UNDEF
    18  
    19  TEXT ·Return0(SB),NOSPLIT,$0
    20  	MOVW $0, R1
    21  	RET
    22  
    23  TEXT ·GetCallerPC(SB),NOSPLIT,$-4-4
    24  	MOVW 0(R29), R1 // LR saved by caller
    25  	MOVW R1, ret+0(FP)
    26  	RET