entry.asm: allow critical error Abort on self-parented process

Fixes #213
This commit is contained in:
E. C. Masloch 2025-08-22 16:31:46 +02:00 committed by Kenneth J Davis
parent 017e083275
commit 2b54761e28

View File

@ -741,11 +741,16 @@ CritErrExit:
; Abort processing.
;
CritErrAbort:
%if 0
mov ax,[_cu_psp]
mov es,ax
cmp ax,[es:PSP_PARENT]
mov al,FAIL
jz CritErrExit
; ecm: This check is done by (E)DR-DOS, but not MS-DOS.
; Therefore, disable it and terminate the self-parented
; process here like any other.
%endif
cli
mov ax,word [_user_r+2] ;Get frame
mov bp,word [_user_r]