summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/system.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-01-22 16:58:36 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-26 23:21:35 +0000
commitc10b22901e01e00a9c2c0a5e790a54487f391fe6 (patch)
treee2a6f406c1bd2223183964237288d671cf92c039 /zephyr/shim/src/system.c
parent061b3ee3a305833e061019744add3f96d5fd1529 (diff)
downloadchrome-ec-c10b22901e01e00a9c2c0a5e790a54487f391fe6.tar.gz
zephyr: Add support for panic output
Add basic panic implementation for Zephyr. Not using any fancy shared or always-on memory for now ... need to resolve how that will be handled later. BUG=b:178011288 BRANCH=none TEST=run various crash commands on volteer, observe output Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ia1ce386f738283a2a2b9b60ef7e0bf97f8317837 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645687
Diffstat (limited to 'zephyr/shim/src/system.c')
-rw-r--r--zephyr/shim/src/system.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/zephyr/shim/src/system.c b/zephyr/shim/src/system.c
index 7d62ac03fa..c407410931 100644
--- a/zephyr/shim/src/system.c
+++ b/zephyr/shim/src/system.c
@@ -10,6 +10,7 @@
#include "chipset.h"
#include "config.h"
#include "ec_commands.h"
+#include "panic.h"
#include "sysjump.h"
#include "system.h"
@@ -51,12 +52,6 @@ static bool jumped_to_image;
/* static void jump_to_image */
-/* TODO(b/171407461) implement components/panic */
-static uintptr_t get_panic_data_start(void)
-{
- return 0;
-}
-
void system_common_pre_init(void)
{
/* TODO check for watchdog reset. */