diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-31 21:03:28 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-03-31 22:06:45 +0200 |
commit | b27ab46bde8bd0c376747284435fcfa2b35aea75 (patch) | |
tree | 7cc608033e61e4697bad475699d74c35c8bd5370 /src/core/hle | |
parent | Merge pull request #293 from N00byKing/drkthm (diff) | |
download | yuzu-b27ab46bde8bd0c376747284435fcfa2b35aea75.tar yuzu-b27ab46bde8bd0c376747284435fcfa2b35aea75.tar.gz yuzu-b27ab46bde8bd0c376747284435fcfa2b35aea75.tar.bz2 yuzu-b27ab46bde8bd0c376747284435fcfa2b35aea75.tar.lz yuzu-b27ab46bde8bd0c376747284435fcfa2b35aea75.tar.xz yuzu-b27ab46bde8bd0c376747284435fcfa2b35aea75.tar.zst yuzu-b27ab46bde8bd0c376747284435fcfa2b35aea75.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/kernel/process.cpp | 5 | ||||
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 3694afc60..2cffec198 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -121,8 +121,9 @@ void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) { // TODO(bunnei): This is heap area that should be allocated by the kernel and not mapped as part // of the user address space. vm_manager - .MapMemoryBlock(Memory::STACK_VADDR, std::make_shared<std::vector<u8>>(stack_size, 0), 0, - stack_size, MemoryState::Mapped) + .MapMemoryBlock(Memory::STACK_AREA_VADDR_END - stack_size, + std::make_shared<std::vector<u8>>(stack_size, 0), 0, stack_size, + MemoryState::Mapped) .Unwrap(); misc_memory_used += stack_size; memory_region->used += stack_size; diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 145f50887..f3a8aa4aa 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -342,7 +342,7 @@ SharedPtr<Thread> SetupMainThread(VAddr entry_point, u32 priority, // Initialize new "main" thread auto thread_res = Thread::Create("main", entry_point, priority, 0, THREADPROCESSORID_0, - Memory::STACK_VADDR_END, owner_process); + Memory::STACK_AREA_VADDR_END, owner_process); SharedPtr<Thread> thread = std::move(thread_res).Unwrap(); |