summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit/SMPManager.hpp
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/KernelKit/SMPManager.hpp
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/KernelKit/SMPManager.hpp')
-rw-r--r--Private/KernelKit/SMPManager.hpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/Private/KernelKit/SMPManager.hpp b/Private/KernelKit/SMPManager.hpp
index 8cbe3259..dc3518a7 100644
--- a/Private/KernelKit/SMPManager.hpp
+++ b/Private/KernelKit/SMPManager.hpp
@@ -22,13 +22,13 @@ namespace HCore {
using ThreadID = UInt32;
enum ThreadKind {
- kSystemReserved, // System reserved thread, well user can't use it
- kStandard, // user thread, cannot be used by kernel
- kFallback, // fallback thread, cannot be used by user if not clear or used by
- // kernel.
- kBoot, // The core we booted from, the mama.
- kInvalidThread,
- kThreadCount,
+ kHartSystemReserved, // System reserved thread, well user can't use it
+ kHartStandard, // user thread, cannot be used by kernel
+ kHartFallback, // fallback thread, cannot be used by user if not clear or
+ // used by kernel.
+ kHartBoot, // The core we booted from, the mama.
+ kInvalidHart,
+ kHartCount,
};
///
@@ -105,8 +105,6 @@ class SMPManager final {
private:
Array<HardwareThread, kMaxHarts> m_ThreadList;
ThreadID m_CurrentThread{0};
- SizeT m_UsedThreads{0};
- SizeT m_MaxThreads{0};
};
// @brief wakes up thread.