diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-14 15:02:45 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-03 10:00:52 +0100 |
commit | ed8b00e667fe179730beb8947b5afb6bcc234d7a (patch) | |
tree | e1c29a868de23a2112792f6687b2bd5d19d66037 /testsuites | |
parent | Optional Classic Event initialization (diff) | |
download | rtems-ed8b00e667fe179730beb8947b5afb6bcc234d7a.tar.bz2 |
Optional Classic Message Queue initialization
Update #2408.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/spsysinit01/init.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuites/sptests/spsysinit01/init.c b/testsuites/sptests/spsysinit01/init.c index 00eae4bbdc..753218edf5 100644 --- a/testsuites/sptests/spsysinit01/init.c +++ b/testsuites/sptests/spsysinit01/init.c @@ -25,6 +25,7 @@ #include <rtems/test.h> #include <rtems/extensionimpl.h> +#include <rtems/rtems/messageimpl.h> #include <rtems/rtems/tasksimpl.h> #include <rtems/rtems/timerimpl.h> #include <rtems/score/apimutex.h> @@ -53,6 +54,8 @@ typedef enum { CLASSIC_SIGNAL_POST, CLASSIC_EVENT_PRE, CLASSIC_EVENT_POST, + CLASSIC_MESSAGE_QUEUE_PRE, + CLASSIC_MESSAGE_QUEUE_POST, IDLE_THREADS_PRE, IDLE_THREADS_POST, BSP_LIBC_PRE, @@ -204,6 +207,18 @@ LAST(RTEMS_SYSINIT_CLASSIC_EVENT) next_step(CLASSIC_EVENT_POST); } +FIRST(RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE) +{ + assert(_Message_queue_Information.maximum == 0); + next_step(CLASSIC_MESSAGE_QUEUE_PRE); +} + +LAST(RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE) +{ + assert(_Message_queue_Information.maximum != 0); + next_step(CLASSIC_MESSAGE_QUEUE_POST); +} + FIRST(RTEMS_SYSINIT_IDLE_THREADS) { assert(_System_state_Is_before_initialization(_System_state_Get())); @@ -289,6 +304,8 @@ static void Init(rtems_task_argument arg) #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1 +#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1 + #define CONFIGURE_MAXIMUM_TASKS 1 #define CONFIGURE_MAXIMUM_TIMERS 1 |