From a9d87cbd143b05cc3de711d84401f8ef514f3aa3 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Fri, 30 Aug 2024 18:46:00 +0200 Subject: [IMP] Updated the ARM64 release of ZKA. [IMP] Shall use the timer on AMD64 by default, a SMP driver will be written if needed. Signed-off-by: Amlal EL Mahrouss --- dev/ZKA/KernelKit/ProcessScheduler.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dev/ZKA/KernelKit') diff --git a/dev/ZKA/KernelKit/ProcessScheduler.hxx b/dev/ZKA/KernelKit/ProcessScheduler.hxx index b25e0efc..e0dc326b 100644 --- a/dev/ZKA/KernelKit/ProcessScheduler.hxx +++ b/dev/ZKA/KernelKit/ProcessScheduler.hxx @@ -233,12 +233,12 @@ namespace Kernel ZKA_COPY_DEFAULT(ProcessTeam); - MutableArray>& AsArray(); + Array& AsArray(); Ref& AsRef(); UInt64& Id() noexcept; public: - MutableArray> mProcessList; + Array mProcessList; Ref mCurrentProcess; UInt64 mTeamId{0}; }; @@ -263,7 +263,7 @@ namespace Kernel ProcessTeam& CurrentTeam(); public: - SizeT Add(Ref& processRef); + SizeT Add(Ref processRef); Bool Remove(SizeT processSlot); public: @@ -278,14 +278,14 @@ namespace Kernel }; /* - * Just a helper class, which contains some utilities for the scheduler. + * \brief Process helper class, which contains needed utilities for the scheduler. */ class ProcessHelper final { public: - STATIC bool Switch(HAL::StackFrame* newStack, const PID& newPid); - STATIC bool CanBeScheduled(Ref& process); + STATIC bool Switch(HAL::StackFramePtr new_stack, const PID& new_pid); + STATIC bool CanBeScheduled(PROCESS_HEADER_BLOCK& process); STATIC PID& TheCurrentPID(); STATIC SizeT StartScheduling(); }; -- cgit v1.2.3