summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit/ThreadLocalStorage.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-06-03 23:14:16 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-06-03 23:14:16 +0200
commit88a8745e45f525e5fb12b6b048df87afabebbfc9 (patch)
tree3e0915b8e797be829a031a86de6d5482429cfd37 /dev/kernel/KernelKit/ThreadLocalStorage.h
parent422f84949dd3d2e02e70936ee2b6e4741c70a6de (diff)
feat: TLS: Improved its implementation, and add a user field for additional checks.
refactor: Reworked `open_msg`'s messaging system. refactor: Rename `Utils.cc` to `AsciiUtils.cc` Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit/ThreadLocalStorage.h')
-rw-r--r--dev/kernel/KernelKit/ThreadLocalStorage.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/kernel/KernelKit/ThreadLocalStorage.h b/dev/kernel/KernelKit/ThreadLocalStorage.h
index 6c764221..35c17db0 100644
--- a/dev/kernel/KernelKit/ThreadLocalStorage.h
+++ b/dev/kernel/KernelKit/ThreadLocalStorage.h
@@ -27,8 +27,8 @@ struct THREAD_INFORMATION_BLOCK;
/// @brief 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 Cookie[kTLSCookieLen]{0}; //! Thread magic number.
- Kernel::VoidPtr Record{nullptr}; //! Thread information record.
+ Kernel::Char Cookie[kTLSCookieLen]{0}; //! Thread Magic Number.
+ Kernel::VoidPtr UserData{nullptr}; //! Thread Information Record (User defined canary structure)
};
///! @brief Cookie Sanity check.