From 7ac90cdb0d7483694727717856cbcac9c523b86e Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 11 Oct 2023 09:16:52 -0700 Subject: [PATCH] kern: note OnFinalize calls in KPageTable::Finalize --- libmesosphere/source/arch/arm64/kern_k_page_table.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libmesosphere/source/arch/arm64/kern_k_page_table.cpp b/libmesosphere/source/arch/arm64/kern_k_page_table.cpp index ed55750c..4d1269a0 100644 --- a/libmesosphere/source/arch/arm64/kern_k_page_table.cpp +++ b/libmesosphere/source/arch/arm64/kern_k_page_table.cpp @@ -236,9 +236,15 @@ namespace ams::kern::arch::arm64 { /* Only process tables should be finalized. */ MESOSPHERE_ASSERT(!this->IsKernel()); + /* NOTE: Here Nintendo calls an unknown OnFinalize function. */ + /* this->OnFinalize(); */ + /* Note that we've updated (to ensure we're synchronized). */ this->NoteUpdated(); + /* NOTE: Here Nintendo calls a second unknown OnFinalize function. */ + /* this->OnFinalize2(); */ + /* Free all pages in the table. */ { /* Get implementation objects. */