Skip to contentSkip to conversation

ARM: mcpm: fix big endian issue in mcpm startup code

PATCH New Nicolas Pitre 1 participant 1 message Oct 8, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 ARM: mcpm: fix big endian issue in mcpm startup code

In reply to a message not in the archive
Quoted 5 lines · Dave Martin
Quoted 4 lines · Victor Kamensky

In big endian mode mcpm_entry_point is first function that called on secondaries CPU. First it should switch CPU into big endian code.

Quoted 8 lines
Quoted 1 line

Providing Nico's also OK with it, I don't see a problem with this.

Minor cosmetic nit: please line up the ) after be with the others. Not the end of the world, though.

No problem here.

Quoted 37 lines

Cheers
---Dave

Quoted 32 lines
---
 arch/arm/common/mcpm_head.S | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/common/mcpm_head.S +2 -0
index 39c96df..4f88f5e 100644
@@ -15,6 +15,7 @@
 
 #include <linux/linkage.h>
 #include <asm/mcpm.h>
+#include <asm/assembler.h>
 
 #include "vlock.h"
 
@@ -47,6 +48,7 @@
 
 ENTRY(mcpm_entry_point)
 
+ ARM_BE8(setend        be)
  THUMB(	adr	r12, BSYM(1f)	)
  THUMB(	bx	r12		)
  THUMB(	.thumb			)
Signature · 7 lines
1.8.1.4


_______________________________________________
linaro-kernel mailing list
linaro-kernel at lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-kernel