Date: Sun, 16 Jul 2006 18:47:02 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 101709 for review Message-ID: <200607161847.k6GIl2Wk063251@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101709 Change 101709 by gonzo@gonzo_hq on 2006/07/16 18:46:11 o Use YAMON_GETCHAR to get a char from console. Requires gxemul with patch for getting yamon "getchar" vector working. Affected files ... .. //depot/projects/mips2/src/sys/mips/mips4k/malta/malta_console.c#2 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips4k/malta/malta_console.c#2 (text+ko) ==== @@ -115,7 +115,6 @@ malta_cninit(struct consdev *cp) { sprintf(cp->cn_name, "yamon"); - cp->cn_flags |= CN_FLAG_NODEBUG; } static void @@ -129,7 +128,14 @@ static int malta_cngetc(struct consdev *cp) { - return (-1); + unsigned char ch; + + YAMON_GETCHAR(&ch); + + if(ch == (unsigned char)'\xff') + return -1; + else + return ch; } static void @@ -137,4 +143,5 @@ { PUTC(c); } + CONSOLE_DRIVER(malta);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607161847.k6GIl2Wk063251>