diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2021-10-09 20:00:41 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2021-10-09 20:00:41 +0000 |
| commit | dc398f1e3bc5bbdfc50fd84a894bbf435147a5ca (patch) | |
| tree | 25fbed3f01906165a9ad0d515837765b7dbf4d9f /sys/arch/atari | |
| parent | f0dec67fc64579dd1723cbd92c4b4e048750d6cc (diff) | |
Call cnpollc(9) before cngetc(9) as the cons(9) man page says.
Currently most ports do nothing in cnpollc(9), but this is required to
handle wskbd(9) .set_leds op in cngetc(9) properly, at least on luna68k.
Diffstat (limited to 'sys/arch/atari')
| -rw-r--r-- | sys/arch/atari/atari/machdep.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/atari/atari/machdep.c b/sys/arch/atari/atari/machdep.c index 6519980344b..557c9cf0291 100644 --- a/sys/arch/atari/atari/machdep.c +++ b/sys/arch/atari/atari/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.184 2021/01/03 17:42:10 thorpej Exp $ */ +/* $NetBSD: machdep.c,v 1.185 2021/10/09 20:00:41 tsutsui Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.184 2021/01/03 17:42:10 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.185 2021/10/09 20:00:41 tsutsui Exp $"); #include "opt_ddb.h" #include "opt_compat_netbsd.h" @@ -440,7 +440,10 @@ dumpsys(void) #if defined(DDB) || defined(PANICWAIT) printf("Do you want to dump memory? [y]"); - cnputc(i = cngetc()); + cnpollc(1); + i = cngetc(); + cnpollc(0); + cnputc(i); switch (i) { case 'n': case 'N': |
