From 2cf9f370d40a5c6512530c600292c5fac0410e11 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 27 Feb 2024 21:57:04 +0100 Subject: Kernel: remove SFN, hanging interrupts and COM1 logging. Signed-off-by: Amlal El Mahrouss --- Private/HALKit/AMD64/HalCoreInterruptHandler.cpp | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'Private/HALKit/AMD64/HalCoreInterruptHandler.cpp') diff --git a/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp b/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp index eb81532d..0b3af515 100644 --- a/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp +++ b/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp @@ -35,7 +35,7 @@ static const char* kExceptionMessages[32] = { "Reserved", "Reserved", "Reserved", - "Reservedl", + "Reserved", "Reserved", "Reserved", "Reserved", @@ -49,16 +49,24 @@ static const char* kExceptionMessages[32] = { /// @brief System call interrupt (like DOS and NT) #define kKernelSyscallInterrupt (0x21) -EXTERN_C HCore::UIntPtr rt_handle_interrupts(HCore::UIntPtr &rsp) { - HCore::HAL::StackFramePtr sf = (HCore::HAL::StackFramePtr)rsp; +extern "C" { - if (sf->IntNum < 32) { +HCore::UIntPtr rt_handle_interrupts(HCore::HAL::StackFramePtr sf) { + HCore::HAL::rt_cli(); + if (sf->IntNum < 32) { } else if (sf->IntNum == 0x21) { - } - return rsp; -} + if ((sf->IntNum - 32) >= 12) { + HCore::HAL::Out8(0xA0, 0x20); + } + + HCore::HAL::Out8(0x20, 0x20); + HCore::HAL::rt_sti(); + + return (HCore::UIntPtr)sf; +} +} \ No newline at end of file -- cgit v1.2.3