
8 Nov
2023
8 Nov
'23
5:23 a.m.
On Sun, 5 Nov 2023 at 19:26, Sean Anderson seanga2@gmail.com wrote:
On real hardware, semihosting calls tends to have a large constant overhead (on the order of tens of milliseconds). Reduce the number of calls by one by reusing the existing fd in smh_fit_read, and closing it at the end of spl_smh_load_image.
Signed-off-by: Sean Anderson seanga2@gmail.com
Changes in v6:
- New
common/spl/spl_semihosting.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org