summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio/sio.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-05-26 11:54:32 +0000
committerphk <phk@FreeBSD.org>2006-05-26 11:54:32 +0000
commit7879ac129f63a7b5e09a9ba170e72922d4a1a91c (patch)
treee55708a0564b13c180f6e25a2ed24724571a805c /sys/dev/sio/sio.c
parent0b37dc8074117c2bca3e406c6da6a4a76c72e087 (diff)
downloadFreeBSD-src-7879ac129f63a7b5e09a9ba170e72922d4a1a91c.zip
FreeBSD-src-7879ac129f63a7b5e09a9ba170e72922d4a1a91c.tar.gz
Eliminate gdb_checkc member from GDB_DBGPORT(), it is never used.
Use polling behaviour for gdb_getc() where convenient, this edges us closer to the console code.
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r--sys/dev/sio/sio.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 65e3685..d815dc6 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -2577,8 +2577,7 @@ static gdb_term_f siogdbterm;
static gdb_getc_f siogdbgetc;
static gdb_putc_f siogdbputc;
-GDB_DBGPORT(sio, siogdbprobe, siogdbinit, siogdbterm, NULL,
- siogdbgetc, siogdbputc);
+GDB_DBGPORT(sio, siogdbprobe, siogdbinit, siogdbterm, siogdbgetc, siogdbputc);
static int
siogdbprobe(void)
@@ -2605,12 +2604,7 @@ siogdbputc(int c)
static int
siogdbgetc(void)
{
- int c;
-
- do
- c = sio_cngetc(NULL);
- while (c == -1);
- return (c);
+ return (sio_cngetc(NULL));
}
#endif
OpenPOWER on IntegriCloud