summaryrefslogtreecommitdiff
path: root/include/panic.h
diff options
context:
space:
mode:
authorAllen Webb <allenwebb@google.com>2018-11-09 09:42:53 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-15 13:16:06 -0800
commit1c95cff7463ef29bd0c6d087ce8c3d7e17f94c6a (patch)
tree90de208cb94b874a8fc3a8a1f1082116e908cc48 /include/panic.h
parent268b07da45535033ae39240e958fc00386e37684 (diff)
downloadchrome-ec-1c95cff7463ef29bd0c6d087ce8c3d7e17f94c6a.tar.gz
cr50: Add extern "C" to headers used by future fuzzing target.
BRANCH=None BUG=None TEST=make -j buildall Change-Id: Icf2cfb6a2657064c10721c0e527d24fbb3be6ab3 Signed-off-by: Allen Webb <allenwebb@google.com> Reviewed-on: https://chromium-review.googlesource.com/1330102 Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'include/panic.h')
-rw-r--r--include/panic.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/panic.h b/include/panic.h
index 8a689c4b23..1984081dd7 100644
--- a/include/panic.h
+++ b/include/panic.h
@@ -13,6 +13,10 @@
#include <stdarg.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* ARM Cortex-Mx registers saved on panic */
struct cortex_panic_data {
uint32_t regs[12]; /* psp, ipsr, msp, r4-r11, lr(=exc_return).
@@ -181,4 +185,8 @@ struct panic_data *panic_get_data(void);
*/
void chip_panic_data_backup(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __CROS_EC_PANIC_H */