diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-08 17:10:31 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-08 17:10:31 +0200 |
| commit | 5c079a35ae724d9c6be0b8adf0717728a1368c69 (patch) | |
| tree | 944050de13b26295424dd513d140f34d6ec8b029 /Kernel/KernelKit/ProcessScheduler.hxx | |
| parent | df8393cebbae61ed7686be17a28d80c657f49b7e (diff) | |
[FIXES] SEE BELOW.
+ Cleanup SCIBase.hxx, using functions instead of passing arguments to syscall.
+ Update Process scheduler, refactored the code and improved some chunk
of it.
+ Update the THREAD_INFORMATION_BLOCK structure.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/KernelKit/ProcessScheduler.hxx')
| -rw-r--r-- | Kernel/KernelKit/ProcessScheduler.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Kernel/KernelKit/ProcessScheduler.hxx b/Kernel/KernelKit/ProcessScheduler.hxx index 4b149a52..cd0a7a93 100644 --- a/Kernel/KernelKit/ProcessScheduler.hxx +++ b/Kernel/KernelKit/ProcessScheduler.hxx @@ -143,20 +143,22 @@ namespace Kernel const Int32& GetExitCode() noexcept; public: - Char Name[kProcessLen] = {"Unknown Process"}; + Char Name[kProcessLen] = {"PROCESS"}; ProcessSubsystem SubSystem{ProcessSubsystem::eProcessSubsystemInvalid}; ProcessLevelRing Selector{ProcessLevelRing::kRingStdUser}; HAL::StackFramePtr StackFrame{nullptr}; - AffinityKind Affinity; - ProcessStatus Status; + AffinityKind Affinity{AffinityKind::kStandard}; + ProcessStatus Status{ProcessStatus::kDead}; // Memory, images. HeapPtrKind HeapCursor{nullptr}; ImagePtr Image{nullptr}; HeapPtrKind HeapPtr{nullptr}; + typedef PEFSharedObjectInterface ProcessDLLInterface; + // shared library handle, reserved for kSharedLib only. - PEFSharedObjectInterface* SharedObjectPEF{nullptr}; + ProcessDLLInterface* DLLPtr{nullptr}; // Memory usage. SizeT UsedMemory{0}; |
