[U-Boot] [PATCH v2 5/8] README: add info about skip memset at malloc init

Simon Glass sjg at chromium.org
Wed Feb 18 05:32:14 CET 2015


Hi Przemyslaw,

On 16 February 2015 at 08:13, Przemyslaw Marczak <p.marczak at samsung.com> wrote:
> Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
> ---
>  README | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/README b/README
> index fefa71c..8673640 100644
> --- a/README
> +++ b/README
> @@ -3989,6 +3989,13 @@ Configuration Settings:
>  - CONFIG_SYS_MALLOC_LEN:
>                 Size of DRAM reserved for malloc() use.
>
> +- CONFIG_SYS_MALLOC_INIT_SKIP_ZEROING:
> +               Do not set to zero the reserved DRAM area when init malloc.
> +               For very big CONFIG_SYS_MALLOC_LEN(more than one MB), this will
> +               reduce the boot time.
> +               Before enabling this, please check if malloc calls, maybe
> +               should be replaced by calloc - if expects zeroed memory.
> +

I think if you put this in Kconfig you can put this help there.

>  - CONFIG_SYS_MALLOC_F_LEN
>                 Size of the malloc() pool for use before relocation. If
>                 this is defined, then a very simple malloc() implementation

(this one is in Kconfig now too)

Regards,
Simon


More information about the U-Boot mailing list