RTEMS | bsp/aarch64:Fix _CPU_SMP_Get_current_processor() (!229)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Thu Sep 19 10:54:36 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_112284
>
> - 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;
> - }
> + /**
> + * The function depends on _CPU_Get_current_per_CPU_control(),
> + * it can not be used before the TPIDR_EL1 is initialized.
> + * @brief Returns the index of the current processor.
The `@brief` should be the first line. Then a blank line. `... _CPU_Get_current_per_CPU_control(). It shall not ...`.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/229#note_112284
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/50ddd2d8/attachment-0001.htm>
More information about the bugs
mailing list