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