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:
gorcunov@gmail.com 2008-03-23 00:00:06 +03:00 committed by Ingo Molnar
parent 15a601eb9c
commit 4039ae5380

View File

@ -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