diff options
| author | 2018-09-20 21:09:57 -0400 | |
|---|---|---|
| committer | 2018-09-20 21:10:00 -0400 | |
| commit | 05aa4aa01a0f9b9e3a5a0ea47b0d5719befce9b4 (patch) | |
| tree | 51d0560e5b690aa36554232f138bdac154865af7 /src/core/hle/kernel/process.cpp | |
| parent | Merge pull request #1370 from Hedges/GDBClean (diff) | |
| download | yuzu-05aa4aa01a0f9b9e3a5a0ea47b0d5719befce9b4.tar.gz yuzu-05aa4aa01a0f9b9e3a5a0ea47b0d5719befce9b4.tar.xz yuzu-05aa4aa01a0f9b9e3a5a0ea47b0d5719befce9b4.zip | |
kernel/thread: Use owner_process when setting the page table in SetupMainThread()
The owning process of a thread is required to exist before the thread,
so we can enforce this API-wise by using a reference. We can also avoid
the reliance on the system instance by using that parameter to access
the page table that needs to be set.
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 7a272d031..914bbe0a1 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp | |||
| @@ -125,7 +125,7 @@ void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) { | |||
| 125 | vm_manager.LogLayout(); | 125 | vm_manager.LogLayout(); |
| 126 | status = ProcessStatus::Running; | 126 | status = ProcessStatus::Running; |
| 127 | 127 | ||
| 128 | Kernel::SetupMainThread(kernel, entry_point, main_thread_priority, this); | 128 | Kernel::SetupMainThread(kernel, entry_point, main_thread_priority, *this); |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | void Process::LoadModule(SharedPtr<CodeSet> module_, VAddr base_addr) { | 131 | void Process::LoadModule(SharedPtr<CodeSet> module_, VAddr base_addr) { |