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

Sebastian Huber (@sebhub) gitlab at rtems.org
Fri Sep 13 05:01:27 UTC 2024




Sebastian Huber started a new discussion on cpukit/score/cpu/aarch64/include/rtems/score/cpu.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/113#note_112029

 >  
 >    void _CPU_SMP_Prepare_start_multitasking( void );
 >  
 > -  static inline uint32_t _CPU_SMP_Get_current_processor( void )
 > -  {
 > -    uint32_t mpidr;
 > -
 > -    __asm__ volatile (
 > -      "mrs %[mpidr], mpidr_el1\n"
 > -      : [mpidr] "=&r" (mpidr)
 > -    );
 > -
 > -    return mpidr & 0xffU;
 > -  }
 > +  uint32_t _CPU_SMP_Get_current_processor( void );

Add a comment that this function depends on _CPU_Get_current_per_CPU_control() and that it shall not be used before the TPIDR_EL1 is initialized.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/113#note_112029
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/20240913/a0d84742/attachment.htm>


More information about the bugs mailing list