From 4f599ed99fc0aa37bc4d100cf787880c1e1bb97a Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Wed, 18 May 2011 05:26:53 +0000 Subject: 2011-05-18 Till Straumann 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. --- c/src/lib/libbsp/powerpc/beatnik/ChangeLog | 6 ++++++ c/src/lib/libbsp/powerpc/beatnik/configure.ac | 10 ++++++++++ c/src/lib/libbsp/powerpc/beatnik/include/bsp.h | 2 -- 3 files changed, 16 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/beatnik') diff --git a/c/src/lib/libbsp/powerpc/beatnik/ChangeLog b/c/src/lib/libbsp/powerpc/beatnik/ChangeLog index b70df8ac5d..b8ea072898 100644 --- a/c/src/lib/libbsp/powerpc/beatnik/ChangeLog +++ b/c/src/lib/libbsp/powerpc/beatnik/ChangeLog @@ -1,3 +1,9 @@ +2011-05-17 Till Straumann + + PR1797/bsps + * configure.ac, include/bsp.h: Made + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK a bspopts.h setting. + 2011-05-16 Till Straumann * include/bsp.h: define CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK diff --git a/c/src/lib/libbsp/powerpc/beatnik/configure.ac b/c/src/lib/libbsp/powerpc/beatnik/configure.ac index 883b5f404b..1f170a2020 100644 --- a/c/src/lib/libbsp/powerpc/beatnik/configure.ac +++ b/c/src/lib/libbsp/powerpc/beatnik/configure.ac @@ -32,6 +32,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.]) + # Explicitly list all Makefiles here AC_CONFIG_FILES([Makefile]) diff --git a/c/src/lib/libbsp/powerpc/beatnik/include/bsp.h b/c/src/lib/libbsp/powerpc/beatnik/include/bsp.h index 1da9582e2d..2bb44ed6bc 100644 --- a/c/src/lib/libbsp/powerpc/beatnik/include/bsp.h +++ b/c/src/lib/libbsp/powerpc/beatnik/include/bsp.h @@ -63,8 +63,6 @@ BSP_getDiscoveryVersion(int assertion); */ #define BSP_INTERRUPT_STACK_SIZE (16 * 1024) -#define CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK - /* * base address definitions for several devices */ -- cgit v1.2.3