kern: KMemoryManager::Allocate -> AllocateAndOpen

This commit is contained in:
Michael Scire authored and SciresM committed 2020-12-02 06:43:37 -08:00
1 parent 3bce008170
commit cc11d452e5
8 files changed
+85 -44

No files matched your search

@@ -37,7 +37,7 @@ namespace ams::kern {
R_UNLESS(memory_reservation.Succeeded(), svc::ResultLimitReached());
/* Allocate the memory. */
R_TRY(Kernel::GetMemoryManager().Allocate(std::addressof(this->page_group), num_pages, owner->GetAllocateOption()));
R_TRY(Kernel::GetMemoryManager().AllocateAndOpen(std::addressof(this->page_group), num_pages, owner->GetAllocateOption()));
/* Commit our reservation. */
memory_reservation.Commit();
@@ -46,9 +46,6 @@ namespace ams::kern {
this->resource_limit = reslimit;
this->resource_limit->Open();
/* Open the memory. */
this->page_group.Open();
/* Mark initialized. */
this->is_initialized = true;