diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-27 12:05:27 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-27 12:05:27 +0100 |
| commit | d6bc3461106b9c8f0f29b4eea487ff59b0cc6206 (patch) | |
| tree | 82630d94b81dac8504acb54a62c2d51975b7cc93 /Private/Source/ProcessManager.cxx | |
| parent | de4af9d8929da048ab714b75d2af23ccebe3f6cb (diff) | |
KernelKit: SMP: Fix SMPManager::Switch (IsBusy())
KernelKit: TLS: Refactor and add documentation to it.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/Source/ProcessManager.cxx')
| -rw-r--r-- | Private/Source/ProcessManager.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Private/Source/ProcessManager.cxx b/Private/Source/ProcessManager.cxx index 91c1006d..f37badee 100644 --- a/Private/Source/ProcessManager.cxx +++ b/Private/Source/ProcessManager.cxx @@ -50,7 +50,7 @@ namespace hCore return ptr; } - //! TODO: Disk to RAM allocation + //! TODO: Disk allocation return nullptr; } @@ -66,18 +66,18 @@ namespace hCore if (&_pool[index] > &_pool_ptr[sz]) continue; - if (_pool[index] != _pool_ptr[index]) - return false; + if (_pool[index] == _pool_ptr[index]) + return true; } - return true; + return false; } /* @brief free pointer from usage. */ Boolean Process::Delete(VoidPtr ptr, const SizeT& sz) { if (sz < 1 || - this->PoolCursor == this->Pool) + this->PoolCursor == this->Pool) return false; if (rt_in_pool_region(ptr, this->PoolCursor, this->UsedMemory)) |
