imeghar2408-max commented on issue #19875: URL: https://github.com/apache/nuttx/issues/19875#issuecomment-5467436492
Hi, @evolution124 I’m investigating this issue and traced the current flow through riscv_percpu_init() and riscv_percpu_add_hart(). It looks like irq_stack is assigned according to the g_percpu[] index, while the corresponding g_percpu entry is assigned to a HART based on freelist dequeue order. Would the intended fix be to select the g_percpu entry deterministically using the HART-to-logical-CPU mapping (for example, riscv_hartid_to_cpuid(hartid)) instead of assigning entries from the freelist? I’m also checking the different RISC-V startup paths before preparing a patch. -- 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]
