summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorGravatar bunnei2015-05-15 09:42:36 -0400
committerGravatar bunnei2015-05-15 09:42:36 -0400
commitef8d0e9823e0ac61624002b89912e8995a3588e4 (patch)
treedfaee1cefb39e627bd90562c416d19fe6002209c /src/core/hle/kernel/process.h
parentMerge pull request #675 from jroweboy/windows-build-fixes (diff)
parentCore/ResourceLimits: Implemented the basic structure of ResourceLimits. (diff)
downloadyuzu-ef8d0e9823e0ac61624002b89912e8995a3588e4.tar.gz
yuzu-ef8d0e9823e0ac61624002b89912e8995a3588e4.tar.xz
yuzu-ef8d0e9823e0ac61624002b89912e8995a3588e4.zip
Merge pull request #761 from Subv/resource_limits
Core/ResourceLimits: Implemented the basic structure of ResourceLimits.
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r--src/core/hle/kernel/process.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 90881054c..7b8a68610 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -45,6 +45,8 @@ union ProcessFlags {
45 BitField<12, 1, u16> loaded_high; ///< Application loaded high (not at 0x00100000). 45 BitField<12, 1, u16> loaded_high; ///< Application loaded high (not at 0x00100000).
46}; 46};
47 47
48class ResourceLimit;
49
48class Process final : public Object { 50class Process final : public Object {
49public: 51public:
50 static SharedPtr<Process> Create(std::string name, u64 program_id); 52 static SharedPtr<Process> Create(std::string name, u64 program_id);
@@ -61,6 +63,8 @@ public:
61 std::string name; 63 std::string name;
62 /// Title ID corresponding to the process 64 /// Title ID corresponding to the process
63 u64 program_id; 65 u64 program_id;
66 /// Resource limit descriptor for this process
67 SharedPtr<ResourceLimit> resource_limit;
64 68
65 /// The process may only call SVCs which have the corresponding bit set. 69 /// The process may only call SVCs which have the corresponding bit set.
66 std::bitset<0x80> svc_access_mask; 70 std::bitset<0x80> svc_access_mask;