serial: earlycon-arm-semihost: Move smh_putc() variants in respective arch's semihost.h
authorBin Meng <bmeng@tinylab.org>
Fri, 9 Dec 2022 15:04:35 +0000 (23:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 13:58:19 +0000 (14:58 +0100)
commit8890717526c8e13801f7e866329a2bfce3a62240
tree7f35fa7623aca392b44cc4460e93fb0de1ec342a
parent41000b03af9e15075061cdbeea461cfa5e12a8eb
serial: earlycon-arm-semihost: Move smh_putc() variants in respective arch's semihost.h

Move smh_putc() variants in respective arch/*/include/asm/semihost.h,
in preparation to add RISC-V support.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Tested-by: Sergey Matyukevich <sergey.matyukevich@syntacore.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/r/20221209150437.795918-2-bmeng@tinylab.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/include/asm/semihost.h [new file with mode: 0644]
arch/arm64/include/asm/semihost.h [new file with mode: 0644]
drivers/tty/serial/earlycon-arm-semihost.c