summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit/AMD64/CoreSyscallHandlerAMD64.cpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-29 18:17:47 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-29 18:18:59 +0100
commit65254486efff0fd1bb78a48ff90b7713a5ce539f (patch)
tree20ce02c12a74ba9e6cd382bf9c1f09a0c611cb4d /Private/HALKit/AMD64/CoreSyscallHandlerAMD64.cpp
parentf03986937db0b927da4b10554801e18e4dc7c43f (diff)
Kernel: Update TODO.
Src: Refactorings according to clang-format. Meta: Update specification. Public: Remove useless UIKit. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/HALKit/AMD64/CoreSyscallHandlerAMD64.cpp')
-rw-r--r--Private/HALKit/AMD64/CoreSyscallHandlerAMD64.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/Private/HALKit/AMD64/CoreSyscallHandlerAMD64.cpp b/Private/HALKit/AMD64/CoreSyscallHandlerAMD64.cpp
index 3e8544e7..ccd81b9a 100644
--- a/Private/HALKit/AMD64/CoreSyscallHandlerAMD64.cpp
+++ b/Private/HALKit/AMD64/CoreSyscallHandlerAMD64.cpp
@@ -7,19 +7,17 @@
* ========================================================
*/
-#include <KernelKit/PermissionSelector.hxx>
-#include <HALKit/AMD64/Processor.hpp>
-
#include <ArchKit/Arch.hpp>
+#include <HALKit/AMD64/Processor.hpp>
+#include <KernelKit/PermissionSelector.hxx>
-hCore::Array<void (*)(hCore::Int32 id, hCore::HAL::StackFrame *), kMaxSyscalls> kSyscalls;
+hCore::Array<void (*)(hCore::Int32 id, hCore::HAL::StackFrame *), kMaxSyscalls>
+ 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->SID, stack);
- }
+extern "C" void rt_syscall_handle(hCore::HAL::StackFrame *stack) {
+ for (hCore::SizeT index = 0UL; index < kMaxSyscalls; ++index) {
+ (kSyscalls[index].Leak().Leak())(stack->SID, stack);
+ }
}