summaryrefslogtreecommitdiffstats
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-09-27 00:40:49 +0200
committerSubv <subv2112@gmail.com>2017-09-27 00:40:49 +0200
commit3165466b665185ecbc3e33b02b0b90e25e7248ba (patch)
tree1f644e47aafecb35c9b859b56e28658ef6ac26c9 /src/core/hle/svc.cpp
parentTests: Added Memory::IsValidVirtualAddress tests. (diff)
downloadyuzu-3165466b665185ecbc3e33b02b0b90e25e7248ba.tar
yuzu-3165466b665185ecbc3e33b02b0b90e25e7248ba.tar.gz
yuzu-3165466b665185ecbc3e33b02b0b90e25e7248ba.tar.bz2
yuzu-3165466b665185ecbc3e33b02b0b90e25e7248ba.tar.lz
yuzu-3165466b665185ecbc3e33b02b0b90e25e7248ba.tar.xz
yuzu-3165466b665185ecbc3e33b02b0b90e25e7248ba.tar.zst
yuzu-3165466b665185ecbc3e33b02b0b90e25e7248ba.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/svc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index dfc36748c..05c6897bf 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -656,8 +656,9 @@ static ResultCode CreateThread(Kernel::Handle* out_handle, u32 priority, u32 ent
"Newly created thread must run in the SysCore (Core1), unimplemented.");
}
- CASCADE_RESULT(SharedPtr<Thread> thread, Kernel::Thread::Create(name, entry_point, priority,
- arg, processor_id, stack_top));
+ CASCADE_RESULT(SharedPtr<Thread> thread,
+ Kernel::Thread::Create(name, entry_point, priority, arg, processor_id, stack_top,
+ Kernel::g_current_process));
thread->context.fpscr =
FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO; // 0x03C00000