Subject: Re: spr register
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Klaus Klein <kleink@reziprozitaet.de>
List: port-powerpc
Date: 11/16/2002 15:31:52
manu@netbsd.org (Emmanuel Dreyfus) writes:

> In one special purpose register, there is the type of the CPU stored. I
> need it for COMPAT_MACH. Is there a place accessible in C where we store
> it? If not, what assembly would I need to get the value?

Assuming by "type" you mean the CPU model, that would be the Processor
Version Register (PVR), SPR 287.  There's no global in the kernel
providing it but you can retrieve its contents using the mfpvr() macro
from <powerpc/cpu.h>.


- Klaus