diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c --- a/sys/arm64/arm64/pmap.c +++ b/sys/arm64/arm64/pmap.c @@ -2448,16 +2448,11 @@ * page management routines. ***************************************************/ -static const uint64_t pc_freemask[] = { PC_FREEN, PC_FREEN, -#if _NPCM > 3 - PC_FREEN, PC_FREEN, PC_FREEN, PC_FREEN, PC_FREEN, PC_FREEN, PC_FREEN, - PC_FREEN, -#endif - PC_FREEL +static const uint64_t pc_freemask[_NPCM] = { + [0 ... _NPCM - 2] = PC_FREEN, + [_NPCM - 1] = PC_FREEL }; -CTASSERT(nitems(pc_freemask) == _NPCM); - #ifdef PV_STATS static int pc_chunk_count, pc_chunk_allocs, pc_chunk_frees, pc_chunk_tryfail;