mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-27 09:24:22 +01:00
svc: Fix svcGetInfo MapRegionBaseAddr.
This commit is contained in:
parent
d80991977a
commit
e1ee8f4657
@ -314,7 +314,7 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id)
|
|||||||
*result = g_current_process->allowed_thread_priority_mask;
|
*result = g_current_process->allowed_thread_priority_mask;
|
||||||
break;
|
break;
|
||||||
case GetInfoType::MapRegionBaseAddr:
|
case GetInfoType::MapRegionBaseAddr:
|
||||||
*result = vm_manager.GetAddressSpaceBaseAddr();
|
*result = vm_manager.GetMapRegionBaseAddr();
|
||||||
break;
|
break;
|
||||||
case GetInfoType::MapRegionSize:
|
case GetInfoType::MapRegionSize:
|
||||||
*result = vm_manager.GetAddressSpaceSize();
|
*result = vm_manager.GetAddressSpaceSize();
|
||||||
|
@ -375,6 +375,11 @@ u64 VMManager::GetAddressSpaceSize() {
|
|||||||
return MAX_ADDRESS;
|
return MAX_ADDRESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VAddr VMManager::GetMapRegionBaseAddr() {
|
||||||
|
LOG_WARNING(Kernel, "(STUBBED) called");
|
||||||
|
return Memory::HEAP_VADDR;
|
||||||
|
}
|
||||||
|
|
||||||
VAddr VMManager::GetNewMapRegionBaseAddr() {
|
VAddr VMManager::GetNewMapRegionBaseAddr() {
|
||||||
LOG_WARNING(Kernel, "(STUBBED) called");
|
LOG_WARNING(Kernel, "(STUBBED) called");
|
||||||
return 0x8000000;
|
return 0x8000000;
|
||||||
|
@ -192,6 +192,9 @@ public:
|
|||||||
/// Gets the total address space address size, used by svcGetInfo
|
/// Gets the total address space address size, used by svcGetInfo
|
||||||
u64 GetAddressSpaceSize();
|
u64 GetAddressSpaceSize();
|
||||||
|
|
||||||
|
/// Gets the map region base address, used by svcGetInfo
|
||||||
|
VAddr GetMapRegionBaseAddr();
|
||||||
|
|
||||||
/// Gets the base address for a new memory region, used by svcGetInfo
|
/// Gets the base address for a new memory region, used by svcGetInfo
|
||||||
VAddr GetNewMapRegionBaseAddr();
|
VAddr GetNewMapRegionBaseAddr();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user