tohost is not required in hifive1 env

This commit is contained in:
2023-10-16 13:04:11 +02:00
parent 4c86ddd9fb
commit 619be720d3
3 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,9 @@ void __wrap__exit(int code)
write(STDERR_FILENO, message, sizeof(message) - 1);
write_hex(STDERR_FILENO, code);
write(STDERR_FILENO, "\n", 1);
#ifdef USE_TOHOST
tohost = code+1;
#endif
write(STDERR_FILENO, "\x04", 1);
for (;;);
}