From 21717110bad675b1994988c1ddcf464595861ede Mon Sep 17 00:00:00 2001 From: jonathan Date: Sat, 19 Jul 1997 12:00:10 +0000 Subject: [PATCH] Raise spl to spltty() in polled console input routine dtopKBDGetc(), to ensure polled console I/O really is polled. From Michael L. Hitch . --- sys/arch/pmax/dev/dtop.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sys/arch/pmax/dev/dtop.c b/sys/arch/pmax/dev/dtop.c index e7e8ca414b9e..be41e1ca85b2 100644 --- a/sys/arch/pmax/dev/dtop.c +++ b/sys/arch/pmax/dev/dtop.c @@ -1,4 +1,4 @@ -/* $NetBSD: dtop.c,v 1.24 1997/06/22 07:42:29 jonathan Exp $ */ +/* $NetBSD: dtop.c,v 1.25 1997/07/19 12:00:10 jonathan Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -626,8 +626,10 @@ dtopKBDGetc(dev) { register int c; dtop_softc_t dtop; + int s; dtop = dtop_cd.cd_devs[0]; + s = spltty(); again: c = -1; @@ -648,7 +650,11 @@ again: &ds->status, &msg, DTOP_EVENT_RECEIVE_PACKET, -1); - if (c > 0) return c; + + if (c > 0) { + splx(s); + return c; + } c = -1; } @@ -660,6 +666,7 @@ again: goto again; } + splx(s); return c; }