diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2011-05-18 05:26:53 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2011-05-18 05:26:53 +0000 |
commit | 4f599ed99fc0aa37bc4d100cf787880c1e1bb97a (patch) | |
tree | 56fa22232321006e3aa761e38495a786d0f3632d /c/src/lib/libbsp/powerpc/mvme5500 | |
parent | 2011-05-16 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> (diff) | |
download | rtems-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/powerpc/mvme5500')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme5500/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme5500/configure.ac | 10 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h | 2 |
3 files changed, 16 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog b/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog index 7210ba77de..b728f48fc8 100644 --- a/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog +++ b/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog @@ -1,3 +1,9 @@ +2011-05-17 Till Straumann <strauman@slac.stanford.edu> + + PR1797/bsps + * configure.ac, include/bsp.h: Made + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK a bspopts.h setting. + 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> * include/bsp.h, include/tm27.h: diff --git a/c/src/lib/libbsp/powerpc/mvme5500/configure.ac b/c/src/lib/libbsp/powerpc/mvme5500/configure.ac index 61a55965b6..e12dba3d8c 100644 --- a/c/src/lib/libbsp/powerpc/mvme5500/configure.ac +++ b/c/src/lib/libbsp/powerpc/mvme5500/configure.ac @@ -31,6 +31,16 @@ RTEMS_BSPOPTS_HELP([PPC_USE_DATA_CACHE], of PowerPC 603e revisions and emulator versions. The BSP actually contains the call that enables this.]) +RTEMS_BSPOPTS_SET([CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK], [*], [1]) +RTEMS_BSPOPTS_HELP([CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK], +[If defined then the BSP may reduce the available memory size +initially. This can be useful for debugging (reduce the core +size) or dynamic loading (std gcc text offsets/jumps are < +/-32M). +Note that the policy can still be defined by the application +(see sbrk.c, BSP_sbrk_policy). By undefining +CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed +and a little memory is saved.]) + RTEMS_BSP_CLEANUP_OPTIONS(0, 0) # Explicitly list all Makefiles here diff --git a/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h b/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h index e8ed3b9ee7..a107a54f2a 100644 --- a/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h +++ b/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h @@ -116,8 +116,6 @@ DiscoveryChipVersion BSP_getDiscoveryChipVersion(); */ #define BSP_INTERRUPT_STACK_SIZE (16 * 1024) /* <skf> 2/09 wants it to be adjustable by BSP */ -#define CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK /* <skf> 4/09 see shared/startup/sbrk.c and rtems/confdefs.h */ - /* uart.c uses out_8 instead of outb */ #define BSP_UART_IOBASE_COM1 GT64x60_DEV1_BASE + 0x20000 #define BSP_UART_IOBASE_COM2 GT64x60_DEV1_BASE + 0x21000 |