aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/i386
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-08-23 20:31:02 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-08-23 20:31:02 +0000
commite66390736613a452238531f64bb9f674ebd4c3a6 (patch)
tree9a01af382d8b4fc1179cc3d063b0cd10683b634a /sys/i386/i386
parent9488262679d083ff0de97ff608f6a8a95291b13d (diff)
downloadsrc-e66390736613a452238531f64bb9f674ebd4c3a6.tar.gz
src-e66390736613a452238531f64bb9f674ebd4c3a6.zip
Define _NPCM and the last PC_FREEn constant in terms of _NPCPV.
This applies one of the changes from 5567d6b4419b02a2099527228b1a51cc55a5b47d to other architectures besides arm64. Reviewed by: kib Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D36263
Diffstat (limited to 'sys/i386/i386')
-rw-r--r--sys/i386/i386/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index eaff33bafe84..70139b2f4e66 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -2301,7 +2301,7 @@ pv_to_chunk(pv_entry_t pv)
#define PV_PMAP(pv) (pv_to_chunk(pv)->pc_pmap)
#define PC_FREE0_9 0xfffffffful /* Free values for index 0 through 9 */
-#define PC_FREE10 0x0000fffful /* Free values for index 10 */
+#define PC_FREE10 ((1ul << (_NPCPV % 32)) - 1) /* Free values for index 10 */
static const uint32_t pc_freemask[_NPCM] = {
PC_FREE0_9, PC_FREE0_9, PC_FREE0_9,