summaryrefslogtreecommitdiff
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorMagnus Sjalander <magnus@gaisler.com>2010-05-26 13:23:53 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2010-10-22 11:10:18 +0200
commit997faf2edf5a868a36f8433432d403a545388f0e (patch)
tree474b5bafa51ded15b27d0e8a32ec95a55cb7b524 /arch/sparc/include
parent11c8dd36edcc82564a19dbd0103302df66d66db0 (diff)
downloadu-boot-imx-997faf2edf5a868a36f8433432d403a545388f0e.zip
u-boot-imx-997faf2edf5a868a36f8433432d403a545388f0e.tar.gz
u-boot-imx-997faf2edf5a868a36f8433432d403a545388f0e.tar.bz2
SPARC: added unaligned definitions
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r--arch/sparc/include/asm/byteorder.h1
-rw-r--r--arch/sparc/include/asm/unaligned.h10
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/byteorder.h b/arch/sparc/include/asm/byteorder.h
index b9fc656..e3b3dec 100644
--- a/arch/sparc/include/asm/byteorder.h
+++ b/arch/sparc/include/asm/byteorder.h
@@ -32,6 +32,7 @@
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#define __BYTEORDER_HAS_U64__
+#define __SWAB_64_THRU_32__
#endif
#include <linux/byteorder/big_endian.h>
#endif /* _SPARC_BYTEORDER_H */
diff --git a/arch/sparc/include/asm/unaligned.h b/arch/sparc/include/asm/unaligned.h
new file mode 100644
index 0000000..0e646f7
--- /dev/null
+++ b/arch/sparc/include/asm/unaligned.h
@@ -0,0 +1,10 @@
+#ifndef _ASM_SPARC_UNALIGNED_H
+#define _ASM_SPARC_UNALIGNED_H
+
+/*
+ * The SPARC can not do unaligned accesses, it must be split into multiple
+ * byte accesses. The SPARC is in big endian mode.
+ */
+#include <asm-generic/unaligned.h>
+
+#endif /* _ASM_SPARC_UNALIGNED_H */