diff options
Diffstat (limited to 'dev/zka/KernelKit')
| -rw-r--r-- | dev/zka/KernelKit/CodeMgr.h | 4 | ||||
| -rw-r--r-- | dev/zka/KernelKit/PEFCodeMgr.h | 2 | ||||
| -rw-r--r-- | dev/zka/KernelKit/UserProcessScheduler.h | 16 |
3 files changed, 11 insertions, 11 deletions
diff --git a/dev/zka/KernelKit/CodeMgr.h b/dev/zka/KernelKit/CodeMgr.h index 41a90ec5..b8fa4c37 100644 --- a/dev/zka/KernelKit/CodeMgr.h +++ b/dev/zka/KernelKit/CodeMgr.h @@ -26,6 +26,6 @@ namespace Kernel /// @brief Executes a new process from a function. Kernel code only. /// @note This sets up a new stack, anything on the main function that calls the Kernel will not be accessible. /// @param main the start of the process. - /// @return if the process was started or not. - bool sched_execute_thread(MainKind main, const Char* process_name) noexcept; + /// @return The team's process id. + SizeT rtl_create_process(MainKind main, const Char* process_name) noexcept; } // namespace Kernel diff --git a/dev/zka/KernelKit/PEFCodeMgr.h b/dev/zka/KernelKit/PEFCodeMgr.h index 73a015d3..f4e9e446 100644 --- a/dev/zka/KernelKit/PEFCodeMgr.h +++ b/dev/zka/KernelKit/PEFCodeMgr.h @@ -60,7 +60,7 @@ namespace Kernel namespace Utils { - bool execute_from_image(PEFLoader& exec, const Int32& procKind) noexcept; + SizeT execute_from_image(PEFLoader& exec, const Int32& procKind) noexcept; } // namespace Utils } // namespace Kernel 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; |
