diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2011-05-18 05:08:36 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2011-05-18 05:08:36 +0000 |
commit | 37834667fd7e142f7a1bcfa46a9f51b873015623 (patch) | |
tree | 55f010a4749d5dee8acd2685f7589f5784eeed2d /c/src/lib/libbsp/shared/include/bootcard.h | |
parent | 2011-05-17 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-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.h | 17 |
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 |