Skip to content
Commit 17652760 authored by Sebastian Bøe's avatar Sebastian Bøe Committed by Anas Nashif
Browse files

arch: arm: Use BL instead of B to jump to _PrepC

The __reset vector is using the 'b' instruction to jump to _PrepC. 'b'
can only jump 2KB on Cortex-M0 platforms so this causes build failures
when _PrepC happens to be too far away from __reset.

To resolve this we use 'bl' instead as it can jump two thousand times
further[0].

This can also be resolved by porting the reset vector to C or by
placing the _PrepC function in a dedicated section that the linker
places next to __reset.

[0] http://infocenter.arm.com/help/topic/com.arm.doc.dui0489e/Cihfddaf.html



Signed-off-by: default avatarSebastian Bøe <sebastian.boe@nordicsemi.no>
parent 1b80f00f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment