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

Commit 1a27e203 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: msm: Properly switch secondary CPUs into THUMB2 mode"

parents 5f41bb38 b7f35903
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
#include <linux/linkage.h>
#include <linux/init.h>

	.arm

__CPUINIT

/*
@@ -20,6 +22,10 @@ __CPUINIT
 * This is executing in physical space with cache's off.
 */
ENTRY(msm_secondary_startup)
THUMB(	adr	r9, BSYM(2f)	)	@ Kernel is always entered in ARM.
THUMB(	bx	r9		)	@ If this is a Thumb-2 kernel,
THUMB(	.thumb			)	@ switch to Thumb now.
THUMB(2:			)
	mrc	p15, 0, r0, c0, c0, 5 	@ MPIDR
	and	r0, r0, #15		@ What CPU am I
	adr	r4, 1f			@ address of
+6 −0
Original line number Diff line number Diff line
@@ -436,7 +436,13 @@ msm_pm_pa_to_va:
1:	b       1b
ENDPROC(msm_pm_collapse_exit)

	.arm

ENTRY(msm_pm_boot_entry)
THUMB(	adr	r9, BSYM(2f)	)	/* Kernel is always entered in ARM. */
THUMB(	bx	r9		)	/* If this is a Thumb-2 kernel, */
THUMB(	.thumb			)	/* switch to Thumb now.		*/
THUMB(2:			)
	mrc     p15, 0, r0, c0, c0, 5    /* MPIDR                          */
	and     r0, r0, #15              /* what CPU am I                  */