Module Name: src Committed By: ryo Date: Sat Feb 29 21:29:23 UTC 2020
Modified Files: src/sys/arch/aarch64/include: armreg.h Log Message: widen bit PAR_EL1.PAR_PA from [47:12] to [51:12] for ARMv8.2 (and later). PAR_EL1:[51:48] is RES0 in ARMv8.1 and ARMv8.0. To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sys/arch/aarch64/include/armreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/aarch64/include/armreg.h diff -u src/sys/arch/aarch64/include/armreg.h:1.35 src/sys/arch/aarch64/include/armreg.h:1.36 --- src/sys/arch/aarch64/include/armreg.h:1.35 Fri Jan 31 09:23:58 2020 +++ src/sys/arch/aarch64/include/armreg.h Sat Feb 29 21:29:23 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: armreg.h,v 1.35 2020/01/31 09:23:58 maxv Exp $ */ +/* $NetBSD: armreg.h,v 1.36 2020/02/29 21:29:23 ryo Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -674,7 +674,8 @@ AARCH64REG_READ_INLINE(par_el1) // Phys AARCH64REG_WRITE_INLINE(par_el1) #define PAR_ATTR __BITS(63,56) // F=0 memory attributes -#define PAR_PA __BITS(47,12) // F=0 physical address +#define PAR_PA __BITS(51,12) // F=0 physical address +#define PAR_PA_SHIFT 12 #define PAR_NS __BIT(9) // F=0 non-secure #define PAR_S __BIT(9) // F=1 failure stage #define PAR_SHA __BITS(8,7) // F=0 shareability attribute