From: Wolfgang Denk Date: Tue, 26 Oct 2010 21:05:21 +0200 Subject: [U-Boot] [PATCH 3/3 v2] Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value In-Reply-To: <1288104730-25651-1-git-send-email-wd@denx.de> References: <1288101601-24871-4-git-send-email-wd@denx.de> <1288104730-25651-1-git-send-email-wd@denx.de> Message-ID: <20101026190521.C4DB41365D8@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1288104730-25651-1-git-send-email-wd@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 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 > --- > 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?