diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-29 14:51:58 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-29 14:51:58 +0200 |
| commit | 60902ec5fc462128d264f63f279c7fc362a72e1d (patch) | |
| tree | 92ec898fb28e0be2fef65094392c3575af721cc2 /Kernel/KernelKit | |
| parent | 30411936809d66538ca279a5b5d20865c54afd5c (diff) | |
[IMP] Replace SMP manager with Multi Processing manager.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/KernelKit')
| -rw-r--r-- | Kernel/KernelKit/MPManager.hpp (renamed from Kernel/KernelKit/SMPManager.hpp) | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Kernel/KernelKit/SMPManager.hpp b/Kernel/KernelKit/MPManager.hpp index a7af05d9..6f23dd66 100644 --- a/Kernel/KernelKit/SMPManager.hpp +++ b/Kernel/KernelKit/MPManager.hpp @@ -4,8 +4,8 @@ ------------------------------------------- */ -#ifndef __INC_SMP_MANAGER_HPP__ -#define __INC_SMP_MANAGER_HPP__ +#ifndef __INC_MP_MANAGER_HPP__ +#define __INC_MP_MANAGER_HPP__ #include <ArchKit/ArchKit.hpp> #include <CompilerKit/CompilerKit.hxx> @@ -65,30 +65,30 @@ namespace Kernel const ThreadID& ID() noexcept; private: - HAL::StackFrame* fStack; + HAL::StackFrame* fStack{nullptr}; ThreadKind fKind; ThreadID fID; + ProcessID fSourcePID; bool fWakeup; bool fBusy; - Int64 fPID; private: - friend class SMPManager; + friend class MPManager; }; /// - /// \name SMPManager + /// \name MPManager /// @brief Multi processor manager to manage other cores and dispatch tasks. /// - class SMPManager final + class MPManager final { private: - explicit SMPManager(); + explicit MPManager(); public: - ~SMPManager(); - NEWOS_COPY_DEFAULT(SMPManager); + ~MPManager(); + NEWOS_COPY_DEFAULT(MPManager); public: bool Switch(HAL::StackFramePtr the); @@ -102,7 +102,7 @@ namespace Kernel public: /// @brief Shared instance of the SMP Manager. /// @return the reference to the smp manager. - static Ref<SMPManager> The(); + static Ref<MPManager> The(); public: /// @brief Returns the amount of threads present in the system. @@ -123,4 +123,4 @@ namespace Kernel Void rt_hang_thread(HAL::StackFramePtr stack); } // namespace Kernel -#endif // !__INC_SMP_MANAGER_HPP__ +#endif // !__INC_MP_MANAGER_HPP__ |
