From 0e44bf4b6cc27acd40d8a7b5d3342a233d22ed25 Mon Sep 17 00:00:00 2001 From: Merlin Scholz Date: Mon, 27 Feb 2023 02:55:32 +0100 Subject: Ignore Carrier Detect on tty when runngin under LOCKDOC kernel to curcumvent Bochs's interesting implementation --- sys/kern/tty.c | 5 +++++ 1 file changed, 5 insertions(+) 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, -- cgit