kern: fix linear mapped dram -> pool partition check

This commit is contained in:
Michael Scire authored and SciresM committed 2020-09-07 10:43:35 -07:00
1 parent 1983f86875
commit 4da1fe545c
1 file changed
+1 -1
@@ -310,7 +310,7 @@ namespace ams::kern::init {
/* All linear-mapped DRAM regions that we haven't tagged by this point will be allocated to some pool partition. Tag them. */
for (auto &region : KMemoryLayout::GetPhysicalMemoryRegionTree()) {
if (region.GetType() == KMemoryRegionType_Dram && region.HasTypeAttribute(KMemoryRegionAttr_LinearMapped)) {
if (region.GetType() == (KMemoryRegionType_Dram | KMemoryRegionAttr_LinearMapped)) {
region.SetType(KMemoryRegionType_DramPoolPartition);
}
}