summaryrefslogtreecommitdiffhomepage
path: root/HALKit/PowerPC/CoreSyscallHandlerPowerPC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'HALKit/PowerPC/CoreSyscallHandlerPowerPC.cpp')
-rw-r--r--HALKit/PowerPC/CoreSyscallHandlerPowerPC.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/HALKit/PowerPC/CoreSyscallHandlerPowerPC.cpp b/HALKit/PowerPC/CoreSyscallHandlerPowerPC.cpp
new file mode 100644
index 00000000..213b45ec
--- /dev/null
+++ b/HALKit/PowerPC/CoreSyscallHandlerPowerPC.cpp
@@ -0,0 +1,21 @@
+/*
+ * ========================================================
+ *
+ * hCore
+ * Copyright 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);
+ }
+}