From a434fdcb102e96ddf564dc0973d7073d49bf19fc Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 2 May 2018 22:36:51 -0400 Subject: core: Implement multicore support. --- src/core/core_cpu.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/core/core_cpu.h') 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& Scheduler() const { + return scheduler; } bool IsMainCore() const { @@ -68,7 +72,7 @@ private: std::shared_ptr arm_interface; std::shared_ptr cpu_barrier; - std::unique_ptr scheduler; + std::shared_ptr scheduler; bool reschedule_pending{}; size_t core_index; -- cgit v1.2.3