From 4508a5adc1fea5b19c22fb856ccaf890a42b5807 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 24 Jul 2013 15:24:51 +0200 Subject: score: Move _Heap_Area_overhead() definition. This function is used in bootcard.h. --- cpukit/score/include/rtems/score/heapimpl.h | 30 ----------------------------- 1 file changed, 30 deletions(-) (limited to 'cpukit/score/include/rtems/score/heapimpl.h') 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. -- cgit v1.2.3