diff options
author | Patrick Georgi <pgeorgi@google.com> | 2017-10-29 07:42:37 -0400 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-11-07 15:25:17 -0800 |
commit | 887e3962ca19cc7e8c3c474f8c82b4240eb63416 (patch) | |
tree | 10d3c0fd7b8d948ce080b66e735d4ac1fb597255 /board/zinger | |
parent | fee1bde58def62ff7cbd40e060844c0cc496a032 (diff) | |
download | chrome-ec-887e3962ca19cc7e8c3c474f8c82b4240eb63416.tar.gz |
Mark reset and panic functions as noreturn
gcc 6.3 (as provided by coreboot-sdk) needs that to know which code
paths end early.
Also add a loop after the command that is "supposed" to reset the
machine so that the compiler believes it (and in case that assumption
fails).
BRANCH=none
BUG=b:65441143
TEST=none
Change-Id: Idb87253ec7880d66ffec30d75f4d007f02f63aab
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/742916
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'board/zinger')
-rw-r--r-- | board/zinger/runtime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/zinger/runtime.c b/board/zinger/runtime.c index 6267100b0c..11b1643d30 100644 --- a/board/zinger/runtime.c +++ b/board/zinger/runtime.c @@ -236,6 +236,7 @@ uint32_t task_wait_event_mask(uint32_t event_mask, int timeout_us) return evt & event_mask; } +__attribute__((noreturn)) void __keep cpu_reset(void) { /* Disable interrupts */ |