This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] hp-timing for ppc32/64
On Tue, Nov 15, 2005 at 08:32:16AM +1100, Benjamin Herrenschmidt wrote:
>
> > On x86 they only implement hp-timing on i686 and newer based on the "Time
> > Stamp Counter" and the "read time-stamp counter" instruction. Since they
> > only have one "kind" of timebase they don't need to access dl_hwcap in
> > hp-timing. This is also true for alpha, ia64, sparc, X86_64 and powerpc64.
> > It would be true for ppc32 except for the 601 and 403 chips ...
>
> How do they know that they are running on i686 ?
If they weren't built for i686-linux, they disable hp-timing. Then
some distributions arrange for hwcaps to select a useful library in
this case (/lib/i686).
--
Daniel Jacobowitz
CodeSourcery, LLC