From d6bc3461106b9c8f0f29b4eea487ff59b0cc6206 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 27 Jan 2024 12:05:27 +0100 Subject: KernelKit: SMP: Fix SMPManager::Switch (IsBusy()) KernelKit: TLS: Refactor and add documentation to it. Signed-off-by: Amlal El Mahrouss --- Private/KernelKit/SMPManager.hpp | 2 +- Private/KernelKit/ThreadLocalStorage.hxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Private/KernelKit') diff --git a/Private/KernelKit/SMPManager.hpp b/Private/KernelKit/SMPManager.hpp index 61e9ac3f..f4317cc3 100644 --- a/Private/KernelKit/SMPManager.hpp +++ b/Private/KernelKit/SMPManager.hpp @@ -91,7 +91,7 @@ namespace hCore public: bool Switch(HAL::StackFrame* the); - HAL::StackFramePtr GetStack() noexcept; + HAL::StackFramePtr GetStackFrame() noexcept; public: Ref operator[](const SizeT& idx); diff --git a/Private/KernelKit/ThreadLocalStorage.hxx b/Private/KernelKit/ThreadLocalStorage.hxx index 8b3f2c9b..afd0afb3 100644 --- a/Private/KernelKit/ThreadLocalStorage.hxx +++ b/Private/KernelKit/ThreadLocalStorage.hxx @@ -14,9 +14,9 @@ //! @brief TLS implementation in C++ -#define kRTLMag0 'h' -#define kRTLMag1 'C' -#define kRTLMag2 'o' +#define kCookieMag0 'h' +#define kCookieMag1 'C' +#define kCookieMag2 'o' template T* hcore_tls_new_ptr(void); -- cgit v1.2.3