This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] hp-timing for ppc32/64
- From: Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- To: Steve Munroe <sjmunroe at us dot ibm dot com>
- Cc: libc-alpha at sources dot redhat dot com, Tom Gall <tom_gall at vnet dot ibm dot com>
- Date: Tue, 15 Nov 2005 09:18:34 +1100
- Subject: Re: [PATCH] hp-timing for ppc32/64
- References: <OF3308F61F.2ECB1EE1-ON862570B9.00780B7B-862570B9.007A117E@us.ibm.com>
> AT_HWCAP is but dl_hwcap is not. The loader has to complete relocating
> itself before it can call the functions the set up dl_hwcap etc
> (dl_sysdep_start). Looking at the code it seems the HP_TIMING_NOW() is
> being used very early in rtld.c (dl_start and dl_start_final), as far as I
> can tell dl_hwcap is not available until the middle of dl_start_final(),
> well after HP_TIMING needs to be functional.
Can't you just parse the AT_ table yourself then ?
Ben.