Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145771323
D46477.1778494314.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
852 B
Referenced Files
None
Subscribers
None
D46477.1778494314.diff
View Options
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -2962,7 +2962,7 @@
VM_ALLOC_NOFREE | VM_ALLOC_WIRED | VM_ALLOC_ZERO);
if (nkpg == NULL)
panic("pmap_growkernel: no memory to grow kernel");
- nkpg->pindex = kernel_vm_end >> L1_SHIFT;
+ nkpg->pindex = pmap_l1_pindex(kernel_vm_end);
/* See the dmb() in _pmap_alloc_l3(). */
dmb(ishst);
pmap_store(l1, VM_PAGE_TO_PTE(nkpg) | L1_TABLE);
@@ -2982,7 +2982,7 @@
VM_ALLOC_NOFREE | VM_ALLOC_WIRED | VM_ALLOC_ZERO);
if (nkpg == NULL)
panic("pmap_growkernel: no memory to grow kernel");
- nkpg->pindex = kernel_vm_end >> L2_SHIFT;
+ nkpg->pindex = pmap_l2_pindex(kernel_vm_end);
/* See the dmb() in _pmap_alloc_l3(). */
dmb(ishst);
pmap_store(l2, VM_PAGE_TO_PTE(nkpg) | L2_TABLE);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 11, 10:11 AM (11 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28667390
Default Alt Text
D46477.1778494314.diff (852 B)
Attached To
Mode
D46477: arm64: fix L1 pindex calculation in pmap_growkernel()
Attached
Detach File
Event Timeline
Log In to Comment