Re: [U-Boot] [PATCH] ARM: Use do_div() instead of division for "long long".

2008-11-02 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:00 Wed 22 Oct , Wolfgang Denk wrote: > From: Sergei Poselenov <[EMAIL PROTECTED]> > > Also make sure to feed the right compiler options. > > Signed-off-by: Sergei Poselenov <[EMAIL PROTECTED]> > Signed-off-by: Wolfgang Denk <[EMAIL PROTECTED]> > --- > These changes are needed with some

Re: [U-Boot] [PATCH] ARM: Use do_div() instead of division for "long long".

2008-10-24 Thread Wolfgang Denk
Dear Jean-Christophe PLAGNIOL-VILLARD, In message <[EMAIL PROTECTED]> you wrote: > ... > CFG_HZ was renamed CONFIG_SYS_HZ ... > I've start to think to re-rename it CFG_HZ as done in Linux, normaly this > value is the same for all arch & board Mind that there is a slight difference in meanin

Re: [U-Boot] [PATCH] ARM: Use do_div() instead of division for "long long".

2008-10-24 Thread Jean-Christophe PLAGNIOL-VILLARD
> #include > #include > +#include > > static ulong timer_load_val; > > @@ -148,7 +149,9 @@ void reset_timer(void) > > ulong get_timer_masked(void) > { > - return get_ticks() / (timer_load_val / (100 * CFG_HZ)); > + unsigned long long res = get_ticks(); > + do_div (res, (ti

[U-Boot] [PATCH] ARM: Use do_div() instead of division for "long long".

2008-10-22 Thread Wolfgang Denk
From: Sergei Poselenov <[EMAIL PROTECTED]> Also make sure to feed the right compiler options. Signed-off-by: Sergei Poselenov <[EMAIL PROTECTED]> Signed-off-by: Wolfgang Denk <[EMAIL PROTECTED]> --- These changes are needed with some more recent tool chain versions (including ELDK 4.2). board/i

Re: [U-Boot] [PATCH] ARM: Use do_div() instead of division for "long long"

2008-09-08 Thread Jean-Christophe PLAGNIOL-VILLARD
On 05:34 Tue 09 Sep , Gururaja Hebbar K R wrote: > Hmm, > > Interestingly i had sent a patch for the same for both > integrator[ap/cp]. > http://article.gmane.org/gmane.comp.boot-loaders.u-boot/46044. > mail tag as SPAM in my mail box as a lot of your mail. I'll take a look why. Best Reg

Re: [U-Boot] [PATCH] ARM: Use do_div() instead of division for "long long"

2008-09-08 Thread Gururaja Hebbar K R
Hmm, Interestingly i had sent a patch for the same for both integrator[ap/cp]. http://article.gmane.org/gmane.comp.boot-loaders.u-boot/46044. i had sent it to Jean-Christophe PLAGNIOL-VILLARD & Peter Pearse & also to U-Boot user list. Don't know y it didn't reach there. Regards Gururaja ___

[U-Boot] [PATCH] ARM: Use do_div() instead of division for "long long".

2008-09-08 Thread Wolfgang Denk
From: Sergei Poselenov <[EMAIL PROTECTED]> Signed-off-by: Sergei Poselenov <[EMAIL PROTECTED]> Signed-off-by: Wolfgang Denk <[EMAIL PROTECTED]> --- With some (more recent) compiler versions there are problems because of the use of "long long" divisions in the U-Boot code. For ARM, this requires t