summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/heap.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-25 17:49:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-25 17:49:32 +0000
commite89faf3ef4fcf6e5f090fb5d7061a56ddb76292a (patch)
tree37d7adfcfcceed9610bebf95b9d8dfc50a465f4f /cpukit/score/src/heap.c
parent2009-09-25 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-e89faf3ef4fcf6e5f090fb5d7061a56ddb76292a.tar.bz2
2009-09-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* score/src/heap.c, score/include/rtems/score/heap.h: Reduced alignment requirement for CPU_ALIGNMENT from four to two.
Diffstat (limited to 'cpukit/score/src/heap.c')
-rw-r--r--cpukit/score/src/heap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/score/src/heap.c b/cpukit/score/src/heap.c
index b12bdd8fab..c851334679 100644
--- a/cpukit/score/src/heap.c
+++ b/cpukit/score/src/heap.c
@@ -26,7 +26,7 @@
#include <rtems/system.h>
#include <rtems/score/heap.h>
-#if CPU_ALIGNMENT == 0 || CPU_ALIGNMENT % 4 != 0
+#if CPU_ALIGNMENT == 0 || CPU_ALIGNMENT % 2 != 0
#error "invalid CPU_ALIGNMENT value"
#endif
@@ -213,7 +213,6 @@ uintptr_t _Heap_Initialize(
stats->resizes = 0;
stats->instance = instance++;
- _HAssert( _Heap_Is_aligned( CPU_ALIGNMENT, 4 ) );
_HAssert( _Heap_Is_aligned( heap->page_size, CPU_ALIGNMENT ) );
_HAssert( _Heap_Is_aligned( heap->min_block_size, page_size ) );
_HAssert(