RTEMS | aarch64: Add _AArch64_Get_current_processor_for_system_start() (!233)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Fri Sep 20 05:36:00 UTC 2024
Sebastian Huber commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/233#note_112364
Sorry, I don't understand your problem. The original patch is this:
```diff
@@ -219,9 +219,8 @@ _el2_start:
_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
+ ldr x7, [x3, #BOOT_PARAM_CPUN_OFFSET]
#endif
#ifdef RTEMS_SMP
```
Now you have to move it to the _AArch64_Get_current_processor_for_system_start() function, that is all.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/233#note_112364
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/20240920/63221e6a/attachment.htm>
More information about the bugs
mailing list