diff options
| author | 2008-03-23 00:00:06 +0300 | |
|---|---|---|
| committer | 2008-04-17 17:41:29 +0200 | |
| commit | 4039ae538030d1c5fc70a9c4e168a758d35b8159 (patch) | |
| tree | e0337c119dd908a3cfba7f222c8c432ac3cd0e34 | |
| parent | x86: fix test_poke for vmalloced pages (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>
| -rw-r--r-- | arch/x86/kernel/relocate_kernel_32.S | 3 |
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 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 |
