summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2022-01-11 21:57:01 -0800
committerGravatar bunnei2022-01-14 21:16:33 -0800
commitb54cbc985e68363acfe54a34d267b279f6d3245a (patch)
tree9ba950e678a04d659704ef8e5395ee4279c58c08 /src/core/hle/kernel/kernel.cpp
parentMerge pull request #7707 from german77/slow-update (diff)
downloadyuzu-b54cbc985e68363acfe54a34d267b279f6d3245a.tar.gz
yuzu-b54cbc985e68363acfe54a34d267b279f6d3245a.tar.xz
yuzu-b54cbc985e68363acfe54a34d267b279f6d3245a.zip
hle: kernel: k_memory_manager: Clear pages on allocation & free.
- Heap pages should be zero'd. - Also explicitly passed along heap allocation option.
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index e1e17db13..ccef17fb9 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -629,7 +629,7 @@ struct KernelCore::Impl {
629 const auto application_pool = memory_layout.GetKernelApplicationPoolRegionPhysicalExtents(); 629 const auto application_pool = memory_layout.GetKernelApplicationPoolRegionPhysicalExtents();
630 630
631 // Initialize memory managers 631 // Initialize memory managers
632 memory_manager = std::make_unique<KMemoryManager>(); 632 memory_manager = std::make_unique<KMemoryManager>(system);
633 memory_manager->InitializeManager(KMemoryManager::Pool::Application, 633 memory_manager->InitializeManager(KMemoryManager::Pool::Application,
634 application_pool.GetAddress(), 634 application_pool.GetAddress(),
635 application_pool.GetEndAddress()); 635 application_pool.GetEndAddress());