summaryrefslogtreecommitdiff
path: root/core/cortex-m0/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/cortex-m0/panic.c')
-rw-r--r--core/cortex-m0/panic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/cortex-m0/panic.c b/core/cortex-m0/panic.c
index 9cbc00107a..02adb63164 100644
--- a/core/cortex-m0/panic.c
+++ b/core/cortex-m0/panic.c
@@ -172,6 +172,7 @@ void software_panic(uint32_t reason, uint32_t info)
"mov " STRINGIFY(SOFTWARE_PANIC_REASON_REG) ", %1\n"
"bl exception_panic\n"
: : "r"(info), "r"(reason));
+ __builtin_unreachable();
}
void panic_set_reason(uint32_t reason, uint32_t info, uint8_t exception)