From 445418144868b24e1d429556d034336fdcf0c1f7 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 19 Feb 2023 01:51:36 +0200 Subject: [PATCH] Added KCTL_IS_CRITICAL --- SystemCalls/Native.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SystemCalls/Native.cpp b/SystemCalls/Native.cpp index c576e3c..2a350c5 100644 --- a/SystemCalls/Native.cpp +++ b/SystemCalls/Native.cpp @@ -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);