Some paranoia and deconfusion.  - setrunnable should never be run on SIDL processes. That's a bug and will    cause all kinds of trouble. Change the switch statement to panic    if that happens.  - p->p_stat == SRUN implies that p != curproc since curproc will always be    SONPROC. This is a leftover from before SONPROC.
Some paranoia and deconfusion.
 - setrunnable should never be run on SIDL processes. That's a bug and will
   cause all kinds of trouble. Change the switch statement to panic
   if that happens.
 - p->p_stat == SRUN implies that p != curproc since curproc will always be
   SONPROC. This is a leftover from before SONPROC.

deraadt@ "commit"

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars