[rtems commit] sptests/spextensions01: Add comment

Sebastian Huber sebh at rtems.org
Tue Mar 3 06:30:23 UTC 2020


Module:    rtems
Branch:    master
Commit:    198c07e5a58413bb2b16c01a15c545875d144ad5
Changeset: http://git.rtems.org/rtems/commit/?id=198c07e5a58413bb2b16c01a15c545875d144ad5

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar  3 07:30:04 2020 +0100

sptests/spextensions01: Add comment

Update #3885.

---

 testsuites/sptests/spextensions01/init.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/testsuites/sptests/spextensions01/init.c b/testsuites/sptests/spextensions01/init.c
index 7ce1da5..06dc310 100644
--- a/testsuites/sptests/spextensions01/init.c
+++ b/testsuites/sptests/spextensions01/init.c
@@ -453,6 +453,15 @@ static void test(void)
 #endif
 
   active_extensions = 4;
+
+  /*
+   * In SMP configurations, the context switch from the system initialization
+   * context to the initialization task is visible to the context switch
+   * extensions.
+   *
+   * In uniprocessor configurations, this is not the case and two counter
+   * increments are missing.
+   */
 #ifdef RTEMS_SMP
   assert(counter == 12);
 #else



More information about the vc mailing list