Fix direct map page table for 2GB+ physical memory.

You may still need to increase NKPT for larger memory.
I have successfully booted 8GB system with NKPT=256.
This commit is contained in:
Hidetoshi Shimokawa 2003-06-19 12:14:37 +00:00
parent c5455e6d6a
commit d25ac2fa68

View File

@ -404,7 +404,7 @@ create_pagetables(void)
/* Now set up the direct map space using 2MB pages */
for (i = 0; i < NPDEPG * ndmpdp; i++) {
((pd_entry_t *)DMPDphys)[i] = i << PDRSHIFT;
((pd_entry_t *)DMPDphys)[i] = (vm_paddr_t)i << PDRSHIFT;
((pd_entry_t *)DMPDphys)[i] |= PG_RW | PG_V | PG_PS;
}