diff options
Diffstat (limited to 'Private/HALKit/AMD64/HalCoreInterruptHandler.cpp')
| -rw-r--r-- | Private/HALKit/AMD64/HalCoreInterruptHandler.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp b/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp deleted file mode 100644 index c35d52cc..00000000 --- a/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#include <ArchKit/ArchKit.hpp> -#include <NewKit/String.hpp> - -/// BUGS = 1 - -/// @brief System call interrupt (like DOS and NT) -#define kKernelSyscallInterrupt (0x21) - -EXTERN_C { - HCore::Void rt_handle_interrupts(HCore::HAL::StackFramePtr stack) { - HCore::kcout << "HCoreKrnl: Interrupting Hart...\r\n"; - - switch (stack->IntNum) { - case kKernelSyscallInterrupt: { - HCore::kcout << "HCoreKrnl: System call raised, checking.." - << HCore::end_line(); - rt_syscall_handle(stack); - break; - } - - default: - break; - } - - if ((stack->IntNum - 32) >= 12) { - HCore::kcout << "HCoreKrnl: EOI Master PIC...\r\n"; - HCore::HAL::Out8(0xA0, 0x20); - } - - HCore::kcout << "HCoreKrnl: EOI Slave PIC...\r\n"; - HCore::HAL::Out8(0x20, 0x20); - } -}
\ No newline at end of file |
