From: Wolfgang Denk Date: Tue, 21 Dec 2010 14:48:10 +0100 Subject: [U-Boot] [PATCH 2/2] microblaze: Fix bdiinfo pointer In-Reply-To: <4D10A473.2030202@monstr.eu> References: <1292933384-3032-1-git-send-email-monstr@monstr.eu> <1292933384-3032-2-git-send-email-monstr@monstr.eu> <1292933384-3032-3-git-send-email-monstr@monstr.eu> <20101221122635.17EC4126EB19@gemini.denx.de> <4D10A473.2030202@monstr.eu> Message-ID: <20101221134810.AE01B126EB19@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 Dear Michal Simek, In message <4D10A473.2030202@monstr.eu> you wrote: > > I would like to do it but it is not easy to use sizeof because there are > some dependencies in macros in common.h(lines 193-201) because I am > using CONFIG_SYS_GBL_DATA_OFFSET for monitor/malloc areas. > > The best will be to be able to generate this value in lib/asm-offsets.c > > Not sure if you are ok with it. Yes, this is OK. > diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c > index 2209561..36fc198 100644 > --- a/lib/asm-offsets.c > +++ b/lib/asm-offsets.c > @@ -24,6 +24,8 @@ int main(void) > /* Round up to make sure size gives nice stack alignment */ > DEFINE(GENERATED_GBL_DATA_SIZE, > (sizeof(struct global_data)+15) & ~15); > + DEFINE(GENERATED_BD_INFO_SIZE, > + (sizeof(struct bd_info)+15) & ~15); > > return 0; > } This patch is white-space corrupted, though. 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 Life. Don't talk to me about life. - Marvin the Paranoid Android