summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/heap.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-05 21:18:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-05 21:18:29 +0000
commit88157a76de80e6182db7fb24baa374b7cfcdc960 (patch)
tree7bf1ee8d83b96092bc2531a5fa3e9e349f730432 /cpukit/score/include/rtems/score/heap.h
parent2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-88157a76de80e6182db7fb24baa374b7cfcdc960.tar.bz2
2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am, rtems/Makefile.am, rtems/preinstall.am, sapi/Makefile.am, sapi/preinstall.am, score/Makefile.am, score/preinstall.am, score/include/rtems/score/heap.h, score/inline/rtems/score/heap.inl: Remove inline version now that it is in a C file. * libcsupport/src/end_profile.c: New file.
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/heap.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h
index 30d1bd6846..240cf0cd42 100644
--- a/cpukit/score/include/rtems/score/heap.h
+++ b/cpukit/score/include/rtems/score/heap.h
@@ -449,7 +449,7 @@ void _Heap_Get_free_information(
*
* @return This method returns block size on success, 0 if overflow occured.
*/
-extern size_t _Heap_Calc_block_size(
+size_t _Heap_Calc_block_size(
size_t size,
uint32_t page_size,
uint32_t min_size
@@ -471,12 +471,25 @@ extern size_t _Heap_Calc_block_size(
*
* @return This methods returns the size of the allocated block.
*/
-extern uint32_t _Heap_Block_allocate(
+uint32_t _Heap_Block_allocate(
Heap_Control* the_heap,
Heap_Block* the_block,
uint32_t alloc_size
);
+/**
+ * Align @a *value up to the nearest multiple of @a alignment.
+ *
+ * @param[in] value is a pointer to be aligned.
+ * @param[in] alignment is the alignment value.
+ *
+ * @return Upon return, @a value will contain the aligned result.
+ */
+void _Heap_Align_up_uptr (
+ _H_uptr_t *value,
+ uint32_t alignment
+);
+
/*
* Debug support
*/