summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/KernelKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-09-03 16:59:52 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-09-03 17:00:50 +0200
commit74687def5fa5f8eb69a59608a14f9f0a4bf5602e (patch)
treeb3af8c110033c587f1881df58e5aeb8097bb5f2c /dev/ZKA/KernelKit
parent441c1460b29f5003a5478032f17a6c5f486dd1fd (diff)
[ UPD ] Refactor kernel.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/KernelKit')
-rw-r--r--dev/ZKA/KernelKit/UserProcessScheduler.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/ZKA/KernelKit/UserProcessScheduler.hxx b/dev/ZKA/KernelKit/UserProcessScheduler.hxx
index c779a8c6..6ea99987 100644
--- a/dev/ZKA/KernelKit/UserProcessScheduler.hxx
+++ b/dev/ZKA/KernelKit/UserProcessScheduler.hxx
@@ -40,7 +40,7 @@ namespace Kernel
inline constexpr SizeT kProcessLen = 256U;
//! @brief UserProcess status enum.
- enum class ProcessStatus : Int32
+ enum class ProcessStatusKind : Int32
{
kStarting,
kRunning,
@@ -138,7 +138,7 @@ namespace Kernel
ZKA_COPY_DEFAULT(UserProcess)
public:
- void SetImageStart(VoidPtr imageStart) noexcept;
+ Void SetImageStart(VoidPtr imageStart) noexcept;
const UInt32& GetExitCode() noexcept;
public:
@@ -147,7 +147,7 @@ namespace Kernel
User* Owner{nullptr};
HAL::StackFramePtr StackFrame{nullptr};
AffinityKind Affinity{AffinityKind::kStandard};
- ProcessStatus Status{ProcessStatus::kDead};
+ ProcessStatusKind Status{ProcessStatusKind::kDead};
UInt8* StackReserve{nullptr};
// Memory, images pointers.
@@ -181,7 +181,7 @@ namespace Kernel
//! @brief boolean operator, check status.
operator bool()
{
- return Status != ProcessStatus::kDead;
+ return Status != ProcessStatusKind::kDead;
}
///! @brief Crashes the app, exits with code ~0.
@@ -213,7 +213,7 @@ namespace Kernel
Int32& GetLocalCode() noexcept;
const User* GetOwner() noexcept;
- const ProcessStatus& GetStatus() noexcept;
+ const ProcessStatusKind& GetStatus() noexcept;
const AffinityKind& GetAffinity() noexcept;
private: