summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/heap.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-07 16:50:13 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-09 15:30:25 +0200
commit6cf45cbeef58697af3349299f3fd717133eae5ed (patch)
tree3a33bf77880608b1513c6c1e6e97405125f98b74 /cpukit/score/src/heap.c
parentsptests/sp37: Account for internal struct align (diff)
downloadrtems-6cf45cbeef58697af3349299f3fd717133eae5ed.tar.bz2
score: Fix workspace size estimate for TLS
Diffstat (limited to 'cpukit/score/src/heap.c')
-rw-r--r--cpukit/score/src/heap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/heap.c b/cpukit/score/src/heap.c
index 949e963070..1550c4ce1c 100644
--- a/cpukit/score/src/heap.c
+++ b/cpukit/score/src/heap.c
@@ -228,7 +228,8 @@ uintptr_t _Heap_Initialize(
return 0;
}
}
- min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size );
+
+ min_block_size = _Heap_Min_block_size( page_size );
area_ok = _Heap_Get_first_and_last_block(
heap_area_begin,