* [PATCH] x86_32: Always run the full set of paging state.
@ 2008-01-21 22:15 Ian Campbell
0 siblings, 0 replies; only message in thread
From: Ian Campbell @ 2008-01-21 22:15 UTC (permalink / raw)
To: linux-kernel
Cc: Ian Campbell, Eric W. Biederman, Thomas Gleixner, Ingo Molnar,
H. Peter Anvin, Andi Kleen, Mika Penttilä
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: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Mika Penttilä <mika.penttila@kolumbus.fi>
---
arch/x86/kernel/head_32.S | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S
index 7b9b256..a2b6331 100644
--- a/arch/x86/kernel/head_32.S
+++ b/arch/x86/kernel/head_32.S
@@ -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
@@ -267,8 +269,6 @@ ENTRY(startup_32_smp)
wrmsr
6:
-#endif /* CONFIG_SMP */
-3:
/*
* Enable paging
--
1.5.3.8
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-21 22:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-21 22:15 [PATCH] x86_32: Always run the full set of paging state Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®