ソースを参照

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

tags/v0.9.3
Michael Brown 17年前
コミット
013d381e3c
1個のファイルの変更3行の追加0行の削除
  1. 3
    0
      src/arch/i386/transitions/librm.S

+ 3
- 0
src/arch/i386/transitions/librm.S ファイルの表示

@@ -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

読み込み中…
キャンセル
保存