From 7b523cfc8dccaa7875dc4e19cea892280831798c 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/libraries/libmesosphere/source/arch/arm64/kern_k_page_table.cpp b/libraries/libmesosphere/source/arch/arm64/kern_k_page_table.cpp index ed55750c9..4d1269a07 100644 --- a/libraries/libmesosphere/source/arch/arm64/kern_k_page_table.cpp +++ b/libraries/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. */