]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit96e68d25c1090bc28e5196171dc75c5c67cef7ff
tree24f9d9fe9dc016f50b365e1b83845c740af9765f
parent6484d091334b47e3539241b874565e06e986cea9
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