Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102756299
D36502.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
630 B
Referenced Files
None
Subscribers
None
D36502.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D36502: arm64: Simplify initialization of pc_freemask.
Attached
Detach File
Event Timeline
Log In to Comment