Memory: Do correct Phys->Virt address translation for non-APP linheap
This commit is contained in:
parent
8ee230fe1c
commit
6aa90e13f9
3 changed files with 6 additions and 3 deletions
|
@ -130,9 +130,11 @@ void Process::Run(s32 main_thread_priority, u32 stack_size) {
|
|||
Kernel::SetupMainThread(codeset->entrypoint, main_thread_priority);
|
||||
}
|
||||
|
||||
VAddr Process::GetLinearHeapAreaAddress() const {
|
||||
return kernel_version < 0x22C ? Memory::LINEAR_HEAP_VADDR : Memory::NEW_LINEAR_HEAP_VADDR;
|
||||
}
|
||||
VAddr Process::GetLinearHeapBase() const {
|
||||
return (kernel_version < 0x22C ? Memory::LINEAR_HEAP_VADDR : Memory::NEW_LINEAR_HEAP_VADDR)
|
||||
+ memory_region->base;
|
||||
return GetLinearHeapAreaAddress() + memory_region->base;
|
||||
}
|
||||
|
||||
VAddr Process::GetLinearHeapLimit() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue