summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-05-08 18:11:06 -0300
committerGravatar Yuri Kunde Schlesner2015-05-08 22:11:49 -0300
commit83ccf85bb2dcd369e105caf35f830d58a1b608bf (patch)
tree2c3cd71e799a32769767bef4d1cdd8dbbfa57e2f /src/core
parentProcess: Use BitField to store process flags (diff)
downloadyuzu-83ccf85bb2dcd369e105caf35f830d58a1b608bf.tar.gz
yuzu-83ccf85bb2dcd369e105caf35f830d58a1b608bf.tar.xz
yuzu-83ccf85bb2dcd369e105caf35f830d58a1b608bf.zip
Process: Add more documentation to the class members
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/process.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 16151bb22..260db8a63 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -55,15 +55,29 @@ public:
55 static const HandleType HANDLE_TYPE = HandleType::Process; 55 static const HandleType HANDLE_TYPE = HandleType::Process;
56 HandleType GetHandleType() const override { return HANDLE_TYPE; } 56 HandleType GetHandleType() const override { return HANDLE_TYPE; }
57 57
58 std::string name; ///< Name of the process 58 /// Name of the process
59 std::string name;
60 /// Title ID corresponding to the process
59 u64 program_id; 61 u64 program_id;
60 62
63 /// The process may only call SVCs which have the corresponding bit set.
61 std::bitset<0x80> svc_access_mask; 64 std::bitset<0x80> svc_access_mask;
65 /// Maximum size of the handle table for the process.
62 unsigned int handle_table_size = 0x200; 66 unsigned int handle_table_size = 0x200;
63 boost::container::static_vector<StaticAddressMapping, 8> static_address_mappings; // TODO: Determine a good upper limit 67 /// Special memory ranges mapped into this processes address space. This is used to give
68 /// processes access to specific I/O regions and device memory.
69 boost::container::static_vector<StaticAddressMapping, 8> static_address_mappings;
64 ProcessFlags flags; 70 ProcessFlags flags;
65 71
72 /**
73 * Parses a list of kernel capability descriptors (as found in the ExHeader) and applies them
74 * to this process.
75 */
66 void ParseKernelCaps(const u32* kernel_caps, size_t len); 76 void ParseKernelCaps(const u32* kernel_caps, size_t len);
77
78 /**
79 * Applies address space changes and launches the process main thread.
80 */
67 void Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size); 81 void Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size);
68 82
69private: 83private: