diff options
author | Guoqi Chen <chenguoqi@loongson.cn> | 2022-05-30 18:44:57 +0800 |
---|---|---|
committer | David Chase <drchase@google.com> | 2022-06-28 16:41:48 +0000 |
commit | 47e792e22eb0dd85c0197e32c2791f252be7244d (patch) | |
tree | 4eeee1d972ce31028f6bae90f8ae99f1f40e5d93 | |
parent | a6e5be0d30770e8bd1ba1e4bac2089218df121d9 (diff) | |
download | go-47e792e22eb0dd85c0197e32c2791f252be7244d.tar.gz go-47e792e22eb0dd85c0197e32c2791f252be7244d.zip |
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>
-rw-r--r-- | src/runtime/asm_loong64.s | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/runtime/asm_loong64.s b/src/runtime/asm_loong64.s index 068e8e05b3..a6ccd196c9 100644 --- a/src/runtime/asm_loong64.s +++ b/src/runtime/asm_loong64.s @@ -90,21 +90,6 @@ TEXT runtime·mstart(SB),NOSPLIT|TOPFRAME,$0 * 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*) // restore state from Gobuf; longjmp TEXT runtime·gogo(SB), NOSPLIT|NOFRAME, $0-8 |