--- xinu/sys/pcreate.c 2018/04/24 17:39:04 1.1 +++ xinu/sys/pcreate.c 2018/04/24 17:40:09 1.1.1.2 @@ -12,13 +12,15 @@ SYSCALL pcreate(count) int count; { - PStype ps; int i, p; struct pt *ptptr; +#ifdef DEBUG + dotrace("pcreate", &count, 1); +#endif if (count < 0) return(SYSERR); - disable(ps); + disable(); #ifdef MEMMARK if (mark(ptmark) == OK) pinit(MAXMSGS); @@ -30,14 +32,13 @@ int count; ptptr->ptstate = PTALLOC; ptptr->ptssem = screate(count); ptptr->ptrsem = screate(0); - ptptr->pthead = ptptr->pttail - = (struct ptnode *)NULL; + ptptr->pthead = ptptr->pttail = (struct ptnode *)NULL; ptptr->ptseq++; ptptr->ptmaxcnt = count; - restore(ps); + restore(); return(p); } } - restore(ps); + restore(); return(SYSERR); }