diff options
| author | bunnei <bunneidev@gmail.com> | 2019-07-18 13:53:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-18 13:53:04 -0400 |
| commit | 5d369112d9d467d4257e24ce57f3ebba824556f0 (patch) | |
| tree | ff5dcc2c614dd7d257a0993b651a546e31c5ce9a /src/core/hle/kernel/process.h | |
| parent | 63bda67a342cf0516501fb30a24452ce9944caa0 (diff) | |
| parent | 56c7912159e210e009228f83e6c3ead3e5c99d4b (diff) | |
Merge pull request #2687 from lioncash/tls-process
kernel/process: Allocate the process' TLS region during initialization
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 3196014da..c2df451f3 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -135,6 +135,11 @@ public: return mutex; } + /// Gets the address to the process' dedicated TLS region. + VAddr GetTLSRegionAddress() const { + return tls_region_address; + } + /// Gets the current status of the process ProcessStatus GetStatus() const { return status; @@ -296,6 +301,9 @@ private: /// a process signal. void ChangeStatus(ProcessStatus new_status); + /// Allocates the main thread stack for the process, given the stack size in bytes. + void AllocateMainThreadStack(u64 stack_size); + /// Memory manager for this process. Kernel::VMManager vm_manager; @@ -358,6 +366,9 @@ private: /// variable related facilities. Mutex mutex; + /// Address indicating the location of the process' dedicated TLS region. + VAddr tls_region_address = 0; + /// Random values for svcGetInfo RandomEntropy std::array<u64, RANDOM_ENTROPY_SIZE> random_entropy{}; |
