|
|
Xinu for 68000/68010
#include <kernel.h>
#include <proc.h>
disable()
{
#ifdef DEBUG
dotrace("disable()",NULL,NULL);
#endif
if (!(proctab[currpid].phasps)++)
_disable(&(proctab[currpid].pstatreg));
}
restore()
{
#ifdef DEBUG
dotrace("restore()",NULL,NULL);
#endif
if (--(proctab[currpid].phasps) == 0)
_restore(&(proctab[currpid].pstatreg));
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.