summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp')
-rw-r--r--Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp b/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp
deleted file mode 100644
index 7d0178fe..00000000
--- a/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * ========================================================
- *
- * HCore
- * Copyright Mahrouss Logic, all rights reserved.
- *
- * ========================================================
- */
-
-#include <ArchKit/ArchKit.hpp>
-#include <HALKit/AMD64/Processor.hpp>
-#include <KernelKit/PermissionSelector.hxx>
-
-typedef HCore::Void (*rt_syscall_proc)(HCore::HAL::StackFramePtr);
-
-HCore::Array<rt_syscall_proc, kKernelMaxSystemCalls> kSyscalls;
-
-/// @brief Interrupt system call handler.
-EXTERN_C void rt_syscall_handle(HCore::HAL::StackFramePtr stack) {
- if (!stack) return;
-
- if (stack->Rcx < kKernelMaxSystemCalls && kSyscalls[stack->Rcx] != 0) {
- (kSyscalls[stack->Rcx].Leak().Leak())(stack);
- }
-}