[rtems-central commit] spec: Add SMP support to validation test suite
Sebastian Huber
sebh at rtems.org
Thu Aug 20 14:13:13 UTC 2020
Module: rtems-central
Branch: master
Commit: 175bfcc47419b15e4cb0b41865739c1c25e6b9a4
Changeset: http://git.rtems.org/rtems-central/commit/?id=175bfcc47419b15e4cb0b41865739c1c25e6b9a4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Aug 3 12:27:49 2020 +0200
spec: Add SMP support to validation test suite
---
spec/testsuites/validation-0.yml | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/spec/testsuites/validation-0.yml b/spec/testsuites/validation-0.yml
index 6b1e6cb..3822bf9 100644
--- a/spec/testsuites/validation-0.yml
+++ b/spec/testsuites/validation-0.yml
@@ -77,7 +77,7 @@ test-code: |
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
- #define CONFIGURE_MAXIMUM_PROCESSORS 32
+ #define CONFIGURE_MAXIMUM_PROCESSORS 4
#define CONFIGURE_MAXIMUM_BARRIERS 3
@@ -107,6 +107,27 @@ test-code: |
#define CONFIGURE_IDLE_TASK_BODY _CPU_Thread_Idle_body
+ #define CONFIGURE_SCHEDULER_EDF_SMP
+
+ #include <rtems/scheduler.h>
+
+ RTEMS_SCHEDULER_EDF_SMP(a);
+
+ RTEMS_SCHEDULER_EDF_SMP(b);
+
+ RTEMS_SCHEDULER_EDF_SMP(c);
+
+ #define CONFIGURE_SCHEDULER_TABLE_ENTRIES \
+ RTEMS_SCHEDULER_TABLE_EDF_SMP(a, rtems_build_name('A', ' ', ' ', ' ')), \
+ RTEMS_SCHEDULER_TABLE_EDF_SMP(b, rtems_build_name('B', ' ', ' ', ' ')), \
+ RTEMS_SCHEDULER_TABLE_EDF_SMP(c, rtems_build_name('C', ' ', ' ', ' '))
+
+ #define CONFIGURE_SCHEDULER_ASSIGNMENTS \
+ RTEMS_SCHEDULER_ASSIGN(0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY), \
+ RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL), \
+ RTEMS_SCHEDULER_ASSIGN(2, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL), \
+ RTEMS_SCHEDULER_ASSIGN(2, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL)
+
#define CONFIGURE_INIT
#include <rtems/confdefs.h>
More information about the vc
mailing list