From: Magnus Sjalander Date: Wed, 26 May 2010 11:23:53 +0000 (+0200) Subject: SPARC: added unaligned definitions X-Git-Tag: v2010.12-rc1~4^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=997faf2edf5a868a36f8433432d403a545388f0e;p=u-boot SPARC: added unaligned definitions Signed-off-by: Daniel Hellstrom --- diff --git a/arch/sparc/include/asm/byteorder.h b/arch/sparc/include/asm/byteorder.h index b9fc65663f..e3b3dec91d 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 #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 0000000000..0e646f7fa9 --- /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 + +#endif /* _ASM_SPARC_UNALIGNED_H */