diff --git a/Ryujinx.HLE/HOS/Kernel/Common/KSystemControl.cs b/Ryujinx.HLE/HOS/Kernel/Common/KSystemControl.cs index 630baacf..88142142 100644 --- a/Ryujinx.HLE/HOS/Kernel/Common/KSystemControl.cs +++ b/Ryujinx.HLE/HOS/Kernel/Common/KSystemControl.cs @@ -58,6 +58,12 @@ namespace Ryujinx.HLE.HOS.Kernel.Common return DramMemoryMap.DramBase + GetDramSize(size); } + public static ulong GenerateRandom() + { + // TODO + return 0; + } + public static ulong GetDramSize(MemorySize size) { return size switch diff --git a/Ryujinx.HLE/HOS/Kernel/Threading/KThread.cs b/Ryujinx.HLE/HOS/Kernel/Threading/KThread.cs index 396a79ba..64629248 100644 --- a/Ryujinx.HLE/HOS/Kernel/Threading/KThread.cs +++ b/Ryujinx.HLE/HOS/Kernel/Threading/KThread.cs @@ -187,6 +187,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading if (is64Bits) { + Context.SetX(18, KSystemControl.GenerateRandom() | 1); Context.SetX(31, stackTop); } else