Commit 3e9c7a8a authored by Russ Cox's avatar Russ Cox

runtime: fix windows/amd64 build after pc-relative 6l change

TBR=iant
CC=golang-codereviews
https://golang.org/cl/131900043
parent a6feaf3a
......@@ -228,7 +228,8 @@ TEXT runtime·callbackasm1(SB),NOSPLIT,$0
ADDQ $8, SP
// determine index into runtime·cbctxts table
SUBQ $runtime·callbackasm(SB), AX
MOVQ $runtime·callbackasm(SB), DX
SUBQ DX, AX
MOVQ $0, DX
MOVQ $5, CX // divide by 5 because each call instruction in runtime·callbacks is 5 bytes long
DIVL CX,
......
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