summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/include
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2011-05-18 05:26:53 +0000
committerTill Straumann <strauman@slac.stanford.edu>2011-05-18 05:26:53 +0000
commit4f599ed99fc0aa37bc4d100cf787880c1e1bb97a (patch)
tree56fa22232321006e3aa761e38495a786d0f3632d /c/src/lib/libbsp/shared/include
parent2011-05-16 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> (diff)
downloadrtems-4f599ed99fc0aa37bc4d100cf787880c1e1bb97a.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 'c/src/lib/libbsp/shared/include')
-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