Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/imx Add the character read in as part of imxuar...



details:   https://anonhg.NetBSD.org/src/rev/947430c14b8c
branches:  trunk
changeset: 366248:947430c14b8c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri May 20 06:59:02 2022 +0000

description:
Add the character read in as part of imxuart_common_putc into the
readahead buffer

port-arm/45354: no character is put in the read-ahead buffer in a console code of arch/arm/imx/imxuart.c

diffstat:

 sys/arch/arm/imx/imxuart.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r aac83c45a00a -r 947430c14b8c sys/arch/arm/imx/imxuart.c
--- a/sys/arch/arm/imx/imxuart.c        Fri May 20 06:56:59 2022 +0000
+++ b/sys/arch/arm/imx/imxuart.c        Fri May 20 06:59:02 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imxuart.c,v 1.28 2022/05/20 06:56:59 skrll Exp $ */
+/* $NetBSD: imxuart.c,v 1.29 2022/05/20 06:59:02 skrll Exp $ */
 
 /*
  * Copyright (c) 2009, 2010  Genetec Corporation.  All rights reserved.
@@ -96,7 +96,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.28 2022/05/20 06:56:59 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.29 2022/05/20 06:59:02 skrll Exp $");
 
 #include "opt_imxuart.h"
 #include "opt_ddb.h"
@@ -1819,7 +1819,6 @@
        while (cc > 0) {
                int cn_trapped = 0;
 
-
                sc->sc_rbuf[sc->sc_rbuf_in] = rd =
                    bus_space_read_4(iot, ioh, IMX_URXD);
 
@@ -2152,6 +2151,7 @@
                int __attribute__((__unused__))cn_trapped = 0;
                cin = bus_space_read_4(iot, ioh, IMX_URXD);
                cn_check_magic(dev, cin & 0xff, imxuart_cnm_state);
+               imxuart_readahead[imxuart_readahead_in] = cin & 0xff;
                imxuart_readahead_in = (imxuart_readahead_in + 1) &
                    (READAHEAD_RING_LEN-1);
        }



Home | Main Index | Thread Index | Old Index