Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111877662
D48455.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
693 B
Referenced Files
None
Subscribers
None
D48455.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
@@ -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
Details
Attached
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)
Attached To
Mode
D48455: Refine comment about size of struct pmap_large_md_page.
Attached
Detach File
Event Timeline
Log In to Comment