further semihosting support

This commit is contained in:
gabriel
2024-04-30 08:48:44 +02:00
parent e83f7996bc
commit 9aaf428620
9 changed files with 57 additions and 32 deletions

View File

@@ -12,7 +12,7 @@ off_t __wrap_lseek(int fd, off_t ptr, int dir)
#if defined(SEMIHOSTING)
if(sh_istty(fd))
return 0;
sh_seek();
sh_seek(fd, ptr);
return ptr;
#endif
if (isatty(fd))