summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-25 18:19:19 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-25 18:19:41 +0100
commit91c88797f7fa9dbb6cce12c14928a6fbd97d51b6 (patch)
tree9dd58ee1e796684e6ec15902d39836e45a1cf054 /Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp
parent2bd2e28868d50a2f3ced8b1bfea68216ed35622a (diff)
Kernel: Did progress on interrupts, moved kernel main to HAL, as the
code here is very specific. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp')
-rw-r--r--Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp b/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp
index 5d1c6d2b..51b1fa0d 100644
--- a/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp
+++ b/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp
@@ -10,12 +10,12 @@
#include <ArchKit/ArchKit.hpp>
#include <HALKit/Alpha/Processor.hpp>
-HCore::Array<void (*)(HCore::Int32 id, HCore::HAL::StackFrame *), kMaxSyscalls> kSyscalls;
+HCore::Array<void (*)(HCore::Int32 id, HCore::HAL::StackFrame *),
+ kKernelMaxSystemCalls>
+ 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);
- }
+extern "C" void rt_syscall_handle(HCore::HAL::StackFrame *stack) {
+ for (HCore::SizeT index = 0UL; index < kKernelMaxSystemCalls; ++index) {
+ (kSyscalls[index].Leak().Leak())(stack->ID, stack);
+ }
}