diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 3bf0068ed..fccffaf3a 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -11,8 +11,9 @@ | |||
| 11 | #include "core/hle/kernel/object.h" | 11 | #include "core/hle/kernel/object.h" |
| 12 | 12 | ||
| 13 | namespace Core { | 13 | namespace Core { |
| 14 | class ExclusiveMonitor; | ||
| 14 | class System; | 15 | class System; |
| 15 | } | 16 | } // namespace Core |
| 16 | 17 | ||
| 17 | namespace Core::Timing { | 18 | namespace Core::Timing { |
| 18 | class CoreTiming; | 19 | class CoreTiming; |
| @@ -25,6 +26,7 @@ class AddressArbiter; | |||
| 25 | class ClientPort; | 26 | class ClientPort; |
| 26 | class GlobalScheduler; | 27 | class GlobalScheduler; |
| 27 | class HandleTable; | 28 | class HandleTable; |
| 29 | class PhysicalCore; | ||
| 28 | class Process; | 30 | class Process; |
| 29 | class ResourceLimit; | 31 | class ResourceLimit; |
| 30 | class Thread; | 32 | class Thread; |
| @@ -84,6 +86,21 @@ public: | |||
| 84 | /// Gets the sole instance of the global scheduler | 86 | /// Gets the sole instance of the global scheduler |
| 85 | const Kernel::GlobalScheduler& GlobalScheduler() const; | 87 | const Kernel::GlobalScheduler& GlobalScheduler() const; |
| 86 | 88 | ||
| 89 | /// Gets the an instance of the respective physical CPU core. | ||
| 90 | Kernel::PhysicalCore& PhysicalCore(std::size_t id); | ||
| 91 | |||
| 92 | /// Gets the an instance of the respective physical CPU core. | ||
| 93 | const Kernel::PhysicalCore& PhysicalCore(std::size_t id) const; | ||
| 94 | |||
| 95 | /// Stops execution of 'id' core, in order to reschedule a new thread. | ||
| 96 | void PrepareReschedule(std::size_t id); | ||
| 97 | |||
| 98 | Core::ExclusiveMonitor& GetExclusiveMonitor(); | ||
| 99 | |||
| 100 | const Core::ExclusiveMonitor& GetExclusiveMonitor() const; | ||
| 101 | |||
| 102 | void InvalidateAllInstructionCaches(); | ||
| 103 | |||
| 87 | /// Adds a port to the named port table | 104 | /// Adds a port to the named port table |
| 88 | void AddNamedPort(std::string name, std::shared_ptr<ClientPort> port); | 105 | void AddNamedPort(std::string name, std::shared_ptr<ClientPort> port); |
| 89 | 106 | ||