Commit d89cd248 authored by Russ Cox's avatar Russ Cox

runtime: avoid $sym(SB) as constant

The change to pc-relative addressing will make this illegal.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews, r
https://golang.org/cl/129890043
parent afb6221b
......@@ -144,9 +144,11 @@ TEXT racecalladdr<>(SB), NOSPLIT, $0-0
CMPQ RARG1, runtime·racearenaend(SB)
JB racecalladdr_call
racecalladdr_data:
CMPQ RARG1, $noptrdata(SB)
MOVQ $noptrdata(SB), R13
CMPQ RARG1, R13
JB racecalladdr_ret
CMPQ RARG1, $enoptrbss(SB)
MOVQ $enoptrbss(SB), R13
CMPQ RARG1, R13
JAE racecalladdr_ret
racecalladdr_call:
MOVQ AX, AX // w/o this 6a miscompiles this function
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment