Skip to content

Commit

Permalink
Kernel: Report used app memory for GetProcessInfo 2
Browse files Browse the repository at this point in the history
Not really correct, but it should be accurate for applications at least
  • Loading branch information
PSI-Rockin committed May 13, 2024
1 parent c2fd59f commit 3d66239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/kernel/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3d66239

Please sign in to comment.