Skip to content
Commit eb48a0a7 authored by Xiaorui Hu's avatar Xiaorui Hu Committed by Anas Nashif
Browse files

arm: armv6-m: Support relocating vector table



An abnormal crash was encountered in ARMv6-M SoCs that don't have flash
starting at 0.  With Zephyr OS the reason for this crash is that, on
ARMv6-M the system requires an exception vector table at the 0 address.

We implement the relocate_vector_table function to move the vector table
code to address 0 on systems which don't have the start of code already
at 0.

[kumar.gala: reworderd commit message, tweaked how we check if we need
 to copy vector table]

Signed-off-by: default avatarXiaorui Hu <xiaorui.hu@linaro.org>
Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
parent a580bc5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment