MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / TimerInitSMP

Function TimerInitSMP

src/arch/aarch64/timer.cpp:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35} // namespace
36
37auto 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
49auto TimerInit() -> void {
50 // 计算 interval

Callers

nothing calls this directly

Calls 3

GetCurrentCoreIdFunction · 0.85
WriteFunction · 0.85
PpiMethod · 0.45

Tested by

no test coverage detected