forked from Minki/linux
x86: relocate_kernel_32.S - clear register in more elegant way
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
15a601eb9c
commit
4039ae5380
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user