Cpu ID under UNIX

Paul Jensen jensen at muscat.UUCP
Thu Nov 14 11:01:13 AEST 1985


If you want to access the VAX SID register in order to generate a unique
per CPU number, it will not work.  The format of the VAX SID register is

            31        23     14      11           0
           +---------+------+-------+--------------+
           |  type=1 | ECO  | plant | serial #     |  for a 780
           +---------+------+-------+--------------+

            31        23        15        7       0
           +---------+---------+---------+---------+
           |  type   |    0    | uc rev  | hdw rev |  for most other VAXes
           +---------+---------+---------+---------+

Even for the 780, there are only 4096 unique serial numbers per plant,
and I suspect this has rolled over many times.  As for getting the
number itself, you need to be in kernel mode to execute the MFPR
instruction: this is a relatively straightforward kernel hack.

If your main interest is generating a unique number, you might
instead try reading the physical ethernet address of your DEUNA
(assuming you have one).  Be forewarned, that even a unique number
will not protect proprietary software against the clever (& privileged)
end-user.

Regards,


					/Paul Jensen


-- 
# remove this line - this signature is appended to any news you post #
					My Name
					DEC Western Region Operations
					decwrl!muscat!username
					decwrl!dec-rhea!dec-wer521!username
					WER521::USERNAME



More information about the Comp.unix.wizards mailing list