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-Url: https://git.stricted.de/?a=commitdiff_plain;h=4039ae538030d1c5fc70a9c4e168a758d35b8159;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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 ec4e6a0e0c2e..fbc4fad23137 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