diff options
| author | 2022-01-11 21:57:01 -0800 | |
|---|---|---|
| committer | 2022-01-14 21:16:33 -0800 | |
| commit | b54cbc985e68363acfe54a34d267b279f6d3245a (patch) | |
| tree | 9ba950e678a04d659704ef8e5395ee4279c58c08 /src/core/hle/kernel/kernel.cpp | |
| parent | Merge pull request #7707 from german77/slow-update (diff) | |
| download | yuzu-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.cpp | 2 |
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()); |