|
|
Xinu for 68000/68010
/* resume.c - resume */
#include <conf.h>
#include <kernel.h>
#include <proc.h>
/*------------------------------------------------------------------------
* resume -- unsuspend a process, making it ready; return the priority
*------------------------------------------------------------------------
*/
SYSCALL resume(pid)
int pid;
{
struct pentry *pptr; /* pointer to proc. tab. entry */
int prio; /* priority to return */
disable();
if (isbadpid(pid) || (pptr= &proctab[pid])->pstate!=PRSUSP) {
restore();
return(SYSERR);
}
prio = pptr->pprio;
ready(pid, RESCHYES);
restore();
return(prio);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.