From 7797000eeaf11027200f12ee7f1eee5ed677f268 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 4 May 2020 11:58:54 -0700 Subject: [PATCH] Mark stm_interrupt_vector as const so it is READONLY Signed-off-by: Keith Packard --- src/stm/ao_interrupt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/stm/ao_interrupt.c b/src/stm/ao_interrupt.c index c62870b7..9a059187 100644 --- a/src/stm/ao_interrupt.c +++ b/src/stm/ao_interrupt.c @@ -34,8 +34,6 @@ void stm_ignore_isr(void) { } -void *const __interrupt_vector[]; - uint32_t stm_flash_size(void) { uint16_t dev_id = stm_dev_id(); @@ -144,7 +142,7 @@ void main(void) __attribute__((__noreturn__)); */ __attribute__ ((section(".init"))) -void * const __interrupt_vector[64] = { +const void * const __interrupt_vector[64] = { [0] = &__stack, [1] = _start, i(0x08, nmi), -- 2.30.2