fwd protect stack when jumping to system loader

can't be too careful eh
This commit is contained in:
mitxela
2025-10-27 16:40:39 +00:00
parent 16bec0ccc6
commit 255c90361f
2 changed files with 2 additions and 1 deletions

View File

@@ -315,7 +315,7 @@ static void MX_TIM21_Init(void);
/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */
__attribute__((naked,noreturn))
void triggerBootloader(void){
@@ -351,6 +351,7 @@ void triggerBootloader(void){
__set_MSP(*(volatile uint32_t*) SYSMEM);
((void (*)(void)) (*((volatile uint32_t *)(SYSMEM + 4))))();
__builtin_unreachable();
}

Binary file not shown.