summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/wkspace.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-09 22:35:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-09 22:35:10 +0000
commit5b33dc8076ed5afe512114ed45536cc85708c7de (patch)
tree0a774de76db7ba598aa21f3fb5775d9a84ad5b49 /cpukit/score/src/wkspace.c
parent2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-5b33dc8076ed5afe512114ed45536cc85708c7de.tar.bz2
2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/wkspace.h, score/inline/rtems/score/wkspace.inl, score/src/wkspace.c: Do not inline _Workspace_Free or _Workspace_Allocate since they are not always inlined and actually smaller overall as subroutines. They are not particularly time critical so inlining is not absolutely necessary.
Diffstat (limited to 'cpukit/score/src/wkspace.c')
-rw-r--r--cpukit/score/src/wkspace.c29
1 files changed, 22 insertions, 7 deletions
diff --git a/cpukit/score/src/wkspace.c b/cpukit/score/src/wkspace.c
index 953981c477..b02e8f7b64 100644
--- a/cpukit/score/src/wkspace.c
+++ b/cpukit/score/src/wkspace.c
@@ -22,11 +22,9 @@
#include <string.h> /* for memset */
-/*PAGE
- *
+/*
* _Workspace_Handler_initialization
*/
-
void _Workspace_Handler_initialization(
void *starting_address,
size_t size
@@ -59,12 +57,29 @@ void _Workspace_Handler_initialization(
);
}
-/*PAGE
- *
- * _Workspace_Allocate_or_fatal_error
- *
+/*
+ * _Workspace_Allocate
*/
+void *_Workspace_Allocate(
+ size_t size
+)
+{
+ return _Heap_Allocate( &_Workspace_Area, size );
+}
+/*
+ * _Workspace_Allocate
+ */
+boolean _Workspace_Free(
+ void *block
+)
+{
+ return _Heap_Free( &_Workspace_Area, block );
+}
+
+/*
+ * _Workspace_Allocate_or_fatal_error
+ */
void *_Workspace_Allocate_or_fatal_error(
size_t size
)