From 3d66239851c31a33fb8f116bafaf06c21e110cc6 Mon Sep 17 00:00:00 2001 From: PSI-Rockin Date: Mon, 13 May 2024 00:34:52 -0400 Subject: [PATCH] Kernel: Report used app memory for GetProcessInfo 2 Not really correct, but it should be accurate for applications at least --- src/core/kernel/kernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/kernel/kernel.cpp b/src/core/kernel/kernel.cpp index 9f69c67c..03e8a4b9 100644 --- a/src/core/kernel/kernel.cpp +++ b/src/core/kernel/kernel.cpp @@ -266,8 +266,8 @@ void Kernel::getProcessInfo() { // According to 3DBrew: Amount of private (code, data, heap) memory used by the process + total supervisor-mode // stack size + page-rounded size of the external handle table case 2: - // TODO - regs[1] = 0; + // FIXME + regs[1] = fcramManager.getUsedCount(FcramRegion::App); regs[2] = 0; break;