arch: arm: clear r7 to match aarch64 smp implementation
move mov r7, #0 to use it on both branches as aarch64 implementation uses wzr which returns 0 on read but r7 might have an undefined value after a reset. Signed-off-by: Julien Racki <julien.racki@st.com>
This commit is contained in:
parent
ab6c6b44f3
commit
31460e667a
1 changed files with 1 additions and 1 deletions
|
@ -227,12 +227,12 @@ EL1_Reset_Handler:
|
|||
/* signal our desire to vote */
|
||||
mov r5, #1
|
||||
strb r5, [r4, r2]
|
||||
mov r7, #0
|
||||
ldr r3, [r0, #BOOT_PARAM_MPID_OFFSET]
|
||||
cmn r3, #1
|
||||
beq 1f
|
||||
|
||||
/* some core already won, release */
|
||||
mov r7, #0
|
||||
strb r7, [r4, r2]
|
||||
b _secondary_core
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue