diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-22 01:21:49 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-22 01:22:46 -0300 |
| commit | bd9b1e2c6b912c7cdab55ec6acc063c88a59cff1 (patch) | |
| tree | 077ab8da47828f9fd23893eeefa54c7d8fb2a314 /Ryujinx.Core/OsHle/Kernel | |
| parent | 4906acdde96c09b4e12a3801a4bacd5233a2f8e6 (diff) | |
Stub a few services, add support for generating call stacks on the CPU
Diffstat (limited to 'Ryujinx.Core/OsHle/Kernel')
| -rw-r--r-- | Ryujinx.Core/OsHle/Kernel/SvcThread.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Core/OsHle/Kernel/SvcThread.cs b/Ryujinx.Core/OsHle/Kernel/SvcThread.cs index 1e4d61b4..e1300b73 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcThread.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcThread.cs @@ -156,13 +156,13 @@ namespace Ryujinx.Core.OsHle.Kernel private void SvcSetThreadActivity(AThreadState ThreadState) { int Handle = (int)ThreadState.X0; - bool Active = (int)ThreadState.X1 != 0; + bool Active = (int)ThreadState.X1 == 0; - KThread CurrThread = Process.HandleTable.GetData<KThread>(Handle); + KThread Thread = Process.HandleTable.GetData<KThread>(Handle); - if (CurrThread != null) + if (Thread != null) { - Process.Scheduler.SetThreadActivity(CurrThread, Active); + Process.Scheduler.SetThreadActivity(Thread, Active); ThreadState.X0 = 0; } |
