blob: 63a372e7d8287835488737192bfba79eab95d0fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* -------------------------------------------
Copyright Mahrouss Logic
------------------------------------------- */
#include <ArchKit/ArchKit.hpp>
#include <HALKit/Alpha/Processor.hpp>
NewOS::Array<void (*)(NewOS::Int32 id, NewOS::HAL::StackFrame*),
kKernelMaxSystemCalls>
kSyscalls;
extern "C" void rt_syscall_handle(NewOS::HAL::StackFrame* stack)
{
for (NewOS::SizeT index = 0UL; index < kKernelMaxSystemCalls; ++index)
{
(kSyscalls[index].Leak().Leak())(stack->ID, stack);
}
}
|