Other platforms need the smae logic to bounce out of sleep when a signal
is shown pending
di
call _chksigs
; save machine state
+ ld a,l
+ or a
+ jr nz, switchsig
ld hl, #0 ; return code set here is ignored, but _switchin can
; return from either _switchout OR _dofork, so they must both write
ei
ret
+; As we tried to sleep we raced a signal so got the boot back out
+; into the land of the living.
+switchsig:
+ ld hl, (U_DATA__U_PTAB)
+ ld (hl), #P_RUNNING
+ ei
+ ret
+
slow_path:
; Stash the uarea back into process memory
call map_process_always