embed: disable stack protector for SysTick_Handler

This commit is contained in:
Pavol Rusnak 2017-10-13 00:45:26 +02:00
parent a7625877ef
commit 88894e7a8d
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@ void SystemInit(void)
#endif
}
void SysTick_Handler(void) {
#define __nostackprotector __attribute__((__optimize__("no-stack-protector")))
void __nostackprotector SysTick_Handler(void) {
// Instead of calling HAL_IncTick we do the increment here of the counter.
// This is purely for efficiency, since SysTick is called 1000 times per
// second at the highest interrupt priority.