diff options
Diffstat (limited to '')
-rw-r--r-- | src/core/core_cpu.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/core_cpu.h b/src/core/core_cpu.h index e6ed698cc..06784c4ab 100644 --- a/src/core/core_cpu.h +++ b/src/core/core_cpu.h @@ -51,12 +51,16 @@ public: void PrepareReschedule(); - ARM_Interface& CPU() { + ARM_Interface& ArmInterface() { return *arm_interface; } - Kernel::Scheduler& Scheduler() { - return *scheduler; + const ARM_Interface& ArmInterface() const { + return *arm_interface; + } + + const std::shared_ptr<Kernel::Scheduler>& Scheduler() const { + return scheduler; } bool IsMainCore() const { @@ -68,7 +72,7 @@ private: std::shared_ptr<ARM_Interface> arm_interface; std::shared_ptr<CpuBarrier> cpu_barrier; - std::unique_ptr<Kernel::Scheduler> scheduler; + std::shared_ptr<Kernel::Scheduler> scheduler; bool reschedule_pending{}; size_t core_index; |