From 2448898e2a1996f660c3a35dd3d174194a231981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ku=C5=BAnia?= Date: Tue, 9 Sep 2025 11:39:37 +0200 Subject: [PATCH] assert --- include/zephyr/arch/arm/error.h | 1 + modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/zephyr/arch/arm/error.h b/include/zephyr/arch/arm/error.h index 54463bacc80..4b30236e005 100644 --- a/include/zephyr/arch/arm/error.h +++ b/include/zephyr/arch/arm/error.h @@ -35,6 +35,7 @@ extern "C" { */ #define ARCH_EXCEPT(reason_p) \ do {\ + while(1) {} \ arch_irq_unlock(0); \ __asm__ volatile( \ "mov r0, %[_reason]\n" \ diff --git a/modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c b/modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c index 14d964724c6..63bbc19f163 100644 --- a/modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c +++ b/modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c @@ -11,6 +11,7 @@ __weak void nrf_802154_assert_handler(void) { + while(1) {} #ifdef CONFIG_USERSPACE /* User threads aren't allowed to induce kernel panics; generate * an oops instead.