mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 00:32:48 +01:00
kernel: add missing TLR clear
This commit is contained in:
parent
8c59543ee3
commit
bb195c2c2b
1 changed files with 1 additions and 0 deletions
|
@ -215,6 +215,7 @@ Result KThread::Initialize(KThreadFunction func, uintptr_t arg, KProcessAddress
|
|||
// Setup the TLS, if needed.
|
||||
if (type == ThreadType::User) {
|
||||
R_TRY(owner->CreateThreadLocalRegion(std::addressof(m_tls_address)));
|
||||
owner->GetMemory().ZeroBlock(m_tls_address, Svc::ThreadLocalRegionSize);
|
||||
}
|
||||
|
||||
m_parent = owner;
|
||||
|
|
Loading…
Reference in a new issue