Matteo Concas created an issue:
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5519
## Summary
<!--
Please provide as much information as possible such as error messages or
attaching logs
-->
Some weeks ago I added logic to park CPU cores that did not match the boot hart
ID when not using SMP:
```c
#ifndef RTEMS_SMP
li t3, RISCV_BOOT_HARTID
bne a0, t3, .Lwfi
#endif
```
Today I realized that `Lwfi` is only defined when SMP is used. In this case,
the label is simply replaced by the start of the memory so the program will
jump there.
The CPU is still parked as it cannot progress after the instruction but it will
do unnecessary operations, perhaps `Lwfi` could be moved out of the `RTEMS_SMP`
block so it can be used in both cases.
<!-- Pre-set options
- milestone
-->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5519
You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs