From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott McNutt Date: Tue, 16 Mar 2010 12:24:45 -0400 Subject: [U-Boot] [PATCH] nios2: add unaligned.h to be included by zlib.c In-Reply-To: <1267428505-14528-1-git-send-email-thomas@wytron.com.tw> References: <1267428505-14528-1-git-send-email-thomas@wytron.com.tw> Message-ID: <4B9FB0CD.2020908@psyent.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Thomas, This patch ignored due to your subsequent patch (03/14/2010). Regards, --Scott Thomas Chou wrote: > Signed-off-by: Thomas Chou > --- > include/asm-nios2/unaligned.h | 19 +++++++++++++++++++ > 1 files changed, 19 insertions(+), 0 deletions(-) > create mode 100644 include/asm-nios2/unaligned.h > > diff --git a/include/asm-nios2/unaligned.h b/include/asm-nios2/unaligned.h > new file mode 100644 > index 0000000..483dd04 > --- /dev/null > +++ b/include/asm-nios2/unaligned.h > @@ -0,0 +1,19 @@ > +#ifndef _ASM_NIOS2_UNALIGNED_H > +#define _ASM_NIOS2_UNALIGNED_H > + > +#include > +#include > +#include > + > +/* > + * Select endianness > + */ > +#ifndef __NIOS2EB__ > +#define get_unaligned __get_unaligned_le > +#define put_unaligned __put_unaligned_le > +#else > +#define get_unaligned __get_unaligned_be > +#define put_unaligned __put_unaligned_be > +#endif > + > +#endif /* _ASM_NIOS2_UNALIGNED_H */