zephyr/arch
Sebastian Bøe 1765276000 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: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-09-19 09:13:50 -04:00
..
arc headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
arm arch: arm: Use BL instead of B to jump to _PrepC 2018-09-19 09:13:50 -04:00
common tests: benchmarks: timing_info: Enable benchmarks for riscv32. 2018-08-20 06:51:25 -07:00
nios2 headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
posix native_posix: Add control of traces color 2018-09-18 14:56:10 +02:00
riscv32 headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
x86 headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
xtensa include: Add missing headers guard 2018-09-17 15:49:26 -04:00
CMakeLists.txt arch: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for arch files. 2018-05-15 17:48:18 +03:00
Kconfig kconfig: move soc selection to ZEPHYR_BASE/soc/ 2018-09-13 00:56:48 -04:00