panic("setrunqueue %x", p);
panic("setrunqueue %p", p);
setrunqueue(p)	struct proc *p;{	struct prochd *q;	struct proc *oldlast;	int which = p->p_priority >> 2;	if (p->p_back != NULL)		panic("setrunqueue %x", p);	q = &qs[which];	whichqs |= 1 << which;	p->p_forw = (struct proc *)q;	p->p_back = oldlast = q->ph_rlink;	q->ph_rlink = p;	oldlast->p_forw = p;}