Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168038011
D59047.id184554.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
726 B
Referenced Files
None
Subscribers
None
D59047.id184554.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
@@ -2037,7 +2037,7 @@
vm_paddr_t paddr;
vm_page_t nkpg;
pd_entry_t *l1, *l2;
- pt_entry_t entry;
+ pt_entry_t entry, l2e;
pn_t pn;
mtx_assert(&kernel_map->system_mtx, MA_OWNED);
@@ -2066,8 +2066,8 @@
continue; /* try again */
}
l2 = pmap_l1_to_l2(l1, kernel_vm_end);
- if ((pmap_load(l2) & PTE_V) != 0 &&
- (pmap_load(l2) & PTE_RWX) == 0) {
+ l2e = pmap_load(l2);
+ if ((l2e & PTE_V) != 0 && (l2e & PTE_RWX) == 0) {
kernel_vm_end = (kernel_vm_end + L2_SIZE) & ~L2_OFFSET;
if (kernel_vm_end - 1 >= vm_map_max(kernel_map)) {
kernel_vm_end = vm_map_max(kernel_map);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 27, 1:45 AM (14 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37037845
Default Alt Text
D59047.id184554.diff (726 B)
Attached To
Mode
D59047: riscv: eliminate duplicate load in pmap_growkernel()
Attached
Detach File
Event Timeline
Log In to Comment