瀏覽代碼

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

Loading…
取消
儲存