kern: implement more of KMemoryManager through KPageBuffer slab init

This commit is contained in:
Michael Scire committed 2020-02-06 20:36:26 -08:00
1 parent f7d3d50f33
commit d9e6771e63
8 files changed
+418 -13

No files matched your search

+2 -1
View File
@@ -38,10 +38,11 @@ namespace ams::kern {
/* Initialize KSystemControl. */
KSystemControl::Initialize();
/* Initialize the memory manager. */
/* Initialize the memory manager and the KPageBuffer slabheap. */
{
const auto &metadata_region = KMemoryLayout::GetMetadataPoolRegion();
Kernel::GetMemoryManager().Initialize(metadata_region.GetAddress(), metadata_region.GetSize());
init::InitializeKPageBufferSlabHeap();
}
/* Note: this is not actually done here, it's done later in main after more stuff is setup. */