From 91c88797f7fa9dbb6cce12c14928a6fbd97d51b6 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 25 Feb 2024 18:19:19 +0100 Subject: Kernel: Did progress on interrupts, moved kernel main to HAL, as the code here is very specific. Signed-off-by: Amlal El Mahrouss --- Private/HALKit/AMD64/HalCoreInterruptHandler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Private/HALKit/AMD64/HalCoreInterruptHandler.cpp') diff --git a/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp b/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp index a668a0e4..1e46e5af 100644 --- a/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp +++ b/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp @@ -16,10 +16,14 @@ extern "C" HCore::UIntPtr rt_handle_interrupts(HCore::UIntPtr &rsp) { HCore::HAL::StackFramePtr sf = (HCore::HAL::StackFramePtr)rsp; - rt_syscall_handle(sf); + if (sf->IntNum == 0x21) { + rt_syscall_handle(sf); + } - HCore::kcout << "Krnl\\rt_handle_interrupts: Done\r\n"; + HCore::HAL::Out8(0x20, 0x20); + HCore::HAL::Out8(0xa0, 0x20); HCore::HAL::rt_sti(); + return rsp; } -- cgit v1.2.3