From 6d0bf707831ed8e136396bb27683c28a7ab1c281 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 11 Oct 2023 10:20:47 -0700 Subject: [PATCH] kern: fix assert usage in process load --- .../libmesosphere/source/kern_k_initial_process_reader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/kern_k_initial_process_reader.cpp b/libraries/libmesosphere/source/kern_k_initial_process_reader.cpp index 6a9e3718b..727ddd476 100644 --- a/libraries/libmesosphere/source/kern_k_initial_process_reader.cpp +++ b/libraries/libmesosphere/source/kern_k_initial_process_reader.cpp @@ -129,7 +129,8 @@ namespace ams::kern { /* It is guaranteed by pre-condition that only the very first block can overlap with the physical binary, so we can simply memmove it at the end. */ if (last_block != Null) { /* This is guaranteed by pre-condition, but for ease of debugging, check for no overlap. */ - AMS_ASSERT(!util::HasOverlap(GetInteger(binary_phys), binary_size, GetInteger(block_addr), cur_size)); + MESOSPHERE_ASSERT(!util::HasOverlap(GetInteger(binary_phys), binary_size, GetInteger(block_addr), cur_size)); + MESOSPHERE_UNUSED(binary_phys); /* We need to copy. */ std::memcpy(GetVoidPointer(KMemoryLayout::GetLinearVirtualAddress(block_addr)), GetVoidPointer(data), cur_size);