summaryrefslogtreecommitdiffhomepage
path: root/NewKernel/HALKit/AXP/CoreSyscallHandlerDEC.cpp
blob: c6ef29fcf7ba4f7f8c4f1f52c91e5eaae8c2c86b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* -------------------------------------------

    Copyright SoftwareLabs

------------------------------------------- */

#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);
	}
}