We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3e3e52 commit ec0d170Copy full SHA for ec0d170
1 file changed
src/wolfboot.c
@@ -76,17 +76,17 @@ void isr_empty(void)
76
* - Call the application entry point
77
*
78
*/
79
+static void *app_entry;
80
+static uint32_t app_end_stack;
81
+
82
void do_boot(const uint32_t *app_offset)
83
{
- const uint32_t * const app_IV = (const uint32_t *)app_offset;
- void *app_entry;
- uint32_t app_end_stack;
84
85
#ifndef NO_VTOR
86
/* Disable interrupts */
87
asm volatile("cpsid i");
88
/* Update IV */
89
- VTOR = ((uint32_t)app_IV);
+ VTOR = ((uint32_t)app_offset);
90
#endif
91
92
/* Get stack pointer, entry point */
0 commit comments