summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/include/bootcard.h
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2011-05-18 05:08:36 +0000
committerTill Straumann <strauman@slac.stanford.edu>2011-05-18 05:08:36 +0000
commit37834667fd7e142f7a1bcfa46a9f51b873015623 (patch)
tree55f010a4749d5dee8acd2685f7589f5784eeed2d /c/src/lib/libbsp/shared/include/bootcard.h
parent2011-05-17 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-37834667fd7e142f7a1bcfa46a9f51b873015623.tar.bz2
2011-05-18 Till Straumann <strauman@slac.stanford.edu>
PR1797/bsps: Applied cleaned-up version of Kate's patch. CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK is now a 'bspopts.h' setting and as such configurable.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/shared/include/bootcard.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/include/bootcard.h b/c/src/lib/libbsp/shared/include/bootcard.h
index 441eb1972f..74ad6eec61 100644
--- a/c/src/lib/libbsp/shared/include/bootcard.h
+++ b/c/src/lib/libbsp/shared/include/bootcard.h
@@ -89,6 +89,23 @@ void bsp_get_work_area(
);
/**
+ * @brief Gives the BSP a chance to reduce the work area size with sbrk() adding more later.
+ *
+ * bsp_sbrk_init() may reduce the work area size passed in. The routine
+ * returns the 'sbrk_amount' to be used when extending the heap.
+ * Note that the return value may be zero.
+ *
+ */
+
+#ifdef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
+uintptr_t bsp_sbrk_init(
+ void *work_area_begin,
+ uintptr_t *work_area_size_p
+);
+#endif
+
+
+/**
* @brief Standard system initialization procedure.
*
* You may pass a command line in @a cmdline. It is later available via the