summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-06-19 12:14:37 +0000
committersimokawa <simokawa@FreeBSD.org>2003-06-19 12:14:37 +0000
commit8974dd1d7dc6b15b522bf4046c664f8524962c49 (patch)
treeba7914bedb09036135268d10f9593177e3718551 /sys
parent27abef6699af63ef0e0d5672786ea681a1022cf4 (diff)
downloadFreeBSD-src-8974dd1d7dc6b15b522bf4046c664f8524962c49.zip
FreeBSD-src-8974dd1d7dc6b15b522bf4046c664f8524962c49.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 93bd3ac..30cbbbd 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -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;
}
OpenPOWER on IntegriCloud