mirror of https://github.com/ipxe/ipxe.git
Real-mode code might set the direction flag, which would cause carnage.
parent
c94cdf2b7d
commit
013d381e3c
|
@ -472,6 +472,9 @@ real_call:
|
||||||
call *rc_function
|
call *rc_function
|
||||||
pushal
|
pushal
|
||||||
|
|
||||||
|
/* For sanity's sake, clear the direction flag as soon as possible */
|
||||||
|
cld
|
||||||
|
|
||||||
/* Switch to protected mode and move register dump back to PM stack */
|
/* Switch to protected mode and move register dump back to PM stack */
|
||||||
movl $RC_OFFSET_RETADDR, %ecx
|
movl $RC_OFFSET_RETADDR, %ecx
|
||||||
pushl $1f
|
pushl $1f
|
||||||
|
|
Loading…
Reference in New Issue