diff options
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
| -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 16eb972fb..24b266eae 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp | |||
| @@ -130,9 +130,11 @@ void Process::Run(s32 main_thread_priority, u32 stack_size) { | |||
| 130 | Kernel::SetupMainThread(codeset->entrypoint, main_thread_priority); | 130 | Kernel::SetupMainThread(codeset->entrypoint, main_thread_priority); |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | VAddr Process::GetLinearHeapAreaAddress() const { | ||
| 134 | return kernel_version < 0x22C ? Memory::LINEAR_HEAP_VADDR : Memory::NEW_LINEAR_HEAP_VADDR; | ||
| 135 | } | ||
| 133 | VAddr Process::GetLinearHeapBase() const { | 136 | VAddr Process::GetLinearHeapBase() const { |
| 134 | return (kernel_version < 0x22C ? Memory::LINEAR_HEAP_VADDR : Memory::NEW_LINEAR_HEAP_VADDR) | 137 | return GetLinearHeapAreaAddress() + memory_region->base; |
| 135 | + memory_region->base; | ||
| 136 | } | 138 | } |
| 137 | 139 | ||
| 138 | VAddr Process::GetLinearHeapLimit() const { | 140 | VAddr Process::GetLinearHeapLimit() const { |