This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Alpha hwcaps
- From: Richard Henderson <rth at twiddle dot net>
- To: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- Cc: Andreas Schwab <schwab at suse dot de>, libc-alpha at sources dot redhat dot com
- Date: Tue, 2 Mar 2004 15:10:19 -0800
- Subject: Re: [PATCH] Alpha hwcaps
- References: <87wu6661i0.fsf@student.uni-tuebingen.de> <m37jy6wbvy.fsf@gromit.moeb> <871xoejg35.fsf@student.uni-tuebingen.de> <jek726t34s.fsf@sykes.suse.de> <87ishp7q1r.fsf@student.uni-tuebingen.de> <jeoerhn29q.fsf@sykes.suse.de> <87ad314q8f.fsf@student.uni-tuebingen.de>
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.
If you want to match ev68 or ev7 (can't see why off hand), then
the proper place to fix is in the kernel.
r~