X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fhw%2Finit_cm3.c;h=8415cbfb089083d224b7231e13dec3e88ca0caae;hb=aca6bbcc7cc5625d1bae4b059d068840cfb84768;hp=079f08a31728acfd35feff4b0f11a8a895b3792d;hpb=9550884ef08501d68bda54d7ed3f41ccc24694eb;p=bertos.git diff --git a/bertos/cpu/cortex-m3/hw/init_cm3.c b/bertos/cpu/cortex-m3/hw/init_cm3.c index 079f08a3..8415cbfb 100644 --- a/bertos/cpu/cortex-m3/hw/init_cm3.c +++ b/bertos/cpu/cortex-m3/hw/init_cm3.c @@ -93,7 +93,7 @@ void __init2(void) /* Initialize IRQ vector table in RAM */ sysirq_init(); -#if CONFIG_KERN_PREEMPT +#if (CONFIG_KERN && CONFIG_KERN_PREEMPT) /* * Voluntary context switch handler. *