diff options
| author | 2018-01-10 00:58:25 -0500 | |
|---|---|---|
| committer | 2018-01-10 01:01:55 -0500 | |
| commit | 7ad20154fc9bf1094f78721fed13fac1436bef17 (patch) | |
| tree | 7c49bbaee40560ffac1a0a5f8a869df23f0dba71 /src/core/hle/kernel/thread.h | |
| parent | Services: Allow lm to log single-character messages. (diff) | |
| download | yuzu-7ad20154fc9bf1094f78721fed13fac1436bef17.tar.gz yuzu-7ad20154fc9bf1094f78721fed13fac1436bef17.tar.xz yuzu-7ad20154fc9bf1094f78721fed13fac1436bef17.zip | |
Threads: Added enum values for the Switch's 4 cpu cores and implemented svcGetInfo(AllowedCpuIdBitmask)
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 19ba6e0af..0a1ada27d 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -24,10 +24,15 @@ enum ThreadPriority : u32 { | |||
| 24 | 24 | ||
| 25 | enum ThreadProcessorId : s32 { | 25 | enum ThreadProcessorId : s32 { |
| 26 | THREADPROCESSORID_DEFAULT = -2, ///< Run thread on default core specified by exheader | 26 | THREADPROCESSORID_DEFAULT = -2, ///< Run thread on default core specified by exheader |
| 27 | THREADPROCESSORID_ALL = -1, ///< Run thread on either core | 27 | THREADPROCESSORID_0 = 0, ///< Run thread on core 0 |
| 28 | THREADPROCESSORID_0 = 0, ///< Run thread on core 0 (AppCore) | 28 | THREADPROCESSORID_1 = 1, ///< Run thread on core 1 |
| 29 | THREADPROCESSORID_1 = 1, ///< Run thread on core 1 (SysCore) | 29 | THREADPROCESSORID_2 = 2, ///< Run thread on core 2 |
| 30 | THREADPROCESSORID_MAX = 2, ///< Processor ID must be less than this | 30 | THREADPROCESSORID_3 = 3, ///< Run thread on core 3 |
| 31 | THREADPROCESSORID_MAX = 4, ///< Processor ID must be less than this | ||
| 32 | |||
| 33 | /// Allowed CPU mask | ||
| 34 | THREADPROCESSORID_DEFAULT_MASK = (1 << THREADPROCESSORID_0) | (1 << THREADPROCESSORID_1) | | ||
| 35 | (1 << THREADPROCESSORID_2) | (1 << THREADPROCESSORID_3) | ||
| 31 | }; | 36 | }; |
| 32 | 37 | ||
| 33 | enum ThreadStatus { | 38 | enum ThreadStatus { |