Kernel: Report used app memory for GetProcessInfo 2

Not really correct, but it should be accurate for applications at least
This commit is contained in:
PSI-Rockin 2024-05-13 00:34:52 -04:00
parent c2fd59ff6f
commit 3d66239851

View file

@ -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;