1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// SPDX-License-Identifier: GPL-2.0+ #include <debug_uart.h> #include <asm/sbi.h> static inline void _debug_uart_init(void) { } static inline void _debug_uart_putc(int c) { if (CONFIG_IS_ENABLED(RISCV_SMODE)) sbi_console_putchar(c); } DEBUG_UART_FUNCS