Page MenuHomeFreeBSD

D17782.diff
No OneTemporary

D17782.diff

Index: head/sys/riscv/riscv/pmap.c
===================================================================
--- head/sys/riscv/riscv/pmap.c
+++ head/sys/riscv/riscv/pmap.c
@@ -2088,13 +2088,15 @@
pa = VM_PAGE_TO_PHYS(m);
pn = (pa / PAGE_SIZE);
- new_l3 = PTE_V | PTE_R | PTE_X;
+ new_l3 = PTE_V | PTE_R | PTE_X | PTE_A;
+ if (flags & VM_PROT_WRITE)
+ new_l3 |= PTE_D;
if (prot & VM_PROT_WRITE)
new_l3 |= PTE_W;
if ((va >> 63) == 0)
new_l3 |= PTE_U;
- else
- new_l3 |= PTE_A | PTE_D;
+ else if (prot & VM_PROT_WRITE)
+ new_l3 |= PTE_D;
new_l3 |= (pn << PTE_PPN0_S);
if ((flags & PMAP_ENTER_WIRED) != 0)

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 4:18 AM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14877642
Default Alt Text
D17782.diff (622 B)

Event Timeline