Skip to content

Commit

Permalink
armstubs: Add wfe to ARMv7/ARMv8-32 stubs
Browse files Browse the repository at this point in the history
This patch causes secondary CPUs to enter a low power state while
waiting to be woken during booting. Without the corresponding kernel
patch to send an event, the secondary CPUs won't come online.

See: raspberrypi/linux#1989

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  • Loading branch information
Phil Elwell committed May 8, 2017
1 parent 0e906eb commit b23276d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions armstubs/armstub7.S
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ jmp_loader:

add r5, #(0x400000CC-0x4000008C) @ mbox
1:
wfe
ldr r4, [r5, r0, lsl #4]
cmp r4, r3
beq 1b
Expand Down

0 comments on commit b23276d

Please sign in to comment.