login
Header Space

 
 

[patch 1/4] x86: relocate_kernel_32.S - clear register in more elegant way

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <mingo@...>
Cc: <tglx@...>, <hpa@...>, <gorcunov@...>, <linux-kernel@...>
Date: Saturday, March 22, 2008 - 5:00 pm

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---

Index: linux-2.6.git/arch/x86/kernel/relocate_kernel_32.S
===================================================================
--- linux-2.6.git.orig/arch/x86/kernel/relocate_kernel_32.S	2008-03-22 20:58:02.000000000 +0300
+++ linux-2.6.git/arch/x86/kernel/relocate_kernel_32.S	2008-03-22 21:15:37.000000000 +0300
@@ -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

-- 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 1/4] x86: relocate_kernel_32.S - clear register in mo..., , (Sat Mar 22, 5:00 pm)
speck-geostationary