RISC-V: Add stubs for sbi_console_putchar/getchar()
authorAnup Patel <apatel@ventanamicro.com>
Fri, 24 Nov 2023 07:09:01 +0000 (12:39 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 10 Jan 2024 15:04:02 +0000 (07:04 -0800)
commitf503b167b66007fc6b4434cd07a044ce4a56b6a0
treece071b7fb04539ab70774e12c38715065417b025
parentb85ea95d086471afb4ad062012a4d73cd328fa86
RISC-V: Add stubs for sbi_console_putchar/getchar()

The functions sbi_console_putchar() and sbi_console_getchar() are
not defined when CONFIG_RISCV_SBI_V01 is disabled so let us add
stub of these functions to avoid "#ifdef" on user side.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20231124070905.1043092-2-apatel@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/sbi.h