diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-02-15 01:01:22 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-02-15 01:01:22 +0000 |
commit | fe8dc0a617ab2a1ff09a121d06328978ef94185a (patch) | |
tree | cbe05914753586b876da4a74df284cd62bf44680 /sys/arch/hppa | |
parent | 10447eff1f323bd85dd169ac0532ac76c250a411 (diff) |
gsckbc is more sensitive than pckbc; always allow the enable() accessop
to proceed on the console keyboard, or it would not be in a good state
to handle boot -s prompt.
Found the hard way by mickey@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/gsc/gsckbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/gsc/gsckbd.c b/sys/arch/hppa/gsc/gsckbd.c index 515983fde8d..c6e42325f68 100644 --- a/sys/arch/hppa/gsc/gsckbd.c +++ b/sys/arch/hppa/gsc/gsckbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gsckbd.c,v 1.1 2003/01/31 22:50:19 miod Exp $ */ +/* $OpenBSD: gsckbd.c,v 1.2 2003/02/15 01:01:21 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * All rights reserved. @@ -333,7 +333,7 @@ gsckbd_enable(v, on) int res; if (on) { - if (sc->sc_enabled) + if (sc->sc_enabled && !sc->id->t_isconsole) return (EBUSY); pckbc_slot_enable(sc->id->t_kbctag, sc->id->t_kbcslot, 1); |