diff options
Diffstat (limited to 'Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp')
| -rw-r--r-- | Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp b/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp new file mode 100644 index 00000000..0881f9c6 --- /dev/null +++ b/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp @@ -0,0 +1,21 @@ +/* + * ======================================================== + * + * HCore + * Copyright 2024 Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +#include <ArchKit/Arch.hpp> +#include <HALKit/Alpha/Processor.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); + } +} |
