RTEMS | bsp/aarch64:Fix _CPU_SMP_Get_current_processor() (!229)

Sebastian Huber (@sebhub) gitlab at rtems.org
Thu Sep 19 09:28:42 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/229#note_112279

 >  
 >    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;
 > -  }
 > +/**

Indentation should be two spaces. Needs an `@brief Returns the index of the current processor.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/229#note_112279
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/3edf4198/attachment-0001.htm>


More information about the bugs mailing list