summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-07 12:51:01 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-07 12:51:14 +0100
commitd466b19e570644651a6ceb235c076fb1e3b30a35 (patch)
treef6a6c6f70a315672d498087103102c9de1defe04 /Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp
parent6e0378ee5f78691fe3326dc128aaf0a31d99960e (diff)
Meta: Convention: Update PowerPC HAL filenames.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
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);
+ }
+}