[U-Boot-Users] [PATCH 3/3][MIPS] lib_mips/time.c: Fix improper use of CFG_HZ and timer routines

Wolfgang Denk wd at denx.de
Sun May 25 10:15:01 CEST 2008


In message <4838C92D.7020700 at ruby.dti.ne.jp> you wrote:
> Wolfgang Denk wrote:
> > Be careful - keep in mind that variables in the data segment will  be
> > read-only  before  relocation  to  RAM,  and variables in BSS will be
> > uninitialized *and* get overwritten  with  zero  when  the  BSS  gets
> > initialized.
> 
> Sure. We'll probably need to move timer_init to board_init_r at the end.

I'm not sure if this works. We use udelay() and friends all over the
place - a long time before that.

The timer implementation should have no such restrictions as being
available only after relocation. Timers / delays are such a basic
feature that they should be available everywhere.

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
>  Is there a way to determine Yesterday's date using Unix utilities?
         echo "what is yesterday's date?" | /bin/mail root
         -- Randal L. Schwartz in <ukbuh2y982.fsf at julie.teleport.com>




More information about the U-Boot mailing list