Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142310012
D30832.id91143.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30832.id91143.diff
View Options
Index: sys/arm64/arm64/pmap.c
===================================================================
--- sys/arm64/arm64/pmap.c
+++ sys/arm64/arm64/pmap.c
@@ -3474,7 +3474,7 @@
va = va & ~L2_OFFSET;
pv = pmap_pvh_remove(&m->md, pmap, va);
KASSERT(pv != NULL, ("pmap_pv_promote_l2: pv not found"));
- pvh = pa_to_pvh(pa);
+ pvh = page_to_pvh(m);
TAILQ_INSERT_TAIL(&pvh->pv_list, pv, pv_next);
pvh->pv_gen++;
/* Free the remaining NPTEPG - 1 pv entries. */
@@ -3896,7 +3896,7 @@
if ((om->a.flags & PGA_WRITEABLE) != 0 &&
TAILQ_EMPTY(&om->md.pv_list) &&
((om->flags & PG_FICTITIOUS) != 0 ||
- TAILQ_EMPTY(&pa_to_pvh(opa)->pv_list)))
+ TAILQ_EMPTY(&page_to_pvh(om)->pv_list)))
vm_page_aflag_clear(om, PGA_WRITEABLE);
} else {
KASSERT((orig_l3 & ATTR_AF) != 0,
@@ -5000,7 +5000,7 @@
case 1:
pmap_resident_count_dec(pmap,
L2_SIZE / PAGE_SIZE);
- pvh = pa_to_pvh(tpte & ~ATTR_MASK);
+ pvh = page_to_pvh(m);
TAILQ_REMOVE(&pvh->pv_list, pv,pv_next);
pvh->pv_gen++;
if (TAILQ_EMPTY(&pvh->pv_list)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 10:48 AM (26 m, 9 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27741115
Default Alt Text
D30832.id91143.diff (1 KB)
Attached To
Mode
D30832: arm64: Use page_to_pvh() instead of pa_to_pvh() when the vm_page_t is known
Attached
Detach File
Event Timeline
Log In to Comment