pussuw commented on PR #12881: URL: https://github.com/apache/nuttx/pull/12881#issuecomment-2407126821
Hello @yf13 I have a question about this patch: Is the intent of using ARCH_RV_HARTID_BASE in the riscv_mhartid macro to convert physical CPU id to logical CPU id (for SMP mode) ? If so, a problem arises when the physical hart ID is required, e.g. in interrupt acknowledgments etc. This occurs in platforms where harts are numbered like in MPFS (like you mentioned), from 0...4, where 0 is the monitor core and 1...3 are the application harts. Hart 0 is not usable for SMP and harts 1...3 are. -- 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]
