From a410098f288d090b2b971136636395e92a568e2f Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 8 Jun 2010 21:43:19 +0000 Subject: [PATCH] Only use PAE, if supported by the CPU. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37068 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_vm_translation_map.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/arch/x86/arch_vm_translation_map.cpp b/src/system/kernel/arch/x86/arch_vm_translation_map.cpp index 741b06c850..fff6230906 100644 --- a/src/system/kernel/arch/x86/arch_vm_translation_map.cpp +++ b/src/system/kernel/arch/x86/arch_vm_translation_map.cpp @@ -73,9 +73,10 @@ arch_vm_translation_map_init(kernel_args *args, #endif #if B_HAIKU_PHYSICAL_BITS == 64 - if (true /* TODO: If needed! */) + if (x86_check_feature(IA32_FEATURE_PAE, FEATURE_COMMON) + /* TODO: && if needed */) { gX86PagingMethod = new(&sPagingMethodBuffer) X86PagingMethodPAE; - else + } else #endif gX86PagingMethod = new(&sPagingMethodBuffer) X86PagingMethod32Bit;