[PATCH 9] ARM: support big-endian processors.

Krzysztof Halasa khc at pm.waw.pl
Mon Dec 20 18:04:20 EST 2010


Signed-off-by: Krzysztof Hałasa <khc at pm.waw.pl>

diff --git a/arch/arm/cpu/Kconfig b/arch/arm/cpu/Kconfig
index 7e17f9d..3572a1f 100644
--- a/arch/arm/cpu/Kconfig
+++ b/arch/arm/cpu/Kconfig
@@ -61,6 +61,9 @@ config CPU_32v7
 
 comment "processor features"
 
+config ARCH_SUPPORTS_BIG_ENDIAN
+	bool
+
 config CPU_BIG_ENDIAN
 	bool "Build big-endian kernel"
 	depends on ARCH_SUPPORTS_BIG_ENDIAN
diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c
index 53d7ac1..b55df5d 100644
--- a/arch/arm/cpu/start.c
+++ b/arch/arm/cpu/start.c
@@ -70,6 +70,9 @@ void __naked __bare_init reset(void)
 	r = get_cr();
 	r &= ~(CR_M | CR_C | CR_B | CR_S | CR_R | CR_V);
 	r |= CR_A | CR_I;
+#ifdef __ARMEB__
+	r |= CR_B;
+#endif
 	set_cr(r);
 
 #ifdef CONFIG_MACH_DO_LOWLEVEL_INIT



More information about the barebox mailing list