diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-03-13 01:06:59 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-03-13 01:06:59 +0000 |
commit | 4a9c48f19c1a40290be0e2eba1e603e696812ec9 (patch) | |
tree | 916fe1aaa5ed4e766f915e876bcc14ea22f6812f /sys/dev/ic | |
parent | 8287c6daed203aa592bc7a8ff2d1ed9d72eb9913 (diff) |
Initialize the timeout for the non-console case of PS2 keyboard. Fixes
a panic on alpha with serial console. ok miod@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/pckbc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/pckbc.c b/sys/dev/ic/pckbc.c index deb5ba7b042..8656055b285 100644 --- a/sys/dev/ic/pckbc.c +++ b/sys/dev/ic/pckbc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pckbc.c,v 1.5 2002/06/09 00:58:03 nordin Exp $ */ +/* $OpenBSD: pckbc.c,v 1.6 2003/03/13 01:06:58 drahn Exp $ */ /* $NetBSD: pckbc.c,v 1.5 2000/06/09 04:58:35 soda Exp $ */ /* @@ -306,6 +306,9 @@ pckbc_attach(sc) ioh_d = t->t_ioh_d; ioh_c = t->t_ioh_c; + if (pckbc_console == 0) + timeout_set(&t->t_cleanup, pckbc_cleanup, t); + /* flush */ (void) pckbc_poll_data1(iot, ioh_d, ioh_c, PCKBC_KBD_SLOT, 0); |