summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMerlin Scholz <merlin@scholz.ruhr>2023-02-27 02:55:32 +0100
committerMerlin Scholz <merlin@scholz.ruhr>2023-02-27 02:55:32 +0100
commit0e44bf4b6cc27acd40d8a7b5d3342a233d22ed25 (patch)
treedd786493a5375cdf9497c399e6bdcbf5689985b0 /sys/kern
parent6f27ae312dcfb66eb1e38d2c63059dcdacaca2a1 (diff)
Ignore Carrier Detect on tty when runngin under LOCKDOC kernel to curcumvent Bochs's interesting implementation
Diffstat (limited to 'sys/kern')
-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 c5f670f3d3c..6ef0b3243b0 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -127,8 +127,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,