aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-06-28 08:09:04 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-06-28 08:09:04 +0000
commit610a270683cbeb62dafce25ed4cfb3414e52ca85 (patch)
tree9c60c186a6a833bc9b8f9307d8fd3baf0d214ca8
parent972cf95cd24e4a4015b2eee210f49497c186feb2 (diff)
downloadxen-610a270683cbeb62dafce25ed4cfb3414e52ca85.tar.gz
xen-610a270683cbeb62dafce25ed4cfb3414e52ca85.tar.bz2
xen-610a270683cbeb62dafce25ed4cfb3414e52ca85.zip
bitkeeper revision 1.1760.1.5 (42c105a0IGE_9KbvmOfox8TMahmQVw)
Only enable PGE in CR4 if the CPU supports the feature. Signed-off-by: Keir Fraser <keir@xensource.com>
-rw-r--r--xen/arch/x86/setup.c2
-rw-r--r--xen/arch/x86/x86_32/mm.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index 53690b8dbe..1fb131b2c8 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -87,7 +87,7 @@ struct cpuinfo_x86 boot_cpu_data = { 0, 0, 0, 0, -1, 1, 0, 0, -1 };
#if CONFIG_PAGING_LEVELS > 2
unsigned long mmu_cr4_features = X86_CR4_PSE | X86_CR4_PGE | X86_CR4_PAE;
#else
-unsigned long mmu_cr4_features = X86_CR4_PSE | X86_CR4_PGE;
+unsigned long mmu_cr4_features = X86_CR4_PSE;
#endif
EXPORT_SYMBOL(mmu_cr4_features);
diff --git a/xen/arch/x86/x86_32/mm.c b/xen/arch/x86/x86_32/mm.c
index b388c1cc49..691db03bdb 100644
--- a/xen/arch/x86/x86_32/mm.c
+++ b/xen/arch/x86/x86_32/mm.c
@@ -80,6 +80,7 @@ void __init paging_init(void)
if ( cpu_has_pge )
{
/* Suitable Xen mapping can be GLOBAL. */
+ set_in_cr4(X86_CR4_PGE);
PAGE_HYPERVISOR |= _PAGE_GLOBAL;
PAGE_HYPERVISOR_NOCACHE |= _PAGE_GLOBAL;
/* Transform early mappings (e.g., the frametable). */