From 93cc541b7a4131fd2b21e74df1b21e8f548ea1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ku=C5=BAnia?= Date: Tue, 5 Aug 2025 13:21:06 +0200 Subject: [PATCH] while --- include/zephyr/arch/arm/error.h | 1 + .../hal_nordic/nrf_802154/include/nrf_802154_assert_zephyr.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/zephyr/arch/arm/error.h b/include/zephyr/arch/arm/error.h index 54463bacc80..faed09036d7 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/include/nrf_802154_assert_zephyr.h b/modules/hal_nordic/nrf_802154/include/nrf_802154_assert_zephyr.h index ecd09de609a..53abc99eeef 100644 --- a/modules/hal_nordic/nrf_802154/include/nrf_802154_assert_zephyr.h +++ b/modules/hal_nordic/nrf_802154/include/nrf_802154_assert_zephyr.h @@ -18,8 +18,8 @@ extern void nrf_802154_assert_handler(void); #define NRF_802154_ASSERT(condition) \ - do { \ - if (!(condition)) { \ + do { \ + if (!(condition)) { while(1) {}; \ nrf_802154_assert_handler(); \ } \ } while (0)