Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 96 → Rev 97

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