diff options
| author | bunnei <bunneidev@gmail.com> | 2019-03-10 17:29:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-10 17:29:01 -0400 |
| commit | 037d9bdde3b9137fb13817669f3d8ccb19f2c206 (patch) | |
| tree | 16058fe738265a5be0fd62671050b1704c21cb92 /src/core/core_cpu.h | |
| parent | 633ce9290891db20e8af6655b8233d73c778f04e (diff) | |
| parent | fad20213e6f377d75ced3c2554b4f00a46ff9263 (diff) | |
Merge pull request #2193 from lioncash/global
kernel/scheduler: Pass in system instance in constructor
Diffstat (limited to 'src/core/core_cpu.h')
| -rw-r--r-- | src/core/core_cpu.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/core_cpu.h b/src/core/core_cpu.h index e2204c6b0..7589beb8c 100644 --- a/src/core/core_cpu.h +++ b/src/core/core_cpu.h @@ -15,6 +15,10 @@ namespace Kernel { class Scheduler; } +namespace Core { +class System; +} + namespace Core::Timing { class CoreTiming; } @@ -45,8 +49,8 @@ private: class Cpu { public: - Cpu(Timing::CoreTiming& core_timing, ExclusiveMonitor& exclusive_monitor, - CpuBarrier& cpu_barrier, std::size_t core_index); + Cpu(System& system, ExclusiveMonitor& exclusive_monitor, CpuBarrier& cpu_barrier, + std::size_t core_index); ~Cpu(); void RunLoop(bool tight_loop = true); |
