mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: Re: [PATCH] arm: add __bswapsi2 support
Date: Mon, 17 Jan 2011 11:28:10 +0100	[thread overview]
Message-ID: <20110117102810.GJ14798@game.jcrosoft.org> (raw)
In-Reply-To: <1295025041-27099-1-git-send-email-plagnioj@jcrosoft.com>

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 <plagnioj@jcrosoft.com>
> ---
>  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 <linux/linkage.h>
> +#include <asm/assembler.h>
> +
> +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

      parent reply	other threads:[~2011-01-17 10:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-14 17:10 Jean-Christophe PLAGNIOL-VILLARD
2011-01-16 10:47 ` Jean-Christophe PLAGNIOL-VILLARD
2011-01-16 11:12 ` [PATCH 1/1] import swab.h arch implementation form linux v2.3.37 Jean-Christophe PLAGNIOL-VILLARD
2011-01-17 10:28 ` Jean-Christophe PLAGNIOL-VILLARD [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110117102810.GJ14798@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox