kern: PMC must be user-mappable for 1.0.0 compat

This commit is contained in:
Michael Scire
2020-08-21 13:56:13 -07:00
committed by SciresM
parent 496f93ccdb
commit d50c7c5c79
3 changed files with 11 additions and 4 deletions

View File

@@ -201,7 +201,7 @@ namespace ams::kern::board::nintendo::nx {
const KMemoryRegion *region = KMemoryLayout::Find(KPhysicalAddress(address));
if (AMS_LIKELY(region != nullptr)) {
/* The PMC is always allowed. */
if (region->IsDerivedFrom(KMemoryRegionAttr_NoUserMap | KMemoryRegionType_PowerManagementController)) {
if (region->IsDerivedFrom(KMemoryRegionType_PowerManagementController)) {
return true;
}