diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-18 20:01:38 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-18 20:01:38 +0100 |
| commit | 98347089c7e4e2b306d25a0db77e00aa2ea50882 (patch) | |
| tree | a0b3a1130bff9068055aea87f3e3b964dc9fce0a /Private/KernelKit/ThreadLocalStorage.hxx | |
| parent | 4c714f2c24c5df78bae2f35c42c73107de4c8c71 (diff) | |
unstable, secret: Very important changes done to the system API, add
threading functions.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/KernelKit/ThreadLocalStorage.hxx')
| -rw-r--r-- | Private/KernelKit/ThreadLocalStorage.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Private/KernelKit/ThreadLocalStorage.hxx b/Private/KernelKit/ThreadLocalStorage.hxx index 25c9c48f..2fab5026 100644 --- a/Private/KernelKit/ThreadLocalStorage.hxx +++ b/Private/KernelKit/ThreadLocalStorage.hxx @@ -38,7 +38,8 @@ struct ThreadInformationBlock final { HCore::UIntPtr StartData; // Allocation Heap HCore::UIntPtr StartStack; // Stack Pointer. HCore::Int32 Arch; // Architecture and/or platform. - rt_cookie_type Cookie; // Not shown in public header, this is the way we tell + HCore::Int32 ID; // Thread execution ID. + rt_cookie_type Cookie; // Not shown in public header, location of the cookie header is store here, this is the way we tell // something went wrong. }; @@ -46,7 +47,7 @@ struct ThreadInformationBlock final { EXTERN_C void rt_install_tib(ThreadInformationBlock *pTib, HCore::VoidPtr pPib); ///! @brief Cookie Sanity check. -HCore::Boolean tls_check(ThreadInformationBlock *ptr); +HCore::Boolean tls_check_tib(ThreadInformationBlock *ptr); /// @brief TLS check system call EXTERN_C HCore::Void tls_check_syscall_impl(HCore::HAL::StackFramePtr stackPtr) noexcept; |
