diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-03-24 20:13:34 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-07 06:31:46 +0200 |
commit | d1c038c78e4b54532ce64beae91cda9d2a8ed928 (patch) | |
tree | 1663b2fa83577aa6847ccab5ec52f0e460f91528 /cpukit/rtems/src | |
parent | cpukit/aarch64: Add ESR register decoding (diff) | |
download | rtems-d1c038c78e4b54532ce64beae91cda9d2a8ed928.tar.bz2 |
score: Fix internal error status number
The value of STATUS_CLASSIC_INTERNAL_ERROR must be equal to
RTEMS_INTERNAL_ERROR. Add static assertions to ensure that the status
codes match.
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r-- | cpukit/rtems/src/taskconstruct.c | 22 |
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 |