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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Jul 2014 11:29:06 +0000 (12:29 +0100)
commit1e7e3211854507d6c2695126d6d30a7762cf4006
tree5be3ff83fd70898bd8d26365c4c356070e67fd2e
parent6ebbf2ce437b33022d30badd49dc94d33ecfa498
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