mirror of https://github.com/wolfSSL/wolfBoot.git
Fixed bug in do_boot: Don't use stack if we are moving SP
parent
d3e3e52b61
commit
ec0d170176
|
@ -76,17 +76,17 @@ void isr_empty(void)
|
||||||
* - Call the application entry point
|
* - Call the application entry point
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
static void *app_entry;
|
||||||
|
static uint32_t app_end_stack;
|
||||||
|
|
||||||
void do_boot(const uint32_t *app_offset)
|
void do_boot(const uint32_t *app_offset)
|
||||||
{
|
{
|
||||||
const uint32_t * const app_IV = (const uint32_t *)app_offset;
|
|
||||||
void *app_entry;
|
|
||||||
uint32_t app_end_stack;
|
|
||||||
|
|
||||||
#ifndef NO_VTOR
|
#ifndef NO_VTOR
|
||||||
/* Disable interrupts */
|
/* Disable interrupts */
|
||||||
asm volatile("cpsid i");
|
asm volatile("cpsid i");
|
||||||
/* Update IV */
|
/* Update IV */
|
||||||
VTOR = ((uint32_t)app_IV);
|
VTOR = ((uint32_t)app_offset);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get stack pointer, entry point */
|
/* Get stack pointer, entry point */
|
||||||
|
|
Loading…
Reference in New Issue