arm: smh: Add some functions for working with the host console
authorSean Anderson <sean.anderson@seco.com>
Tue, 22 Mar 2022 20:59:23 +0000 (16:59 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2022 19:03:13 +0000 (15:03 -0400)
commit3ea744e87359f95251ae7ec3c7a92f8b3293593b
treecc8bd663a055e8bcd83b391f56e8de70dbe3503f
parentdcc4f9623e27b92a1e0b97326631b0d5841c49cb
arm: smh: Add some functions for working with the host console

This adds three wrappers around the semihosting commands for reading and
writing to the host console. We use the more standard getc/putc/puts
names instead of readc/writec/write0 for familiarity.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
arch/arm/lib/semihosting.c
include/semihosting.h