RTEMS | bsp/aarch64:Fix _CPU_SMP_Get_current_processor() (!229)
xiaojun zheng (@zhengxiaojun)
gitlab at rtems.org
Thu Sep 19 06:37:38 UTC 2024
xiaojun zheng created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/229
Project:Branches: zhengxiaojun/rtems:update_Per_CPU_Get_index to rtems/rtos/rtems:main
Author: xiaojun zheng
## Summary
bsp/aarch64:Fix _CPU_SMP_Get_current_processor()
Fix _CPU_SMP_Get_current_processor(), since read from register MPIDR_EL1
(the least significant byte) is not always right,for example the least
significant byte of MPIDR_EL1 is always zero for cortex-a55.
aarch64 has a thread ID register TPIDR_EL1 available for for OS management
purposes. RTEMS stores per-CPU control in TPIDR_EL1 when the core startup,
so we can use _Per_CPU_Get_index() to get current processor index.
update #5064
<!-- Default settings, if it is a dropdown it will set after submission -->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/229
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240919/0e478e41/attachment.htm>
More information about the bugs
mailing list