diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-04-19 21:09:20 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-04-19 21:09:20 +0000 |
commit | 3b76313da986859d9133bfab342009336ac17aff (patch) | |
tree | c3f38c3e94b7dadcceceb3f4ce2cecea6de7c1ad /c/src/optman/rtems/no-rtmon.c | |
parent | changes to compile in macro configuration without warnings. (diff) | |
download | rtems-3b76313da986859d9133bfab342009336ac17aff.tar.bz2 |
modified to generate fatal error when an unconfigured directive is invoked.
Diffstat (limited to 'c/src/optman/rtems/no-rtmon.c')
-rw-r--r-- | c/src/optman/rtems/no-rtmon.c | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/c/src/optman/rtems/no-rtmon.c b/c/src/optman/rtems/no-rtmon.c index 71ec2168b1..fb064dafc5 100644 --- a/c/src/optman/rtems/no-rtmon.c +++ b/c/src/optman/rtems/no-rtmon.c @@ -18,6 +18,7 @@ #include <rtems/score/isr.h> #include <rtems/score/object.h> #include <rtems/score/thread.h> +#include <rtems/score/interr.h> #include <rtems/rtems/types.h> #include <rtems/rtems/ratemon.h> @@ -33,6 +34,11 @@ rtems_status_code rtems_rate_monotonic_create( Objects_Id *id ) { + _Internal_error_Occurred( + INTERNAL_ERROR_RTEMS_API, + FALSE, + RTEMS_NOT_CONFIGURED + ); return RTEMS_NOT_CONFIGURED; } @@ -41,6 +47,11 @@ rtems_status_code rtems_rate_monotonic_ident( Objects_Id *id ) { + _Internal_error_Occurred( + INTERNAL_ERROR_RTEMS_API, + FALSE, + RTEMS_NOT_CONFIGURED + ); return RTEMS_NOT_CONFIGURED; } @@ -48,6 +59,11 @@ rtems_status_code rtems_rate_monotonic_cancel( Objects_Id id ) { + _Internal_error_Occurred( + INTERNAL_ERROR_RTEMS_API, + FALSE, + RTEMS_NOT_CONFIGURED + ); return RTEMS_NOT_CONFIGURED; } @@ -55,6 +71,11 @@ rtems_status_code rtems_rate_monotonic_delete( Objects_Id id ) { + _Internal_error_Occurred( + INTERNAL_ERROR_RTEMS_API, + FALSE, + RTEMS_NOT_CONFIGURED + ); return RTEMS_NOT_CONFIGURED; } @@ -63,6 +84,11 @@ rtems_status_code rtems_rate_monotonic_period( rtems_interval length ) { + _Internal_error_Occurred( + INTERNAL_ERROR_RTEMS_API, + FALSE, + RTEMS_NOT_CONFIGURED + ); return RTEMS_NOT_CONFIGURED; } @@ -71,11 +97,21 @@ void _Rate_monotonic_Timeout( void *ignored ) { + _Internal_error_Occurred( + INTERNAL_ERROR_RTEMS_API, + FALSE, + RTEMS_NOT_CONFIGURED + ); } boolean _Rate_monotonic_Set_state( Rate_monotonic_Control *the_period ) { - return( FALSE ); + _Internal_error_Occurred( + INTERNAL_ERROR_RTEMS_API, + FALSE, + RTEMS_NOT_CONFIGURED + ); + return FALSE; } |