mirror of
https://github.com/FDOS/kernel.git
synced 2025-09-24 10:28:01 +02:00
entry.asm: fix int 24h stack changes to ensure interrupt lockout (#213)
This commit is contained in:
parent
6094067574
commit
017e083275
@ -646,8 +646,8 @@ CritErr05:
|
|||||||
;
|
;
|
||||||
; switch to user's stack
|
; switch to user's stack
|
||||||
;
|
;
|
||||||
mov ss,[es:PSP_USERSS]
|
|
||||||
mov bp,[es:PSP_USERSP]
|
mov bp,[es:PSP_USERSP]
|
||||||
|
mov ss,[es:PSP_USERSS]
|
||||||
RestoreSP
|
RestoreSP
|
||||||
Restore386Registers
|
Restore386Registers
|
||||||
mov bp,cx
|
mov bp,cx
|
||||||
@ -747,9 +747,9 @@ CritErrAbort:
|
|||||||
mov al,FAIL
|
mov al,FAIL
|
||||||
jz CritErrExit
|
jz CritErrExit
|
||||||
cli
|
cli
|
||||||
mov bp,word [_user_r+2] ;Get frame
|
mov ax,word [_user_r+2] ;Get frame
|
||||||
mov ss,bp
|
|
||||||
mov bp,word [_user_r]
|
mov bp,word [_user_r]
|
||||||
|
mov ss,ax
|
||||||
mov sp,bp
|
mov sp,bp
|
||||||
mov byte [_ErrorMode],1 ; flag abort
|
mov byte [_ErrorMode],1 ; flag abort
|
||||||
mov ax,4C00h
|
mov ax,4C00h
|
||||||
|
Loading…
x
Reference in New Issue
Block a user