From 23f5d77f37345942fbf9b031a77141b2359ccc5e 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/libraries/libmesosphere/include/mesosphere/kern_k_memory_layout.hpp b/libraries/libmesosphere/include/mesosphere/kern_k_memory_layout.hpp index 526070b75..c1c0d2dfb 100644 --- a/libraries/libmesosphere/include/mesosphere/kern_k_memory_layout.hpp +++ b/libraries/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);