Port-powerpc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: spr register
manu%netbsd.org@localhost (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
Home |
Main Index |
Thread Index |
Old Index