From ae0c9ef1d6f0a6a8fbc57e41ac28d257d24f8fbb Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 6 Feb 2020 01:22:21 -0800 Subject: [PATCH] kern: fix carveout region calcs --- libmesosphere/include/mesosphere/kern_k_memory_layout.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmesosphere/include/mesosphere/kern_k_memory_layout.hpp b/libmesosphere/include/mesosphere/kern_k_memory_layout.hpp index 526070b7..c1c0d2df 100644 --- a/libmesosphere/include/mesosphere/kern_k_memory_layout.hpp +++ b/libmesosphere/include/mesosphere/kern_k_memory_layout.hpp @@ -459,7 +459,7 @@ namespace ams::kern { } static NOINLINE auto GetCarveoutRegionExtents() { - return GetVirtualMemoryRegionTree().GetDerivedRegionExtents(KMemoryRegionAttr_CarveoutProtected); + return GetPhysicalMemoryRegionTree().GetDerivedRegionExtents(KMemoryRegionAttr_CarveoutProtected); } static void InitializeLinearMemoryRegionTrees(KPhysicalAddress aligned_linear_phys_start, KVirtualAddress linear_virtual_start);