From f99e383775fa43c5c1354067962b1590ff2abdae Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 3 Feb 2024 20:39:06 +0100 Subject: NewBoot: Will work on AHCI instead, ATA is not getting any further in the future. Signed-off-by: Amlal El Mahrouss --- .../HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp (limited to 'Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp') diff --git a/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp b/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp new file mode 100644 index 00000000..4f1ed4da --- /dev/null +++ b/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp @@ -0,0 +1,23 @@ +/* + * ======================================================== + * + * HCore + * Copyright Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +#include +#include +#include + +HCore::Array + kSyscalls; + +// IDT System Call Handler. +// NOTE: don't trust the user. +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); + } +} -- cgit v1.2.3