diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-13 09:42:30 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-03-21 22:45:02 +0100 |
commit | 778e0f8ec1c1be555217be91a32ac01d32675e23 (patch) | |
tree | 668c3c7b4c31477a45e2e1f9ad550a1af00901ef /src/core/hle/kernel/kernel.cpp | |
parent | Merge pull request #6052 from Morph1984/vi-getindirectlayerimagemap (diff) | |
download | yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar.gz yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar.bz2 yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar.lz yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar.xz yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar.zst yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 780008b08..48916df17 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -275,22 +275,22 @@ struct KernelCore::Impl { constexpr std::size_t font_size{0x1100000}; constexpr std::size_t irs_size{0x8000}; constexpr std::size_t time_size{0x1000}; - constexpr PAddr hid_addr{layout.System().StartAddress()}; - constexpr PAddr font_pa{layout.System().StartAddress() + hid_size}; - constexpr PAddr irs_addr{layout.System().StartAddress() + hid_size + font_size}; - constexpr PAddr time_addr{layout.System().StartAddress() + hid_size + font_size + irs_size}; + constexpr PAddr hid_addr{layout.System().GetAddress()}; + constexpr PAddr font_pa{layout.System().GetAddress() + hid_size}; + constexpr PAddr irs_addr{layout.System().GetAddress() + hid_size + font_size}; + constexpr PAddr time_addr{layout.System().GetAddress() + hid_size + font_size + irs_size}; // Initialize memory manager memory_manager = std::make_unique<KMemoryManager>(); memory_manager->InitializeManager(KMemoryManager::Pool::Application, - layout.Application().StartAddress(), - layout.Application().EndAddress()); + layout.Application().GetAddress(), + layout.Application().GetLastAddress()); memory_manager->InitializeManager(KMemoryManager::Pool::Applet, - layout.Applet().StartAddress(), - layout.Applet().EndAddress()); + layout.Applet().GetAddress(), + layout.Applet().GetLastAddress()); memory_manager->InitializeManager(KMemoryManager::Pool::System, - layout.System().StartAddress(), - layout.System().EndAddress()); + layout.System().GetAddress(), + layout.System().GetLastAddress()); hid_shared_mem = Kernel::KSharedMemory::Create( system.Kernel(), system.DeviceMemory(), nullptr, {hid_addr, hid_size / PageSize}, |