[U-Boot] [PATCH 3/3 v2] Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value
Wolfgang Denk
wd at denx.de
Tue Oct 26 21:05:21 CEST 2010
In message <1288104730-25651-1-git-send-email-wd at denx.de> you wrote:
> CONFIG_SYS_GBL_DATA_SIZE has always been just a bad workarond for not
> being able to use "sizeof(struct global_data)" in assembler files.
> Recent experience has shown that manual synchronization is not
> reliable enough. This patch renames CONFIG_SYS_GBL_DATA_SIZE into
> GENERATED_GBL_DATA_SIZE which gets automatically generated by the
> asm-offsets tool. In the result, all definitions of this value can be
> deleted from the board config files. We have to make sure that all
> files that reference such data include the new <asm-offsets.h> file.
>
> No other changes have been done yet, but it is obvious that similar
> changes / simplifications can be done for other, related macro
> definitions as well.
>
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
> v2: round global data size up to a multiple of 16 to guarantee
> sufficient alignment of the initial stack.
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Is a computer language with goto's totally Wirth-less?
More information about the U-Boot
mailing list