Commit 4039ae53 authored by gorcunov@gmail.com's avatar gorcunov@gmail.com Committed by Ingo Molnar

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

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 15a601eb
...@@ -185,8 +185,7 @@ identity_mapped: ...@@ -185,8 +185,7 @@ identity_mapped:
/* Set cr4 to a known state: /* Set cr4 to a known state:
* Setting everything to zero seems safe. * Setting everything to zero seems safe.
*/ */
movl %cr4, %eax xorl %eax, %eax
andl $0, %eax
movl %eax, %cr4 movl %eax, %cr4
jmp 1f jmp 1f
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment