]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: decode ESR_ELx.EC when reporting exceptions
authorMark Rutland <mark.rutland@arm.com>
Tue, 18 Nov 2014 12:16:30 +0000 (12:16 +0000)
committerMark Rutland <mark.rutland@arm.com>
Thu, 15 Jan 2015 12:24:22 +0000 (12:24 +0000)
commit483751d9c274d3b5c6fdf6e4c3bb64d9a928974a
treee830e324106f707c0b51a048336e3cfea5cbc640
parent9c9b2202ca922334804f95ce819fa8ee35aeb11e
arm64: decode ESR_ELx.EC when reporting exceptions

To aid the developer when something triggers an unexpected exception,
decode the ESR_ELx.EC field when logging an ESR_ELx value. This doesn't
tell the developer the specifics of the exception encoded in the
remaining IL and ISS bits, but it can be helpful to distinguish between
exception classes (e.g. SError and a data abort) without having to
manually decode the field, which can be tiresome.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/esr.h
arch/arm64/kernel/traps.c