arch: arm: clear r7 to match aarch64 smp implementation #90051
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
add mov r7, #0 as aarch64 implementation uses wzr which returns 0 on read but r7 might have an undefined value after a reset.
https://github.com/zephyrproject-rtos/zephyr/blob/main/arch/arm/core/cortex_a_r/reset.S :
/* some core already won, release */ mov r7, #0 strb r7, [r4, r2] b _secondary_core /* suggest current core then release */ 1: str r1, [r0, #BOOT_PARAM_MPID_OFFSET] + mov r7, #0 strb r7, [r4, r2] dmb
https://github.com/zephyrproject-rtos/zephyr/blob/main/arch/arm64/core/reset.S :