summaryrefslogtreecommitdiffhomepage
path: root/Private/Source/ProcessManager.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-05 19:19:12 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-05 19:19:12 +0100
commitf3e49a9d6b865e7a3f6361ed88863cd12a5f90f1 (patch)
treebb1ba85c3bc627be09f397f44eb216459f34d902 /Private/Source/ProcessManager.cxx
parent6191833a26e887c2b91ba4ad655297bfe70c97d5 (diff)
HCR-13 : Optimize filesystem operations on UEFI.
- Stream concept, on demand. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Source/ProcessManager.cxx')
-rw-r--r--Private/Source/ProcessManager.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Private/Source/ProcessManager.cxx b/Private/Source/ProcessManager.cxx
index af3fa351..71f38e2f 100644
--- a/Private/Source/ProcessManager.cxx
+++ b/Private/Source/ProcessManager.cxx
@@ -233,7 +233,7 @@ bool ProcessHelper::CanBeScheduled(Ref<Process> &process) {
if (process.Leak().GetStatus() == ProcessStatus::kStarting) {
if (process.Leak().PTime < static_cast<Int>(kMinMicroTime)) {
process.Leak().Status = ProcessStatus::kRunning;
- process.Leak().Affinity = AffinityKind::kStandard;
+ process.Leak().Affinity = AffinityKind::kHartStandard;
return true;
}
@@ -271,7 +271,7 @@ bool ProcessHelper::Switch(HAL::StackFrame *the_stack, const PID &new_pid) {
if (!the_stack || new_pid < 0) return false;
for (SizeT index = 0UL; index < kMaxHarts; ++index) {
- if (SMPManager::Shared().Leak()[index].Leak().Kind() == kInvalidThread)
+ if (SMPManager::Shared().Leak()[index].Leak().Kind() == kInvalidHart)
continue;
if (SMPManager::Shared().Leak()[index].Leak().StackFrame() == the_stack) {
@@ -281,9 +281,9 @@ bool ProcessHelper::Switch(HAL::StackFrame *the_stack, const PID &new_pid) {
if (SMPManager::Shared().Leak()[index].Leak().IsBusy()) continue;
- if (SMPManager::Shared().Leak()[index].Leak().Kind() != ThreadKind::kBoot ||
+ if (SMPManager::Shared().Leak()[index].Leak().Kind() != ThreadKind::kHartBoot ||
SMPManager::Shared().Leak()[index].Leak().Kind() !=
- ThreadKind::kSystemReserved) {
+ ThreadKind::kHartSystemReserved) {
SMPManager::Shared().Leak()[index].Leak().Busy(true);
ProcessHelper::GetCurrentPID() = new_pid;