diff options
| author | emmauss <emmausssss@gmail.com> | 2018-04-05 01:16:59 +0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-04 19:16:59 -0300 |
| commit | 836a003c8e092653d4fdf9c83df2b7f7401717d2 (patch) | |
| tree | f8de706ea994bb8ae3a69d1bc79b9bfeca00fb0e /Ryujinx.Core/OsHle/Svc/SvcThread.cs | |
| parent | e16ca561cb32b8d3a12689290dd75e357d28e857 (diff) | |
stubs (#69)
Diffstat (limited to 'Ryujinx.Core/OsHle/Svc/SvcThread.cs')
| -rw-r--r-- | Ryujinx.Core/OsHle/Svc/SvcThread.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Ryujinx.Core/OsHle/Svc/SvcThread.cs b/Ryujinx.Core/OsHle/Svc/SvcThread.cs index f58c2dc0..c58cffca 100644 --- a/Ryujinx.Core/OsHle/Svc/SvcThread.cs +++ b/Ryujinx.Core/OsHle/Svc/SvcThread.cs @@ -117,6 +117,13 @@ namespace Ryujinx.Core.OsHle.Svc //TODO: Error codes. } + private void SvcGetCurrentProcessorNumber(AThreadState ThreadState) + { + KThread CurrThread = Process.GetThread(ThreadState.Tpidr); + + ThreadState.X0 = (ulong)CurrThread.ProcessorId; + } + private void SvcGetThreadId(AThreadState ThreadState) { int Handle = (int)ThreadState.X1; |
