summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-07-06 16:32:58 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-07-06 16:32:58 +0000
commitcbe087aa5062144b34197bab474a8d1f2f0a5709 (patch)
treefeb0e65023cb77797ac0dcb5f34a4595a1496e03 /sys
parent93977e957dad4f994eacefd5d68207edc3d85ad4 (diff)
Enter DDB via CTL+ALT+ESC + style nits
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/isa/pckbd.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/sys/arch/alpha/isa/pckbd.c b/sys/arch/alpha/isa/pckbd.c
index b23ee96cb32..5138853d026 100644
--- a/sys/arch/alpha/isa/pckbd.c
+++ b/sys/arch/alpha/isa/pckbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbd.c,v 1.9 1997/01/24 19:57:26 niklas Exp $ */
+/* $OpenBSD: pckbd.c,v 1.10 1997/07/06 16:32:57 niklas Exp $ */
/* $NetBSD: pckbd.c,v 1.14 1996/12/05 01:39:30 cgd Exp $ */
/*-
@@ -746,9 +746,20 @@ pckbd_translate(dev, c)
if (dt == KBR_EXTENDED) {
extended = 1;
- return NULL;
+ return (NULL);
}
+#ifdef DDB
+ /*
+ * Check for cntl-alt-esc.
+ */
+ if ((dt == 1)
+ && (shift_state & (CTL | ALT)) == (CTL | ALT)) {
+ Debugger();
+ return (NULL);
+ }
+#endif
+
/*
* Check for make/break.
*/
@@ -877,8 +888,8 @@ pckbd_cngetc(dev)
do {
/* wait for byte */
- while ((bus_space_read_1(pckbd_iot, pckbd_ioh, KBSTATP) & KBS_DIB)
- == 0)
+ while ((bus_space_read_1(pckbd_iot, pckbd_ioh, KBSTATP)
+ & KBS_DIB) == 0)
KBD_DELAY;
KBD_DELAY;