From 843e2b08fe95972e5910482c0b8e06806820af9c 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 --- libmesosphere/source/arch/arm64/kern_k_page_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmesosphere/source/arch/arm64/kern_k_page_table.cpp b/libmesosphere/source/arch/arm64/kern_k_page_table.cpp index 8e6a579f..a79eaa1c 100644 --- a/libmesosphere/source/arch/arm64/kern_k_page_table.cpp +++ b/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);