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

Commit bf55e0a4 authored by Ben Dooks's avatar Ben Dooks Committed by Dinh Nguyen
Browse files

ARM: socfpga: enable big endian for secondary core(s)



Update the secondary code to allow the secondary boot to work when the
system is running big endian.

Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: default avatarDinh Nguyen <dinguyen@opensource.altera.com>
parent 6ef4e479
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
#include <linux/linkage.h>
#include <linux/init.h>
#include <asm/memory.h>
#include <asm/assembler.h>

	.arch	armv7-a

@@ -19,11 +20,13 @@ ENTRY(secondary_trampoline)
	 * address of &cpu1start_addr. This would not work for platforms
	 * where the physical memory does not start at 0x0.
	*/
ARM_BE8(setend	be)
	adr	r0, 1f
	ldmia	r0, {r1, r2}
	sub	r2, r2, #PAGE_OFFSET
	ldr	r3, [r2]
	ldr	r4, [r3]
ARM_BE8(rev	r4, r4)
	bx	r4

	.align