Runtime Altivec detection
Benjamin Herrenschmidt
benh at kernel.crashing.org
Sat Mar 8 05:06:12 EST 2003
On Fri, 2003-03-07 at 19:55, Magnus Damm wrote:
> > There's a much better way. The kernel passes down CPU features
> > bits down to userland via ELF AUX tables.
>
> Any pointers where I can find information about that?
Well... I know how the kernel pass them down to glibc, but
I don't know how a userland app can retreive them :)
The actual bitmask is defined in kernel's include/asm/cputable.h,
there are 2 sets of feature bits, one for kernel internal usage
and one passed down to userland.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list