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

Function IpiHandler

src/arch/riscv64/interrupt_main.cpp:75–81  ·  view source on GitHub ↗

软中断 (IPI) 处理

Source from the content-addressed store, hash-verified

73
74// 软中断 (IPI) 处理
75auto IpiHandler(uint64_t /*cause*/, cpu_io::TrapContext* /*context*/)
76 -> uint64_t {
77 // 清软中断 pending 位
78 cpu_io::Sip::Ssip::Clear();
79 klog::Debug("Core {} received IPI", cpu_io::GetCurrentCoreId());
80 return 0;
81}
82
83// 串口外部中断处理
84auto SerialIrqHandler(uint64_t /*cause*/, cpu_io::TrapContext* /*context*/)

Callers

nothing calls this directly

Calls 2

DebugFunction · 0.85
GetCurrentCoreIdFunction · 0.85

Tested by

no test coverage detected