mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
stmhal: Enable 8-byte stack alignment for IRQ handlers.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user