]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix ppc64le cgocallback code
authorIan Lance Taylor <iant@golang.org>
Mon, 11 Jan 2016 19:18:23 +0000 (11:18 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 11 Jan 2016 19:19:51 +0000 (19:19 +0000)
Change-Id: I5a4a842cab2173357e8d3e349011c0c2b63be4f9
Reviewed-on: https://go-review.googlesource.com/18512
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/asm_ppc64x.s

index 6d003b04e162888cebd59193456a52d662ce5194..50c4f2623c1fbeb65798476bba9dba1bc9ecfa73 100644 (file)
@@ -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: