提交 4039ae53 编写于 作者: G gorcunov@gmail.com 提交者: Ingo Molnar

x86: relocate_kernel_32.S - clear register in more elegant way

Signed-off-by: NCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 15a601eb
......@@ -185,8 +185,7 @@ identity_mapped:
/* Set cr4 to a known state:
* Setting everything to zero seems safe.
*/
movl %cr4, %eax
andl $0, %eax
xorl %eax, %eax
movl %eax, %cr4
jmp 1f
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册