[PATCH] x86, boot: simplify setting of the PAE bit

From: Alexander Potashev
Date: Fri Oct 23 2009 - 19:39:38 EST


A single 'movl' is shorter than the 'xorl'-'orl' pair.
No behaviour change.

Signed-off-by: Alexander Potashev <aspotashev@xxxxxxxxx>
---
arch/x86/boot/compressed/head_64.S | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S
index 077e1b6..faff0dc 100644
--- a/arch/x86/boot/compressed/head_64.S
+++ b/arch/x86/boot/compressed/head_64.S
@@ -107,8 +107,7 @@ ENTRY(startup_32)
lgdt gdt(%ebp)

/* Enable PAE mode */
- xorl %eax, %eax
- orl $(X86_CR4_PAE), %eax
+ movl $(X86_CR4_PAE), %eax
movl %eax, %cr4

/*
--
1.6.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/