diff options
-rw-r--r-- | chip/stm32/hwtimer.c | 6 | ||||
-rw-r--r-- | chip/stm32/hwtimer32.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/chip/stm32/hwtimer.c b/chip/stm32/hwtimer.c index 9e8f959553..a1053e28c8 100644 --- a/chip/stm32/hwtimer.c +++ b/chip/stm32/hwtimer.c @@ -389,12 +389,10 @@ void IRQ_HANDLER(IRQ_WD)(void) asm volatile("mov r0, lr\n" "mov r1, sp\n" /* Must push registers in pairs to keep 64-bit aligned - * stack for ARM EABI. This also conveninently saves - * R0=LR so we can pass it to task_resched_if_needed. */ + * stack for ARM EABI. */ "push {r0, lr}\n" "bl watchdog_check\n" - "pop {r0, lr}\n" - "b task_resched_if_needed\n"); + "pop {r0,pc}\n"); } const struct irq_priority IRQ_PRIORITY(IRQ_WD) __attribute__((section(".rodata.irqprio"))) diff --git a/chip/stm32/hwtimer32.c b/chip/stm32/hwtimer32.c index 691e2f90f7..e04f540d04 100644 --- a/chip/stm32/hwtimer32.c +++ b/chip/stm32/hwtimer32.c @@ -204,12 +204,10 @@ void IRQ_HANDLER(IRQ_WD)(void) asm volatile("mov r0, lr\n" "mov r1, sp\n" /* Must push registers in pairs to keep 64-bit aligned - * stack for ARM EABI. This also conveninently saves - * R0=LR so we can pass it to task_resched_if_needed. */ + * stack for ARM EABI. */ "push {r0, lr}\n" "bl watchdog_check\n" - "pop {r0, lr}\n" - "b task_resched_if_needed\n"); + "pop {r0,pc}\n"); } const struct irq_priority IRQ_PRIORITY(IRQ_WD) __attribute__((section(".rodata.irqprio"))) |