Page MenuHomeFreeBSD

D61622.1794925083.diff
No OneTemporary

Authored By
Unknown
Size
623 B
Referenced Files
None
Subscribers
None

D61622.1794925083.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
@@ -8187,7 +8187,14 @@
pd_entry_t *l0, *l1, *l2, oldl2;
pt_entry_t *l3, *dl3, oldl3;
- PMAP_ASSERT_STAGE1(pmap);
+ /*
+ * The advice is only a hint, and the code below changes stage 1
+ * permission bits and invalidates stage 1 TLB entries. vm_fault()
+ * reaches here for a stage 2 pmap when it drops pages behind a
+ * sequential fault, so ignore the advice for stage 2.
+ */
+ if (pmap->pm_stage != PM_STAGE1)
+ return;
if (advice != MADV_DONTNEED && advice != MADV_FREE)
return;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 17, 2:18 PM (6 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41800936
Default Alt Text
D61622.1794925083.diff (623 B)

Event Timeline