arch: arm: set VECTOR_ADDRESS to _vector_start
This commit sets VECTOR_ADDRESS in prep_c.c directly to the value of _vector_start for XIP images for MCUs which have the VTOR register. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
bb4ed94c60
commit
8c53f2422c
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@
|
|||
#ifdef CONFIG_CPU_CORTEX_M_HAS_VTOR
|
||||
|
||||
#ifdef CONFIG_XIP
|
||||
#define VECTOR_ADDRESS ((uintptr_t)&_image_rom_start + \
|
||||
CONFIG_TEXT_SECTION_OFFSET)
|
||||
#define VECTOR_ADDRESS ((uintptr_t)_vector_start)
|
||||
#else
|
||||
#define VECTOR_ADDRESS CONFIG_SRAM_BASE_ADDRESS
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue