summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/ztest_system.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/src/ztest_system.c')
-rw-r--r--zephyr/shim/src/ztest_system.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/zephyr/shim/src/ztest_system.c b/zephyr/shim/src/ztest_system.c
index d2dc41e18a..74491b2b04 100644
--- a/zephyr/shim/src/ztest_system.c
+++ b/zephyr/shim/src/ztest_system.c
@@ -3,11 +3,12 @@
* found in the LICENSE file.
*/
-#include "system.h"
-#include "cros_version.h"
#include "battery.h"
#include "charge_manager.h"
+#include "common.h"
+#include "cros_version.h"
#include "sysjump.h"
+#include "system.h"
#define CPRINTS(format, args...) cprints(CC_SYSTEM, format, ##args)
@@ -26,6 +27,11 @@ __attribute__((weak)) void system_reset(int flags)
__builtin_unreachable();
}
+__attribute__((weak)) void software_panic(uint32_t reason, uint32_t info)
+{
+ __builtin_unreachable();
+}
+
static uint8_t bbram[SYSTEM_BBRAM_IDX_TRY_SLOT + 1];
test_mockable int system_get_bbram(enum system_bbram_idx idx, uint8_t *value)