From: gorcunov@gmail.com Date: Sat, 22 Mar 2008 21:00:06 +0000 (+0300) Subject: x86: relocate_kernel_32.S - clear register in more elegant way X-Git-Tag: v3.12-rc1~22029^2~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4039ae538030d1c5fc70a9c4e168a758d35b8159;p=kernel%2Fkernel-generic.git x86: relocate_kernel_32.S - clear register in more elegant way Signed-off-by: Cyrill Gorcunov Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/relocate_kernel_32.S b/arch/x86/kernel/relocate_kernel_32.S index ec4e6a0..fbc4fad 100644 --- a/arch/x86/kernel/relocate_kernel_32.S +++ b/arch/x86/kernel/relocate_kernel_32.S @@ -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