From: Wolfgang Denk Date: Wed, 09 Sep 2009 17:30:17 +0200 Subject: [U-Boot] [PATCH] TI: OMAP3: Remove SZ_xx references In-Reply-To: <1252508154-28322-1-git-send-email-s-paulraj@ti.com> References: <1252508154-28322-1-git-send-email-s-paulraj@ti.com> Message-ID: <20090909153017.51228832E8DE@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 s-paulraj at ti.com, In message <1252508154-28322-1-git-send-email-s-paulraj@ti.com> you wrote: > From: Sandeep Paulraj > > This patch removes dependency on the sizes.h header file > and removes all references to SZ_xx. ... > --- a/cpu/arm_cortexa8/omap3/mem.c > +++ b/cpu/arm_cortexa8/omap3/mem.c > @@ -92,7 +92,7 @@ void make_cs1_contiguous(void) > u32 size, a_add_low, a_add_high; > > size = get_sdr_cs_size(CS0); > - size /= SZ_32M; /* find size to offset CS1 */ > + size /= (32 << 20); /* find size to offset CS1 */ I have to admit that I don;t understand what you are doing here. But you can go one step further and write this as: size >>= 25; (whic does not make it any easier to unerstand, though). ... > #ifdef CONFIG_USE_IRQ > -#define CONFIG_STACKSIZE_IRQ SZ_4K /* IRQ stack */ > -#define CONFIG_STACKSIZE_FIQ SZ_4K /* FIQ stack */ > +#define CONFIG_STACKSIZE_IRQ (128 << 10) /* IRQ stack 4 KiB */ > +#define CONFIG_STACKSIZE_FIQ (128 << 10) /* FIQ stack 4 KiB */ This looks like a copy & paste error to me? At least, the comment and the code don't match. Please fix. 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@denx.de Genitiv ins Wasser, weil's Dativ ist!