aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-04-06 10:53:18 -0300
committergdkchan <gab.dark.100@gmail.com>2018-04-06 10:53:18 -0300
commitb27944c0b5ab32a20a2927510e9b1bfa5700221e (patch)
treeb62ce6865298c181a2285f916cfba9d972698d3b
parentdf3cbadcebe48d40a6b8a8e510d21d452d0e0ab3 (diff)
Bump the maximum number of threads
-rw-r--r--Ryujinx.Core/OsHle/MemoryRegions.cs2
-rw-r--r--Ryujinx.Core/OsHle/Process.cs5
2 files changed, 4 insertions, 3 deletions
diff --git a/Ryujinx.Core/OsHle/MemoryRegions.cs b/Ryujinx.Core/OsHle/MemoryRegions.cs
index 75b97b1f..f7ef47f4 100644
--- a/Ryujinx.Core/OsHle/MemoryRegions.cs
+++ b/Ryujinx.Core/OsHle/MemoryRegions.cs
@@ -16,7 +16,7 @@ namespace Ryujinx.Core.OsHle
public const long MainStackAddress = AMemoryMgr.AddrSize - MainStackSize;
- public const long TlsPagesSize = 0x4000;
+ public const long TlsPagesSize = 0x20000;
public const long TlsPagesAddress = MainStackAddress - TlsPagesSize;
diff --git a/Ryujinx.Core/OsHle/Process.cs b/Ryujinx.Core/OsHle/Process.cs
index 0d1342e7..ddbeecdc 100644
--- a/Ryujinx.Core/OsHle/Process.cs
+++ b/Ryujinx.Core/OsHle/Process.cs
@@ -15,8 +15,9 @@ namespace Ryujinx.Core.OsHle
{
class Process : IDisposable
{
- private const int TlsSize = 0x200;
- private const int TotalTlsSlots = 32;
+ private const int TlsSize = 0x200;
+
+ private const int TotalTlsSlots = (int)MemoryRegions.TlsPagesSize / TlsSize;
private const int TickFreq = 19_200_000;