aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-01-11 11:18:23 -0800
committerIan Lance Taylor <iant@golang.org>2016-01-11 19:19:51 +0000
commit3dda43c6aa89d72f82e441b83a1d747900e1b12d (patch)
treecc3288609c54fe89274b412bc8c1dda5424043d4
parente13a082284bcc92aa4f585d4a9fe07aa2c3c7c11 (diff)
downloadgo-3dda43c6aa89d72f82e441b83a1d747900e1b12d.tar.gz
go-3dda43c6aa89d72f82e441b83a1d747900e1b12d.zip
runtime: fix ppc64le cgocallback code
Change-Id: I5a4a842cab2173357e8d3e349011c0c2b63be4f9 Reviewed-on: https://go-review.googlesource.com/18512 Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r--src/runtime/asm_ppc64x.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/asm_ppc64x.s b/src/runtime/asm_ppc64x.s
index 6d003b04e1..50c4f2623c 100644
--- a/src/runtime/asm_ppc64x.s
+++ b/src/runtime/asm_ppc64x.s
@@ -625,8 +625,8 @@ needm:
// and then systemstack will try to use it. If we don't set it here,
// that restored SP will be uninitialized (typically 0) and
// will not be usable.
- MOVD g_m(g), R3
- MOVD m_g0(R3), R3
+ MOVD g_m(g), R8
+ MOVD m_g0(R8), R3
MOVD R1, (g_sched+gobuf_sp)(R3)
havem: