--- researchv9/sys/sun3/vax.s 2018/04/24 17:21:59 1.1.1.1 +++ researchv9/sys/sun3/vax.s 2018/04/24 17:30:10 1.1.1.2 @@ -129,6 +129,8 @@ movl sp@(4),a0 | get proc pointer tstl a0@(P_RLINK) | firewall: p->p_rlink must be 0 jne 1f + btst #SPROCIO_BIT-24,a0@(P_FLAG) | if he's getting PROCIO'd, + jne 3f | we leave him alone moveq #31,d1 clrl d0 movb a0@(P_PRI),d0 | get the priority @@ -142,6 +144,7 @@ movl a0@,a1 movl a0,a1@(4) bfset _whichqs{d0:#1} | set appropriate bit in whichqs +3: rts 1: pea 2f @@ -157,7 +160,9 @@ */ ENTRY(remrq) movl sp@(4),a0 - clrl d0 + btst #SPROCIO_BIT-24,a0@(P_FLAG) | if he's getting PROCIO'd, + jne rem2a | we leave him alone + clrl d0 movb a0@(P_PRI),d0 lsrl #2,d0 | divide by 4 bftst _whichqs{d0:#1} @@ -172,6 +177,7 @@ 2: movl sp@(4),a0 clrl a0@(P_RLINK) +rem2a: rts 1: pea 3f