Compare commits

...

3 commits

Author SHA1 Message Date
Michael Mikonos
2c2bcd672e
Merge 8f29039141 into a95d5559de 2024-11-21 12:54:11 +00:00
Arsenic Blood
8f29039141
Merge branch 'master' into fault2_sav2 2024-03-07 00:00:00 -05:00
Michael Mikonos
19c082984c save and restore text.raw_flags conditionally 2023-11-01 15:02:50 +08:00

View file

@ -711,7 +711,7 @@ U0 Fault2(I64 fault_num, I64 fault_err_code)
{//Called from $LK,"Fault2",A="FF:::/Kernel/KInterrupts.ZC,Fault2"$. {//Called from $LK,"Fault2",A="FF:::/Kernel/KInterrupts.ZC,Fault2"$.
//$BK,1$Be careful not to swap-out and ruin the saved context$BK,0$ //$BK,1$Be careful not to swap-out and ruin the saved context$BK,0$
Bool was_raw, was_single_user, was_silent, was_in_debug, was_mouse_enabled; Bool was_raw, was_single_user, was_silent, was_in_debug, was_mouse_enabled;
I64 i, old_raw_flags = text.raw_flags; I64 i, old_raw_flags;
was_single_user = SingleUser(ON); was_single_user = SingleUser(ON);
if (!IsDebugMode) if (!IsDebugMode)
@ -723,6 +723,7 @@ U0 Fault2(I64 fault_num, I64 fault_err_code)
CallExtNum(EXT_DEBUG_RESUME, fault_num, fault_err_code); CallExtNum(EXT_DEBUG_RESUME, fault_num, fault_err_code);
else else
{ {
old_raw_flags = text.raw_flags;
was_mouse_enabled = CallExtStr("MouseHardEnable", FALSE); was_mouse_enabled = CallExtStr("MouseHardEnable", FALSE);
was_raw = Raw(ON); was_raw = Raw(ON);
was_silent = Silent(OFF); was_silent = Silent(OFF);