This is an automated email from the ASF dual-hosted git repository.

jiuzhudong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new b45a658f673 sched/irq: Change the function parameter "regs" to 
"context"
b45a658f673 is described below

commit b45a658f6730485b0d770867156848b113d3de98
Author: pangzhen1 <[email protected]>
AuthorDate: Tue Sep 2 20:04:18 2025 +0800

    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 <[email protected]>
---
 sched/irq/irq_attach_thread.c | 5 +++--
 sched/irq/irq_attach_wqueue.c | 4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

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)

Reply via email to