Date: Tue, 26 Jan 2010 03:42:34 +0000 (UTC) From: Neel Natu <neel@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/cfe cfe_console.c Message-ID: <201001260342.o0Q3gfw5072479@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
neel 2010-01-26 03:42:34 UTC FreeBSD src repository Modified files: sys/dev/cfe cfe_console.c Log: SVN rev 203001 on 2010-01-26 03:42:34Z by neel Create the "cfecons" tty directly using tty_makedev(). It is not clear what the intention of having two ttys pointing to the same cfe console device was. Also we were not initializing the output[] array passed in as input to tty_makedev() so one name of the ttys was garbage. Fix the code that calls cfe_write() to deal with the case where only a partial buffer is written out. cfe_cngetc() needs to return if there is no character available as input. If we don't do this then the cfe_timeout() function will spin forever because cfe_cngetc() will only ever return if there is valid input. Approved by: imp (mentor) Revision Changes Path 1.8 +11 -11 src/sys/dev/cfe/cfe_console.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001260342.o0Q3gfw5072479>