diff options
Diffstat (limited to 'Private/HALKit/AMD64/HalCoreInterruptHandler.cpp')
| -rw-r--r-- | Private/HALKit/AMD64/HalCoreInterruptHandler.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
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 <ArchKit/ArchKit.hpp> +#include <KernelKit/ProcessManager.hpp> +#include <NewKit/String.hpp> + +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; +} |
