summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/KernelKit/ThreadLocalStorage.hxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-24 17:30:52 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-24 17:30:52 +0200
commitfdc8aaab2ad3c2f2f3f4bb4ffb71bc2d797366aa (patch)
treeda3e628e1c4862c424a2deebae6966d6fc262592 /dev/ZKA/KernelKit/ThreadLocalStorage.hxx
parent30e5aa322bf253cdf48cddf53a1c8a1e9720e705 (diff)
[IMP] Better kernel design.
+ If the process has a parent, and it's exited, that means that the thread must go down as well. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/KernelKit/ThreadLocalStorage.hxx')
-rw-r--r--dev/ZKA/KernelKit/ThreadLocalStorage.hxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/dev/ZKA/KernelKit/ThreadLocalStorage.hxx b/dev/ZKA/KernelKit/ThreadLocalStorage.hxx
index afc4940f..115a4ca1 100644
--- a/dev/ZKA/KernelKit/ThreadLocalStorage.hxx
+++ b/dev/ZKA/KernelKit/ThreadLocalStorage.hxx
@@ -23,13 +23,8 @@ struct THREAD_INFORMATION_BLOCK;
/// Located in GS on AMD64, other architectures have their own stuff. (64x0, 32x0, ARM64)
struct PACKED THREAD_INFORMATION_BLOCK final
{
- Kernel::Char f_Cookie[kTLSCookieLen]; // Process cookie.
- 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.
+ Kernel::Char f_Cookie[kTLSCookieLen]{0}; // Thread magic number.
+ Kernel::VoidPtr f_ThreadRecord{nullptr};
};
///! @brief Cookie Sanity check.