summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-07-18 19:53:04 +0200
committerGitHub <noreply@github.com>2019-07-18 19:53:04 +0200
commit5d369112d9d467d4257e24ce57f3ebba824556f0 (patch)
treeff5dcc2c614dd7d257a0993b651a546e31c5ce9a /src/core/hle/kernel/process.h
parentMerge pull request #2738 from lioncash/shader-ir (diff)
parentkernel/process: Allocate the process' TLS region during initialization (diff)
downloadyuzu-5d369112d9d467d4257e24ce57f3ebba824556f0.tar
yuzu-5d369112d9d467d4257e24ce57f3ebba824556f0.tar.gz
yuzu-5d369112d9d467d4257e24ce57f3ebba824556f0.tar.bz2
yuzu-5d369112d9d467d4257e24ce57f3ebba824556f0.tar.lz
yuzu-5d369112d9d467d4257e24ce57f3ebba824556f0.tar.xz
yuzu-5d369112d9d467d4257e24ce57f3ebba824556f0.tar.zst
yuzu-5d369112d9d467d4257e24ce57f3ebba824556f0.zip
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r--src/core/hle/kernel/process.h11
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{};