Commit 6436df0d authored by Rémy Oudompheng's avatar Rémy Oudompheng

runtime: fix 386 assembly for syscall.naclWrite

It was using the wrong offset and returned random values
making "runoutput" compiler tests crash.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/76250043
parent 88f84b3e
...@@ -35,7 +35,7 @@ TEXT syscall·naclWrite(SB), NOSPLIT, $12-16 ...@@ -35,7 +35,7 @@ TEXT syscall·naclWrite(SB), NOSPLIT, $12-16
MOVL SI, 4(SP) MOVL SI, 4(SP)
MOVL DX, 8(SP) MOVL DX, 8(SP)
CALL runtime·write(SB) CALL runtime·write(SB)
MOVL AX, ret+12(FP) MOVL AX, ret+16(FP)
RET RET
TEXT runtime·write(SB),NOSPLIT,$0 TEXT runtime·write(SB),NOSPLIT,$0
......
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