HP3000-L Archives

September 1997, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Sieler <[log in to unmask]>
Reply To:
Stan Sieler <[log in to unmask]>
Date:
Fri, 5 Sep 1997 11:50:25 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
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

ATOM RSS1 RSS2