From 1cca6c4119ddc80cc9efc9c638c412db84c8d3d4 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Fri, 9 May 2025 19:54:17 -0500 Subject: [PATCH] Formatting --- src/core/memory.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 965b13ad6..cda66c30a 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -308,15 +308,16 @@ int MemoryManager::PoolCommit(VAddr virtual_addr, size_t size, MemoryProt prot) auto& vma = FindVMA(mapped_addr)->second; if (vma.type != VMAType::PoolReserved || vma.base + vma.size < virtual_addr + size) { - // If the VMA isn't PoolReserved or if there's not enough space - // to commit, this should return EINVAL - LOG_ERROR(Kernel_Vmm, "Trying to PoolCommit non-pooled memory!"); + // If the VMA isn't PoolReserved or if there's not enough space to commit, return EINVAL + LOG_ERROR(Kernel_Vmm, + "Pooled region {:#x} to {:#x} is not large enough to commit from {:#x} to {:#x}", + vma.base, vma.size, mapped_addr, size); return ORBIS_KERNEL_ERROR_EINVAL; } - + // Before mapping, the reserved VMA should have it's physical base incremented. vma.phys_base += size; - + // Carve out the new VMA representing this mapping const auto new_vma_handle = CarveVMA(mapped_addr, size); auto& new_vma = new_vma_handle->second;