From 05aa4aa01a0f9b9e3a5a0ea47b0d5719befce9b4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 20 Sep 2018 21:09:57 -0400 Subject: 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. --- src/core/hle/kernel/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hle/kernel/thread.h') diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index df4748942..91e9b79ec 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 SetupMainThread(KernelCore& kernel, VAddr entry_point, u32 priority, - SharedPtr owner_process); + Process& owner_process); /** * Gets the current thread -- cgit v1.2.3