[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
uname , Linux/Alpha
From: |
martin |
Subject: |
uname , Linux/Alpha |
Date: |
Wed, 10 Mar 2004 23:48:25 GMT |
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
// address@hidden, 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 <address@hidden>
Senior Systems Engineer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- uname , Linux/Alpha,
martin <=