diff options
| author | 2015-05-11 05:08:47 -0300 | |
|---|---|---|
| committer | 2015-05-11 05:08:47 -0300 | |
| commit | d16c2bd956a69754e1c2aef6600c10d944638673 (patch) | |
| tree | d2d6638d66ff1f6aa7f0e341e6ea139b68b6ef24 /src/core/hle/kernel/thread.cpp | |
| parent | Merge pull request #740 from yuriks/gsp-shmem (diff) | |
| download | yuzu-d16c2bd956a69754e1c2aef6600c10d944638673.tar.gz yuzu-d16c2bd956a69754e1c2aef6600c10d944638673.tar.xz yuzu-d16c2bd956a69754e1c2aef6600c10d944638673.zip | |
Thread: Correctly set main thread initial stack position
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 4 |
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() { | |||
| 458 | return thread; | 458 | return thread; |
| 459 | } | 459 | } |
| 460 | 460 | ||
| 461 | SharedPtr<Thread> SetupMainThread(u32 stack_size, u32 entry_point, s32 priority) { | 461 | SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority) { |
| 462 | DEBUG_ASSERT(!GetCurrentThread()); | 462 | DEBUG_ASSERT(!GetCurrentThread()); |
| 463 | 463 | ||
| 464 | // Initialize new "main" thread | 464 | // Initialize new "main" thread |
| 465 | auto thread_res = Thread::Create("main", entry_point, priority, 0, | 465 | auto thread_res = Thread::Create("main", entry_point, priority, 0, |
| 466 | THREADPROCESSORID_0, Memory::HEAP_VADDR_END - stack_size); | 466 | THREADPROCESSORID_0, Memory::HEAP_VADDR_END); |
| 467 | 467 | ||
| 468 | SharedPtr<Thread> thread = thread_res.MoveFrom(); | 468 | SharedPtr<Thread> thread = thread_res.MoveFrom(); |
| 469 | 469 | ||