diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-25 18:19:19 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-25 18:19:41 +0100 |
| commit | 91c88797f7fa9dbb6cce12c14928a6fbd97d51b6 (patch) | |
| tree | 9dd58ee1e796684e6ec15902d39836e45a1cf054 /Private/HALKit/AMD64/HalCoreInterruptHandler.cpp | |
| parent | 2bd2e28868d50a2f3ced8b1bfea68216ed35622a (diff) | |
Kernel: Did progress on interrupts, moved kernel main to HAL, as the
code here is very specific.
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 | 8 |
1 files changed, 6 insertions, 2 deletions
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; } |
