mirror of https://github.com/golang/go.git
runtime: clean up unused function gosave on loong64
Change-Id: I28960a33d251a36e5e364fa6e27c5b2e13349f6b Reviewed-on: https://go-review.googlesource.com/c/go/+/409354 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: David Chase <drchase@google.com>
This commit is contained in:
parent
a6e5be0d30
commit
47e792e22e
|
|
@ -90,21 +90,6 @@ TEXT runtime·mstart(SB),NOSPLIT|TOPFRAME,$0
|
||||||
* go-routine
|
* go-routine
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// void gosave(Gobuf*)
|
|
||||||
// save state in Gobuf; setjmp
|
|
||||||
TEXT runtime·gosave(SB), NOSPLIT|NOFRAME, $0-8
|
|
||||||
MOVV buf+0(FP), R19
|
|
||||||
MOVV R3, gobuf_sp(R19)
|
|
||||||
MOVV R1, gobuf_pc(R19)
|
|
||||||
MOVV g, gobuf_g(R19)
|
|
||||||
MOVV R0, gobuf_lr(R19)
|
|
||||||
MOVV R0, gobuf_ret(R19)
|
|
||||||
// Assert ctxt is zero. See func save.
|
|
||||||
MOVV gobuf_ctxt(R19), R19
|
|
||||||
BEQ R19, 2(PC)
|
|
||||||
JAL runtime·badctxt(SB)
|
|
||||||
RET
|
|
||||||
|
|
||||||
// void gogo(Gobuf*)
|
// void gogo(Gobuf*)
|
||||||
// restore state from Gobuf; longjmp
|
// restore state from Gobuf; longjmp
|
||||||
TEXT runtime·gogo(SB), NOSPLIT|NOFRAME, $0-8
|
TEXT runtime·gogo(SB), NOSPLIT|NOFRAME, $0-8
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue