From 1560c543461bf2f2bcbfec3a6512b48ce3ea1abd Mon Sep 17 00:00:00 2001 From: toxieainc Date: Wed, 30 Oct 2024 10:08:29 +0100 Subject: [PATCH] headers for memset --- src/wpc/uart_16c450.c | 1 + src/wpc/uart_8251.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wpc/uart_16c450.c b/src/wpc/uart_16c450.c index 51b51d978..87ca26809 100644 --- a/src/wpc/uart_16c450.c +++ b/src/wpc/uart_16c450.c @@ -15,6 +15,7 @@ #include #include #include +#include #include "uart_16c450.h" #include "uart_host.h" diff --git a/src/wpc/uart_8251.c b/src/wpc/uart_8251.c index 98b81a2f8..d3378714a 100644 --- a/src/wpc/uart_8251.c +++ b/src/wpc/uart_8251.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "uart_8251.h" #include "uart_host.h" @@ -94,7 +95,7 @@ data8_t uart_8251_read(int reg) locals.status |= STATUS_RX_READY; } } - return status; + return locals.status; case REG_DATA: // clear the RX_READY bit and return the buffered byte