X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fhw%2Fswitch_ctx_cm3.c;h=b9afaae07976517b2fba4d20d6b4f6621221aaaf;hb=ac85598df47d68e71ce45b9b0803b1d885c11084;hp=7b36d9025bbb2ff8def5b8e0807c3a49282ab883;hpb=d9630fbb14997e3980bf0e4af4f0320a9bf69c12;p=bertos.git diff --git a/bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c b/bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c index 7b36d902..b9afaae0 100644 --- a/bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c +++ b/bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c @@ -123,6 +123,8 @@ void NAKED pendsv_handler(void) : "memory"); } #else /* !CONFIG_KERN_PREEMPT */ +#ifdef __IAR_SYSTEMS_ICC__ +#else /* __IAR_SYSTEMS_ICC__ */ void NAKED asm_switch_context(cpu_stack_t **new_sp, cpu_stack_t **old_sp) { register cpu_stack_t **_new_sp asm("r0") = new_sp; @@ -142,4 +144,5 @@ void NAKED asm_switch_context(cpu_stack_t **new_sp, cpu_stack_t **old_sp) "bx lr" : : "r"(_new_sp), "r"(_old_sp) : "ip", "memory"); } +#endif /* __IAR_SYSTEMS_ICC__ */ #endif /* CONFIG_KERN_PREEMPT */