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/HalCoreInterruptHandler.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/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 |
