RTEMS | bsp/aarch64:SMP improvement on aarch64 (!113)

Sebastian Huber (@sebhub) gitlab at rtems.org
Thu Sep 19 04:10:23 UTC 2024




Sebastian Huber commented on a discussion on bsps/aarch64/shared/start/start.S: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/113#note_112241

 >  _el1_start:
 >  
 >  #ifdef RTEMS_SMP
 > -  /* Read MPIDR and get current processor index */
 > -  mrs x7, mpidr_el1
 > -  and x7, x7, #0xff
 > +  ldr x3, =aarch64_cpu_boot_params

The _AArch64_Get_current_processor() implementation is selected by the build configuration for a particular BSP. It needs to be implemented in assembly code. This single aarch64_cpu_boot_params object is very brittle. You may have a situation where the boot is done in parallel.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/113#note_112241
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/5c91ba62/attachment-0001.htm>


More information about the bugs mailing list