[U-Boot] [U-BOOT] [PATCH] env: reduce the stack footprint for the env buf

Scott Wood scottwood at freescale.com
Fri Feb 4 21:31:22 CET 2011


On Fri, 4 Feb 2011 11:08:23 +0800
Lei Wen <leiwen at marvell.com> wrote:

> Original env buf directly locate at stack lead large stack footprint
> when call those env functions. It is not good when the system memory
> is critical or only want the uboot run at restrict range, that is not
> to touch the memory of other place at its best.
> 
> So now this patch move the env buf to the heap area, which reduce the
> area uboot need to touch.
> 
> Signed-off-by: Lei Wen <leiwen at marvell.com>
> ---
>  common/env_dataflash.c |    8 +++++++-
>  common/env_eeprom.c    |    8 +++++++-
>  common/env_mgdisk.c    |   10 +++++++++-
>  common/env_mmc.c       |    9 ++++++++-
>  common/env_nand.c      |   10 +++++++++-
>  common/env_nvram.c     |    9 ++++++++-
>  common/env_sf.c        |    9 ++++++++-
>  7 files changed, 56 insertions(+), 7 deletions(-)

NAND bits are Acked-by: Scott Wood <scottwood at freescale.com>

-Scott



More information about the U-Boot mailing list