xiaoxiang781216 commented on code in PR #21740:
URL: https://github.com/apache/nuttx/pull/21740#discussion_r4545554498


##########
arch/tricore/src/common/tricore_hwdebug.c:
##########
@@ -324,8 +324,8 @@ used_code static void tricore_trevt_match(void)
 
   /* Debug trap handler. */
 
-  regs = g_running_task->xcp.regs;
-  g_running_task->xcp.regs = context;
+  regs = g_running_tasks[this_cpu()]->xcp.regs;

Review Comment:
   let's save cpu



-- 
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