Skip to content

Commit ab341e0

Browse files
eivindj-nordicnordic-krch
authored andcommitted
arch: arm: core: cortex_m: Make relocate_vector_table weak
Allow relocate_vector_table() to be overwritten. This is necessary if the IRQ vector table is handled proprietary, e.g. before the zephyr kernel is initialized. In this case we want this function to be empty to avoid overriding the previous configuration. Co-authored-by: Krzysztof Chruściński <[email protected]> Signed-off-by: Eivind Jølsgard <[email protected]>
1 parent 33b9811 commit ab341e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/core/cortex_m/prep_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Z_GENERIC_SECTION(.vt_pointer_section) __attribute__((used)) void *_vector_table
4848
#define VTOR_MASK SCB_VTOR_TBLOFF_Msk
4949
#endif
5050

51-
static inline void relocate_vector_table(void)
51+
void __weak relocate_vector_table(void)
5252
{
5353
SCB->VTOR = VECTOR_ADDRESS & VTOR_MASK;
5454
barrier_dsync_fence_full();

0 commit comments

Comments
 (0)