Procházet zdrojové kódy

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

tags/v0.9.3
Michael Brown před 17 roky
rodič
revize
013d381e3c
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3
    0
      src/arch/i386/transitions/librm.S

+ 3
- 0
src/arch/i386/transitions/librm.S Zobrazit soubor

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

Načítá se…
Zrušit
Uložit