arm64: Expose ESR_EL1 information to user when SIGSEGV/SIGBUS
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 16 Sep 2013 14:19:27 +0000 (15:19 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 9 May 2014 14:47:49 +0000 (15:47 +0100)
commit15af1942dd61ee236a48b3de14d6f31c0b9e8116
treed4f0163789eff325e8fd5088a70592abc3186c14
parent0e0276d1e1dd063cd14ce377707970d0417a0792
arm64: Expose ESR_EL1 information to user when SIGSEGV/SIGBUS

This information is useful for instruction emulators to detect
read/write and access size without having to decode the faulting
instruction. The current patch exports it via sigcontext (struct
esr_context) and is only valid for SIGSEGV and SIGBUS.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/uapi/asm/sigcontext.h
arch/arm64/kernel/signal.c