summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2016-04-20 00:12:48 +0200
committerSubv <subv2112@gmail.com>2016-05-07 17:18:47 +0200
commitd192fb066d0d03c217c434f99af0200f75936263 (patch)
tree08151ce1c1cb6f7c91a544e6126d493d71f9f6b8 /src/core/hle/kernel/process.h
parentMerge pull request #1685 from lioncash/hdr (diff)
downloadyuzu-d192fb066d0d03c217c434f99af0200f75936263.tar
yuzu-d192fb066d0d03c217c434f99af0200f75936263.tar.gz
yuzu-d192fb066d0d03c217c434f99af0200f75936263.tar.bz2
yuzu-d192fb066d0d03c217c434f99af0200f75936263.tar.lz
yuzu-d192fb066d0d03c217c434f99af0200f75936263.tar.xz
yuzu-d192fb066d0d03c217c434f99af0200f75936263.tar.zst
yuzu-d192fb066d0d03c217c434f99af0200f75936263.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/process.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 6d2ca96a2..532ce3020 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -140,8 +140,11 @@ public:
MemoryRegionInfo* memory_region = nullptr;
- /// Bitmask of the used TLS slots
- std::bitset<300> used_tls_slots;
+ /// The Thread Local Storage area is allocated as processes create threads,
+ /// each TLS area is 0x200 bytes, so one page (0x1000) is split up in 8 parts, and each part
+ /// holds the TLS for a specific thread. This vector contains which parts are in use for each page as a bitmask.
+ /// This vector will grow as more pages are allocated for new threads.
+ std::vector<std::bitset<8>> tls_slots;
VAddr GetLinearHeapAreaAddress() const;
VAddr GetLinearHeapBase() const;