[tip:branch?] x86, boot: Simplify setting of the PAE bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  4868402d9582bfb00a5f0157ae5d7ffd2d539fb0
Gitweb:     http://git.kernel.org/tip/4868402d9582bfb00a5f0157ae5d7ffd2d539fb0
Author:     Alexander Potashev <aspotashev@xxxxxxxxx>
AuthorDate: Sat, 24 Oct 2009 03:37:23 +0400
Committer:  Ingo Molnar <mingo@xxxxxxx>
CommitDate: Sat, 24 Oct 2009 11:06:38 +0200

x86, boot: Simplify setting of the PAE bit

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

Signed-off-by: Alexander Potashev <aspotashev@xxxxxxxxx>
LKML-Reference: <1256341043-4928-1-git-send-email-aspotashev@xxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
 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
 
  /*
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux