diff options
Diffstat (limited to 'stmhal/pendsv.h')
| -rw-r--r-- | stmhal/pendsv.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stmhal/pendsv.h b/stmhal/pendsv.h index f91a7c1d7..7886d9f98 100644 --- a/stmhal/pendsv.h +++ b/stmhal/pendsv.h @@ -26,4 +26,7 @@ void pendsv_init(void); void pendsv_nlr_jump(void *val); -void pendsv_isr_handler(void); + +// since we play tricks with the stack, the compiler must not generate a +// prelude for this function +void pendsv_isr_handler(void) __attribute__((naked)); |
