[PATCH v3] smpfatal08: halt secondary processors if necessary

Jiri Gaisler jiri at gaisler.se
Tue Apr 13 17:48:45 UTC 2021


> Just one nit, I think we still want to keep
> -  (void) cpu_self;
> because the variable is unused. This suppresses unused variable warnings.
I never understood why it was there, but now I know ... :-)

smpfatal08 fails on systems where all cpus are started by the 
boot-loader and thereby clobber the test output. This patch stops the 
secondary cpus with a call to _CPU_Thread_Idle_body(). Tested on RISC-V 
and SPARC.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-smpfatal08-block-secondary-processors.patch
Type: text/x-patch
Size: 1004 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210413/cbd5b259/attachment.bin>


More information about the devel mailing list