OSDN Git Service

arm64: sysreg: Add some field definitions for PAR_EL1
authorWill Deacon <will@kernel.org>
Thu, 22 Aug 2019 16:19:17 +0000 (17:19 +0100)
committerWill Deacon <will@kernel.org>
Tue, 27 Aug 2019 16:38:33 +0000 (17:38 +0100)
PAR_EL1 is a mysterious creature, but sometimes it's necessary to read
it when translating addresses in situations where we cannot walk the
page table directly.

Add a couple of system register definitions for the fault indication
field ('F') and the fault status code ('FST').

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/sysreg.h

index 06ebcfe..2b229c2 100644 (file)
 #define SYS_FAR_EL1                    sys_reg(3, 0, 6, 0, 0)
 #define SYS_PAR_EL1                    sys_reg(3, 0, 7, 4, 0)
 
+#define SYS_PAR_EL1_F                  BIT(1)
+#define SYS_PAR_EL1_FST                        GENMASK(6, 1)
+
 /*** Statistical Profiling Extension ***/
 /* ID registers */
 #define SYS_PMSIDR_EL1                 sys_reg(3, 0, 9, 9, 7)