github.com/primecitizens/pcz/std@v0.2.1/core/debug/asm_mips64x.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 && (mips64 || mips64le) 9 10 #include "textflag.h" 11 12 TEXT ·Breakpoint(SB),NOSPLIT|NOFRAME,$0-0 13 MOVV R0, 2(R0) // TODO: TD 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, R1 22 RET 23 24 TEXT ·GetCallerPC(SB),NOSPLIT,$-8-8 25 MOVV 0(R29), R1 // LR saved by caller 26 MOVV R1, ret+0(FP) 27 RET