diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-01 09:48:24 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-01 09:48:24 +0200 |
| commit | 4ce1fdaa5ad4252bff486a824f53cb93cc156925 (patch) | |
| tree | f4b990144ed76b688600372ad262c94175994e3e /Kernel/Sources/ProcessScheduler.cxx | |
| parent | 63dc1384bcbf8caf4ca53c715628db2c36b0b096 (diff) | |
MHR-39: Implement entrypoint probe, can now find it.
Next step is to map the sections into their own addresses.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/Sources/ProcessScheduler.cxx')
| -rw-r--r-- | Kernel/Sources/ProcessScheduler.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Kernel/Sources/ProcessScheduler.cxx b/Kernel/Sources/ProcessScheduler.cxx index 94ae5fad..84fc7a1f 100644 --- a/Kernel/Sources/ProcessScheduler.cxx +++ b/Kernel/Sources/ProcessScheduler.cxx @@ -11,7 +11,7 @@ #include <KernelKit/ProcessScheduler.hxx> #include <KernelKit/PEFSharedObject.hxx> -#include <KernelKit/MPManager.hpp> +#include <KernelKit/MP.hxx> #include <KernelKit/Heap.hxx> #include <NewKit/String.hpp> #include <KernelKit/LPC.hxx> @@ -395,29 +395,29 @@ namespace Kernel if (!the_stack || new_pid < 0) return false; - for (SizeT index = 0UL; index < MPManager::The().Leak().Count(); ++index) + for (SizeT index = 0UL; index < MPCoreScheduler::The().Leak().Count(); ++index) { - if (MPManager::The().Leak()[index].Leak()->Kind() == kInvalidHart) + if (MPCoreScheduler::The().Leak()[index].Leak()->Kind() == kInvalidHart) continue; - if (MPManager::The().Leak()[index].Leak()->StackFrame() == the_stack) + if (MPCoreScheduler::The().Leak()[index].Leak()->StackFrame() == the_stack) { - MPManager::The().Leak()[index].Leak()->Busy(false); + MPCoreScheduler::The().Leak()[index].Leak()->Busy(false); continue; } - if (MPManager::The().Leak()[index].Leak()->IsBusy()) + if (MPCoreScheduler::The().Leak()[index].Leak()->IsBusy()) continue; - if (MPManager::The().Leak()[index].Leak()->Kind() != + if (MPCoreScheduler::The().Leak()[index].Leak()->Kind() != ThreadKind::kHartBoot && - MPManager::The().Leak()[index].Leak()->Kind() != + MPCoreScheduler::The().Leak()[index].Leak()->Kind() != ThreadKind::kHartSystemReserved) { - MPManager::The().Leak()[index].Leak()->Busy(true); + MPCoreScheduler::The().Leak()[index].Leak()->Busy(true); ProcessHelper::TheCurrentPID() = new_pid; - return MPManager::The().Leak()[index].Leak()->Switch(the_stack); + return MPCoreScheduler::The().Leak()[index].Leak()->Switch(the_stack); } } |
