mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 12:52:26 +00:00
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
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
- EC Lib
|
|
|
|
This wraps Blizzard driverlib and implements the EC chip interface defined
|
|
by Google. See below diagram for architecture.
|
|
|
|
|
|
+--------------------+
|
|
| Host BIOS/OS |
|
|
+--------------------+
|
|
|
|
---- host interface ----
|
|
|
|
+--------------------+
|
|
| Google EC features |
|
|
+--------------------+
|
|
|
|
---- chip interface ---- The interface is defined in
|
|
src/platform/ec/chip_interface/*.
|
|
+--------------------+ But the real implementation is in EC Lib.
|
|
| EC Lib |
|
|
+--------------------+
|
|
| Blizzard low level |
|
|
| driver, the |
|
|
| driverlib. |
|
|
+--------------------+
|
|
|
|
|
|
Build Options
|
|
=============
|
|
|
|
- CONFIG_WATCHDOG_HELP
|
|
|
|
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.
|