summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-07-06 16:32:57 +0000
committerniklas <niklas@openbsd.org>1997-07-06 16:32:57 +0000
commita633611be2faedebc60a4e4bf7fb090dc5d6dfd2 (patch)
treee26681be69788525bb6b86af72c35d21e1ade882
parentDDB support (much not yet implemented). (diff)
downloadwireguard-openbsd-a633611be2faedebc60a4e4bf7fb090dc5d6dfd2.tar.xz
wireguard-openbsd-a633611be2faedebc60a4e4bf7fb090dc5d6dfd2.zip
Enter DDB via CTL+ALT+ESC + style nits
-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;