Add non-posted device memory to the arm64 mem map
Add VM_MEMATTR_DEVICE_NP to the arm64 vm.pmap.kernel_maps sysctl. Reviewed by: markj Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39371
This commit is contained in:
parent
7ae0972c7b
commit
41236539d8
@ -7843,6 +7843,9 @@ sysctl_kmaps_dump(struct sbuf *sb, struct pmap_kernel_map_range *range,
|
||||
|
||||
index = range->attrs & ATTR_S1_IDX_MASK;
|
||||
switch (index) {
|
||||
case ATTR_S1_IDX(VM_MEMATTR_DEVICE_NP):
|
||||
mode = "DEV-NP";
|
||||
break;
|
||||
case ATTR_S1_IDX(VM_MEMATTR_DEVICE):
|
||||
mode = "DEV";
|
||||
break;
|
||||
@ -7863,7 +7866,7 @@ sysctl_kmaps_dump(struct sbuf *sb, struct pmap_kernel_map_range *range,
|
||||
break;
|
||||
}
|
||||
|
||||
sbuf_printf(sb, "0x%016lx-0x%016lx r%c%c%c%c %3s %d %d %d %d\n",
|
||||
sbuf_printf(sb, "0x%016lx-0x%016lx r%c%c%c%c %6s %d %d %d %d\n",
|
||||
range->sva, eva,
|
||||
(range->attrs & ATTR_S1_AP_RW_BIT) == ATTR_S1_AP_RW ? 'w' : '-',
|
||||
(range->attrs & ATTR_S1_PXN) != 0 ? '-' : 'x',
|
||||
|
Loading…
Reference in New Issue
Block a user