From 9be51d883414584db0926ab854d6026e1785048b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 25 Feb 2024 08:06:38 +0100 Subject: Kernel: Morning bump. Signed-off-by: Amlal El Mahrouss --- Private/HALKit/AMD64/HalCoreInterruptHandler.cpp | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create 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 new file mode 100644 index 00000000..a668a0e4 --- /dev/null +++ b/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp @@ -0,0 +1,25 @@ +/* + * ======================================================== + * + * HCore + * Copyright Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +#include +#include +#include + +extern "C" HCore::UIntPtr rt_handle_interrupts(HCore::UIntPtr &rsp) { + HCore::HAL::rt_cli(); + + HCore::HAL::StackFramePtr sf = (HCore::HAL::StackFramePtr)rsp; + + rt_syscall_handle(sf); + + HCore::kcout << "Krnl\\rt_handle_interrupts: Done\r\n"; + + HCore::HAL::rt_sti(); + return rsp; +} -- cgit v1.2.3