kernel/thread: change owner_process parameter to reference
To enforce a valid process object
This commit is contained in:
parent
e5c5d1ecce
commit
8ad6cbfde2
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue