diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-10 23:51:23 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-03-16 23:32:21 +0100 |
commit | 3923b0f58932cae311932e4fbeb5f59afe856c6a (patch) | |
tree | fc18b4b874d09263f956589f0836a355552ac6c7 /src | |
parent | MemoryState: Add additional memory states and improve naming. (diff) | |
download | yuzu-3923b0f58932cae311932e4fbeb5f59afe856c6a.tar yuzu-3923b0f58932cae311932e4fbeb5f59afe856c6a.tar.gz yuzu-3923b0f58932cae311932e4fbeb5f59afe856c6a.tar.bz2 yuzu-3923b0f58932cae311932e4fbeb5f59afe856c6a.tar.lz yuzu-3923b0f58932cae311932e4fbeb5f59afe856c6a.tar.xz yuzu-3923b0f58932cae311932e4fbeb5f59afe856c6a.tar.zst yuzu-3923b0f58932cae311932e4fbeb5f59afe856c6a.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/process.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 9c0a44351..8987a0e38 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -117,11 +117,13 @@ void Process::ParseKernelCaps(const u32* kernel_caps, size_t len) { } void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) { - // Allocate and map stack + // Allocate and map the main thread stack + // 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::HEAP_VADDR_END - stack_size, std::make_shared<std::vector<u8>>(stack_size, 0), 0, stack_size, - MemoryState::Heap) + MemoryState::Mapped) .Unwrap(); misc_memory_used += stack_size; memory_region->used += stack_size; |