diff options
author | ru <ru@FreeBSD.org> | 2006-11-23 21:37:04 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-11-23 21:37:04 +0000 |
commit | 6b57c74ca818593703a3efe1febcc81e9c55cd94 (patch) | |
tree | 8ee6a8c0608cad388118d1b0b9ff2299bdb503d9 /sys/amd64 | |
parent | 02d4467a52b4fd3f779d3b517e1704fca560b414 (diff) | |
download | FreeBSD-src-6b57c74ca818593703a3efe1febcc81e9c55cd94.zip FreeBSD-src-6b57c74ca818593703a3efe1febcc81e9c55cd94.tar.gz |
Use a define instead of a "magic" value.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index a23184d..661c7bf 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -1612,7 +1612,7 @@ pv_to_chunk(pv_entry_t pv) #define PC_FREE1 0xfffffffffffffffful #define PC_FREE2 0x000000fffffffffful -static uint64_t pc_freemask[3] = { PC_FREE0, PC_FREE1, PC_FREE2 }; +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, "Current number of pv entries"); |