blob: 1e46e5afb046688ba39bb532dca2c9d4cfb033d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* ========================================================
*
* 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;
if (sf->IntNum == 0x21) {
rt_syscall_handle(sf);
}
HCore::HAL::Out8(0x20, 0x20);
HCore::HAL::Out8(0xa0, 0x20);
HCore::HAL::rt_sti();
return rsp;
}
|