From f3992c78790af42c53ed149cf04751261393d8e8 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 29 Feb 2024 16:32:49 +0100 Subject: 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 --- Private/HALKit/AMD64/HalCoreInterruptHandler.cpp | 42 ------------------------ 1 file changed, 42 deletions(-) delete mode 100644 Private/HALKit/AMD64/HalCoreInterruptHandler.cpp (limited to 'Private/HALKit/AMD64/HalCoreInterruptHandler.cpp') 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 -#include - -/// 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 -- cgit v1.2.3