20,11 → 20,11 |
|
/** |
------------ |
CVS : $Id: sem.c,v 1.8 2004-01-08 20:10:42 giacomo Exp $ |
CVS : $Id: sem.c,v 1.9 2004-03-10 14:51:44 giacomo Exp $ |
|
File: $File$ |
Revision: $Revision: 1.8 $ |
Last update: $Date: 2004-01-08 20:10:42 $ |
Revision: $Revision: 1.9 $ |
Last update: $Date: 2004-03-10 14:51:44 $ |
------------ |
|
This file contains the Hartik 3.3.1 Semaphore functions |
360,7 → 360,7 |
LEVEL l; /* for readableness only */ |
|
/* tracer stuff */ |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_wait,3,*s,proc_table[exec_shadow].context); |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_wait,(unsigned short int)proc_table[exec_shadow].context,(unsigned int)*s); |
|
kern_epilogue_macro(); |
|
388,7 → 388,7 |
else { |
s1->count--; |
/* tracer stuff */ |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_wait,3,*s,proc_table[exec_shadow].context); |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_wait,(unsigned short int)proc_table[exec_shadow].context,(unsigned int)*s); |
kern_context_load(proc_table[exec_shadow].context); |
} |
|
470,7 → 470,7 |
LEVEL l; /* for readableness only */ |
|
/* tracer */ |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_wait,3,*s,proc_table[exec_shadow].context); |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_wait,(unsigned short int)proc_table[exec_shadow].context,(unsigned int)*s); |
|
kern_epilogue_macro(); |
|
498,7 → 498,7 |
else { |
s1->count -= n; |
/* tracer */ |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_wait,3,*s,proc_table[exec_shadow].context); |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_wait,(unsigned short int)proc_table[exec_shadow].context,(unsigned int)*s); |
kern_context_load(proc_table[exec_shadow].context); |
} |
} |
545,7 → 545,7 |
} |
|
/* tracer */ |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_lock,3,*s,proc_table[exec_shadow].context); |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_lock,(unsigned short int)proc_table[exec_shadow].context,(unsigned int)*s); |
kern_frestore(f); |
} |
else { |
570,7 → 570,7 |
} |
|
/* tracer */ |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_lock,3,*s,proc_table[exec_shadow].context); |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_lock,(unsigned short int)proc_table[exec_shadow].context,(unsigned int)*s); |
|
kern_context_load(proc_table[exec_shadow].context); |
} |
620,7 → 620,7 |
} |
|
/* tracer */ |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_lock,3,*s,proc_table[exec_shadow].context); |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_lock,(unsigned short int)proc_table[exec_shadow].context,(unsigned int)*s); |
|
/* Preempt if necessary */ |
if (fl) event_need_reschedule(); |
650,7 → 650,7 |
} |
|
/* tracer */ |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_lock,3,*s,proc_table[exec_shadow].context); |
TRACER_LOGEVENT(FTrace_EVT_set_mutex_lock,(unsigned short int)proc_table[exec_shadow].context,(unsigned int)*s); |
|
/* Preempt if necessary */ |
if (fl) scheduler(); |