/SPARTAN/trunk/src/proc/thread.c |
---|
165,7 → 165,8 |
context_save(&t->saved_context); |
context_set(&t->saved_context, FADDR(cushion), t->kstack, THREAD_STACK_SIZE); |
t->saved_context.pc = FADDR(cushion); |
t->saved_context.sp = (__address) &t->kstack[THREAD_STACK_SIZE-SP_DELTA]; |
pri = cpu_priority_high(); |
t->saved_context.pri = cpu_priority_read(); |