Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136954190
D18562.id52022.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
916 B
Referenced Files
None
Subscribers
None
D18562.id52022.diff
View Options
Index: sys/riscv/riscv/pmap.c
===================================================================
--- sys/riscv/riscv/pmap.c
+++ sys/riscv/riscv/pmap.c
@@ -2806,9 +2806,10 @@
l3 = pmap_l2_to_l3(l2, pv->pv_va);
tl3 = pmap_load(l3);
-/*
- * We cannot remove wired pages from a process' mapping at this time
- */
+ /*
+ * We cannot remove wired pages from a
+ * process' mapping at this time.
+ */
if (tl3 & PTE_SW_WIRED) {
allfree = 0;
continue;
@@ -2827,7 +2828,6 @@
(uintmax_t)tl3));
pmap_load_clear(l3);
- pmap_invalidate_page(pmap, pv->pv_va);
/*
* Update the vm_page_t clean/reference bits.
@@ -2856,9 +2856,9 @@
free_pv_chunk(pc);
}
}
- pmap_invalidate_all(pmap);
if (lock != NULL)
rw_wunlock(lock);
+ pmap_invalidate_all(pmap);
rw_runlock(&pvh_global_lock);
PMAP_UNLOCK(pmap);
vm_page_free_pages_toq(&free, false);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 21, 7:59 PM (1 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25795433
Default Alt Text
D18562.id52022.diff (916 B)
Attached To
Mode
D18562: Avoid needless TLB invalidations in pmap_remove_pages().
Attached
Detach File
Event Timeline
Log In to Comment