summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp
blob: 51b1fa0d8044cf5228faefd153eb10f0ef9a7e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 *	========================================================
 *
 *	HCore
 * 	Copyright Mahrouss Logic, all rights reserved.
 *
 * 	========================================================
 */

#include <ArchKit/ArchKit.hpp>
#include <HALKit/Alpha/Processor.hpp>

HCore::Array<void (*)(HCore::Int32 id, HCore::HAL::StackFrame *),
             kKernelMaxSystemCalls>
    kSyscalls;

extern "C" void rt_syscall_handle(HCore::HAL::StackFrame *stack) {
  for (HCore::SizeT index = 0UL; index < kKernelMaxSystemCalls; ++index) {
    (kSyscalls[index].Leak().Leak())(stack->ID, stack);
  }
}