diff options
Diffstat (limited to 'kernel/arch/arm/mm')
-rw-r--r-- | kernel/arch/arm/mm/fault.c | 4 | ||||
-rw-r--r-- | kernel/arch/arm/mm/fault.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/kernel/arch/arm/mm/fault.c b/kernel/arch/arm/mm/fault.c index b8aa1e9ee..276ac73f8 100644 --- a/kernel/arch/arm/mm/fault.c +++ b/kernel/arch/arm/mm/fault.c @@ -616,9 +616,9 @@ static int __init early_abort_handler(unsigned long addr, unsigned int fsr, void __init early_abt_enable(void) { - fsr_info[22].fn = early_abort_handler; + fsr_info[FSR_FS_AEA].fn = early_abort_handler; local_abt_enable(); - fsr_info[22].fn = do_bad; + fsr_info[FSR_FS_AEA].fn = do_bad; } #ifndef CONFIG_ARM_LPAE 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; |