Skip to content

Commit

Permalink
x86, boot: Simplify setting of the PAE bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Potashev authored and Ingo Molnar committed Oct 24, 2009
1 parent b1258ac commit 4868402
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/boot/compressed/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down

0 comments on commit 4868402

Please sign in to comment.