[U-Boot] [PATCH v2 17/19] dm: Kconfig: Move CONFIG_SYS_MALLOC_F_LEN to Kconfig

Alexey Brodkin Alexey.Brodkin at synopsys.com
Wed Feb 18 14:44:22 CET 2015


Hi Simon,

On Thu, 2015-02-05 at 21:41 -0700, Simon Glass wrote:
> +config SYS_MALLOC_F
> +	bool "Enable malloc() pool before relocation"
> +	default 0x400

I'm wondering if default value here should be of type "bool" but not a
hex value?

Probably this is just a copy paste from the following SYS_MALLOC_F_LEN?

> +	help
> +	  Before relocation memory is very limited on many platforms. Still,
> +	  we can provide a small malloc() pool if needed. Driver model in
> +	  particular needs this to operate, so that it can allocate the
> +	  initial serial device and any others that are needed.
> +
> +config SYS_MALLOC_F_LEN
> +	hex "Size of malloc() pool before relocation"
> +	depends on SYS_MALLOC_F
> +	default 0x400
> +	help
> +	  Before relocation memory is very limited on many platforms. Still,
> +	  we can provide a small malloc() pool if needed. Driver model in
> +	  particular needs this to operate, so that it can allocate the
> +	  initial serial device and any others that are needed.

-Alexey


More information about the U-Boot mailing list