Page MenuHomeFreeBSD

D48455.diff
No OneTemporary

D48455.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
@@ -1547,11 +1547,11 @@
int domain, i, j, pages;
/*
- * We strongly depend on the size being a power of two, so the assert
- * is overzealous. However, should the struct be resized to a
- * different power of two, the code below needs to be revisited.
+ * We depend on the size being evenly divisible into a page so
+ * that the pv_table array can be indexed directly while
+ * safely spanning multiple pages from different domains.
*/
- CTASSERT((sizeof(*pvd) == 64));
+ CTASSERT(PAGE_SIZE % sizeof(*pvd) == 0);
/*
* Calculate the size of the array.

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 10, 5:14 PM (12 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15812437
Default Alt Text
D48455.diff (693 B)

Event Timeline