summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerlin Scholz <merlin@scholz.ruhr>2023-02-27 02:55:32 +0100
committerMerlin Scholz <merlin@scholz.ruhr>2023-07-10 00:23:24 +0200
commit0ece9082bce4053e94641d833f6fde2dcd3fade4 (patch)
tree47b57ed2e31dcb2d66c7ac5f32b5b351676fe57e
parent9ffff5fc932b3d2ce62572c90afa3cc6f540e36d (diff)
Ignore Carrier Detect on tty when runngin under LOCKDOC kernel to curcumvent Bochs's interesting implementation
-rw-r--r--sys/kern/tty.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 70aff3a4c73..d3e09eb5c03 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -130,8 +130,13 @@ const char ttyout[] = "ttyout";
* 2) It's a locally attached terminal, and we are therefore ignoring carrier.
* 3) We're using a flow control mechanism that overloads the carrier signal.
*/
+#ifndef LOCKDOC
#define CONNECTED(tp) (ISSET(tp->t_state, TS_CARR_ON) || \
ISSET(tp->t_cflag, CLOCAL | MDMBUF))
+#else
+/* Circumvent Bochs' interesting com* implementation */
+#define CONNECTED(tp) true
+#endif
/*
* Table with character classes and parity. The 8th bit indicates parity,