Jelajahi Sumber

SPARC: added unaligned definitions

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Magnus Sjalander 15 tahun lalu
induk
melakukan
997faf2edf
2 mengubah file dengan 11 tambahan dan 0 penghapusan
  1. 1 0
      arch/sparc/include/asm/byteorder.h
  2. 10 0
      arch/sparc/include/asm/unaligned.h

+ 1 - 0
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 */

+ 10 - 0
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 */