diff --git a/arch/arm/core/swap_helper.S b/arch/arm/core/swap_helper.S index b3f9abef242..3f998a845a9 100644 --- a/arch/arm/core/swap_helper.S +++ b/arch/arm/core/swap_helper.S @@ -301,7 +301,7 @@ _stack_frame_endif: cmp r1, #2 beq _oops -#if CONFIG_IRQ_OFFLOAD +#if defined(CONFIG_IRQ_OFFLOAD) push {r0, lr} bl z_irq_do_offload /* call C routine which executes the offload */ pop {r0, r1} @@ -367,7 +367,7 @@ SECTION_FUNC(TEXT, __svc) cmp r1, #2 beq _oops -#if CONFIG_IRQ_OFFLOAD +#if defined(CONFIG_IRQ_OFFLOAD) push {r0, lr} bl z_irq_do_offload /* call C routine which executes the offload */ pop {r0, lr}