From owner-p4-projects@FreeBSD.ORG Mon Jan 7 08:13:24 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D7C4616A41B; Mon, 7 Jan 2008 08:13:23 +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 9D3EB16A417 for ; Mon, 7 Jan 2008 08:13:23 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9666A13C46B for ; Mon, 7 Jan 2008 08:13:23 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m078DN1c037972 for ; Mon, 7 Jan 2008 08:13:23 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m078DNO0037968 for perforce@freebsd.org; Mon, 7 Jan 2008 08:13:23 GMT (envelope-from imp@freebsd.org) Date: Mon, 7 Jan 2008 08:13:23 GMT Message-Id: <200801070813.m078DNO0037968@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 132692 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: Mon, 07 Jan 2008 08:13:24 -0000 http://perforce.freebsd.org/chv.cgi?CH=132692 Change 132692 by imp@imp_paco-paco on 2008/01/07 08:13:02 o defined bus_space_map, maybe it is wrong... o sioword is unused in FreeBSD. # we're down to less than 5 undefines. 3 of which need some careful # thought to resolve, the cpu_throw likely is easy. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/include/bus.h#6 edit .. //depot/projects/mips2-jnpr/src/sys/mips/mips/support.S#5 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/include/bus.h#6 (text+ko) ==== @@ -100,6 +100,17 @@ __inline int bus_space_map(bus_space_tag_t t, bus_addr_t addr, bus_size_t size, int flags, bus_space_handle_t *bshp); + +static __inline int +bus_space_map(bus_space_tag_t t __unused, bus_addr_t addr, + bus_size_t size __unused, int flags __unused, + bus_space_handle_t *bshp) +{ + + *bshp = addr; + return (0); +} + /* * Unmap a region of device bus space. */ ==== //depot/projects/mips2-jnpr/src/sys/mips/mips/support.S#5 (text+ko) ==== @@ -496,6 +496,8 @@ nop END(casuword32) +#if 0 + /* unused in FreeBSD */ /* * Have to flush instruction cache afterwards. */ @@ -510,6 +512,7 @@ j _C_LABEL(Mips_SyncICache) # FlushICache sets v0 = 0. (Ugly) li a1, 4 # size of word END(suiword) +#endif /* * Will have to flush the instruction cache if byte merging is done in hardware.