ARM: 8447/1: catch pending imprecise abort on unmask
authorLucas Stach <l.stach@pengutronix.de>
Mon, 19 Oct 2015 12:38:09 +0000 (13:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 19 Oct 2015 16:08:33 +0000 (17:08 +0100)
commit9254970cbbf542a0085e491810f0144a27885702
treef46c0c1ce8575aecc8133703117a1be5ab181ad1
parentc8d46ece44458a2088896d6fcae123a72bdfd429
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>
arch/arm/mm/fault.c
arch/arm/mm/fault.h
arch/arm/mm/mmu.c