From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 26.mail-out.ovh.net ([91.121.27.225]) by canuck.infradead.org with smtp (Exim 4.72 #1 (Red Hat Linux)) id 1PemKd-0005OG-TZ for barebox@lists.infradead.org; Mon, 17 Jan 2011 10:29:05 +0000 Date: Mon, 17 Jan 2011 11:28:10 +0100 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20110117102810.GJ14798@game.jcrosoft.org> References: <1295025041-27099-1-git-send-email-plagnioj@jcrosoft.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1295025041-27099-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] arm: add __bswapsi2 support To: barebox@lists.infradead.org HI, can you revert this one as it's not needed anymore with the swab implementation update Best Regards, J. On 18:10 Fri 14 Jan , Jean-Christophe PLAGNIOL-VILLARD wrote: > 32-bit endian conversion > > needed by gcc 4.5.1 > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > arch/arm/lib/Makefile | 1 + > arch/arm/lib/_bswapsi2.S | 14 ++++++++++++++ > 2 files changed, 15 insertions(+), 0 deletions(-) > create mode 100644 arch/arm/lib/_bswapsi2.S > > diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile > index 89cb72b..56818e8 100644 > --- a/arch/arm/lib/Makefile > +++ b/arch/arm/lib/Makefile > @@ -12,6 +12,7 @@ obj-y += lib1funcs.o > obj-y += ashrdi3.o > obj-y += ashldi3.o > obj-y += lshrdi3.o > +obj-y += _bswapsi2.o > obj-$(CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS) += memcpy.o > obj-$(CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS) += memset.o > > diff --git a/arch/arm/lib/_bswapsi2.S b/arch/arm/lib/_bswapsi2.S > new file mode 100644 > index 0000000..7f45fa5 > --- /dev/null > +++ b/arch/arm/lib/_bswapsi2.S > @@ -0,0 +1,14 @@ > +#include > +#include > + > +ENTRY(__bswapsi2) > +#if __LINUX_ARM_ARCH__ <= 5 > + eor r1, r0, r0, ror #16 > + bic r1, r1, #0xff0000 > + mov r0, r0, ror #8 > + eor r0, r0, r1, lsr #8 > +#else > + rev r0, r0 > +#endif > + bx lr > +ENDPROC(__bswapsi2) > -- > 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox