From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Hellstrom Date: Mon, 01 Feb 2010 18:08:51 +0100 Subject: [U-Boot] [PATCH 01/17] SPARC: added unaligned definitions, patch supplied by Magnus Sjalander. In-Reply-To: <201001281541.45142.vapier@gentoo.org> References: <1264680996-13804-1-git-send-email-daniel@gaisler.com> <201001281541.45142.vapier@gentoo.org> Message-ID: <4B670AA3.8020006@gaisler.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Mike Frysinger wrote: >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 > > Thank you for your comment, I will update this patch. Daniel