summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/KernelKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-28 16:43:23 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-28 16:45:54 +0200
commiteea552909be6c377a7e62d7679846248cb2e1fef (patch)
treeefd55c862959ac2fcb7bac4dd7480f70ad7979c7 /dev/ZKA/KernelKit
parent8316384e8ce5c79ded405d690046fa801d93ebd2 (diff)
[FIX] Use cLastExitCode as unsigned variable, refactored the code to
match the changes. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/KernelKit')
-rw-r--r--dev/ZKA/KernelKit/ProcessScheduler.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/ZKA/KernelKit/ProcessScheduler.hxx b/dev/ZKA/KernelKit/ProcessScheduler.hxx
index 1f70158b..b25e0efc 100644
--- a/dev/ZKA/KernelKit/ProcessScheduler.hxx
+++ b/dev/ZKA/KernelKit/ProcessScheduler.hxx
@@ -141,7 +141,7 @@ namespace Kernel
public:
void SetEntrypoint(UIntPtr& imageStart) noexcept;
- const Int32& GetExitCode() noexcept;
+ const UInt32& GetExitCode() noexcept;
public:
Char Name[kProcessLen] = {"PROCESS #0 (TEAM 0)"};
@@ -216,7 +216,7 @@ namespace Kernel
const AffinityKind& GetAffinity() noexcept;
private:
- Int32 fLastExitCode{0};
+ UInt32 fLastExitCode{0};
Int32 fLocalCode{0};
friend ProcessScheduler;
@@ -290,7 +290,7 @@ namespace Kernel
STATIC SizeT StartScheduling();
};
- const Int32& sched_get_exit_code(void) noexcept;
+ const UInt32& sched_get_exit_code(void) noexcept;
} // namespace Kernel
#include <KernelKit/ThreadLocalStorage.hxx>