[PATCH] Alpha hwcaps

Richard Henderson rth@twiddle.net
Tue Mar 2 23:10:00 GMT 2004


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~



More information about the Libc-alpha mailing list