summaryrefslogtreecommitdiffhomepage
path: root/src/rv64/rv64-uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rv64/rv64-uart.c')
-rw-r--r--src/rv64/rv64-uart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rv64/rv64-uart.c b/src/rv64/rv64-uart.c
index a859add..3f604fe 100644
--- a/src/rv64/rv64-uart.c
+++ b/src/rv64/rv64-uart.c
@@ -16,7 +16,8 @@ static uint8_t* cb_uart_ptr = (uint8_t*) CB_UART_BASE;
utf_char_t cb_get_char(void) {
uintptr_t ptr = CB_UART_BASE;
- while (!(*(((volatile uint8_t*) ptr) + 0x05) & 0x01));
+ while (!(*(((volatile uint8_t*) ptr) + 0x05) & 0x01))
+ ;
return (utf_char_t) *cb_uart_ptr;
}