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

Function TimerHandler

src/arch/aarch64/timer.cpp:27–34  ·  view source on GitHub ↗

* @brief 定时器中断处理函数 * @param cause 中断号(未使用) * @param context 中断上下文(未使用) * @return 始终返回 0 */

Source from the content-addressed store, hash-verified

25 * @return 始终返回 0
26 */
27auto TimerHandler(uint64_t /*cause*/, cpu_io::TrapContext* /*context*/)
28 -> uint64_t {
29 cpu_io::CNTV_TVAL_EL0::Write(interval);
30 auto& tm = TaskManagerSingleton::instance();
31 tm.TickUpdate();
32 (void)tm.CheckPendingSignals();
33 return 0;
34}
35} // namespace
36
37auto TimerInitSMP() -> void {

Callers

nothing calls this directly

Calls 3

WriteFunction · 0.85
TickUpdateMethod · 0.80
CheckPendingSignalsMethod · 0.80

Tested by

no test coverage detected