From 5339d016c07bf717ee388f4feb73544087324af0 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 6 Jan 2024 09:14:11 +0100 Subject: git: port from mercurial repo. Signed-off-by: Amlal El Mahrouss --- HALKit/PowerPC/CoreSyscallHandlerPowerPC.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 HALKit/PowerPC/CoreSyscallHandlerPowerPC.cpp (limited to 'HALKit/PowerPC/CoreSyscallHandlerPowerPC.cpp') 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 +#include + +hCore::Array 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); + } +} -- cgit v1.2.3