summaryrefslogtreecommitdiff
path: root/src/core/mem_map.h
diff options
context:
space:
mode:
authorGravatar bunnei2015-05-11 23:32:28 -0400
committerGravatar bunnei2015-05-11 23:32:28 -0400
commitcb2b2071a8740311af72b43d8f1f9be6fd0cd36f (patch)
tree4c6a14aafa398e5b93f6295e3a09476add3f0025 /src/core/mem_map.h
parentMerge pull request #751 from yuriks/idle-thread (diff)
parentCore/Memory: Add TLS support for creating up to 300 threads (diff)
downloadyuzu-cb2b2071a8740311af72b43d8f1f9be6fd0cd36f.tar.gz
yuzu-cb2b2071a8740311af72b43d8f1f9be6fd0cd36f.tar.xz
yuzu-cb2b2071a8740311af72b43d8f1f9be6fd0cd36f.zip
Merge pull request #748 from Subv/tls_max
Core/Memory: Add TLS support for creating up to 300 threads
Diffstat (limited to 'src/core/mem_map.h')
-rw-r--r--src/core/mem_map.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h
index 64de76c39..71f90cb8a 100644
--- a/src/core/mem_map.h
+++ b/src/core/mem_map.h
@@ -94,10 +94,12 @@ enum : VAddr {
94 SHARED_PAGE_SIZE = 0x00001000, 94 SHARED_PAGE_SIZE = 0x00001000,
95 SHARED_PAGE_VADDR_END = SHARED_PAGE_VADDR + SHARED_PAGE_SIZE, 95 SHARED_PAGE_VADDR_END = SHARED_PAGE_VADDR + SHARED_PAGE_SIZE,
96 96
97 // TODO(yuriks): The exact location and size of this area is uncomfirmed. 97 // TODO(yuriks): The size of this area is dynamic, the kernel grows
98 // it as more and more threads are created. For now we'll just use a
99 // hardcoded value.
98 /// Area where TLS (Thread-Local Storage) buffers are allocated. 100 /// Area where TLS (Thread-Local Storage) buffers are allocated.
99 TLS_AREA_VADDR = 0x1FFA0000, 101 TLS_AREA_VADDR = 0x1FF82000,
100 TLS_AREA_SIZE = 0x00002000, // Each TLS buffer is 0x200 bytes, allows for 16 threads 102 TLS_AREA_SIZE = 0x00030000, // Each TLS buffer is 0x200 bytes, allows for 300 threads
101 TLS_AREA_VADDR_END = TLS_AREA_VADDR + TLS_AREA_SIZE, 103 TLS_AREA_VADDR_END = TLS_AREA_VADDR + TLS_AREA_SIZE,
102}; 104};
103 105