From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Thu, 28 Jan 2010 15:41:44 -0500 Subject: [U-Boot] [PATCH 01/17] SPARC: added unaligned definitions, patch supplied by Magnus Sjalander. In-Reply-To: <1264680996-13804-1-git-send-email-daniel@gaisler.com> References: <1264680996-13804-1-git-send-email-daniel@gaisler.com> Message-ID: <201001281541.45142.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 28 January 2010 07:16:20 Daniel Hellstrom wrote: > Signed-off-by: Daniel Hellstrom > --- > include/asm-sparc/unaligned.h | 17 +++++++++++++++++ > 1 files changed, 17 insertions(+), 0 deletions(-) > create mode 100644 include/asm-sparc/unaligned.h > > diff --git a/include/asm-sparc/unaligned.h b/include/asm-sparc/unaligned.h > new file mode 100644 > index 0000000..4e604c1 > --- /dev/null > +++ b/include/asm-sparc/unaligned.h > @@ -0,0 +1,17 @@ > +#ifndef _ASM_SPARC_UNALIGNED_H > +#define _ASM_SPARC_UNALIGNED_H > + > +#ifdef __KERNEL__ > + > +/* > + * The SPARC can not do unaligned accesses, it must be split into multiple > + * byte accesses. The SPARC is in big endian mode. > + */ > +#include > +#include > + > +#define get_unaligned __get_unaligned_be > +#define put_unaligned __put_unaligned_be > + > +#endif /* __KERNEL__ */ > +#endif /* _ASM_SPARC_UNALIGNED_H */ there is a proposed asm-generic/unaligned.h on the mailing list which i think you could use. you'd just need: #include -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20100128/329f0c76/attachment.pgp