summaryrefslogtreecommitdiffstats
path: root/src/core/mem_map.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-05-11 06:19:54 +0200
committerSubv <subv2112@gmail.com>2015-05-12 03:09:23 +0200
commitdda94e56dde35f5df969b71b2be9195b7d8cdc05 (patch)
treebbded5ba6fc9d9a52268614f87c8ac11ed5789f6 /src/core/mem_map.h
parentMerge pull request #750 from Subv/process_svc (diff)
downloadyuzu-dda94e56dde35f5df969b71b2be9195b7d8cdc05.tar
yuzu-dda94e56dde35f5df969b71b2be9195b7d8cdc05.tar.gz
yuzu-dda94e56dde35f5df969b71b2be9195b7d8cdc05.tar.bz2
yuzu-dda94e56dde35f5df969b71b2be9195b7d8cdc05.tar.lz
yuzu-dda94e56dde35f5df969b71b2be9195b7d8cdc05.tar.xz
yuzu-dda94e56dde35f5df969b71b2be9195b7d8cdc05.tar.zst
yuzu-dda94e56dde35f5df969b71b2be9195b7d8cdc05.zip
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 {
SHARED_PAGE_SIZE = 0x00001000,
SHARED_PAGE_VADDR_END = SHARED_PAGE_VADDR + SHARED_PAGE_SIZE,
- // TODO(yuriks): The exact location and size of this area is uncomfirmed.
+ // TODO(yuriks): The size of this area is dynamic, the kernel grows
+ // it as more and more threads are created. For now we'll just use a
+ // hardcoded value.
/// Area where TLS (Thread-Local Storage) buffers are allocated.
- TLS_AREA_VADDR = 0x1FFA0000,
- TLS_AREA_SIZE = 0x00002000, // Each TLS buffer is 0x200 bytes, allows for 16 threads
+ TLS_AREA_VADDR = 0x1FF82000,
+ TLS_AREA_SIZE = 0x00030000, // Each TLS buffer is 0x200 bytes, allows for 300 threads
TLS_AREA_VADDR_END = TLS_AREA_VADDR + TLS_AREA_SIZE,
};