summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spsysinit01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-10 15:44:02 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 10:00:51 +0100
commita853c8518d7b8ccf54491018857ed86548f3ea24 (patch)
treee333b5dd474718b8037a865690706811b810f93c /testsuites/sptests/spsysinit01/init.c
parentscore: Create idle threads via linker set (diff)
downloadrtems-a853c8518d7b8ccf54491018857ed86548f3ea24.tar.bz2
Optional Initial Extensions initialization
Update #2408.
Diffstat (limited to 'testsuites/sptests/spsysinit01/init.c')
-rw-r--r--testsuites/sptests/spsysinit01/init.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuites/sptests/spsysinit01/init.c b/testsuites/sptests/spsysinit01/init.c
index fd34264d93..2bc859b880 100644
--- a/testsuites/sptests/spsysinit01/init.c
+++ b/testsuites/sptests/spsysinit01/init.c
@@ -26,6 +26,7 @@
#include <rtems/score/apimutex.h>
#include <rtems/score/sysstate.h>
+#include <rtems/score/userextimpl.h>
#include <rtems/score/wkspace.h>
const char rtems_test_name[] = "SPSYSINIT 1";
@@ -35,6 +36,8 @@ typedef enum {
BSP_WORK_AREAS_POST,
BSP_START_PRE,
BSP_START_POST,
+ INITIAL_EXTENSIONS_PRE,
+ INITIAL_EXTENSIONS_POST,
DATA_STRUCTURES_PRE,
DATA_STRUCTURES_POST,
IDLE_THREADS_PRE,
@@ -106,6 +109,18 @@ LAST(RTEMS_SYSINIT_BSP_START)
next_step(BSP_START_POST);
}
+FIRST(RTEMS_SYSINIT_INITIAL_EXTENSIONS)
+{
+ assert(_Chain_Is_empty(&_User_extensions_Switches_list));
+ next_step(INITIAL_EXTENSIONS_PRE);
+}
+
+LAST(RTEMS_SYSINIT_INITIAL_EXTENSIONS)
+{
+ assert(!_Chain_Is_empty(&_User_extensions_Switches_list));
+ next_step(INITIAL_EXTENSIONS_POST);
+}
+
FIRST(RTEMS_SYSINIT_DATA_STRUCTURES)
{
assert(_RTEMS_Allocator_Mutex == NULL);
@@ -205,6 +220,8 @@ static void Init(rtems_task_argument arg)
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_STACK_CHECKER_ENABLED
+
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
#define CONFIGURE_INIT