mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
sched/irq: Change the function parameter "regs" to "context"
The identifier regs has been used to represent a type, and cannot be used in here. So change the "regs" to "context" Signed-off-by: pangzhen1 <pangzhen1@xiaomi.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user