summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/relocate_kernel_32.S
diff options
context:
space:
mode:
authorgorcunov@gmail.com <gorcunov@gmail.com>2008-03-23 00:00:06 +0300
committerIngo Molnar <mingo@elte.hu>2008-04-17 17:41:29 +0200
commit4039ae538030d1c5fc70a9c4e168a758d35b8159 (patch)
treee0337c119dd908a3cfba7f222c8c432ac3cd0e34 /arch/x86/kernel/relocate_kernel_32.S
parent15a601eb9cdc2a9cc69d5fc745317805a85c064c (diff)
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>
Diffstat (limited to 'arch/x86/kernel/relocate_kernel_32.S')
-rw-r--r--arch/x86/kernel/relocate_kernel_32.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/relocate_kernel_32.S b/arch/x86/kernel/relocate_kernel_32.S
index ec4e6a0e0c2..fbc4fad2313 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