Added KCTL_IS_CRITICAL

This commit is contained in:
Alex 2023-02-19 01:51:36 +02:00
parent 4cdc3dffaa
commit 4454181448
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -102,6 +102,8 @@ static uintptr_t sys_kernelctl(SyscallsFrame *Frame, enum KCtl Command, uint64_t
return TaskManager->GetCurrentThread()->ID;
case KCTL_GET_PAGE_SIZE:
return PAGE_SIZE;
case KCTL_IS_CRITICAL:
return TaskManager->GetCurrentThread()->Security.IsCritical;
default:
{
warn("KernelCTL: Unknown command: %lld", Command);