From 5c079a35ae724d9c6be0b8adf0717728a1368c69 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Thu, 8 Aug 2024 17:10:31 +0200 Subject: [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 --- Kernel/KernelKit/ThreadLocalStorage.hxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Kernel/KernelKit/ThreadLocalStorage.hxx') diff --git a/Kernel/KernelKit/ThreadLocalStorage.hxx b/Kernel/KernelKit/ThreadLocalStorage.hxx index c6973fd4..a1bc7733 100644 --- a/Kernel/KernelKit/ThreadLocalStorage.hxx +++ b/Kernel/KernelKit/ThreadLocalStorage.hxx @@ -24,10 +24,12 @@ struct THREAD_INFORMATION_BLOCK; struct PACKED THREAD_INFORMATION_BLOCK final { Kernel::Char f_Cookie[kTLSCookieLen]; // Process cookie. - Kernel::UIntPtr f_Code; // Start Address - Kernel::UIntPtr f_Data; // Allocation Heap - Kernel::UIntPtr f_BSS; // Stack Pointer. - Kernel::Int32 f_ID; // Thread execution ID. + Kernel::UIntPtr f_Code; // Start address (Instruction Pointer) + Kernel::UIntPtr f_Data; // Allocated Heap for process. + Kernel::UIntPtr f_Stack; // Application Stack pointer. + Kernel::Int32 f_ID; // Thread execution ID. + Kernel::Int64 f_UsedHeapPercent; // used heap in percent. + Kernel::Int64 f_FreeHeapPercent; // heap free in percent. }; ///! @brief Cookie Sanity check. -- cgit v1.2.3