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 /chip/host/reboot.h | |
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 'chip/host/reboot.h')
-rw-r--r-- | chip/host/reboot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/host/reboot.h b/chip/host/reboot.h index e391866497..113569bb9b 100644 --- a/chip/host/reboot.h +++ b/chip/host/reboot.h @@ -8,6 +8,7 @@ #ifndef __CROS_EC_REBOOT_H #define __CROS_EC_REBOOT_H +__attribute__((noreturn)) void emulator_reboot(void); #endif |