diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2015-10-19 13:38:09 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-10-19 17:08:33 +0100 |
commit | 9254970cbbf542a0085e491810f0144a27885702 (patch) | |
tree | f46c0c1ce8575aecc8133703117a1be5ab181ad1 /arch/arm/mm/fault.h | |
parent | c8d46ece44458a2088896d6fcae123a72bdfd429 (diff) | |
download | linux-9254970cbbf542a0085e491810f0144a27885702.tar.gz linux-9254970cbbf542a0085e491810f0144a27885702.tar.bz2 linux-9254970cbbf542a0085e491810f0144a27885702.zip |
ARM: 8447/1: catch pending imprecise abort on unmask
Install a non-faulting handler just before unmasking imprecise aborts
and switch back to the regular one after unmasking is done.
This catches any pending imprecise abort that the firmware/bootloader
may have left behind that would normally crash the kernel at that point.
As there are apparently a lot of bootlaoders out there that do such a
thing it makes sense to handle it in the common startup code.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Tyler Baker <tyler.baker@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/fault.h')
-rw-r--r-- | arch/arm/mm/fault.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mm/fault.h b/arch/arm/mm/fault.h index cf08bdfbe0d6..05ec5e0df32d 100644 --- a/arch/arm/mm/fault.h +++ b/arch/arm/mm/fault.h @@ -24,5 +24,6 @@ static inline int fsr_fs(unsigned int fsr) void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs); unsigned long search_exception_table(unsigned long addr); +void early_abt_enable(void); #endif /* __ARCH_ARM_FAULT_H */ |