summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-06-03 10:09:55 -0700
committerGerrit <chrome-bot@google.com>2012-06-15 18:25:34 -0700
commit8c55761613bd5f0b2bcac6c769256842218d96c1 (patch)
tree95ee4016c3b74bbd8a0b47f8bbf4ce3657c998ae /README
parent8db2c7f910661661b3dfb67fb2eb99a16ee14de5 (diff)
downloadchrome-ec-8c55761613bd5f0b2bcac6c769256842218d96c1.tar.gz
Add an option to report panics in a new stack
For particularly nasty errors the stack or stack pointer may be corrupt, or in a place that we do not want overwritten. Provide and option to place the stack in a fresh place, assuming you can reach exception_panic(). Note that exception_panic() does not write anything to stack itself. BUG=chrome-os-partner:10146 TEST=manual: build for all boards On snow, cause a panic and see that it is reported correctly. Change-Id: I21d8b9bb12455758309d54ef20de66640d8a2df6 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/24504
Diffstat (limited to 'README')
-rw-r--r--README7
1 files changed, 6 insertions, 1 deletions
diff --git a/README b/README
index 00aa6662b1..e87846bf7d 100644
--- a/README
+++ b/README
@@ -25,7 +25,6 @@ by Google. See below diagram for architecture.
+--------------------+
-
Build Options
=============
@@ -34,3 +33,9 @@ Build Options
Try to detect a watchdog that is about to fire, and print a trace.
This is needed on STM32, where the independent watchdog has no early
warning feature and the windowed watchdog has a very short period.
+
+- CONFIG_PANIC_NEW_STACK
+
+ 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.