[RFC V1 12/16] arm64/mm: Abstract printing of pxd_val()

David Hildenbrand (Arm) david at kernel.org
Wed Apr 8 05:28:08 PDT 2026


On 2/24/26 06:11, Anshuman Khandual wrote:

Subject: you probably mean "pxx_val()" ?

> Ahead of adding support for D128 pgtables, refactor places that print
> PTE values to use the new __PRIpte format specifier and __PRIpte_args()
> macro to prepare the argument(s). When using D128 pgtables in future,
> we can simply redefine __PRIpte and __PTIpte_args().
> 
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will at kernel.org>
> Cc: Ryan Roberts <ryan.roberts at arm.com>
> Cc: Mark Rutland <mark.rutland at arm.com>
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: linux-kernel at vger.kernel.org
> Signed-off-by: Anshuman Khandual <anshuman.khandual at arm.com>
> ---
>  arch/arm64/include/asm/pgtable-types.h |  3 +++
>  arch/arm64/include/asm/pgtable.h       | 22 +++++++++++-----------
>  arch/arm64/mm/fault.c                  | 10 +++++-----
>  3 files changed, 19 insertions(+), 16 deletions(-)
> 
> diff --git a/arch/arm64/include/asm/pgtable-types.h b/arch/arm64/include/asm/pgtable-types.h
> index 265e8301d7ba..dc3791dc9f14 100644
> --- a/arch/arm64/include/asm/pgtable-types.h
> +++ b/arch/arm64/include/asm/pgtable-types.h
> @@ -11,6 +11,9 @@
>  
>  #include <asm/types.h>
>  
> +#define __PRIpte		"016llx"
> +#define __PRIpte_args(val)	((u64)val)

Same comment regarding "pte" being misleading.


-- 
Cheers,

David



More information about the linux-arm-kernel mailing list