--- xinu/sys/pcount.c 2018/04/24 17:39:03 1.1.1.1 +++ xinu/sys/pcount.c 2018/04/24 17:39:33 1.1.1.2 @@ -14,21 +14,23 @@ int portid; { int scnt; int count; - PStype ps; struct pt *ptptr; - disable(ps); +#ifdef DEBUG + dotrace("pcount", &portid, 1); +#endif + disable(); if ( isbadport(portid) || #ifdef MEMMARK unmarked(ptmark) || #endif (ptptr= &ports[portid])->ptstate != PTALLOC ) { - restore(ps); + restore(); return(SYSERR); } count = scount(ptptr->ptrsem); if ( (scnt=scount(ptptr->ptssem)) < 0 ) count -= scnt; /* add number waiting */ - restore(ps); + restore(); return(count); }