From 60902ec5fc462128d264f63f279c7fc362a72e1d Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Mon, 29 Jul 2024 14:51:58 +0200 Subject: [IMP] Replace SMP manager with Multi Processing manager. Signed-off-by: Amlal EL Mahrouss --- Kernel/Sources/ProcessScheduler.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Kernel/Sources/ProcessScheduler.cxx') diff --git a/Kernel/Sources/ProcessScheduler.cxx b/Kernel/Sources/ProcessScheduler.cxx index b5be1dd2..cccd8979 100644 --- a/Kernel/Sources/ProcessScheduler.cxx +++ b/Kernel/Sources/ProcessScheduler.cxx @@ -10,7 +10,7 @@ /***********************************************************************************/ #include -#include +#include #include #include #include @@ -382,29 +382,29 @@ namespace Kernel if (!the_stack || new_pid < 0) return false; - for (SizeT index = 0UL; index < SMPManager::The().Leak().Count(); ++index) + for (SizeT index = 0UL; index < MPManager::The().Leak().Count(); ++index) { - if (SMPManager::The().Leak()[index].Leak()->Kind() == kInvalidHart) + if (MPManager::The().Leak()[index].Leak()->Kind() == kInvalidHart) continue; - if (SMPManager::The().Leak()[index].Leak()->StackFrame() == the_stack) + if (MPManager::The().Leak()[index].Leak()->StackFrame() == the_stack) { - SMPManager::The().Leak()[index].Leak()->Busy(false); + MPManager::The().Leak()[index].Leak()->Busy(false); continue; } - if (SMPManager::The().Leak()[index].Leak()->IsBusy()) + if (MPManager::The().Leak()[index].Leak()->IsBusy()) continue; - if (SMPManager::The().Leak()[index].Leak()->Kind() != + if (MPManager::The().Leak()[index].Leak()->Kind() != ThreadKind::kHartBoot && - SMPManager::The().Leak()[index].Leak()->Kind() != + MPManager::The().Leak()[index].Leak()->Kind() != ThreadKind::kHartSystemReserved) { - SMPManager::The().Leak()[index].Leak()->Busy(true); + MPManager::The().Leak()[index].Leak()->Busy(true); ProcessHelper::TheCurrentPID() = new_pid; - return SMPManager::The().Leak()[index].Leak()->Switch(the_stack); + return MPManager::The().Leak()[index].Leak()->Switch(the_stack); } } -- cgit v1.2.3