]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix nacl/amd64p32 build
authorRuss Cox <rsc@golang.org>
Thu, 4 Sep 2014 05:58:31 +0000 (01:58 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 4 Sep 2014 05:58:31 +0000 (01:58 -0400)
BP is not a legal register on nacl.

TBR=iant
CC=golang-codereviews
https://golang.org/cl/140980043

src/pkg/runtime/asm_amd64p32.s

index 106a722fe230606ba4af2b5bd29110688fa3a564..512e92314835f60ce594a187efe59f1520947b20 100644 (file)
@@ -185,8 +185,8 @@ TEXT runtime·onM(SB), NOSPLIT, $0-4
        CMPL    AX, DX
        JEQ     onm
 
-       MOVL    m_curg(BX), BP
-       CMPL    AX, BP
+       MOVL    m_curg(BX), R8
+       CMPL    AX, R8
        JEQ     oncurg
        
        // Not g0, not curg. Must be gsignal, but that's not allowed.