diff options
| author | 2015-05-09 15:57:29 +0200 | |
|---|---|---|
| committer | 2015-05-09 15:57:29 +0200 | |
| commit | e35e72d0a5c90c37d22328115fa0f29dd17aeaee (patch) | |
| tree | 4053db2c53a1ac77294c03782de75c91c0cf4b27 /src/core/hle/kernel/thread.cpp | |
| parent | Loader: Add missing include (diff) | |
| parent | Memory: Add GetPhysicalPointer helper function (diff) | |
| download | yuzu-e35e72d0a5c90c37d22328115fa0f29dd17aeaee.tar.gz yuzu-e35e72d0a5c90c37d22328115fa0f29dd17aeaee.tar.xz yuzu-e35e72d0a5c90c37d22328115fa0f29dd17aeaee.zip | |
Merge pull request #734 from yuriks/memmap
Small memory map definitions cleanup
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 9577b889a..0a3fd7cb1 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -443,7 +443,8 @@ void Thread::BoostPriority(s32 priority) { | |||
| 443 | 443 | ||
| 444 | SharedPtr<Thread> SetupIdleThread() { | 444 | SharedPtr<Thread> SetupIdleThread() { |
| 445 | // We need to pass a few valid values to get around parameter checking in Thread::Create. | 445 | // We need to pass a few valid values to get around parameter checking in Thread::Create. |
| 446 | auto thread = Thread::Create("idle", Memory::KERNEL_MEMORY_VADDR, THREADPRIO_LOWEST, 0, | 446 | // TODO(yuriks): Figure out a way to avoid passing the bogus VAddr parameter |
| 447 | auto thread = Thread::Create("idle", Memory::TLS_AREA_VADDR, THREADPRIO_LOWEST, 0, | ||
| 447 | THREADPROCESSORID_0, 0).MoveFrom(); | 448 | THREADPROCESSORID_0, 0).MoveFrom(); |
| 448 | 449 | ||
| 449 | thread->idle = true; | 450 | thread->idle = true; |
| @@ -455,7 +456,7 @@ SharedPtr<Thread> SetupMainThread(u32 stack_size, u32 entry_point, s32 priority) | |||
| 455 | 456 | ||
| 456 | // Initialize new "main" thread | 457 | // Initialize new "main" thread |
| 457 | auto thread_res = Thread::Create("main", entry_point, priority, 0, | 458 | auto thread_res = Thread::Create("main", entry_point, priority, 0, |
| 458 | THREADPROCESSORID_0, Memory::SCRATCHPAD_VADDR_END); | 459 | THREADPROCESSORID_0, Memory::HEAP_VADDR_END - stack_size); |
| 459 | 460 | ||
| 460 | SharedPtr<Thread> thread = thread_res.MoveFrom(); | 461 | SharedPtr<Thread> thread = thread_res.MoveFrom(); |
| 461 | 462 | ||