From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Kaehlcke Date: Sat, 6 Feb 2010 23:17:40 +0100 Subject: [U-Boot] [PATCH 2/3] edb93xx: change calculation un early_udelay.h In-Reply-To: References: Message-ID: <20100206221740.GB15617@darwin> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de El Sat, Feb 06, 2010 at 08:53:54PM +0100 Alessandro Rubini ha dit: > Previous code compiled with gcc-4.2.2 makes a call to > __aeabi_uidiv to divide by 20. As a side effect it was > not inline any more, and so sdram_cfg used the stack > as well, but this is early code that has no stack yet. > The patch explicitly removes the division, so no stack is used. > > The calculation of the counter calls a division by 20 > > Signed-off-by: Alessandro Rubini Acked-by: Matthias Kaehlcke -- Matthias Kaehlcke Embedded Linux Developer Barcelona We build too many walls and not enough bridges (Isaac Newton) .''`. using free software / Debian GNU/Linux | http://debian.org : :' : `. `'` gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `-