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

Simon Glass sjg at chromium.org
Thu Feb 19 15:06:25 CET 2015


Hi Alexey,

On 18 February 2015 at 06:44, Alexey Brodkin
<Alexey.Brodkin at synopsys.com> wrote:
> 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?
>

Thanks. I found another problem also but may have a solution now so
will see a few patches,

>> +     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

Regards,
Simon


More information about the U-Boot mailing list