• Juan Castillo's avatar
    Fix bug in semihosting write function · 31833aff
    Juan Castillo authored
    The return value from the SYS_WRITE semihosting operation is 0 if
    the call is successful or the number of bytes not written, if there
    is an error. The implementation of the write function in the
    semihosting driver treats the return value as the number of bytes
    written, which is wrong. This patch fixes it.
    
    Change-Id: Id39dac3d17b5eac557408b8995abe90924c85b85
    31833aff
io_semihosting.c 6.14 KB