summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
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;