diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-24 15:24:51 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-24 15:33:28 +0200 |
commit | 4508a5adc1fea5b19c22fb856ccaf890a42b5807 (patch) | |
tree | 3e36b8f7983f5e94509360a01323c2275d323201 /cpukit/score/include/rtems/score/heapimpl.h | |
parent | score: Include <rtems/score/cpu.h> (diff) | |
download | rtems-4508a5adc1fea5b19c22fb856ccaf890a42b5807.tar.bz2 |
score: Move _Heap_Area_overhead() definition.
This function is used in bootcard.h.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/heapimpl.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/cpukit/score/include/rtems/score/heapimpl.h b/cpukit/score/include/rtems/score/heapimpl.h index 27c3a2334a..9c28ffecef 100644 --- a/cpukit/score/include/rtems/score/heapimpl.h +++ b/cpukit/score/include/rtems/score/heapimpl.h @@ -284,36 +284,6 @@ Heap_Resize_status _Heap_Resize_block( uintptr_t *new_size ); -RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( - uintptr_t value, - uintptr_t alignment -) -{ - uintptr_t remainder = value % alignment; - - if ( remainder != 0 ) { - return value - remainder + alignment; - } else { - return value; - } -} - -/** - * @brief Returns the worst case overhead to manage a memory area. - */ -RTEMS_INLINE_ROUTINE uintptr_t _Heap_Area_overhead( - uintptr_t page_size -) -{ - if ( page_size != 0 ) { - page_size = _Heap_Align_up( page_size, CPU_ALIGNMENT ); - } else { - page_size = CPU_ALIGNMENT; - } - - return 2 * (page_size - 1) + HEAP_BLOCK_HEADER_SIZE; -} - /** * @brief Allocates the memory area starting at @a alloc_begin of size * @a alloc_size bytes in the block @a block. |