stmhal: Enable 8-byte stack alignment for IRQ handlers.
This commit is contained in:
parent
e8ea0724da
commit
ac04a8a56a
@ -199,6 +199,9 @@ void SystemInit(void)
|
|||||||
#else
|
#else
|
||||||
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
|
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* dpgeorge: enable 8-byte stack alignment for IRQ handlers, in accord with EABI */
|
||||||
|
SCB->CCR |= SCB_CCR_STKALIGN_Msk;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user