]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
SPARC: added unaligned definitions
authorMagnus Sjalander <magnus@gaisler.com>
Wed, 26 May 2010 11:23:53 +0000 (13:23 +0200)
committerDaniel Hellstrom <daniel@gaisler.com>
Fri, 22 Oct 2010 09:10:18 +0000 (11:10 +0200)
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
arch/sparc/include/asm/byteorder.h
arch/sparc/include/asm/unaligned.h [new file with mode: 0644]

index b9fc65663f82770f71c27f1a930fa439d4c4b99f..e3b3dec91d48f10138422d7566daa0a254bb14cd 100644 (file)
@@ -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 (file)
index 0000000..0e646f7
--- /dev/null
@@ -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 */