Hi,

I have an enhancement on Linux/Alpha (processor) for
the sh util "uname":

    186: #else
new 187: #if defined(__alpha__)
new 188:  long long int implver;
new 189:  asm ("implver %r0;"  : "=r"(implver));
new 190:  sprintf(processor, "EV%1.1d", implver + 4);
new 191: #else
    192:   strcpy (processor, "unknown");
new 193: #endif
    194: #endif

On the alpha platform you will get the cpu identification returned
on a "uname -p".

On my XLT it returns:

> alps:/usr/src/sh-utils-2.0 # uname -p
> EV5
> alps:/usr/src/sh-utils-2.0 #

This enhancement is based on:

/*
//  ALPHA_IMPLVER_AMASK_FEATURES.C V1.1
//  Retrieve the Alpha microprocessor family and features
//
//  Author: Steve Hoffman, Digital Equipment Corporation
//  [EMAIL PROTECTED], 3-Feb-1997.
//
//  See the Alpha Architecture Reference Manual for the current
//  microprocessor family codes, as well as the instruction set
//  extension definition codes.
*/

I hope you can include this enhancement in the standard
distribution.

With best Regards,

Martin Brulisauer <[EMAIL PROTECTED]>
Senior Systems Engineer




_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to