diff options
author | Cherry Zhang <cherryyz@google.com> | 2021-02-04 12:59:06 -0500 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2021-02-05 20:05:30 +0000 |
commit | 8fa84772ba035b74975572fbc9df0330523cc388 (patch) | |
tree | 2f269dd315f0f16e5e67d5ed8b01af666b98f0af /src/runtime/asm_mips64x.s | |
parent | 946351d5a27d7dc5550f579ddfec926790903fc5 (diff) | |
download | go-8fa84772ba035b74975572fbc9df0330523cc388.tar.gz go-8fa84772ba035b74975572fbc9df0330523cc388.zip |
[dev.regabi] runtime: delete gosave function
The runtime.gosave function is not used anywhere. Delete.
Note: there is also a gosave<> function, which is actually used
and not deleted.
Change-Id: I64149a7afdd217de26d1e6396233f2becfad7153
Reviewed-on: https://go-review.googlesource.com/c/go/+/289719
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/asm_mips64x.s')
-rw-r--r-- | src/runtime/asm_mips64x.s | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/runtime/asm_mips64x.s b/src/runtime/asm_mips64x.s index 19781f7885..054a89dc37 100644 --- a/src/runtime/asm_mips64x.s +++ b/src/runtime/asm_mips64x.s @@ -89,21 +89,6 @@ TEXT runtime·asminit(SB),NOSPLIT|NOFRAME,$0-0 * go-routine */ -// void gosave(Gobuf*) -// save state in Gobuf; setjmp -TEXT runtime·gosave(SB), NOSPLIT|NOFRAME, $0-8 - MOVV buf+0(FP), R1 - MOVV R29, gobuf_sp(R1) - MOVV R31, gobuf_pc(R1) - MOVV g, gobuf_g(R1) - MOVV R0, gobuf_lr(R1) - MOVV R0, gobuf_ret(R1) - // Assert ctxt is zero. See func save. - MOVV gobuf_ctxt(R1), R1 - BEQ R1, 2(PC) - JAL runtime·badctxt(SB) - RET - // void gogo(Gobuf*) // restore state from Gobuf; longjmp TEXT runtime·gogo(SB), NOSPLIT, $16-8 |