diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c index 42d92cbae1f1..67d855bb6482 100644 --- a/sys/arch/sparc64/dev/pcons.c +++ b/sys/arch/sparc64/dev/pcons.c @@ -1,4 +1,4 @@ -/* $NetBSD: pcons.c,v 1.1 2000/05/20 14:23:12 eeh Exp $ */ +/* $NetBSD: pcons.c,v 1.2 2000/06/24 16:51:36 eeh Exp $ */ /*- * Copyright (c) 2000 Eduardo E. Horvath @@ -58,7 +58,6 @@ #include -#include #include static int pconsmatch __P((struct device *, struct cfdata *, void *)); @@ -274,8 +273,13 @@ pcons_poll(aux) struct pconssoftc *sc = aux; struct tty *tp = sc->of_tty; char ch; +static int nas = 0; + while (OF_read(stdin, &ch, 1) > 0) { + if (ch == 'a') { + if (nas++ > 3) Debugger(); + } else nas = 0; if (tp && (tp->t_state & TS_ISOPEN)) (*linesw[tp->t_line].l_rint)(ch, tp); } diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 9335d5d99ae1..ba64ed6c7492 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.68 2000/06/18 08:13:26 mrg Exp $ */ +/* $NetBSD: machdep.c,v 1.69 2000/06/24 16:51:34 eeh Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -125,7 +125,6 @@ #include #include -#include /* #include "fb.h" */