From owner-svn-src-all@FreeBSD.ORG Sun Jun 17 21:29:16 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDB0E1065670; Sun, 17 Jun 2012 21:29:15 +0000 (UTC) (envelope-from taku@tackymt.homeip.net) Received: from basalt.tackymt.homeip.net (unknown [IPv6:2001:3e0:577:0:20d:61ff:fecc:2253]) by mx1.freebsd.org (Postfix) with ESMTP id 908B28FC12; Sun, 17 Jun 2012 21:29:15 +0000 (UTC) Received: from basalt.tackymt.homeip.net (localhost [127.0.0.1]) by basalt.tackymt.homeip.net (Postfix) with ESMTP id AEDC583B8; Mon, 18 Jun 2012 06:29:14 +0900 (JST) X-Virus-Scanned: amavisd-new at tackymt.homeip.net Received: from localhost by basalt.tackymt.homeip.net (amavisd-new, unix socket) with ESMTP id X6jkgJBcX10K; Mon, 18 Jun 2012 06:29:12 +0900 (JST) Received: from basalt.tackymt.homeip.net (basalt.tackymt.homeip.net [IPv6:2001:3e0:577:0:20d:61ff:fecc:2253]) by basalt.tackymt.homeip.net (Postfix) with ESMTPSA; Mon, 18 Jun 2012 06:29:12 +0900 (JST) Date: Mon, 18 Jun 2012 06:29:12 +0900 From: Taku YAMAMOTO To: Poul-Henning Kamp Message-Id: <20120618062912.61088c11.taku@tackymt.homeip.net> In-Reply-To: <201206172102.q5HL2mG9032399@svn.freebsd.org> References: <201206172102.q5HL2mG9032399@svn.freebsd.org> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.24.6; i386-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r237203 - head/sys/dev/fb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2012 21:29:16 -0000 On Sun, 17 Jun 2012 21:02:48 +0000 (UTC) Poul-Henning Kamp wrote: > Author: phk > Date: Sun Jun 17 21:02:48 2012 > New Revision: 237203 > URL: http://svn.freebsd.org/changeset/base/237203 (snip) > Modified: > head/sys/dev/fb/fbreg.h > > Modified: head/sys/dev/fb/fbreg.h > ============================================================================== > --- head/sys/dev/fb/fbreg.h Sun Jun 17 20:45:45 2012 (r237202) > +++ head/sys/dev/fb/fbreg.h Sun Jun 17 21:02:48 2012 (r237203) > @@ -35,9 +35,16 @@ > > /* some macros */ > #if defined(__amd64__) || defined(__i386__) > -#define bcopy_io(s, d, c) bcopy((void *)(s), (void *)(d), (c)) > -#define bcopy_toio(s, d, c) bcopy((void *)(s), (void *)(d), (c)) > -#define bcopy_fromio(s, d, c) bcopy((void *)(s), (void *)(d), (c)) > + > +static __inline void > +copyw(uint16_t *src, uint16_t *dst, size_t size) > +{ > + while (size--) > + *dst++ = *src++; > +} > +#define bcopy_io(s, d, c) copyw((void*)(s), (void*)(d), (c)) > +#define bcopy_toio(s, d, c) copyw((void*)(s), (void*)(d), (c)) > +#define bcopy_fromio(s, d, c) copyw((void*)(s), (void*)(d), (c)) > #define bzero_io(d, c) bzero((void *)(d), (c)) > #define fill_io(p, d, c) fill((p), (void *)(d), (c)) > #define fillw_io(p, d, c) fillw((p), (void *)(d), (c)) > Does this end up with copying 2*size bytes instead of size bytes? -- -|-__ YAMAMOTO, Taku | __ < - A chicken is an egg's way of producing more eggs. -