early-access version 1725

This commit is contained in:
pineappleEA
2021-05-29 12:00:09 +02:00
parent b9f5baa9ef
commit b09a4af601
24 changed files with 144 additions and 93 deletions

View File

@@ -168,13 +168,13 @@ ResultCode KThread::Initialize(KThreadFunction func, uintptr_t arg, VAddr user_s
std::memset(static_cast<void*>(std::addressof(GetStackParameters())), 0,
sizeof(StackParameters));
// Setup the TLS, if needed.
if (type == ThreadType::User) {
tls_address = owner->CreateTLSRegion();
}
// Set parent, if relevant.
if (owner != nullptr) {
// Setup the TLS, if needed.
if (type == ThreadType::User) {
tls_address = owner->CreateTLSRegion();
}
parent = owner;
parent->Open();
parent->IncrementThreadCount();