--- xinu/sys/sendf.c 2018/04/24 17:39:04 1.1.1.1 +++ xinu/sys/sendf.c 2018/04/24 17:39:43 1.1.1.2 @@ -10,26 +10,18 @@ */ SYSCALL sendf(pid, msg) int pid; -int msg; +WORD msg; { struct pentry *pptr; - PStype ps; - disable(ps); + disable(); if (isbadpid(pid)||((pptr= &proctab[pid])->pstate == PRFREE)) { - restore(ps); + restore(); return(SYSERR); } pptr->pmsg = msg; - pptr->phasmsg = TRUE; + pptr->phasmsg++; if (pptr->pstate == PRRECV) ready(pid, RESCHYES); -#ifdef RTCLOCK - else if (pptr->pstate == PRTRECV) { - unsleep(pid); - ready(pid, RESCHYES); - } -#endif - restore(ps); return(OK); }