kern: implement KMemoryManager init
This commit is contained in:
1 parent
1de607c183
commit
f7d3d50f33
9 files changed
+283
-9
No files matched your search
@@ -38,6 +38,12 @@ namespace ams::kern {
|
||||
/* Initialize KSystemControl. */
|
||||
KSystemControl::Initialize();
|
||||
|
||||
/* Initialize the memory manager. */
|
||||
{
|
||||
const auto &metadata_region = KMemoryLayout::GetMetadataPoolRegion();
|
||||
Kernel::GetMemoryManager().Initialize(metadata_region.GetAddress(), metadata_region.GetSize());
|
||||
}
|
||||
|
||||
/* Note: this is not actually done here, it's done later in main after more stuff is setup. */
|
||||
/* However, for testing (and to manifest this code in the produced binary, this is here for now. */
|
||||
/* TODO: Do this better. */
|
||||
|
||||
Reference in new issue
Block a user