diff options
author | alc <alc@FreeBSD.org> | 2012-03-22 04:40:22 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2012-03-22 04:40:22 +0000 |
commit | 1c754fb497b9c43672483c1ed5abe4f9176325cd (patch) | |
tree | 339fa7c16827b249384b26428bfd74af4b04d9b8 | |
parent | 3bf3d7b5eedff0761be1bdcf50dd8fdc4d0e8b0c (diff) | |
download | FreeBSD-src-1c754fb497b9c43672483c1ed5abe4f9176325cd.zip FreeBSD-src-1c754fb497b9c43672483c1ed5abe4f9176325cd.tar.gz |
Change pv_entry_count to a long. During the lifetime of FreeBSD 10.x,
physical memory sizes at the high-end will likely reach a point that
the number of pv entries could overflow an int.
Submitted by: kib
-rw-r--r-- | sys/amd64/amd64/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 6193198..91fd6f3 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -202,7 +202,7 @@ static u_int64_t DMPDPphys; /* phys addr of direct mapped level 3 */ /* * Data for the pv entry allocation mechanism */ -static int pv_entry_count; +static long pv_entry_count; static struct md_page *pv_table; /* @@ -2005,7 +2005,7 @@ pv_to_chunk(pv_entry_t pv) static uint64_t pc_freemask[_NPCM] = { PC_FREE0, PC_FREE1, PC_FREE2 }; -SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_count, CTLFLAG_RD, &pv_entry_count, 0, +SYSCTL_LONG(_vm_pmap, OID_AUTO, pv_entry_count, CTLFLAG_RD, &pv_entry_count, 0, "Current number of pv entries"); #ifdef PV_STATS |