diff options
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/k_thread.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp index a882be403..ac0f215d7 100644 --- a/src/core/hle/kernel/k_thread.cpp +++ b/src/core/hle/kernel/k_thread.cpp | |||
| @@ -215,6 +215,7 @@ Result KThread::Initialize(KThreadFunction func, uintptr_t arg, KProcessAddress | |||
| 215 | // Setup the TLS, if needed. | 215 | // Setup the TLS, if needed. |
| 216 | if (type == ThreadType::User) { | 216 | if (type == ThreadType::User) { |
| 217 | R_TRY(owner->CreateThreadLocalRegion(std::addressof(m_tls_address))); | 217 | R_TRY(owner->CreateThreadLocalRegion(std::addressof(m_tls_address))); |
| 218 | owner->GetMemory().ZeroBlock(m_tls_address, Svc::ThreadLocalRegionSize); | ||
| 218 | } | 219 | } |
| 219 | 220 | ||
| 220 | m_parent = owner; | 221 | m_parent = owner; |