arm: smh: Export semihosting functions
authorSean Anderson <sean.anderson@seco.com>
Tue, 22 Mar 2022 20:59:14 +0000 (16:59 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2022 19:03:13 +0000 (15:03 -0400)
commitb10f724807312a996100c7c4b779d320ed40d573
tree3a06ddbdb20e62cf443cf24d6d445a108b0b62a8
parentc8f4cc9590c480f962451344a4c795b1503c1359
arm: smh: Export semihosting functions

This exports semihosting functions for use in other files. The header is
in include/ and not arm/include/asm because I anticipate that RISC-V may
want to add their own implementation at some point.

smh_len_fd has been renamed to smh_flen to more closely match the
semihosting spec.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
arch/arm/lib/semihosting.c
include/semihosting.h [new file with mode: 0644]