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:
/* 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment