no1wudi opened a new pull request, #15540: URL: https://github.com/apache/nuttx/pull/15540
## Summary This commit removes the riscv_mhartid function and replaces all its usages with up_cpu_index. The functionality is consolidated into up_cpu_index which provides a more consistent API for getting the current CPU/hart ID across different execution modes (machine/supervisor). ## Impact - Removes riscv_mhartid.S and its references from build systems - Updates all arch-specific code to use up_cpu_index instead - Adds more detailed documentation for up_cpu_index behavior - Changes the implementation of up_cpu_index to use percpu scratch register in supervisor mode ## Testing GitHub CI and local machine -- 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]
