summaryrefslogtreecommitdiff
path: root/chip/g/watchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/watchdog.c')
-rw-r--r--chip/g/watchdog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/watchdog.c b/chip/g/watchdog.c
index aa78fa675c..aa79367353 100644
--- a/chip/g/watchdog.c
+++ b/chip/g/watchdog.c
@@ -19,7 +19,7 @@
/* Watchdog expiration */
#define WATCHDOG_PERIOD (CONFIG_WATCHDOG_PERIOD_MS * (PCLK_FREQ / 1000))
-void trace_and_reset(uint32_t excep_lr, uint32_t excep_sp)
+void __attribute__((used)) trace_and_reset(uint32_t excep_lr, uint32_t excep_sp)
{
watchdog_trace(excep_lr, excep_sp);
system_reset(RESET_FLAG_WATCHDOG);