diff --git a/kernel/tskmgr.mac b/kernel/tskmgr.mac index 41eaafe..1665868 100644 --- a/kernel/tskmgr.mac +++ b/kernel/tskmgr.mac @@ -174,10 +174,15 @@ dsp2: call DOFORK ; else dispatch fork queue... pop hl dsp3: IF F$CHKP bit 2,(hl) - jr z,dsp1 + IF F$HALT + jr z,dsp6 ; No checkpoint, continue to halt check + ELSE + jr z,dsp1 ; No halt? Just restart loop + ENDIF res 2,(hl) call DECSWP ; time to decrement swap priorities call CHKPAR +dsp6: ENDIF IF F$HALT ; We just checked these, but with interrupts enabled.