From dae803863978513a159b36822054126f042ff412 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 4 Sep 2014 01:58:31 -0400 Subject: [PATCH] runtime: fix nacl/amd64p32 build BP is not a legal register on nacl. TBR=iant CC=golang-codereviews https://golang.org/cl/140980043 --- src/pkg/runtime/asm_amd64p32.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/runtime/asm_amd64p32.s b/src/pkg/runtime/asm_amd64p32.s index 106a722fe2..512e923148 100644 --- a/src/pkg/runtime/asm_amd64p32.s +++ b/src/pkg/runtime/asm_amd64p32.s @@ -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. -- 2.48.1