Subversion Repositories HelenOS-historic

Compare Revisions

Regard whitespace Rev 21 → Rev 22

/SPARTAN/trunk/src/Makefile.config
5,7 → 5,7
#ARCH=amd64
 
# Support for symetric multiprocessors
SMP=__SMP__
#SMP=__SMP__
 
# Improved support for hyperthreading
HT=__HT__
/SPARTAN/trunk/src/proc/scheduler.c
201,6 → 201,7
/*
* This is the place where threads leave scheduler();
*/
before_thread_runs();
spinlock_unlock(&THREAD->lock);
cpu_priority_restore(THREAD->saved_context.pri);
return;
/SPARTAN/trunk/src/proc/thread.c
69,6 → 69,8
void (*f)(void *) = THREAD->thread_code;
void *arg = THREAD->thread_arg;
 
before_thread_runs();
 
/* this is where each thread wakes up after its creation */
spinlock_unlock(&THREAD->lock);
cpu_priority_low();