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/Source/ThreadLocalStorage.cxx | |
| 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/Source/ThreadLocalStorage.cxx')
| -rw-r--r-- | Private/Source/ThreadLocalStorage.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Private/Source/ThreadLocalStorage.cxx b/Private/Source/ThreadLocalStorage.cxx index 395b9dc6..8fd61d5e 100644 --- a/Private/Source/ThreadLocalStorage.cxx +++ b/Private/Source/ThreadLocalStorage.cxx @@ -25,12 +25,12 @@ using namespace HCore; * @return if the cookie is enabled. */ -Boolean tls_check(VoidPtr ptr) { +Boolean tls_check_tib(VoidPtr ptr) { if (!ptr) return false; const char* _ptr = (const char*)ptr; - kcout << "HCoreKrnl\\TLS: Checking for cookie...\n"; + kcout << "HCoreKrnl\\TLS: Checking for a valid cookie...\n"; return _ptr[0] == kCookieMag0 && _ptr[1] == kCookieMag1 && _ptr[2] == kCookieMag2; @@ -44,7 +44,7 @@ Boolean tls_check(VoidPtr ptr) { EXTERN_C Void tls_check_syscall_impl(HCore::HAL::StackFramePtr stackPtr) noexcept { ThreadInformationBlock* tib = (ThreadInformationBlock*)stackPtr->Gs; - if (!tls_check(tib->Cookie)) { + if (!tls_check_tib(tib->Cookie)) { kcout << "HCoreKrnl\\TLS: Verification failed, Crashing...\n"; ProcessManager::Shared().Leak().GetCurrent().Leak().Crash(); } |
