Enable handling of 1GB pages in the direct map since HEAD supports those.

Submitted by:	neel
This commit is contained in:
John Baldwin 2011-05-15 02:09:12 +00:00
parent 34a6b2d627
commit e22b232b0e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bhyve/; revision=221940

View File

@ -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;