hle: kernel: k_memory_manager: Clear pages on allocation & free.

- Heap pages should be zero'd.
- Also explicitly passed along heap allocation option.
This commit is contained in:
bunnei 2022-01-11 21:57:01 -08:00
parent 4064e03568
commit b54cbc985e
5 changed files with 34 additions and 16 deletions

View file

@ -629,7 +629,7 @@ struct KernelCore::Impl {
const auto application_pool = memory_layout.GetKernelApplicationPoolRegionPhysicalExtents();
// Initialize memory managers
memory_manager = std::make_unique<KMemoryManager>();
memory_manager = std::make_unique<KMemoryManager>(system);
memory_manager->InitializeManager(KMemoryManager::Pool::Application,
application_pool.GetAddress(),
application_pool.GetEndAddress());