summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar Lioncash2019-03-05 11:54:06 -0500
committerGravatar Lioncash2019-03-05 12:58:26 -0500
commitec6664f6d61f46569a2686b864ba3e9a0f85fc60 (patch)
tree67a78607f085efd3e4258fd90afd2aa2036d0448 /src/core/hle/kernel/kernel.h
parentMerge pull request #2185 from FearlessTobi/port-4630 (diff)
downloadyuzu-ec6664f6d61f46569a2686b864ba3e9a0f85fc60.tar.gz
yuzu-ec6664f6d61f46569a2686b864ba3e9a0f85fc60.tar.xz
yuzu-ec6664f6d61f46569a2686b864ba3e9a0f85fc60.zip
kernel/address_arbiter: Convert the address arbiter into a class
Places all of the functions for address arbiter operation into a class. This will be necessary for future deglobalizing efforts related to both the memory and system itself.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 154bced42..32b8ede0e 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -18,6 +18,7 @@ struct EventType;
18 18
19namespace Kernel { 19namespace Kernel {
20 20
21class AddressArbiter;
21class ClientPort; 22class ClientPort;
22class HandleTable; 23class HandleTable;
23class Process; 24class Process;
@@ -67,6 +68,12 @@ public:
67 /// Retrieves a const pointer to the current process. 68 /// Retrieves a const pointer to the current process.
68 const Process* CurrentProcess() const; 69 const Process* CurrentProcess() const;
69 70
71 /// Provides a reference to the kernel's address arbiter.
72 Kernel::AddressArbiter& AddressArbiter();
73
74 /// Provides a const reference to the kernel's address arbiter.
75 const Kernel::AddressArbiter& AddressArbiter() const;
76
70 /// Adds a port to the named port table 77 /// Adds a port to the named port table
71 void AddNamedPort(std::string name, SharedPtr<ClientPort> port); 78 void AddNamedPort(std::string name, SharedPtr<ClientPort> port);
72 79