Add test ARCH; remove macros.h dependency to allow to include this file also in prepr...
[bertos.git] / bertos / kern / coop.c
index dd3aee211d82db28b7123194247480efda92d541..16cb5811baf1ffae089dd421393380ff0ab3d005 100644 (file)
@@ -69,7 +69,7 @@ static void proc_schedule(void)
 
        ATOMIC(LIST_ASSERT_VALID(&ProcReadyList));
        ASSERT_USER_CONTEXT();
-       ASSERT_IRQ_ENABLED();
+       IRQ_ASSERT_ENABLED();
 
        /* Poll on the ready queue for the first ready process */
        IRQ_SAVE_DISABLE(flags);
@@ -101,7 +101,7 @@ static void proc_schedule(void)
 void proc_switch(void)
 {
        /* Remember old process to save its context later */
-       const Process *old_process = CurrentProcess;
+       Process * const old_process = CurrentProcess;
 
        proc_schedule();