[PATCH] smpfatal08: halt secondary RISC-V processors

Jiri Gaisler jiri at gaisler.se
Tue Apr 13 09:40:00 UTC 2021


On 4/13/21 7:44 AM, Sebastian Huber wrote:
> On 12/04/2021 21:40, Jiri Gaisler wrote:
>
>>
>> I just realized that I can change the patch from an assembly WFI to a simple busy loop instead. This would work on any architecture without assembly. Should I provide a new patch with this cleaner solution? 
>
> You can use
>
> (void) _CPU_Thread_Idle_body( 0 );
>
> for an idle loop which my use architecture/BSP-specific optimizations, e.g. wfi.
>
Elegant solution! I will post a patch with this fix.

Jiri.



More information about the devel mailing list