diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-09-20 21:09:57 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-09-20 21:10:00 -0400 |
| commit | 018c7cbbe0c0201524239ecefc5205a2edc85f5b (patch) | |
| tree | 51d0560e5b690aa36554232f138bdac154865af7 /src/core/hle/kernel/thread.h | |
| parent | 751ddd71c0c23027fbc5d3312005f0a1bf8244ab (diff) | |
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/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index df47489420..91e9b79ecb 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h @@ -281,7 +281,7 @@ private: * @return A shared pointer to the main thread */ SharedPtr<Thread> SetupMainThread(KernelCore& kernel, VAddr entry_point, u32 priority, - SharedPtr<Process> owner_process); + Process& owner_process); /** * Gets the current thread |
