This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Alpha hwcaps


Richard Henderson <rth@twiddle.net> writes:

> Why are you doing this?  2.4.late and 2.6 will set AT_PLATFORM to
> 
> #define ELF_PLATFORM                            \
> ({                                              \
>         enum implver_enum i_ = implver();       \
>         ( i_ == IMPLVER_EV4 ? "ev4"             \
>         : i_ == IMPLVER_EV5                     \
>           ? (amask(AMASK_BWX) ? "ev5" : "ev56") \
>         : amask (AMASK_CIX) ? "ev6" : "ev67");  \
> })
> 
> Which will do exactly what you want without any additional help.

Hm, I thought that was only in 2.6, and not a lot of people are using
2.6 already, also it seemed easy to check within glibc. If it is in
2.4, too, I don't mind using ELF_PLATFORM. OTOH, I will then have to
use strcmp to find the correct strlenpair table entry, so it won't
really be much easier.

> If you want to match ev68 or ev7 (can't see why off hand), then the
> proper place to fix is in the kernel.

Those don't seem very important, but pca56 would be nice.

-- 
	Falk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]