summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/taskconstruct.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/taskconstruct.c')
-rw-r--r--cpukit/rtems/src/taskconstruct.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/cpukit/rtems/src/taskconstruct.c b/cpukit/rtems/src/taskconstruct.c
index 397f6c2c89..2cddb448f6 100644
--- a/cpukit/rtems/src/taskconstruct.c
+++ b/cpukit/rtems/src/taskconstruct.c
@@ -35,6 +35,28 @@
#include <string.h>
+#define STATUS_ASSERT( status ) \
+ RTEMS_STATIC_ASSERT( \
+ (int) STATUS_CLASSIC_##status == (int) RTEMS_##status, \
+ status \
+ )
+
+STATUS_ASSERT( INCORRECT_STATE );
+STATUS_ASSERT( INTERNAL_ERROR );
+STATUS_ASSERT( INVALID_NUMBER );
+STATUS_ASSERT( INVALID_PRIORITY );
+STATUS_ASSERT( INVALID_SIZE );
+STATUS_ASSERT( NO_MEMORY );
+STATUS_ASSERT( NOT_DEFINED );
+STATUS_ASSERT( NOT_OWNER_OF_RESOURCE );
+STATUS_ASSERT( OBJECT_WAS_DELETED );
+STATUS_ASSERT( PROXY_BLOCKING );
+STATUS_ASSERT( RESOURCE_IN_USE );
+STATUS_ASSERT( SUCCESSFUL );
+STATUS_ASSERT( TIMEOUT );
+STATUS_ASSERT( TOO_MANY );
+STATUS_ASSERT( UNSATISFIED );
+
static rtems_status_code _RTEMS_tasks_Prepare_user_stack(
Thread_Configuration *thread_config,
const rtems_task_config *config