summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorGravatar Subv2017-09-26 17:40:49 -0500
committerGravatar Subv2017-09-26 17:40:49 -0500
commit3165466b665185ecbc3e33b02b0b90e25e7248ba (patch)
tree1f644e47aafecb35c9b859b56e28658ef6ac26c9 /src/core/hle/kernel/process.cpp
parentTests: Added Memory::IsValidVirtualAddress tests. (diff)
downloadyuzu-3165466b665185ecbc3e33b02b0b90e25e7248ba.tar.gz
yuzu-3165466b665185ecbc3e33b02b0b90e25e7248ba.tar.xz
yuzu-3165466b665185ecbc3e33b02b0b90e25e7248ba.zip
Kernel/Thread: Allow specifying which process a thread belongs to when creating it.
Don't automatically assume that Thread::Create will only be called when the parent process is currently scheduled. This assumption will be broken when applets or system modules are loaded.
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r--src/core/hle/kernel/process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 522ad2333..cf3163e0f 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -147,7 +147,7 @@ void Process::Run(s32 main_thread_priority, u32 stack_size) {
147 } 147 }
148 148
149 vm_manager.LogLayout(Log::Level::Debug); 149 vm_manager.LogLayout(Log::Level::Debug);
150 Kernel::SetupMainThread(codeset->entrypoint, main_thread_priority); 150 Kernel::SetupMainThread(codeset->entrypoint, main_thread_priority, this);
151} 151}
152 152
153VAddr Process::GetLinearHeapAreaAddress() const { 153VAddr Process::GetLinearHeapAreaAddress() const {