diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-30 18:46:00 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-30 19:56:02 +0200 |
| commit | a9d87cbd143b05cc3de711d84401f8ef514f3aa3 (patch) | |
| tree | cfc703f1dc02f6894b4d6d173d18d84be5757c5f /dev/ZKA/KernelKit | |
| parent | 5229ca8ae190c0cb3db8d381a44be4113e81d5dc (diff) | |
[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 <amlalelmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/KernelKit')
| -rw-r--r-- | dev/ZKA/KernelKit/ProcessScheduler.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
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<Ref<PROCESS_HEADER_BLOCK>>& AsArray(); + Array<PROCESS_HEADER_BLOCK, kSchedProcessLimitPerTeam>& AsArray(); Ref<PROCESS_HEADER_BLOCK>& AsRef(); UInt64& Id() noexcept; public: - MutableArray<Ref<PROCESS_HEADER_BLOCK>> mProcessList; + Array<PROCESS_HEADER_BLOCK, kSchedProcessLimitPerTeam> mProcessList; Ref<PROCESS_HEADER_BLOCK> mCurrentProcess; UInt64 mTeamId{0}; }; @@ -263,7 +263,7 @@ namespace Kernel ProcessTeam& CurrentTeam(); public: - SizeT Add(Ref<PROCESS_HEADER_BLOCK>& processRef); + SizeT Add(Ref<PROCESS_HEADER_BLOCK> 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_HEADER_BLOCK>& 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(); }; |
