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.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to