[U-Boot] [PATCH] S5P: timer: replace bss variable by gd

Wolfgang Denk wd at denx.de
Mon Jan 17 22:46:20 CET 2011


Dear Minkyu Kang,

In message <AANLkTikoZFrd9SYLg4v3AoqRFEd9bM0jpQQOi+Qzy6eg at mail.gmail.com> you wrote:
> 
> > I object against using variables wich have somewhat self-explanatory
> > names for different purposes.
> 
> Yes, I know.
> If so, do I have to add new variables at global_data?
> Maybe that is not good way too.
> How you think?

I asked this several times before: ther eis currently ongoing efforts
for aunified clock handling for ARM in the Linux kernel.  Maybe we can
benefit from this in any way?

> One more question,
> what is the purpose of tbl and tbu?

tbl (time base, lower part) and tbu (time base, upper part) are the
software representation of two 32 bit hardware registers available in
Power Architecture systems, where they form a free-runnign 64 bit
counter that starts automatically as soon as the CPU comes out of
reeset.

There have been attempts to re-write the (sometimes somewhat obscure)
timer implementations on ARM based on such a model.

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
Intel told us the Pentium would have "RISK" features...


More information about the U-Boot mailing list