This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 384752477 boot/startup: Fix unused vector macro
384752477 is described below
commit 384752477762a2f81dd9064dc959bcd01dfca7fa
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Wed Apr 10 15:28:51 2024 +0200
boot/startup: Fix unused vector macro
When generating isr vector table INT_VECTOR_UNUSED
ignored its argument and used 0 instead.
Now this macro may be used to store some values in
vector table (needed for STM32F1 where table ends
with some magic value).
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
boot/startup/src/interrupts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boot/startup/src/interrupts.c b/boot/startup/src/interrupts.c
index bdc04ce94..640d30c84 100644
--- a/boot/startup/src/interrupts.c
+++ b/boot/startup/src/interrupts.c
@@ -124,7 +124,7 @@ Default_SysTick_Handler(void) {
#define INT_VECTOR_PENDSV_HANDLER(handler) handler,
#define INT_VECTOR_SYSTICK_HANDLER(handler) handler,
#define INT_VECTOR(isr) isr,
-#define INT_VECTOR_UNUSED(a) 0,
+#define INT_VECTOR_UNUSED(a) (void (*)(void))a,
void (*g_pfnVectors[])(void) __attribute__((section(".isr_vector"))) = {
#include "mcu/mcu_vectors.h"
};