On Wed, Apr 21, 2021 at 9:03 AM Grr <gebbe...@gmail.com> wrote:
>
> Hello to all.
>
> I was studying EXTI handling in STM32 and noticed irq handlers (as defined
> in stm32_exti_gpio.c) have three parameters: irq, context and arg.
>
> And they are never used
>
> If handlers are looked up in the vector table, which only have handler's
> address, where do these parameters (specially context) come from?
>
> TIA
> Grr

Unless you are using Zero Latency Interrupts, ALL interrupt vectors
point to one interrupt handler. The IRQ handlers you were looking at
are called from within the single interrupt handler. See
irq_dispatch() in sched/irq/irq_dispatch.c to see where the 'context'
parameter comes from.

Cheers,
Nathan

Reply via email to