summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/rtems_memalign.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/rtems_memalign.c')
-rw-r--r--cpukit/libcsupport/src/rtems_memalign.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/cpukit/libcsupport/src/rtems_memalign.c b/cpukit/libcsupport/src/rtems_memalign.c
index 5755fa0b3c..8e3363ebf3 100644
--- a/cpukit/libcsupport/src/rtems_memalign.c
+++ b/cpukit/libcsupport/src/rtems_memalign.c
@@ -41,24 +41,9 @@ int rtems_memalign(
*pointer = NULL;
/*
- * Do not attempt to allocate memory if not in correct system state.
- */
- if ( !malloc_is_system_state_OK() )
- return EINVAL;
-
- /*
- * If some free's have been deferred, then do them now.
- */
- malloc_deferred_frees_process();
-
- /*
* Perform the aligned allocation requested
*/
- return_this = _Protected_heap_Allocate_aligned(
- RTEMS_Malloc_Heap,
- size,
- alignment
- );
+ return_this = rtems_heap_allocate_aligned_with_boundary( size, alignment, 0 );
if ( !return_this )
return ENOMEM;