1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:44:40 -07:00

runtime: reset DF flag after running external code on 386

R=r
CC=golang-dev
https://golang.org/cl/186108
This commit is contained in:
Russ Cox 2010-01-13 09:08:39 -08:00
parent 63d639295c
commit f85abf01bc

View File

@ -350,6 +350,10 @@ TEXT runcgo(SB),7,$16
MOVL CX, 4(SP)
MOVL BX, 0(SP)
CALL AX
// Back; switch to original stack, re-establish
// "DF is clear" invariant.
CLD
MOVL 4(SP), SP
RET