From 98347089c7e4e2b306d25a0db77e00aa2ea50882 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 18 Mar 2024 20:01:38 +0100 Subject: unstable, secret: Very important changes done to the system API, add threading functions. Signed-off-by: Amlal El Mahrouss --- Private/KernelKit/ThreadLocalStorage.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Private/KernelKit') 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; -- cgit v1.2.3