Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 519ceb9f authored by Victor Kamensky's avatar Victor Kamensky Committed by Ben Dooks
Browse files

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



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

[ben.dooks@codethink.co.uk: merge fix patch from Victor into this]
Signed-off-by: default avatarVictor Kamensky <victor.kamensky@linaro.org>
Acked-by: default avatarNicolas Pitre <nico@linaro.org>
Reviewed-by: default avatarDave Martin <Dave.Martin@arm.com>
Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
parent 574e2b51
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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			)