arm64: Provide read/write fault information in compat signal handlers
authorCatalin Marinas <catalin.marinas@arm.com>
Sun, 6 Apr 2014 22:04:12 +0000 (23:04 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 9 May 2014 14:47:47 +0000 (15:47 +0100)
commit9141300a5884b57cea6d32c4e3fd16a337cfc99a
treed717d0ae66c7458c922b885c689b9c192b0f4083
parent6400111399e16a535231ebd76389c894ea1837ff
arm64: Provide read/write fault information in compat signal handlers

For AArch32, bit 11 (WnR) of the FSR/ESR register is set when the fault
was caused by a write access and applications like Qemu rely on such
information being provided in sigcontext. This patch introduces the
ESR_EL1 tracking for the arm64 kernel faults and sets bit 11 accordingly
in compat sigcontext.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/esr.h
arch/arm64/include/asm/processor.h
arch/arm64/kernel/signal32.c
arch/arm64/kernel/traps.c
arch/arm64/mm/fault.c