[PATCH] serial: Add a debug console using the RISC-V SBI interface
Bin Meng
bmeng.cn at gmail.com
Mon Sep 13 00:38:55 CEST 2021
On Sun, Sep 12, 2021 at 11:56 PM Samuel Holland <samuel at sholland.org> wrote:
>
> The RISC-V SBI interface v0.1 provides a function for printing a
> character to the console. Even though SBI v0.1 functions are deprecated,
> the SBI console is quite useful for early debugging, because it works
> without any dcache, memory, or MMIO access in S mode.
>
> Signed-off-by: Samuel Holland <samuel at sholland.org>
> ---
>
> drivers/serial/Kconfig | 10 ++++++++++
> drivers/serial/Makefile | 1 +
> drivers/serial/serial_sbi.c | 16 ++++++++++++++++
> 3 files changed, 27 insertions(+)
> create mode 100644 drivers/serial/serial_sbi.c
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list