[U-Boot] [PATCH] Fix board init code to use a valid C runtime environment

Bin Meng bmeng.cn at gmail.com
Tue Nov 10 04:54:08 CET 2015


Hi Albert,

On Tue, Nov 10, 2015 at 8:20 AM, Albert ARIBAUD
<albert.u.boot at aribaud.net> wrote:
> board_init_f_mem() alters the C runtime environment's
> stack it ls actually already using. This is not a valid
> C runtime environment and may conflict with the C compiler's
> expectations.

What C compiler's expectations conflicts with current
board_init_f_mem()? Did you see any actual error on any board?

>
> Split board_init_f_mem into C functions which do not
> alter their own stack and therefore function in a valid C
> runtime environment.
>
> NOTE: this has not been tested with all architectures.
>
> Signed-off-by: Albert ARIBAUD <albert.u.boot at aribaud.net>
> ---

[snip]

Regards,
Bin


More information about the U-Boot mailing list