diff options
| author | 2019-03-28 22:59:17 -0400 | |
|---|---|---|
| committer | 2019-03-28 22:59:20 -0400 | |
| commit | 3a846aa80f5d533a5061fcbef2736aaef8c38a66 (patch) | |
| tree | a3dd29dfc5f35a4fed9d9c9855af4dbab902774f /src/core/hle/kernel/process.h | |
| parent | kernel/process: Store the total size of the code memory loaded (diff) | |
| download | yuzu-3a846aa80f5d533a5061fcbef2736aaef8c38a66.tar.gz yuzu-3a846aa80f5d533a5061fcbef2736aaef8c38a66.tar.xz yuzu-3a846aa80f5d533a5061fcbef2736aaef8c38a66.zip | |
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.
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 16193ca56..732d12170 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -186,6 +186,9 @@ public: | |||
| 186 | return random_entropy.at(index); | 186 | return random_entropy.at(index); |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | /// Retrieves the total physical memory used by this process in bytes. | ||
| 190 | u64 GetTotalPhysicalMemoryUsed() const; | ||
| 191 | |||
| 189 | /// Clears the signaled state of the process if and only if it's signaled. | 192 | /// Clears the signaled state of the process if and only if it's signaled. |
| 190 | /// | 193 | /// |
| 191 | /// @pre The process must not be already terminated. If this is called on a | 194 | /// @pre The process must not be already terminated. If this is called on a |