summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp20
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 {
275 constexpr std::size_t font_size{0x1100000}; 275 constexpr std::size_t font_size{0x1100000};
276 constexpr std::size_t irs_size{0x8000}; 276 constexpr std::size_t irs_size{0x8000};
277 constexpr std::size_t time_size{0x1000}; 277 constexpr std::size_t time_size{0x1000};
278 constexpr PAddr hid_addr{layout.System().StartAddress()}; 278 constexpr PAddr hid_addr{layout.System().GetAddress()};
279 constexpr PAddr font_pa{layout.System().StartAddress() + hid_size}; 279 constexpr PAddr font_pa{layout.System().GetAddress() + hid_size};
280 constexpr PAddr irs_addr{layout.System().StartAddress() + hid_size + font_size}; 280 constexpr PAddr irs_addr{layout.System().GetAddress() + hid_size + font_size};
281 constexpr PAddr time_addr{layout.System().StartAddress() + hid_size + font_size + irs_size}; 281 constexpr PAddr time_addr{layout.System().GetAddress() + hid_size + font_size + irs_size};
282 282
283 // Initialize memory manager 283 // Initialize memory manager
284 memory_manager = std::make_unique<KMemoryManager>(); 284 memory_manager = std::make_unique<KMemoryManager>();
285 memory_manager->InitializeManager(KMemoryManager::Pool::Application, 285 memory_manager->InitializeManager(KMemoryManager::Pool::Application,
286 layout.Application().StartAddress(), 286 layout.Application().GetAddress(),
287 layout.Application().EndAddress()); 287 layout.Application().GetLastAddress());
288 memory_manager->InitializeManager(KMemoryManager::Pool::Applet, 288 memory_manager->InitializeManager(KMemoryManager::Pool::Applet,
289 layout.Applet().StartAddress(), 289 layout.Applet().GetAddress(),
290 layout.Applet().EndAddress()); 290 layout.Applet().GetLastAddress());
291 memory_manager->InitializeManager(KMemoryManager::Pool::System, 291 memory_manager->InitializeManager(KMemoryManager::Pool::System,
292 layout.System().StartAddress(), 292 layout.System().GetAddress(),
293 layout.System().EndAddress()); 293 layout.System().GetLastAddress());
294 294
295 hid_shared_mem = Kernel::KSharedMemory::Create( 295 hid_shared_mem = Kernel::KSharedMemory::Create(
296 system.Kernel(), system.DeviceMemory(), nullptr, {hid_addr, hid_size / PageSize}, 296 system.Kernel(), system.DeviceMemory(), nullptr, {hid_addr, hid_size / PageSize},