Skip to content

Commit 10593b2

Browse files
Victor KamenskyRussell King
authored andcommitted
ARM: 7881/1: __fixup_smp read of SCU config should do byteswap in BE case
Commit "bc41b8724f24b9a27d1dcc6c974b8f686b38d554 ARM: 7846/1: Update SMP_ON_UP code to detect A9MPCore with 1 CPU devices" added read of SCU config register into __fixup_smp function. Such read should be followed by byteswap, if kernel runs in BE mode. Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 83651bb commit 10593b2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/arm/kernel/head.S‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ __fixup_smp:
508508
teq r0, #0x0 @ '0' on actual UP A9 hardware
509509
beq __fixup_smp_on_up @ So its an A9 UP
510510
ldr r0, [r0, #4] @ read SCU Config
511+
ARM_BE8(rev r0, r0) @ byteswap if big endian
511512
and r0, r0, #0x3 @ number of CPUs
512513
teq r0, #0x0 @ is 1?
513514
movne pc, lr

0 commit comments

Comments
 (0)