summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-05-11 17:03:08 +0200
committerbunnei <bunneidev@gmail.com>2015-05-11 17:03:08 +0200
commit10eb8b0c02badb2f87ec2d71f1679a27b679c171 (patch)
tree920742b7261c7c801d2c6e21e35ded349dceda08 /src/core/hle/kernel/thread.cpp
parentMerge pull request #742 from archshift/i4 (diff)
parentThread: Correctly set main thread initial stack position (diff)
downloadyuzu-10eb8b0c02badb2f87ec2d71f1679a27b679c171.tar
yuzu-10eb8b0c02badb2f87ec2d71f1679a27b679c171.tar.gz
yuzu-10eb8b0c02badb2f87ec2d71f1679a27b679c171.tar.bz2
yuzu-10eb8b0c02badb2f87ec2d71f1679a27b679c171.tar.lz
yuzu-10eb8b0c02badb2f87ec2d71f1679a27b679c171.tar.xz
yuzu-10eb8b0c02badb2f87ec2d71f1679a27b679c171.tar.zst
yuzu-10eb8b0c02badb2f87ec2d71f1679a27b679c171.zip
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 5de8f9a73..957cbdfee 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -458,12 +458,12 @@ SharedPtr<Thread> SetupIdleThread() {
return thread;
}
-SharedPtr<Thread> SetupMainThread(u32 stack_size, u32 entry_point, s32 priority) {
+SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority) {
DEBUG_ASSERT(!GetCurrentThread());
// Initialize new "main" thread
auto thread_res = Thread::Create("main", entry_point, priority, 0,
- THREADPROCESSORID_0, Memory::HEAP_VADDR_END - stack_size);
+ THREADPROCESSORID_0, Memory::HEAP_VADDR_END);
SharedPtr<Thread> thread = thread_res.MoveFrom();