Skip to content
Commit bb294036 authored by Nishant Sharma's avatar Nishant Sharma
Browse files

arch: add exception fault info print support



ARMv6, ARMv7 and ARMv8 exception model supports system exception and
external interrupts. Few of the system exceptions are used for capturing
faults. This information provides the address location where fault
has occurred and the reason of the fault and is handy while fixing the
bugs.

Add the support to print the fault information for memory, bus, user,
hard and secure faults. Also add the support to print r0, r1, r2, r3,
r12, r14, PC, and xPSR registers stored the stack.

Secure fault handling is handled only if security extensions are enabled
on the platform. Secure fault handling is guarded by __ARM_FEATURE_CMSE
and can be enabled by setting -mcmse while compiling.

Signed-off-by: Nishant Sharma's avatarNishant Sharma <nishant.sharma@arm.com>
Change-Id: I36f4aa845008d77537c62cadff582c0e993110f5
parent 5ee4cd8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment