From 36dee4f0d8ea806b2f061ed66a89e812ab007ed2 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 22 Dec 2025 07:38:52 +0100 Subject: feat: test: Add `kout` test and rename DeviceInterface to IDevice in KernelKit. introduce UserPtr and unburden vettable by removing the IVettable helper. Signed-off-by: Amlal El Mahrouss --- src/kernel/KernelKit/UserProcessScheduler.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/kernel/KernelKit/UserProcessScheduler.h') diff --git a/src/kernel/KernelKit/UserProcessScheduler.h b/src/kernel/KernelKit/UserProcessScheduler.h index c8790352..9a679c87 100644 --- a/src/kernel/KernelKit/UserProcessScheduler.h +++ b/src/kernel/KernelKit/UserProcessScheduler.h @@ -32,7 +32,7 @@ class UserProcessHelper; /// @name UserProcess /// @brief UserProcess class, holds information about the running process/thread. /***********************************************************************************/ -class UserProcess NE_VETTABLE { +class UserProcess { public: UserProcess(); ~UserProcess(); @@ -55,20 +55,23 @@ class UserProcess NE_VETTABLE { SizeT MemoryLimit{kSchedMaxMemoryLimit}; SizeT UsedMemory{0UL}; - struct USER_PROCESS_SIGNAL final { + struct UserProcessSignal { UIntPtr SignalArg{0}; ProcessStatusKind Status{ProcessStatusKind::kKilled}; UIntPtr SignalID{0}; }; - USER_PROCESS_SIGNAL Signal; + UserProcessSignal Signal; ProcessFileTree* FileTree{nullptr}; ProcessHeapTree* HeapTree{nullptr}; UserProcessTeam* ParentTeam; + public: + using VMReg = VoidPtr; + VoidPtr VMRegister{0UL}; - enum { + enum struct ExecutableKind { kInvalidExecutableKind, kExecutableKind, kExecutableDylibKind, @@ -79,8 +82,8 @@ class UserProcess NE_VETTABLE { ProcessTime RTime{0}; //! @brief Process run time. ProcessTime UTime{0}; //! #brief Process used time. - ProcessID ProcessId{kSchedInvalidPID}; - Int32 Kind{kExecutableKind}; + ProcessID ProcessId{kSchedInvalidPID}; + ExecutableKind Kind{ExecutableKind::kExecutableKind}; public: /***********************************************************************************/ -- cgit v1.2.3