public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott McNutt <smcnutt@psyent.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] nios2: add 64 bits swab support
Date: Thu, 22 Apr 2010 20:02:58 -0400	[thread overview]
Message-ID: <4BD0E3B2.7030504@psyent.com> (raw)
In-Reply-To: <1271517009-2668-1-git-send-email-thomas@wytron.com.tw>

Applied. Thanks.
--Scott

Thomas Chou wrote:
> This patch adds 64 bits swab support. Most 32 bits processors use
> this. We need 64 bits swab for UBI.
> 
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> arch dir reorganized.
> 
>  arch/nios2/include/asm/byteorder.h |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/nios2/include/asm/byteorder.h b/arch/nios2/include/asm/byteorder.h
> index 495c823..d5c152e 100644
> --- a/arch/nios2/include/asm/byteorder.h
> +++ b/arch/nios2/include/asm/byteorder.h
> @@ -25,6 +25,12 @@
>  #define __ASM_NIOS2_BYTEORDER_H_
>  
>  #include <asm/types.h>
> +
> +#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
> +#  define __BYTEORDER_HAS_U64__
> +#  define __SWAB_64_THRU_32__
> +#endif
> +
>  #include <linux/byteorder/little_endian.h>
>  
>  #endif /* __ASM_NIOS2_BYTEORDER_H_ */

      reply	other threads:[~2010-04-23  0:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-27  4:40 [U-Boot] [PATCH] nios2: add 64 bits swab support in asm-nios2/byteorder.h Thomas Chou
2010-04-17 15:10 ` [U-Boot] [PATCH v2] nios2: add 64 bits swab support Thomas Chou
2010-04-23  0:02   ` Scott McNutt [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=4BD0E3B2.7030504@psyent.com \
    --to=smcnutt@psyent.com \
    --cc=u-boot@lists.denx.de \
    /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