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

Function DefaultExceptionHandler

src/arch/riscv64/interrupt.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25auto DefaultExceptionHandler(uint64_t cause, cpu_io::TrapContext* context)
26 -> uint64_t {
27 klog::Err("Default Exception handler [{}] {:#X}, {:#x}",
28 cpu_io::ScauseInfo::kExceptionNames[cause], cause,
29 reinterpret_cast<uintptr_t>(context));
30 while (true) {
31 cpu_io::Pause();
32 }
33}
34} // namespace
35
36Interrupt::Interrupt() {

Callers

nothing calls this directly

Calls 2

ErrFunction · 0.85
PauseFunction · 0.85

Tested by

no test coverage detected