anchao commented on code in PR #13239:
URL: https://github.com/apache/nuttx/pull/13239#discussion_r1738739407
##########
arch/arm/src/armv8-r/arm_gicv3.c:
##########
@@ -101,7 +101,7 @@ static inline int sys_test_bit(unsigned long addr, unsigned
int bit)
static inline unsigned long gic_get_rdist(void)
{
- return gic_rdists[this_cpu()];
+ return g_gic_rdists[up_cpu_index()];
Review Comment:
I think it's a matter of choice between BMP and AMP, emm, but I think using
per-cpu data could resolve this issue better.
--
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]