Skip to content

Commit cba779d

Browse files
brooniectmarinas
authored andcommitted
arm64: mm: Fix column alignment for UXN in kernel_page_tables
UXN is the only individual PTE bit other than the PTE_ATTRINDX_MASK ones which doesn't have both a set and a clear value provided, meaning that the columns in the table won't all be aligned. The PTE_ATTRINDX_MASK values are all both mutually exclusive and longer so are listed last to make a single final column for those values. Ensure everything is aligned by providing a clear value for UXN. Acked-by: Mark Rutland <[email protected]> Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
1 parent ca2ef4f commit cba779d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/mm/dump.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ static const struct prot_bits pte_bits[] = {
142142
.mask = PTE_UXN,
143143
.val = PTE_UXN,
144144
.set = "UXN",
145+
.clear = " ",
145146
}, {
146147
.mask = PTE_ATTRINDX_MASK,
147148
.val = PTE_ATTRINDX(MT_DEVICE_nGnRnE),

0 commit comments

Comments
 (0)