X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fcoop.c;h=9b736166111eb97ce29276c996e1f0f46dfda4b2;hb=676de7015522237793874ac6eb17a0264f06e86c;hp=d0105972c86bfb4aeb21addd2a71bb78fec8fb00;hpb=48fa213cd00cd385ee7274baf83761099a6ceead;p=bertos.git diff --git a/bertos/kern/coop.c b/bertos/kern/coop.c index d0105972..9b736166 100644 --- a/bertos/kern/coop.c +++ b/bertos/kern/coop.c @@ -32,7 +32,7 @@ * * \brief Simple cooperative multitasking scheduler. * - * \version $Id: proc.c 1616 2008-08-10 19:41:26Z bernie $ + * \version $Id$ * \author Bernie Innocenti * \author Stefano Fedrigo */ @@ -56,7 +56,7 @@ * Saving and restoring the context on the stack is done by a CPU-dependent * support routine which usually needs to be written in assembly. */ -EXTERN_C void asm_switch_context(cpustack_t **new_sp, cpustack_t **save_sp); +EXTERN_C void asm_switch_context(cpu_stack_t **new_sp, cpu_stack_t **save_sp); /** @@ -65,7 +65,7 @@ EXTERN_C void asm_switch_context(cpustack_t **new_sp, cpustack_t **save_sp); */ static void proc_schedule(void) { - cpuflags_t flags; + cpu_flags_t flags; ATOMIC(LIST_ASSERT_VALID(&ProcReadyList)); ASSERT_USER_CONTEXT(); @@ -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(); @@ -111,7 +111,7 @@ void proc_switch(void) */ if (CurrentProcess != old_process) { - cpustack_t *dummy; + cpu_stack_t *dummy; #if CONFIG_KERN_MONITOR LOG_INFO("Switch from %p(%s) to %p(%s)\n",