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

Function uart_handler

src/arch/aarch64/interrupt_main.cpp:174–178  ·  view source on GitHub ↗

* @brief UART 中断处理函数 * @param cause 中断号 * @return 中断号 */

Source from the content-addressed store, hash-verified

172 * @return 中断号
173 */
174auto uart_handler(uint64_t cause, cpu_io::TrapContext*) -> uint64_t {
175 Pl011Singleton::instance().HandleInterrupt(
176 [](uint8_t ch) { etl_putchar(ch); });
177 return cause;
178}
179
180auto InterruptInit(int, const char**) -> void {
181 InterruptSingleton::create();

Callers

nothing calls this directly

Calls 2

etl_putcharFunction · 0.70
HandleInterruptMethod · 0.45

Tested by

no test coverage detected