From e22b232b0e0612cd959a53bd25e4885d4c66fea3 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Sun, 15 May 2011 02:09:12 +0000 Subject: [PATCH] Enable handling of 1GB pages in the direct map since HEAD supports those. Submitted by: neel --- sys/amd64/vmm/vmm_mem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/amd64/vmm/vmm_mem.c b/sys/amd64/vmm/vmm_mem.c index 9ce1e800f32..764a6e901e4 100644 --- a/sys/amd64/vmm/vmm_mem.c +++ b/sys/amd64/vmm/vmm_mem.c @@ -168,8 +168,7 @@ vmm_mem_direct_map(vm_paddr_t start, vm_paddr_t end) if (end >= NBPML4) panic("Cannot map memory beyond %ldGB", NBPML4 / GB); - /* XXX FreeBSD 8.1 does not use 1G superpages in the direct map */ - if (0 && vmm_supports_1G_pages()) + if (vmm_supports_1G_pages()) superpage_size = NBPDP; else superpage_size = NBPDR;