Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
auto TimerInitSMP() -> void {
29
// 开启时钟中断
30
cpu_io::Sie::Stie::Set();
31
32
// 设置初次时钟中断时间
33
sbi_set_timer(cpu_io::Time::Read() + interval);
34
}
35
36
auto TimerInit() -> void {
37
// 计算 interval
Callers
2
main_smp
Function · 0.50
main_smp
Function · 0.50
Calls
1
Read
Function · 0.85
Tested by
no test coverage detected