Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108048990
D26499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26499.diff
View Options
Index: head/sys/amd64/amd64/pmap.c
===================================================================
--- head/sys/amd64/amd64/pmap.c
+++ head/sys/amd64/amd64/pmap.c
@@ -6525,12 +6525,13 @@
origpte = *pdpe;
MPASS(origpte == 0);
} else {
- mp = PHYS_TO_VM_PAGE(*pml4e & PG_FRAME);
pdpe = pmap_pdpe(pmap, va);
KASSERT(pdpe != NULL, ("va %#lx lost pdpe", va));
origpte = *pdpe;
- if ((origpte & PG_V) == 0)
+ if ((origpte & PG_V) == 0) {
+ mp = PHYS_TO_VM_PAGE(*pml4e & PG_FRAME);
mp->ref_count++;
+ }
}
KASSERT((origpte & PG_V) == 0 || ((origpte & PG_PS) != 0 &&
(origpte & PG_FRAME) == (pten & PG_FRAME)),
@@ -6563,10 +6564,11 @@
} else {
pdpe = pmap_pdpe(pmap, va);
MPASS(pdpe != NULL && (*pdpe & PG_V) != 0);
- mp = PHYS_TO_VM_PAGE(*pdpe & PG_FRAME);
origpte = *pde;
- if ((origpte & PG_V) == 0)
+ if ((origpte & PG_V) == 0) {
+ mp = PHYS_TO_VM_PAGE(*pdpe & PG_FRAME);
mp->ref_count++;
+ }
}
KASSERT((origpte & PG_V) == 0 || ((origpte & PG_PS) != 0 &&
(origpte & PG_FRAME) == (pten & PG_FRAME)),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 21, 9:54 PM (11 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16005715
Default Alt Text
D26499.diff (1 KB)
Attached To
Mode
D26499: amd64 pmap: only calculate page table page when needed.
Attached
Detach File
Event Timeline
Log In to Comment