[PATCH] hp-timing for ppc32/64
Benjamin Herrenschmidt
benh@kernel.crashing.org
Mon Nov 14 21:32:00 GMT 2005
> 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 ?
> The whole idea of hp-timing is that is fast, simple, and inline code. It
> is not a general purpose clock. It must also work in the restricted
> environment of the dynamic loader itself, like before and the durring the
> time the loader is relocating its self!
AT_HWCAP is available at all time since it's passed by the kernel
Ben.
More information about the Libc-alpha
mailing list