Commit f85abf01 authored by Russ Cox's avatar Russ Cox

runtime: reset DF flag after running external code on 386

R=r
CC=golang-dev
https://golang.org/cl/186108
parent 63d63929
...@@ -350,6 +350,10 @@ TEXT runcgo(SB),7,$16 ...@@ -350,6 +350,10 @@ TEXT runcgo(SB),7,$16
MOVL CX, 4(SP) MOVL CX, 4(SP)
MOVL BX, 0(SP) MOVL BX, 0(SP)
CALL AX CALL AX
// Back; switch to original stack, re-establish
// "DF is clear" invariant.
CLD
MOVL 4(SP), SP MOVL 4(SP), SP
RET RET
......
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