[PATCH] enable serial input

Ronald Aigner <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.l4ka.general
Message-ID <[email protected]>
Hi,
I recently had the problem that the Pistachio kernel debugger did not
respond to my input via serial line. I had my testbox atached to my
notebook using a serial to USB adapter. At my notebook I ran minicom
which was attached to the USB device. Minicom did not change from
Offline mode to Online mode when Pistachio ran and I could not input
anything to the kernel-debugger. Using the attached patch this problem
was fixed.

Ron.
-- 
Mit freundlichen Gruessen / with regards
ra3 @ inf.tu-dresden.de
http://os.inf.tu-dresden.de/~ra3/
pistachio.diff (text/plain, 649 B)
Index: kernel/kdb/platform/pc99/io.cc
===================================================================
RCS file: /home/cvs/pistachio/kernel/kdb/platform/pc99/io.cc,v
retrieving revision 1.29
diff -u -r1.29 io.cc
--- kernel/kdb/platform/pc99/io.cc	7 Oct 2006 16:30:25 -0000	1.29
+++ kernel/kdb/platform/pc99/io.cc	3 Nov 2006 10:32:21 -0000
@@ -308,6 +308,7 @@
     out_u8(LCR, 0x03);		/* set 8,N,1		*/
     out_u8(IER, 0x00);		/* disable interrupts	*/
     out_u8(EIR, 0x07);		/* enable FIFOs	*/
+    out_u8(MCR, 0x0b);          /* force data terminal ready */
     out_u8(IER, 0x01);		/* enable RX interrupts	*/
     in_u8(IER);
     in_u8(EIR);
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFSyGnJm0lzfH47+ERAohmAKCJBu4jw4nQS4pN6F/Pv755oXjTBgCfWh5P
DNYva12qOYiy/Of0Hr2gVOM=
=07WO
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.