| 35 | } // namespace |
| 36 | |
| 37 | auto TimerInitSMP() -> void { |
| 38 | InterruptSingleton::instance().Ppi(timer_intid, cpu_io::GetCurrentCoreId()); |
| 39 | |
| 40 | cpu_io::CNTV_CTL_EL0::ENABLE::Clear(); |
| 41 | cpu_io::CNTV_CTL_EL0::IMASK::Set(); |
| 42 | |
| 43 | cpu_io::CNTV_TVAL_EL0::Write(interval); |
| 44 | |
| 45 | cpu_io::CNTV_CTL_EL0::ENABLE::Set(); |
| 46 | cpu_io::CNTV_CTL_EL0::IMASK::Clear(); |
| 47 | } |
| 48 | |
| 49 | auto TimerInit() -> void { |
| 50 | // 计算 interval |
nothing calls this directly
no test coverage detected