From owner-p4-projects@FreeBSD.ORG Sat Mar 19 19:55:21 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 54BC216A4D6; Sat, 19 Mar 2005 19:55:21 +0000 (GMT) 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 BE00416A4EA for ; Sat, 19 Mar 2005 19:55:20 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E1C643D31 for ; Sat, 19 Mar 2005 19:55:20 +0000 (GMT) (envelope-from jmallett@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j2JJtKBK034211 for ; Sat, 19 Mar 2005 19:55:20 GMT (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j2JJtKrE034208 for perforce@freebsd.org; Sat, 19 Mar 2005 19:55:20 GMT (envelope-from jmallett@freebsd.org) Date: Sat, 19 Mar 2005 19:55:20 GMT Message-Id: <200503191955.j2JJtKrE034208@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmallett@freebsd.org using -f From: Juli Mallett To: Perforce Change Reviews Subject: PERFORCE change 73533 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 19:55:21 -0000 http://perforce.freebsd.org/chv.cgi?CH=73533 Change 73533 by jmallett@jmallett_windward on 2005/03/19 19:54:56 Don't attach failed components. (XXX Should hack GXemul to have a few failed components.) Affected files ... .. //depot/projects/mips/sys/dev/arcs/arcs_cpu.c#3 edit .. //depot/projects/mips/sys/dev/arcs/arcs_fpu.c#3 edit .. //depot/projects/mips/sys/dev/arcs/arcs_system.c#4 edit Differences ... ==== //depot/projects/mips/sys/dev/arcs/arcs_cpu.c#3 (text+ko) ==== @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/mips/sys/dev/arcs/arcs_cpu.c#2 $ + * $P4: //depot/projects/mips/sys/dev/arcs/arcs_cpu.c#3 $ */ #include @@ -71,6 +71,8 @@ component = device_get_softc(dev); if (component == NULL) return (EINVAL); + if (component->Flags & ARCS_Component_Flags_Failed) + return (ENXIO); device_set_desc(dev, arcs_component_identifier(component)); device_printf(dev, "version %d revision %d\n", component->Version, component->Revision); ==== //depot/projects/mips/sys/dev/arcs/arcs_fpu.c#3 (text+ko) ==== @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/mips/sys/dev/arcs/arcs_fpu.c#2 $ + * $P4: //depot/projects/mips/sys/dev/arcs/arcs_fpu.c#3 $ */ #include @@ -71,6 +71,8 @@ component = device_get_softc(dev); if (component == NULL) return (EINVAL); + if (component->Flags & ARCS_Component_Flags_Failed) + return (ENXIO); device_set_desc(dev, arcs_component_identifier(component)); device_printf(dev, "version %d revision %d\n", component->Version, component->Revision); ==== //depot/projects/mips/sys/dev/arcs/arcs_system.c#4 (text+ko) ==== @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/mips/sys/dev/arcs/arcs_system.c#3 $ + * $P4: //depot/projects/mips/sys/dev/arcs/arcs_system.c#4 $ */ #include @@ -81,6 +81,8 @@ component = device_get_softc(dev); if (component == NULL) return (EINVAL); + if (component->Flags & ARCS_Component_Flags_Failed) + return (ENXIO); device_set_desc(dev, arcs_component_identifier(component)); device_printf(dev, "version %d revision %d\n", component->Version, component->Revision);