Subject: | |
From: | |
Reply To: | |
Date: | Fri, 5 Sep 1997 11:50:25 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Mark asks:
>
> I'm messing around with the portion of the xntp autoconfigure process that
> determines the system architecture.
>
> Is there any POSIX or MPE command that will display the HPPA version number
> for my machine?
Which one? The CPU's HVERSION, CPU's SVERSION, or the HVERSION/SVERSION of
some other card, or the PA-RISC architecture level (1.0, 1.1, 2.0, etc.), or
the "chip version" (PA-RISC 7100, PA-RISC 7200, etc.), or ... ?
In general, the primary things I can think would be of interest to most
code on a 3000 are:
1) does the machine have a floating point coprocessor? (see the CCR
register, or Pascal/iX code below)
If CCR >= $c0, then you have a floating point coprocessor.
2) how many CPUs are configured? (AIFSCGET item 3061)
3) how much memory is available? (AIFSCGET item 3039)
Sample code to get the CCR (Coprocessor Configuration Register):
$standard_level 'os_features'$
program m (output);
var
i : integer;
Procedure getprivmode; intrinsic;
Function get_control_reg (crnum : integer) : integer;
external;
begin
getprivmode;
i := get_control_reg (10);
writeln (i);
end.
--
Stan Sieler [log in to unmask]
http://www.allegro.com/sieler.html
|
|
|