summaryrefslogtreecommitdiff
path: root/include/panic.h
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-02-17 21:38:30 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-18 19:34:05 +0000
commit2181fd187b46b771a99aa189ef7d763430a985b6 (patch)
tree13509cc657203ae71bbe4644ed22fbb3b5ddb4bc /include/panic.h
parent31e52bf69f84f8720a95d39621434f7da2f54f8f (diff)
downloadchrome-ec-2181fd187b46b771a99aa189ef7d763430a985b6.tar.gz
zephyr: migrate arch_panic_set_reason to use __override_proto
Every core had to implement arch_panic_set_reason. By using the __override_proto it is possible to provide the default noop implementation while still allowing new cores to implement their own custom implementation. BRANCH=none BUG=none TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: If4b9e262e5ac403074720a7b19e369b251a613cf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2703502 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/panic.h')
-rw-r--r--include/panic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/panic.h b/include/panic.h
index 4d462a1bfb..4160454ce2 100644
--- a/include/panic.h
+++ b/include/panic.h
@@ -198,7 +198,8 @@ void panic_get_reason(uint32_t *reason, uint32_t *info, uint8_t *exception);
* Zephyr utility for architecture specific logic to run when setting panic
* reason.
*/
-void arch_panic_set_reason(uint32_t reason, uint32_t info, uint8_t exception);
+__override_proto void arch_panic_set_reason(uint32_t reason, uint32_t info,
+ uint8_t exception);
#endif /* CONFIG_ZEPHYR */
#endif /* CONFIG_SOFTWARE_PANIC */