Skip to content

Commit

Permalink
x86: head_64.S cleanup - use straight move to CR4 register
Browse files Browse the repository at this point in the history
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Cyrill Gorcunov authored and Thomas Gleixner committed May 25, 2008
1 parent 2237ce2 commit 05139d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/x86/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ ENTRY(secondary_startup_64)
*/

/* Enable PAE mode and PGE */
xorq %rax, %rax
btsq $5, %rax
btsq $7, %rax
movl $(X86_CR4_PAE | X86_CR4_PGE), %eax
movq %rax, %cr4

/* Setup early boot stage 4 level pagetables. */
Expand Down

0 comments on commit 05139d8

Please sign in to comment.