Re: [U-Boot] [PATCH 2/3] edb93xx: change calculation un early_udelay.h

2010-02-06 Thread Matthias Kaehlcke
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

[U-Boot] [PATCH 2/3] edb93xx: change calculation un early_udelay.h

2010-02-06 Thread Alessandro Rubini
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 o