summaryrefslogtreecommitdiffstats
path: root/spec/build/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-03-10 14:11:12 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-03-24 11:10:49 +0100
commit36615183d642a8adb2f59ffcc38d7bf08e5dcb2a (patch)
treef2f43817f2fe5a79b50870586cb7a136e0449574 /spec/build/testsuites
parentvalidation: Test support functions (diff)
downloadrtems-36615183d642a8adb2f59ffcc38d7bf08e5dcb2a.tar.bz2
smp: Add fatal error
Add SMP-specifc SMP_FATAL_MULTITASKING_START_ON_NOT_ONLINE_PROCESSOR fatal error. This fatal error helps to diagnose a broken SMP startup sequence. Without this error a context switch using the NULL pointer for the thread control block happens which may be difficult to debug.
Diffstat (limited to 'spec/build/testsuites')
-rw-r--r--spec/build/testsuites/validation/fatal-start-on-not-online-processor.yml21
-rw-r--r--spec/build/testsuites/validation/grp.yml2
2 files changed, 23 insertions, 0 deletions
diff --git a/spec/build/testsuites/validation/fatal-start-on-not-online-processor.yml b/spec/build/testsuites/validation/fatal-start-on-not-online-processor.yml
new file mode 100644
index 0000000000..7858041843
--- /dev/null
+++ b/spec/build/testsuites/validation/fatal-start-on-not-online-processor.yml
@@ -0,0 +1,21 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+build-type: test-program
+cflags: []
+copyrights:
+- Copyright (C) 2022 embedded brains GmbH (http://www.embedded-brains.de)
+cppflags: []
+cxxflags: []
+enabled-by: RTEMS_SMP
+features: c cprogram
+includes: []
+ldflags:
+- -Wl,-wrap=_CPU_SMP_Start_processor
+links: []
+source:
+- testsuites/validation/tr-fatal-start-on-not-online-processor.c
+- testsuites/validation/ts-fatal-start-on-not-online-processor.c
+stlib: []
+target: testsuites/validation/ts-fatal-start-on-not-online-processor.exe
+type: build
+use-after: []
+use-before: []
diff --git a/spec/build/testsuites/validation/grp.yml b/spec/build/testsuites/validation/grp.yml
index b7f481c56f..909936f149 100644
--- a/spec/build/testsuites/validation/grp.yml
+++ b/spec/build/testsuites/validation/grp.yml
@@ -25,6 +25,8 @@ links:
- role: build-dependency
uid: fatal-start-of-mandatory-processor-failed
- role: build-dependency
+ uid: fatal-start-on-not-online-processor
+- role: build-dependency
uid: fatal-too-large-tls-size
- role: build-dependency
uid: performance-no-clock-0