From 9be51d883414584db0926ab854d6026e1785048b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 25 Feb 2024 08:06:38 +0100 Subject: Kernel: Morning bump. Signed-off-by: Amlal El Mahrouss --- Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp') diff --git a/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp b/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp index 4f1ed4da..2e75b6cb 100644 --- a/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp +++ b/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp @@ -14,10 +14,9 @@ HCore::Array kSyscalls; -// IDT System Call Handler. -// NOTE: don't trust the user. +/// @brief Interrupt system call handler. extern "C" void rt_syscall_handle(HCore::HAL::StackFrame *stack) { for (HCore::SizeT index = 0UL; index < kMaxSyscalls; ++index) { - (kSyscalls[index].Leak().Leak())(stack->R15, stack); + if (kSyscalls[index]) (kSyscalls[index].Leak().Leak())(stack->R15, stack); } } -- cgit v1.2.3