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

Function SerialIrqHandler

src/arch/riscv64/interrupt_main.cpp:84–91  ·  view source on GitHub ↗

串口外部中断处理

Source from the content-addressed store, hash-verified

82
83// 串口外部中断处理
84auto 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 外部中断处理
94auto VirtioBlkIrqHandler(uint64_t /*cause*/, cpu_io::TrapContext* /*context*/)

Callers

nothing calls this directly

Calls 3

etl_putcharFunction · 0.70
HasDataMethod · 0.45
GetCharMethod · 0.45

Tested by

no test coverage detected