Added implementation of critical thread/process

This commit is contained in:
Alex
2022-11-06 03:43:12 +02:00
parent 954223cbf5
commit 3d947c2a03
4 changed files with 17 additions and 4 deletions

View File

@ -117,8 +117,13 @@ namespace CrashHandler
else
{
debug("Exception in user mode");
UserModeExceptionHandler(Frame);
return;
if (!GetCurrentCPU()->CurrentThread->Security.IsCritical)
{
UserModeExceptionHandler(Frame);
return;
}
else
EHPrint("\eFF0000Init process crashed!");
}
debug("Reading control registers...");