Browse Source

Real-mode code might set the direction flag, which would cause carnage.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
013d381e3c
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/arch/i386/transitions/librm.S

+ 3
- 0
src/arch/i386/transitions/librm.S View File

472
 	call	*rc_function
472
 	call	*rc_function
473
 	pushal
473
 	pushal
474
 
474
 
475
+	/* For sanity's sake, clear the direction flag as soon as possible */
476
+	cld
477
+
475
 	/* Switch to protected mode and move register dump back to PM stack */
478
 	/* Switch to protected mode and move register dump back to PM stack */
476
 	movl	$RC_OFFSET_RETADDR, %ecx
479
 	movl	$RC_OFFSET_RETADDR, %ecx
477
 	pushl	$1f
480
 	pushl	$1f

Loading…
Cancel
Save