From owner-p4-projects@FreeBSD.ORG Sun Jul 16 18:47:03 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 332BA16A4DE; Sun, 16 Jul 2006 18:47:03 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E76416A4DA for ; Sun, 16 Jul 2006 18:47:03 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D069043D46 for ; Sun, 16 Jul 2006 18:47:02 +0000 (GMT) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6GIl2Rn063254 for ; Sun, 16 Jul 2006 18:47:02 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6GIl2Wk063251 for perforce@freebsd.org; Sun, 16 Jul 2006 18:47:02 GMT (envelope-from gonzo@FreeBSD.org) Date: Sun, 16 Jul 2006 18:47:02 GMT Message-Id: <200607161847.k6GIl2Wk063251@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 101709 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jul 2006 18:47:03 -0000 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);