串口外部中断处理
| 82 | |
| 83 | // 串口外部中断处理 |
| 84 | auto SerialIrqHandler(uint64_t /*cause*/, cpu_io::TrapContext* /*context*/) |
| 85 | -> uint64_t { |
| 86 | while (Ns16550aSingleton::instance().HasData()) { |
| 87 | uint8_t ch = Ns16550aSingleton::instance().GetChar(); |
| 88 | etl_putchar(ch); |
| 89 | } |
| 90 | return 0; |
| 91 | } |
| 92 | |
| 93 | // VirtIO-blk 外部中断处理 |
| 94 | auto VirtioBlkIrqHandler(uint64_t /*cause*/, cpu_io::TrapContext* /*context*/) |
nothing calls this directly
no test coverage detected