From e2a8bf287fa5c730f18b0449486d2b436f577791 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 26 Jun 2025 04:05:03 +0200 Subject: [PATCH] UART_BASE is now volatile, preventing unexpected optimizations --- start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.c b/start.c index 46c6bfc..3b923f8 100644 --- a/start.c +++ b/start.c @@ -5,7 +5,7 @@ #define NCPU 3 /* QEMU memory maps a UART device here. */ -#define UART_BASE ((char *)0x10000000) +#define UART_BASE ((volatile char *)0x10000000) /** Send a single character to the UART device */ void uart_putc(char c) { *UART_BASE = c; }