diff options
author | mwachs5 <megan@sifive.com> | 2016-08-01 11:41:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-01 11:41:50 -0700 |
commit | 7d1de2c3d4a2cfa238540d073f9cd9dcb7f38e1d (patch) | |
tree | b30c60f84368c8319a7f4beeb6834c84b776285f /software/shared/syscall.c | |
parent | 51bca217eabfcc90d21924241250eca63b860a91 (diff) | |
parent | b80083544c12351a969a1ce7be83c88707db73e4 (diff) |
Merge pull request #2 from sifive/new_riscv_tests
Bump Tool versions
Diffstat (limited to 'software/shared/syscall.c')
-rw-r--r-- | software/shared/syscall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/software/shared/syscall.c b/software/shared/syscall.c index 2e4199f..1acb88f 100644 --- a/software/shared/syscall.c +++ b/software/shared/syscall.c @@ -46,7 +46,7 @@ void _exit(int code) write(STDERR_FILENO, message, strlen(message)); write_hex(STDERR_FILENO, code); - while (1); + while (1){}; } @@ -192,11 +192,11 @@ ssize_t write(int fd, const void* ptr, size_t len) for (jj = 0; jj < len; jj++){ - while ((*uart_tx_count) < 1); + while ((*uart_tx_count) < 1){}; *uart_tx = current[jj]; if (current[jj] == '\n'){ - while ((*uart_tx_count) < 1); + while ((*uart_tx_count) < 1){}; *uart_tx = '\r'; } } |