| 23 | } |
| 24 | |
| 25 | auto 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 | |
| 36 | Interrupt::Interrupt() { |