Skip to content

Commit aeaecf8

Browse files
[nrf fromlist] arch: arm: core: cortex_m: Make relocate_vector_table weak
Upstream PR #: 88250 Allow relocate_vector_table() to be overwritten. Co-authored-by: Krzysztof Chruściński <[email protected]> Signed-off-by: Eivind Jølsgard <[email protected]>
1 parent e48bca4 commit aeaecf8

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)