diff options
| author | 2017-09-26 17:40:49 -0500 | |
|---|---|---|
| committer | 2017-09-26 17:40:49 -0500 | |
| commit | 3165466b665185ecbc3e33b02b0b90e25e7248ba (patch) | |
| tree | 1f644e47aafecb35c9b859b56e28658ef6ac26c9 /src/core/hle/kernel/process.cpp | |
| parent | Tests: Added Memory::IsValidVirtualAddress tests. (diff) | |
| download | yuzu-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.cpp | 2 |
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 | ||
| 153 | VAddr Process::GetLinearHeapAreaAddress() const { | 153 | VAddr Process::GetLinearHeapAreaAddress() const { |