浏览代码

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>
gorcunov@gmail.com 17 年之前
父节点
当前提交
4039ae5380
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      arch/x86/kernel/relocate_kernel_32.S

+ 1 - 2
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