Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 317 → Rev 318

/shark/trunk/kernel/tpreempt.c
18,11 → 18,11
 
/**
------------
CVS : $Id: tpreempt.c,v 1.2 2003-01-07 17:07:49 pj Exp $
CVS : $Id: tpreempt.c,v 1.3 2003-11-05 15:05:12 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.2 $
Last update: $Date: 2003-01-07 17:07:49 $
Revision: $Revision: 1.3 $
Last update: $Date: 2003-11-05 15:05:12 $
------------
 
task_preempt and task_nopreempt
68,14 → 68,16
descriptor control field +*/
void task_nopreempt(void)
{
SYS_FLAGS f;
 
if ((~proc_table[exec_shadow].control) & NO_PREEMPT) {
kern_cli();
f = kern_fsave();
proc_table[exec_shadow].control |= NO_PREEMPT;
if (cap_timer != NIL) {
kern_event_delete(cap_timer);
cap_timer = NIL;
}
kern_sti();
kern_frestore(f);
}
}