]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86, boot: Simplify setting of the PAE bit
authorAlexander Potashev <aspotashev@gmail.com>
Fri, 23 Oct 2009 23:37:23 +0000 (03:37 +0400)
committerIngo Molnar <mingo@elte.hu>
Sat, 24 Oct 2009 09:06:38 +0000 (11:06 +0200)
A single 'movl' is shorter than the 'xorl'-'orl' pair.
No change in behaviour.

Signed-off-by: Alexander Potashev <aspotashev@gmail.com>
LKML-Reference: <1256341043-4928-1-git-send-email-aspotashev@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/boot/compressed/head_64.S

index 077e1b69198e75d2a14fe7cfe0ff8a421f8686a3..faff0dc9c06a2389a405cdcb3e089baf8c7ad285 100644 (file)
@@ -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
 
  /*