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