Skip to content

Commit 8e073f8

Browse files
eivindj-nordicnordic-krch
authored andcommitted
[nrf fromtree] 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]> (cherry picked from commit ab341e0)
1 parent 0a1055c commit 8e073f8

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
@@ -52,7 +52,7 @@ void *_vector_table_pointer;
5252
#define VTOR_MASK SCB_VTOR_TBLOFF_Msk
5353
#endif
5454

55-
static inline void relocate_vector_table(void)
55+
void __weak relocate_vector_table(void)
5656
{
5757
SCB->VTOR = VECTOR_ADDRESS & VTOR_MASK;
5858
barrier_dsync_fence_full();

0 commit comments

Comments
 (0)