From 91c88797f7fa9dbb6cce12c14928a6fbd97d51b6 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 25 Feb 2024 18:19:19 +0100 Subject: Kernel: Did progress on interrupts, moved kernel main to HAL, as the code here is very specific. Signed-off-by: Amlal El Mahrouss --- Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp') diff --git a/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp b/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp index 2e75b6cb..cacb66d8 100644 --- a/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp +++ b/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp @@ -11,12 +11,13 @@ #include #include -HCore::Array +HCore::Array kSyscalls; /// @brief Interrupt system call handler. extern "C" void rt_syscall_handle(HCore::HAL::StackFrame *stack) { - for (HCore::SizeT index = 0UL; index < kMaxSyscalls; ++index) { + for (HCore::SizeT index = 0UL; index < kKernelMaxSystemCalls; ++index) { if (kSyscalls[index]) (kSyscalls[index].Leak().Leak())(stack->R15, stack); } } -- cgit v1.2.3