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

Function TimerInitSMP

src/arch/riscv64/timer.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26} // namespace
27
28auto TimerInitSMP() -> void {
29 // 开启时钟中断
30 cpu_io::Sie::Stie::Set();
31
32 // 设置初次时钟中断时间
33 sbi_set_timer(cpu_io::Time::Read() + interval);
34}
35
36auto TimerInit() -> void {
37 // 计算 interval

Callers 2

main_smpFunction · 0.50
main_smpFunction · 0.50

Calls 1

ReadFunction · 0.85

Tested by

no test coverage detected