aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process_capability.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-19 19:09:18 -0500
committerLioncash <mathew1800@gmail.com>2018-12-21 07:05:34 -0500
commitded092a4380ad4f5dc067ceef7d6568867e03733 (patch)
treef84ed4a9178786c27ceddf9940e7be6e26f94d51 /src/core/hle/kernel/process_capability.h
parentc5c8b2ffb9e37e271d0715fbb09f2c76e0de1800 (diff)
kernel/process_capability: Handle the priority mask and core mask flags
Handles the priority mask and core mask flags to allow building up the masks to determine the usable thread priorities and cores for a kernel process instance.
Diffstat (limited to 'src/core/hle/kernel/process_capability.h')
-rw-r--r--src/core/hle/kernel/process_capability.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process_capability.h b/src/core/hle/kernel/process_capability.h
index 5cff104764..4b27ee8b98 100644
--- a/src/core/hle/kernel/process_capability.h
+++ b/src/core/hle/kernel/process_capability.h
@@ -122,6 +122,16 @@ public:
///
void InitializeForMetadatalessProcess();
+ /// Gets the allowable core mask
+ u64 GetCoreMask() const {
+ return core_mask;
+ }
+
+ /// Gets the allowable priority mask
+ u64 GetPriorityMask() const {
+ return priority_mask;
+ }
+
private:
/// Attempts to parse a given sequence of capability descriptors.
///