zhangyu981027 commented on code in PR #21977:
URL: https://github.com/apache/nuttx/pull/21977#discussion_r4627981170


##########
arch/tricore/src/tc4xx/tc4xx_timerisr.c:
##########
@@ -49,8 +48,10 @@
 void up_timer_initialize(void)
 {
   struct oneshot_lowerhalf_s *lower;
+  int cpu = up_cpu_index();

Review Comment:
   This is the correct way to write it; should use `up_cpu_index`. I’m not sure 
what your specific question is, but `up_cpu_index` will be handled/adapted 
later on—you shouldn't be accessing the `coreid` register directly here.



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