From 9aabc831fad9e3b83180aa3fa01c8ee09cf0f14a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 7 Sep 2025 18:02:31 +0200 Subject: feat: update reset function inside `cpu-api.c`, wip xcoff api. Signed-off-by: Amlal El Mahrouss --- src/rv64/rv64-uart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rv64') diff --git a/src/rv64/rv64-uart.c b/src/rv64/rv64-uart.c index 0fb8ab4..22b0793 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*) NB_UART_BASE; utf_char_t cb_get_char(void) { uintptr_t ptr = NB_UART_BASE; - while (!(*(((volatile uint8_t*) ptr) + 0x05) & 0x01)); + while (!(*(((volatile uint8_t*) ptr) + 0x05) & 0x01)) + ; return (utf_char_t) *cb_uart_ptr; } -- cgit v1.2.3