diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-31 01:11:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-31 01:11:17 +0100 |
commit | d9b7bc44748908d49d59433870211df8e1c32581 (patch) | |
tree | 37faebdb5dcdd6fb3e6eabbd9e81290ed94396df /src/core/hle/kernel/process.h | |
parent | Merge pull request #2303 from lioncash/thread (diff) | |
parent | kernel/process: Report total physical memory used to svcGetInfo (diff) | |
download | yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar.gz yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar.bz2 yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar.lz yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar.xz yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar.zst yuzu-d9b7bc44748908d49d59433870211df8e1c32581.zip |
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r-- | src/core/hle/kernel/process.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index a0217d3d8..732d12170 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -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 @@ -210,7 +213,7 @@ public: /** * Applies address space changes and launches the process main thread. */ - void Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size); + void Run(VAddr entry_point, s32 main_thread_priority, u64 stack_size); /** * Prepares a process for termination by stopping all of its threads @@ -247,6 +250,12 @@ private: /// Memory manager for this process. Kernel::VMManager vm_manager; + /// Size of the main thread's stack in bytes. + u64 main_thread_stack_size = 0; + + /// Size of the loaded code memory in bytes. + u64 code_memory_size = 0; + /// Current status of the process ProcessStatus status; |