xiaoxiang781216 commented on code in PR #20012:
URL: https://github.com/apache/nuttx/pull/20012#discussion_r3889733531
##########
arch/risc-v/src/common/riscv_percpu.c:
##########
@@ -132,17 +126,20 @@ void riscv_percpu_add_hart(uintptr_t hartid)
{
riscv_percpu_t *percpu;
irqstate_t flags;
+ int cpu;
/* Make sure we are initialized */
riscv_percpu_init();
- /* Get free entry for this hart, this must not fail */
+ /* Get the per CPU entry corresponding to this hart. */
+
+ cpu = riscv_hartid_to_cpuid((int)hartid);
Review Comment:
remove the cast
--
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]