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/process.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/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 305275387..20b4e401c 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #include "common/bit_field.h" | 13 | #include "common/bit_field.h" |
| 14 | #include "common/common_types.h" | 14 | #include "common/common_types.h" |
| 15 | #include "core/hle/kernel/kernel.h" | 15 | #include "core/hle/kernel/kernel.h" |
| 16 | #include "core/hle/kernel/thread.h" | ||
| 16 | #include "core/hle/kernel/vm_manager.h" | 17 | #include "core/hle/kernel/vm_manager.h" |
| 17 | 18 | ||
| 18 | namespace Kernel { | 19 | namespace Kernel { |
| @@ -127,6 +128,9 @@ public: | |||
| 127 | u16 kernel_version = 0; | 128 | u16 kernel_version = 0; |
| 128 | /// The default CPU for this process, threads are scheduled on this cpu by default. | 129 | /// The default CPU for this process, threads are scheduled on this cpu by default. |
| 129 | u8 ideal_processor = 0; | 130 | u8 ideal_processor = 0; |
| 131 | /// Bitmask of allowed CPUs that this process' threads can run on. TODO(Subv): Actually parse | ||
| 132 | /// this value from the process header. | ||
| 133 | u32 allowed_processor_mask = THREADPROCESSORID_DEFAULT_MASK; | ||
| 130 | /// Current status of the process | 134 | /// Current status of the process |
| 131 | ProcessStatus status; | 135 | ProcessStatus status; |
| 132 | 136 | ||