summaryrefslogtreecommitdiffstats
path: root/c/src/exec/rtems/optman/no-region.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-04-19 21:09:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-04-19 21:09:20 +0000
commit3b76313da986859d9133bfab342009336ac17aff (patch)
treec3f38c3e94b7dadcceceb3f4ce2cecea6de7c1ad /c/src/exec/rtems/optman/no-region.c
parentchanges to compile in macro configuration without warnings. (diff)
downloadrtems-3b76313da986859d9133bfab342009336ac17aff.tar.bz2
modified to generate fatal error when an unconfigured directive is invoked.
Diffstat (limited to 'c/src/exec/rtems/optman/no-region.c')
-rw-r--r--c/src/exec/rtems/optman/no-region.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/c/src/exec/rtems/optman/no-region.c b/c/src/exec/rtems/optman/no-region.c
index 96e815c62e..6a779fb785 100644
--- a/c/src/exec/rtems/optman/no-region.c
+++ b/c/src/exec/rtems/optman/no-region.c
@@ -20,6 +20,7 @@
#include <rtems/rtems/region.h>
#include <rtems/score/states.h>
#include <rtems/score/thread.h>
+#include <rtems/score/interr.h>
void _Region_Manager_initialization(
unsigned32 maximum_regions
@@ -36,6 +37,11 @@ rtems_status_code rtems_region_create(
Objects_Id *id
)
{
+ _Internal_error_Occurred(
+ INTERNAL_ERROR_RTEMS_API,
+ FALSE,
+ RTEMS_NOT_CONFIGURED
+ );
return RTEMS_NOT_CONFIGURED;
}
@@ -44,6 +50,11 @@ rtems_status_code rtems_region_ident(
Objects_Id *id
)
{
+ _Internal_error_Occurred(
+ INTERNAL_ERROR_RTEMS_API,
+ FALSE,
+ RTEMS_NOT_CONFIGURED
+ );
return RTEMS_NOT_CONFIGURED;
}
@@ -51,6 +62,11 @@ rtems_status_code rtems_region_delete(
Objects_Id id
)
{
+ _Internal_error_Occurred(
+ INTERNAL_ERROR_RTEMS_API,
+ FALSE,
+ RTEMS_NOT_CONFIGURED
+ );
return RTEMS_NOT_CONFIGURED;
}
@@ -62,6 +78,11 @@ rtems_status_code rtems_region_get_segment(
void **segment
)
{
+ _Internal_error_Occurred(
+ INTERNAL_ERROR_RTEMS_API,
+ FALSE,
+ RTEMS_NOT_CONFIGURED
+ );
return RTEMS_NOT_CONFIGURED;
}
@@ -71,6 +92,11 @@ rtems_status_code rtems_region_get_segment_size(
unsigned32 *size
)
{
+ _Internal_error_Occurred(
+ INTERNAL_ERROR_RTEMS_API,
+ FALSE,
+ RTEMS_NOT_CONFIGURED
+ );
return RTEMS_NOT_CONFIGURED;
}
@@ -79,5 +105,10 @@ rtems_status_code rtems_region_return_segment(
void *segment
)
{
+ _Internal_error_Occurred(
+ INTERNAL_ERROR_RTEMS_API,
+ FALSE,
+ RTEMS_NOT_CONFIGURED
+ );
return RTEMS_NOT_CONFIGURED;
}