diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-06-30 19:32:12 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-07-03 02:56:52 +0000 |
commit | 64733430754848bfb1f67c87c4c9142564270583 (patch) | |
tree | 42f5a2b07465b49e0935502b956478f855378214 /core/cortex-m0/div.S | |
parent | e86b4052a6d3698ea5af4aa70450c9326e2e2b62 (diff) | |
download | chrome-ec-64733430754848bfb1f67c87c4c9142564270583.tar.gz |
better unhandled exception panic without runtime
On panic, reboot properly the CPU rather than just jumping to the reset
vector as that might lead to some incorrect initializations.
Properly plug the div by 0 to the panic handling.
Add a small trace if the debug output is activated.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=chrome-os-partner:29840
TEST=add adhoc code triggering a data abort and see the firmware
printing a trace, then rebooting immediatly in a working state.
Change-Id: I1d5a98d9113c8ae08e05588a40f941d1ed22cebe
Reviewed-on: https://chromium-review.googlesource.com/206268
Reviewed-by: Vic Yang <victoryang@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core/cortex-m0/div.S')
-rw-r--r-- | core/cortex-m0/div.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m0/div.S b/core/cortex-m0/div.S index 8e055b8e0f..c20804e274 100644 --- a/core/cortex-m0/div.S +++ b/core/cortex-m0/div.S @@ -180,4 +180,4 @@ L_dont_sub0: bx lr __aeabi_idiv0: - bl panic + bl panic_reboot |