Skip to content
Snippets Groups Projects
Commit ac04a8a5 authored by Damien George's avatar Damien George
Browse files

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

parent e8ea0724
Branches
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment