diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-29 16:32:49 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-29 16:34:06 +0100 |
| commit | f3992c78790af42c53ed149cf04751261393d8e8 (patch) | |
| tree | 065fc8b2c6bb9305aefe5e4c2bf585b6cc20dafe /Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp | |
| parent | 1a22cb4fd330bf01f1c94bd12fcad9ab278b4f80 (diff) | |
Kernel: Pre-Release
- Kernel
- Bootloader
Working on AHCI support, AHCI is very important to bring fast I/O
support, ACPI and APIC is also in WiP for AMD64 HAL this time.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp')
| -rw-r--r-- | Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp | 25 |
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); - } -} |
