Page MenuHomeFreeBSD

D36502.diff
No OneTemporary

D36502.diff

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
@@ -2515,16 +2515,11 @@
#define PC_FREEN 0xfffffffffffffffful
#define PC_FREEL ((1ul << (_NPCPV % 64)) - 1)
-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);
-
static __inline bool
pc_is_full(struct pv_chunk *pc)
{

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 5:44 PM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14682765
Default Alt Text
D36502.diff (630 B)

Event Timeline