diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2024-10-26 19:49:02 +0200 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2024-10-26 19:49:02 +0200 |
| commit | 6dcf5b87da65de2254d6102f567183eaeca03088 (patch) | |
| tree | b281ecd4cf0bcd60eaa476979f4f2183b0f4d04d /dev/zka/KernelKit/UserProcessScheduler.h | |
| parent | 88b5be35623fb573cfa0d53cfc407ae1005ccad9 (diff) | |
IMP: This commit contains fixes and improvements regarding the kernel, a next one will be done soon.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/zka/KernelKit/UserProcessScheduler.h')
| -rw-r--r-- | dev/zka/KernelKit/UserProcessScheduler.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dev/zka/KernelKit/UserProcessScheduler.h b/dev/zka/KernelKit/UserProcessScheduler.h index 21e30b9b..c819b708 100644 --- a/dev/zka/KernelKit/UserProcessScheduler.h +++ b/dev/zka/KernelKit/UserProcessScheduler.h @@ -126,9 +126,9 @@ namespace Kernel using HeapPtrKind = VoidPtr; /// @name UserProcess - /// @brief User process block. + /// @brief User process header. /// Holds information about the running process/thread. - struct UserProcess final + class UserProcess final { public: explicit UserProcess(VoidPtr startImage = nullptr) @@ -141,11 +141,10 @@ namespace Kernel ZKA_COPY_DEFAULT(UserProcess) public: - Void SetImageStart(VoidPtr imageStart) noexcept; const UInt32& GetExitCode() noexcept; public: - Char Name[kProcessLen] = {"ZKA Process"}; + Char Name[kProcessLen] = {"Process"}; ProcessSubsystem SubSystem{ProcessSubsystem::kProcessSubsystemInvalid}; User* Owner{nullptr}; HAL::StackFramePtr StackFrame{nullptr}; @@ -175,10 +174,11 @@ namespace Kernel PROCESS_MEMORY_ENTRY* MemoryEntryList{nullptr}; - UIntPtr MemoryPD{0UL}; + UIntPtr VMRegister{0UL}; enum { + kInvalidExecutableKind, kExectuableKind, kExectuableDLLKind, kExectuableKindCount, @@ -256,8 +256,8 @@ namespace Kernel using UserProcessPtr = UserProcess*; - /// @brief UserProcess scheduler class. - /// The main class which you call to schedule processes. + /// @brief Process scheduler class. + /// The main class which you call to schedule user processes. class UserProcessScheduler final : public ISchedulerObject { friend class UserProcessHelper; @@ -276,7 +276,7 @@ namespace Kernel public: SizeT Add(UserProcess process); - Bool Remove(ProcessID process_id); + const Bool Remove(ProcessID process_id); const Bool IsUser() override; const Bool IsKernel() override; |
