--- xinu/sys/screate.c 2018/04/24 17:39:04 1.1.1.1 +++ xinu/sys/screate.c 2018/04/24 17:39:57 1.1.1.2 @@ -13,17 +13,16 @@ SYSCALL screate(count) int count; /* initial count (>=0) */ { - PStype ps; int sem; - disable(ps); + disable(); if ( count<0 || (sem=newsem())==SYSERR ) { - restore(ps); + restore(); return(SYSERR); } semaph[sem].semcnt = count; /* sqhead and sqtail were initialized at system startup */ - restore(ps); + restore(); return(sem); }