ARM: alignment: save last kernel aligned fault location
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 4 Jul 2014 13:32:43 +0000 (14:32 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 20 Feb 2015 22:05:24 +0000 (00:05 +0200)
commit614e08fa67ac46b6859b7a1d885df617f01308cc
tree692a816cf8a3674aefcfeddd7439290e7336e7ae
parent4dead48bc7641edf5bd91c944ec69f49ea0855a6
ARM: alignment: save last kernel aligned fault location

Save and report (via the procfs file) the last kernel unaligned fault
location.  This allows us to trivially inspect where the last fault
happened for cases which we don't expect to occur.

Since we expect the kernel to generate misalignment faults (due to
the networking layer), even when warnings are enabled, we don't log
them for the kernel.

Tested-by: Tony Lindgren <tony@atomide.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/alignment.c