summaryrefslogtreecommitdiffstats
path: root/kernel/arch/arm/mm/fault.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/arm/mm/fault.h')
-rw-r--r--kernel/arch/arm/mm/fault.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/arch/arm/mm/fault.h b/kernel/arch/arm/mm/fault.h
index 05ec5e0df..78830657c 100644
--- a/kernel/arch/arm/mm/fault.h
+++ b/kernel/arch/arm/mm/fault.h
@@ -11,11 +11,15 @@
#define FSR_FS5_0 (0x3f)
#ifdef CONFIG_ARM_LPAE
+#define FSR_FS_AEA 17
+
static inline int fsr_fs(unsigned int fsr)
{
return fsr & FSR_FS5_0;
}
#else
+#define FSR_FS_AEA 22
+
static inline int fsr_fs(unsigned int fsr)
{
return (fsr & FSR_FS3_0) | (fsr & FSR_FS4) >> 6;