/SPARTAN/trunk/src/proc/scheduler.c |
---|
57,7 → 57,7 |
void before_thread_runs(void) |
{ |
before_thread_runs_arch(); |
fpu_context_restore(&(THREAD->saved_fpu_context)); |
fpu_context_restore(); |
} |
204,7 → 204,6 |
if (THREAD) { |
spinlock_lock(&THREAD->lock); |
fpu_context_save(&(THREAD->saved_fpu_context)); |
if (!context_save(&THREAD->saved_context)) { |
/* |
* This is the place where threads leave scheduler(); |