arm: smh: Return errno on error
authorSean Anderson <sean.anderson@seco.com>
Tue, 22 Mar 2022 20:59:16 +0000 (16:59 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2022 19:03:13 +0000 (15:03 -0400)
commit80e62ccfa630b8a5dda479c8d9dc5f8872acb370
tree24f9d9fe9dc016f50b365e1b83845c740af9765f
parenteff77c3a24ff6623f3767816ca54b8124f0e69a7
arm: smh: Return errno on error

Instead of printing in what are now library functions, try to return a
numeric error code. This also adjust some functions (such as read) to
behave more similarly to read(2). For example, we now return the number
of bytes read instead of failing immediately on a short read.

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