OSDN Git Service

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)
commit60a1f02c9e91e0796b54e83b14fb8a07f7a568b6
treee830e324106f707c0b51a048336e3cfea5cbc640
parentaed40e0144bdbdadb45f2b623e07aa3157eb74c9
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