Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167515606
D34158.id102508.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
521 B
Referenced Files
None
Subscribers
None
D34158.id102508.diff
View Options
diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c
--- a/sys/riscv/riscv/pmap.c
+++ b/sys/riscv/riscv/pmap.c
@@ -1231,14 +1231,12 @@
CPU_ZERO(&pmap->pm_active);
- /* Install kernel pagetables */
- memcpy(pmap->pm_l1, kernel_pmap->pm_l1, PAGE_SIZE);
-
- /* Add to the list of all user pmaps */
mtx_lock(&allpmaps_lock);
LIST_INSERT_HEAD(&allpmaps, pmap, pm_list);
mtx_unlock(&allpmaps_lock);
+ memcpy(pmap->pm_l1, kernel_pmap->pm_l1, PAGE_SIZE);
+
vm_radix_init(&pmap->pm_root);
return (1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 10:13 AM (3 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37120710
Default Alt Text
D34158.id102508.diff (521 B)
Attached To
Mode
D34158: riscv: Fix a race in pmap_pinit()
Attached
Detach File
Event Timeline
Log In to Comment