summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2003-03-16 02:01:15 +0000
committermiod <miod@openbsd.org>2003-03-16 02:01:15 +0000
commit3bf7a1314990bda338bcbd825b9c59c1c69551e4 (patch)
tree53223ec78401f7d02df9c14a399f3b631d688187
parentUse len+1 as the size parameter to strlcpy() since len does not include (diff)
downloadwireguard-openbsd-3bf7a1314990bda338bcbd825b9c59c1c69551e4.tar.xz
wireguard-openbsd-3bf7a1314990bda338bcbd825b9c59c1c69551e4.zip
A better explanation of why we need to operate hil keyboards in raw mode.
-rw-r--r--sys/dev/hil/hil.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/hil/hil.c b/sys/dev/hil/hil.c
index 24b9d7a63b6..a13c2f175a2 100644
--- a/sys/dev/hil/hil.c
+++ b/sys/dev/hil/hil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hil.c,v 1.7 2003/02/26 20:22:03 miod Exp $ */
+/* $OpenBSD: hil.c,v 1.8 2003/03/16 02:01:15 miod Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
* All rights reserved.
@@ -383,12 +383,17 @@ hil_process_poll(struct hil_softc *sc, u_int8_t stat, u_int8_t c)
* Called after the loop has reconfigured. Here we need to:
* - determine how many devices are on the loop
* (some may have been added or removed)
- * - make sure all keyboards are in raw mode (hilkbd depends
- * on this)
+ * - make sure all keyboards are in raw mode
+ *
* Note that our device state is now potentially invalid as
* devices may no longer be where they were. What we should
* do here is either track where the devices went and move
* state around accordingly...
+ *
+ * Note that it is necessary that we operate the loop with the keyboards
+ * in raw mode: they won't cause the loop to generate an NMI if the
+ * ``reset'' key combination is pressed, and we do not handle the hil
+ * NMI interrupt...
*/
void
hilconfig(struct hil_softc *sc)