hujun260 commented on code in PR #14596:
URL: https://github.com/apache/nuttx/pull/14596#discussion_r1843221267


##########
arch/arm/src/armv7-m/arm_doirq.c:
##########
@@ -56,7 +56,13 @@ void exception_direct(void)
 
 uint32_t *arm_doirq(int irq, uint32_t *regs)
 {
-  struct tcb_s *tcb = this_task();
+  struct tcb_s **running_task = &g_running_tasks[this_cpu()];
+  FAR struct tcb_s *tcb;
+
+  if (*running_task != NULL)
+    {
+      (*running_task)->xcp.regs = regs;

Review Comment:
   
   We can't change it to this way. 
   (*running_task)->xcp.regs  to *running_task->xcp.regs
   
   error: 'running_task' is a pointer to pointer; did you mean to dereference 
it before applying '->' to it?
     167 |       *running_task->xcp.regs = regs;
         |                    ^~
         |        (*          )
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to