From 33c568963d9902eafdd7df3d8d11ca1bc71b9d9d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 1 Dec 2020 07:22:05 -0800 Subject: [PATCH] kern: fix unnecessary align-down --- libraries/libmesosphere/source/arch/arm64/kern_k_page_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/arch/arm64/kern_k_page_table.cpp b/libraries/libmesosphere/source/arch/arm64/kern_k_page_table.cpp index 8e6a579f0..a79eaa1cd 100644 --- a/libraries/libmesosphere/source/arch/arm64/kern_k_page_table.cpp +++ b/libraries/libmesosphere/source/arch/arm64/kern_k_page_table.cpp @@ -1080,7 +1080,7 @@ namespace ams::kern::arch::arm64 { /* Get the addresses we're working with. */ const KProcessAddress block_virt_addr = util::AlignDown(GetInteger(virt_addr), L1BlockSize); - const KPhysicalAddress block_phys_addr = util::AlignDown(GetInteger(l1_entry->GetBlock()), L1BlockSize); + const KPhysicalAddress block_phys_addr = l1_entry->GetBlock(); /* Allocate a new page for the L2 table. */ const KVirtualAddress l2_table = this->AllocatePageTable(page_list, reuse_ll);