From owner-freebsd-sparc64@FreeBSD.ORG Thu Jul 8 14:54:52 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E4F516A4CE for ; Thu, 8 Jul 2004 14:54:52 +0000 (GMT) Received: from liberty.onthenet.com.au (liberty.OntheNet.com.au [203.22.124.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A201643D48 for ; Thu, 8 Jul 2004 14:54:51 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from freebsd.org (CPE-19-32.dsl.OntheNet.net [203.144.19.32]) i68Esnu9017908 for ; Fri, 9 Jul 2004 00:54:49 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <40ED61D8.8000600@freebsd.org> Date: Fri, 09 Jul 2004 01:01:44 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030524 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: ofw console change breaks powerpc X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 14:54:52 -0000 Hi, I've just tried the OpenFirmware console on FreeBSD/PPC after a long stint of using syscons. The recent change seemed to break things, specifically the line: ttychars(tp); tp->t_iflag = TTYDEF_IFLAG; tp->t_oflag = TTYDEF_OFLAG; - tp->t_cflag = TTYDEF_CFLAG|CLOCAL; + tp->t_cflag = TTYDEF_CFLAG; tp->t_lflag = TTYDEF_LFLAG; tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; ttsetwater(tp); By not having CLOCAL set, TS_CONNECTED doesn't get set on open, and the first write() syscall by sh blocks because the tty subsystem wants to wait for modem signals to bring the line up. Now, I have no idea why this works on sparc64, but I don't think it would be an issue if it were re-introduced. Anyone want to try it out ? I don't have any sparc h/w to test it on. later, Peter.