stmhal: Enable 8-byte stack alignment for IRQ handlers.

This commit is contained in:
Damien George 2014-09-25 15:47:53 +01:00
parent e8ea0724da
commit ac04a8a56a

View file

@ -199,6 +199,9 @@ void SystemInit(void)
#else
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
#endif
/* dpgeorge: enable 8-byte stack alignment for IRQ handlers, in accord with EABI */
SCB->CCR |= SCB_CCR_STKALIGN_Msk;
}
/**