diff options
author | Simon Glass <sjg@chromium.org> | 2012-06-03 10:16:07 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-19 18:45:27 -0700 |
commit | 004c607a96d650f9f6ac0891b32a458253c080dc (patch) | |
tree | 909564e861f3a0dbcb99e07d23005adce827d33a /README | |
parent | ebf79b00a9f77c7d4bb8b0acb633380937593f91 (diff) | |
download | chrome-ec-004c607a96d650f9f6ac0891b32a458253c080dc.tar.gz |
Add an option to report panic fault information
The fault status registers sometimes have useful information, so provide
an option to display these.
This adds about 1KB to the code size.
BUG=chrome-os-partner:10146
TEST=manual:
build for all boards
On snow, cause a panic and see that it is reported correctly.
=== EXCEPTION: 03 ====== xPSR: 01000000 ===========
r0 :0000000b r1 :00000047 r2 :60000000 r3 :200013dd
r4 :00000000 r5 :080053f4 r6 :200013d0 r7 :00000002
r8 :00000000 r9 :200013de r10:00000000 r11:00000000
r12:00000000 sp :200009a0 lr :08002b85 pc :08003a8a
Precise data bus error, Forced hard fault, Vector catch, bfar = 60000000
mmfs = 00008200, shcsr = 00000000, hfsr = 40000000, dfsr = 00000008
Change-Id: I1a18c85ee63760502c92b300f5a87e57468469a5
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/24505
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'README')
-rw-r--r-- | README | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -39,3 +39,18 @@ Build Options When reporting a panic, change to a completely new stack. This might help get a useful trace out a situation where the stack or stack pointer has been corrupted. + +- CONFIG_PANIC_HELP + + Report extra information about a panic, such as the fault address, + here shown as bfar. This shows the reason for the fault and may help + to determine the cause. + + === EXCEPTION: 03 ====== xPSR: 01000000 =========== + r0 :0000000b r1 :00000047 r2 :60000000 r3 :200013dd + r4 :00000000 r5 :080053f4 r6 :200013d0 r7 :00000002 + r8 :00000000 r9 :200013de r10:00000000 r11:00000000 + r12:00000000 sp :200009a0 lr :08002b85 pc :08003a8a + Precise data bus error, Forced hard fault, Vector catch, bfar = 60000000 + mmfs = 00008200, shcsr = 00000000, hfsr = 40000000, dfsr = 00000008 + |