summaryrefslogtreecommitdiffstats
path: root/hw/lpc-uart.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-15 16:30:03 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-15 16:30:03 +1100
commite7cefbf005c504ce4a17ea83b16297451b8acb1d (patch)
treef2dc71cd8aae11bdc383de9de672d9133496c5b8 /hw/lpc-uart.c
parenta5c9001b3e33447d644a50cec7699e247b0d492a (diff)
downloadblackbird-skiboot-e7cefbf005c504ce4a17ea83b16297451b8acb1d.tar.gz
blackbird-skiboot-e7cefbf005c504ce4a17ea83b16297451b8acb1d.zip
uart: Fix thinko in output ring pointers
I accidentally typed uint8_t instead of uint32_t... thanks Joel. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hw/lpc-uart.c')
-rw-r--r--hw/lpc-uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/lpc-uart.c b/hw/lpc-uart.c
index 57dc6812..d6790484 100644
--- a/hw/lpc-uart.c
+++ b/hw/lpc-uart.c
@@ -182,8 +182,8 @@ static uint32_t in_count;
*/
#define OUT_BUF_SIZE 0x1000
static uint8_t *out_buf;
-static uint8_t out_buf_prod;
-static uint8_t out_buf_cons;
+static uint32_t out_buf_prod;
+static uint32_t out_buf_cons;
static void uart_flush_out(void)
{
OpenPOWER on IntegriCloud