aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/relocate_kernel_32.S
diff options
context:
space:
mode:
authorgorcunov@gmail.com <gorcunov@gmail.com>2008-03-22 17:00:06 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:29 -0400
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 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:
185 /* Set cr4 to a known state: 185 /* Set cr4 to a known state:
186 * Setting everything to zero seems safe. 186 * Setting everything to zero seems safe.
187 */ 187 */
188 movl %cr4, %eax 188 xorl %eax, %eax
189 andl $0, %eax
190 movl %eax, %cr4 189 movl %eax, %cr4
191 190
192 jmp 1f 191 jmp 1f