File:  [XINU] / xinu / sys / pscfuncts.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:57 2018 UTC (8 years, 2 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19910600, HEAD
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));
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.