kernel/thread: change owner_process parameter to reference

To enforce a valid process object
This commit is contained in:
Weiyi Wang 2018-10-26 09:37:46 -04:00
parent e5c5d1ecce
commit 8ad6cbfde2
3 changed files with 9 additions and 9 deletions

View file

@ -787,7 +787,7 @@ static ResultCode CreateThread(Handle* out_handle, u32 priority, u32 entry_point
CASCADE_RESULT(SharedPtr<Thread> thread, Core::System::GetInstance().Kernel().CreateThread(
name, entry_point, priority, arg, processor_id,
stack_top, current_process.get()));
stack_top, *current_process));
thread->context->SetFpscr(FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO |
FPSCR_ROUND_TOZERO); // 0x03C00000