summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/byteorder.h
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-01-09 15:11:27 -0500
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-01-10 10:10:23 +0100
commit795611e6ffb7d95c2a4529f365953bead0ccd13f (patch)
tree1b1dba64ec4babf8e602ca754e9869fa884b2e4f /arch/arm/include/asm/byteorder.h
parent2475e634758577baad4a54f4585c7fa9a638ae73 (diff)
downloadblackbird-obmc-uboot-795611e6ffb7d95c2a4529f365953bead0ccd13f.tar.gz
blackbird-obmc-uboot-795611e6ffb7d95c2a4529f365953bead0ccd13f.zip
armv8: Use __aarch64__ rather than CONFIG_ARM64 in some cases
The toolchain sets __aarch64__ for both LE and BE. In the case of posix_types.h we cannot reliably use config.h as that will lead to problems. In the case of byteorder.h it's clearer to check the EB flag being set in either case instead. Cc: David Feng <fenghua@phytium.com.cn> Signed-off-by: Tom Rini <trini@ti.com> Amended by Albert ARIBAUD <albert.u.boot@aribaud.net> to actually remove the config.h include from the posix_types.h files, with permission from Tom Rini.
Diffstat (limited to 'arch/arm/include/asm/byteorder.h')
-rw-r--r--arch/arm/include/asm/byteorder.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/arm/include/asm/byteorder.h b/arch/arm/include/asm/byteorder.h
index 71a9966301..20cce7657e 100644
--- a/arch/arm/include/asm/byteorder.h
+++ b/arch/arm/include/asm/byteorder.h
@@ -23,22 +23,10 @@
# define __SWAB_64_THRU_32__
#endif
-#ifdef CONFIG_ARM64
-
-#ifdef __AARCH64EB__
-#include <linux/byteorder/big_endian.h>
-#else
-#include <linux/byteorder/little_endian.h>
-#endif
-
-#else /* CONFIG_ARM64 */
-
-#ifdef __ARMEB__
+#if defined(__ARMEB__) || defined(__AARCH64EB__)
#include <linux/byteorder/big_endian.h>
#else
#include <linux/byteorder/little_endian.h>
#endif
-#endif /* CONFIG_ARM64 */
-
#endif
OpenPOWER on IntegriCloud