summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp')
-rw-r--r--Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp b/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp
new file mode 100644
index 00000000..c1672e68
--- /dev/null
+++ b/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp
@@ -0,0 +1,20 @@
+/*
+ * ========================================================
+ *
+ * HCore
+ * Copyright Mahrouss Logic, all rights reserved.
+ *
+ * ========================================================
+ */
+
+#include <ArchKit/ArchKit.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);
+ }
+}