mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Added KCTL_IS_CRITICAL
This commit is contained in:
parent
4cdc3dffaa
commit
4454181448
@ -102,6 +102,8 @@ static uintptr_t sys_kernelctl(SyscallsFrame *Frame, enum KCtl Command, uint64_t
|
|||||||
return TaskManager->GetCurrentThread()->ID;
|
return TaskManager->GetCurrentThread()->ID;
|
||||||
case KCTL_GET_PAGE_SIZE:
|
case KCTL_GET_PAGE_SIZE:
|
||||||
return PAGE_SIZE;
|
return PAGE_SIZE;
|
||||||
|
case KCTL_IS_CRITICAL:
|
||||||
|
return TaskManager->GetCurrentThread()->Security.IsCritical;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
warn("KernelCTL: Unknown command: %lld", Command);
|
warn("KernelCTL: Unknown command: %lld", Command);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user