* [PATCH] x86, boot: simplify setting of the PAE bit
@ 2009-10-23 23:37 Alexander Potashev
0 siblings, 0 replies; only message in thread
From: Alexander Potashev @ 2009-10-23 23:37 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: x86, LKML, Alexander Potashev
A single 'movl' is shorter than the 'xorl'-'orl' pair.
No behaviour change.
Signed-off-by: Alexander Potashev <aspotashev@gmail.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-23 23:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-23 23:37 [PATCH] x86, boot: simplify setting of the PAE bit Alexander Potashev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®