diff --git a/sched/irq/irq_attach_thread.c b/sched/irq/irq_attach_thread.c index f65c46cad5e..72f6c2977b8 100644 --- a/sched/irq/irq_attach_thread.c +++ b/sched/irq/irq_attach_thread.c @@ -61,14 +61,15 @@ struct irq_thread_info_s * Useful for oneshot interrupts. */ -static int irq_thread_default_handler(int irq, FAR void *regs, FAR void *arg) +static int irq_thread_default_handler(int irq, FAR void *context, + FAR void *arg) { FAR struct irq_thread_info_s *info = arg; int ret = IRQ_WAKE_THREAD; if (info->handler != NULL) { - ret = info->handler(irq, regs, info->arg); + ret = info->handler(irq, context, info->arg); } if (ret == IRQ_WAKE_THREAD) diff --git a/sched/irq/irq_attach_wqueue.c b/sched/irq/irq_attach_wqueue.c index cc97b3a5641..10fdaf7c7bd 100644 --- a/sched/irq/irq_attach_wqueue.c +++ b/sched/irq/irq_attach_wqueue.c @@ -114,14 +114,14 @@ static void irq_work_handler(FAR void *arg) info->isrwork(info->irq, NULL, info->arg); } -static int irq_default_handler(int irq, FAR void *regs, FAR void *arg) +static int irq_default_handler(int irq, FAR void *context, FAR void *arg) { FAR struct irq_work_info_s *info = arg; int ret = IRQ_WAKE_THREAD; if (info->handler != NULL) { - ret = info->handler(irq, regs, info->arg); + ret = info->handler(irq, context, info->arg); } if (ret == IRQ_WAKE_THREAD)