Moved SyscallsLock

This commit is contained in:
Alex
2023-02-10 05:45:30 +02:00
parent 5ab15645ca
commit 742082f755
2 changed files with 5 additions and 28 deletions

View File

@ -4,8 +4,13 @@
#include "../kernel.h"
NewLock(SyscallsLock);
extern "C" uintptr_t SystemCallsHandler(SyscallsFrame *Frame)
{
CPU::Interrupts(CPU::Enable);
SmartLock(SyscallsLock); /* TODO: This should be replaced or moved somewhere else. */
#if defined(__amd64__)
switch (TaskManager->GetCurrentThread()->Info.Compatibility)
{