ssekar15 commented on code in PR #21977:
URL: https://github.com/apache/nuttx/pull/21977#discussion_r4627345775
##########
arch/tricore/src/common/tricore_stm.c:
##########
@@ -137,6 +105,49 @@ static clkcnt_t tricore_systimer_max_delay(struct
oneshot_lowerhalf_s *lower)
return UINT32_MAX;
}
+/****************************************************************************
+ * Name: tricore_systimer_updata
+ ****************************************************************************/
+
+static void tricore_systimer_updata(struct oneshot_lowerhalf_s *lower,
Review Comment:
/s/tricore_systimer_updata/tricore_systimer_update
##########
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:
https://github.com/apache/nuttx/pull/21546/changes#diff-9f81cdbe526e1f77192f055b8ff418fefe0204411ee4ad455329c65f4af68bdaR56-R57
get the current cpu index from code id register, otherwise as we talk in
multiple place AMP will get always 0.
--
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]