diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-19 05:44:15 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-01-19 05:44:15 +0100 |
commit | e1ee8f4657235225a6cf1333b4b126ebb7931449 (patch) | |
tree | d1c5f82540db0a33e7c2620c6b550e0e97e6c748 /src/core/hle/kernel | |
parent | svc: Add additional fields to MemoryInfo struct. (diff) | |
download | yuzu-e1ee8f4657235225a6cf1333b4b126ebb7931449.tar yuzu-e1ee8f4657235225a6cf1333b4b126ebb7931449.tar.gz yuzu-e1ee8f4657235225a6cf1333b4b126ebb7931449.tar.bz2 yuzu-e1ee8f4657235225a6cf1333b4b126ebb7931449.tar.lz yuzu-e1ee8f4657235225a6cf1333b4b126ebb7931449.tar.xz yuzu-e1ee8f4657235225a6cf1333b4b126ebb7931449.tar.zst yuzu-e1ee8f4657235225a6cf1333b4b126ebb7931449.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/kernel/vm_manager.cpp | 5 | ||||
-rw-r--r-- | src/core/hle/kernel/vm_manager.h | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 45da842ef..339374aff 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -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; break; case GetInfoType::MapRegionBaseAddr: - *result = vm_manager.GetAddressSpaceBaseAddr(); + *result = vm_manager.GetMapRegionBaseAddr(); break; case GetInfoType::MapRegionSize: *result = vm_manager.GetAddressSpaceSize(); diff --git a/src/core/hle/kernel/vm_manager.cpp b/src/core/hle/kernel/vm_manager.cpp index bf261699e..93662a45e 100644 --- a/src/core/hle/kernel/vm_manager.cpp +++ b/src/core/hle/kernel/vm_manager.cpp @@ -375,6 +375,11 @@ u64 VMManager::GetAddressSpaceSize() { return MAX_ADDRESS; } +VAddr VMManager::GetMapRegionBaseAddr() { + LOG_WARNING(Kernel, "(STUBBED) called"); + return Memory::HEAP_VADDR; +} + VAddr VMManager::GetNewMapRegionBaseAddr() { LOG_WARNING(Kernel, "(STUBBED) called"); return 0x8000000; diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.h index 7a7fee54a..b17385c7c 100644 --- a/src/core/hle/kernel/vm_manager.h +++ b/src/core/hle/kernel/vm_manager.h @@ -192,6 +192,9 @@ public: /// Gets the total address space address size, used by svcGetInfo 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 VAddr GetNewMapRegionBaseAddr(); |