From 7879ac129f63a7b5e09a9ba170e72922d4a1a91c Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 26 May 2006 11:54:32 +0000 Subject: 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. --- sys/dev/sio/sio.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'sys/dev/sio/sio.c') 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 -- cgit v1.1