diff options
author | Jiri Gaisler <jiri@gaisler.se> | 2021-04-11 21:15:13 +0200 |
---|---|---|
committer | Jiri Gaisler <jiri@gaisler.se> | 2021-04-13 22:31:22 +0200 |
commit | a316a9ddaeaa8f6316b2a2d29ca82b3ad40d2d22 (patch) | |
tree | ef91ab2203a326958fe221c7371ea6489af56ed0 | |
parent | Revert "cpukit/include: Remove telnetd.h" (diff) | |
download | rtems-a316a9ddaeaa8f6316b2a2d29ca82b3ad40d2d22.tar.bz2 |
smpfatal08: block secondary processors
* On some SMP platforms, all cpus are started by the
boot-loader. We need to block the secondary cpus or they
will clobber the test output.
Diffstat (limited to '')
-rw-r--r-- | testsuites/smptests/smpfatal08/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuites/smptests/smpfatal08/init.c b/testsuites/smptests/smpfatal08/init.c index 47ea91b29d..bcfb3b72be 100644 --- a/testsuites/smptests/smpfatal08/init.c +++ b/testsuites/smptests/smpfatal08/init.c @@ -38,6 +38,8 @@ void bsp_start_on_secondary_processor(struct Per_CPU_Control *cpu_self) { /* Provided to avoid multiple definitions of the CPU SMP support functions */ (void) cpu_self; + /* Block secondary cpus if they are running to avoid clobbering output */ + (void) _CPU_Thread_Idle_body( 0 ); } #if QORIQ_THREAD_COUNT > 1 |