summaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorGravatar bunnei2016-05-12 21:51:35 -0400
committerGravatar bunnei2016-05-12 21:51:35 -0400
commit0d8bd3ba369a4a6264ba99a66dbc17e1e14e1440 (patch)
treec7341fcf893002e87fbe18b0a04b221aff46bf13 /src/core/memory.h
parentMerge pull request #1783 from JayFoxRox/cleanup-shadersetup (diff)
parentKernel/Threads: Dynamically allocate the TLS region for threads in the BASE r... (diff)
downloadyuzu-0d8bd3ba369a4a6264ba99a66dbc17e1e14e1440.tar.gz
yuzu-0d8bd3ba369a4a6264ba99a66dbc17e1e14e1440.tar.xz
yuzu-0d8bd3ba369a4a6264ba99a66dbc17e1e14e1440.zip
Merge pull request #1695 from Subv/tls_alloc
Kernel/Threads: Dynamically allocate the TLS region for threads.
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 9caa3c3f5..126d60471 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -100,15 +100,9 @@ enum : VAddr {
100 SHARED_PAGE_SIZE = 0x00001000, 100 SHARED_PAGE_SIZE = 0x00001000,
101 SHARED_PAGE_VADDR_END = SHARED_PAGE_VADDR + SHARED_PAGE_SIZE, 101 SHARED_PAGE_VADDR_END = SHARED_PAGE_VADDR + SHARED_PAGE_SIZE,
102 102
103 // TODO(yuriks): The size of this area is dynamic, the kernel grows
104 // it as more and more threads are created. For now we'll just use a
105 // hardcoded value.
106 /// Area where TLS (Thread-Local Storage) buffers are allocated. 103 /// Area where TLS (Thread-Local Storage) buffers are allocated.
107 TLS_AREA_VADDR = 0x1FF82000, 104 TLS_AREA_VADDR = 0x1FF82000,
108 TLS_ENTRY_SIZE = 0x200, 105 TLS_ENTRY_SIZE = 0x200,
109 TLS_AREA_SIZE = 300 * TLS_ENTRY_SIZE + 0x800, // Space for up to 300 threads + round to page size
110 TLS_AREA_VADDR_END = TLS_AREA_VADDR + TLS_AREA_SIZE,
111
112 106
113 /// Equivalent to LINEAR_HEAP_VADDR, but expanded to cover the extra memory in the New 3DS. 107 /// Equivalent to LINEAR_HEAP_VADDR, but expanded to cover the extra memory in the New 3DS.
114 NEW_LINEAR_HEAP_VADDR = 0x30000000, 108 NEW_LINEAR_HEAP_VADDR = 0x30000000,