summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/heap.h
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/include/rtems/score/heap.h
parentsptests/sp37: Account for internal struct align (diff)
downloadrtems-6cf45cbeef58697af3349299f3fd717133eae5ed.tar.bz2
score: Fix workspace size estimate for TLS
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/heap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h
index 1ca840d4a0..0120a2bb14 100644
--- a/cpukit/score/include/rtems/score/heap.h
+++ b/cpukit/score/include/rtems/score/heap.h
@@ -449,6 +449,11 @@ RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
}
}
+RTEMS_INLINE_ROUTINE uintptr_t _Heap_Min_block_size( uintptr_t page_size )
+{
+ return _Heap_Align_up( sizeof( Heap_Block ), page_size );
+}
+
/**
* @brief Returns the worst case overhead to manage a memory area.
*/