diff options
Diffstat (limited to 'NewKernel/HALKit/AXP/CoreSyscallHandlerDEC.cpp')
| -rw-r--r-- | NewKernel/HALKit/AXP/CoreSyscallHandlerDEC.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/NewKernel/HALKit/AXP/CoreSyscallHandlerDEC.cpp b/NewKernel/HALKit/AXP/CoreSyscallHandlerDEC.cpp new file mode 100644 index 00000000..63a372e7 --- /dev/null +++ b/NewKernel/HALKit/AXP/CoreSyscallHandlerDEC.cpp @@ -0,0 +1,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); + } +} |
