kernel/process: Report total physical memory used to svcGetInfo

Reports the (mostly) correct size through svcGetInfo now for queries to
total used physical memory. This still doesn't correctly handle memory
allocated via svcMapPhysicalMemory, however, we don't currently handle
that case anyways.
This commit is contained in:
Lioncash 2019-03-28 22:59:17 -04:00
parent 4ee615b15a
commit 60167a13eb
3 changed files with 11 additions and 4 deletions

View file

@ -186,6 +186,9 @@ public:
return random_entropy.at(index);
}
/// Retrieves the total physical memory used by this process in bytes.
u64 GetTotalPhysicalMemoryUsed() const;
/// Clears the signaled state of the process if and only if it's signaled.
///
/// @pre The process must not be already terminated. If this is called on a