From owner-p4-projects@FreeBSD.ORG Tue Feb 26 14:17:03 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5225C10656F1; Tue, 26 Feb 2008 14:17:03 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E88C10656E2 for ; Tue, 26 Feb 2008 14:17:03 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D622613C4CC for ; Tue, 26 Feb 2008 14:17:02 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1QEH2bD046344 for ; Tue, 26 Feb 2008 14:17:02 GMT (envelope-from rrs@cisco.com) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1QEH2WY046341 for perforce@freebsd.org; Tue, 26 Feb 2008 14:17:02 GMT (envelope-from rrs@cisco.com) Date: Tue, 26 Feb 2008 14:17:02 GMT Message-Id: <200802261417.m1QEH2WY046341@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rrs@cisco.com using -f From: "Randall R. Stewart" To: Perforce Change Reviews Cc: Subject: PERFORCE change 136243 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: Tue, 26 Feb 2008 14:17:03 -0000 http://perforce.freebsd.org/chv.cgi?CH=136243 Change 136243 by rrs@rrs-mips2-jnpr on 2008/02/26 14:16:06 For octeon get rid of warning that now breaks the build. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/mips/mainbus.c#3 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/mips/mainbus.c#3 (text+ko) ==== @@ -257,6 +257,9 @@ /* * If this is a memory resource, map it into the kernel. */ +#ifdef TARGET_OCTEON + uint64_t temp; +#endif if (rman_get_bustag(r) == MIPS_BUS_SPACE_MEM) { caddr_t vaddr = 0; { @@ -271,7 +274,13 @@ } rman_set_virtual(r, vaddr); /* IBM-PC: the type of bus_space_handle_t is u_int */ +#ifdef TARGET_OCTEON + temp = 0x0000000000000000; + temp |= (uint32_t)vaddr; + rman_set_bushandle(r, (bus_space_handle_t) temp); +#else rman_set_bushandle(r, (bus_space_handle_t) vaddr); +#endif } return (rman_activate_resource(r)); }