Skip to contentSkip to conversation

x86, boot: simplify setting of the PAE bit

PATCH New Alexander Potashev 1 participant 1 message Oct 23, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86, boot: simplify setting of the PAE bit

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

---
 arch/x86/boot/compressed/head_64.S |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/x86/boot/compressed/head_64.S +1 -2
index 077e1b6..faff0dc 100644
@@ -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
 
  /*
Signature · 1 line
1.6.5.1