提交 cae0e431 编写于 作者: A Arvind Sankar 提交者: Ard Biesheuvel

x86/boot: Clear direction and interrupt flags in startup_64

startup_32 already clears these flags on entry, do it in startup_64 as
well for consistency.

The direction flag in particular is not specified to be cleared in the
boot protocol documentation, and we currently call into C code
(paging_prepare) without explicitly clearing it.
Signed-off-by: NArvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200202171353.3736319-5-nivedita@alum.mit.eduSigned-off-by: NArd Biesheuvel <ardb@kernel.org>
上级 32d00913
无相关合并请求
...@@ -264,6 +264,9 @@ SYM_CODE_START(startup_64) ...@@ -264,6 +264,9 @@ SYM_CODE_START(startup_64)
* and command line. * and command line.
*/ */
cld
cli
/* Setup data segments. */ /* Setup data segments. */
xorl %eax, %eax xorl %eax, %eax
movl %eax, %ds movl %eax, %ds
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部