Skip to content

Commit

Permalink
x86_32: always run the full set of paging state.
Browse files Browse the repository at this point in the history
I am preparing to convert the boot time page table to the kernels
native format.  To achieve that I need to enable PAE. Enabling PSE
and the no execute bit would not hurt.  So this patch modifies
the boot cpu path to execute all of the kernels enable code
if and only if we have the proper bits set in mmu_cr4_features.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Mika Penttilä <mika.penttila@kolumbus.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Ian Campbell authored and Ingo Molnar committed Jan 30, 2008
1 parent 5035950 commit 5756dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ ENTRY(startup_32_smp)
movl %eax,%es
movl %eax,%fs
movl %eax,%gs
#endif /* CONFIG_SMP */
3:

/*
* New page tables may be in 4Mbyte page mode and may
Expand Down Expand Up @@ -267,8 +269,6 @@ ENTRY(startup_32_smp)
wrmsr

6:
#endif /* CONFIG_SMP */
3:

/*
* Enable paging
Expand Down

0 comments on commit 5756dd5

Please sign in to comment.