Explicit dependancy between CONFIG_KERN_PREEMPT and CONFIG_KERN.
[bertos.git] / bertos / cpu / cortex-m3 / hw / init_cm3.c
index 079f08a31728acfd35feff4b0f11a8a895b3792d..8415cbfb089083d224b7231e13dec3e88ca0caae 100644 (file)
@@ -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.
         *