Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103530986
D17782.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
622 B
Referenced Files
None
Subscribers
None
D17782.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17782: Set PTE_A and PTE_D for user mappings in pmap_enter().
Attached
Detach File
Event Timeline
Log In to Comment