k***@yahoo.com
2005-07-05 21:04:22 UTC
Hi all,
I can think of a few reasons why user-level code is not allowed to
access the OEA SPRs on PowerPCs. Still, I am in a bind so any help
appreciated (even knowing it can or cannot be done will be a help).
I want to write a C program running in Linux userspace to read some
SPRs on a PowerPC (IBM PPC970 to be exact). Starting with MSR, of
course. How do I do it?
syscall? if yes, which one?
I assume the privilege level has nothing to do with being the user
'root'?
I can think of a few reasons why user-level code is not allowed to
access the OEA SPRs on PowerPCs. Still, I am in a bind so any help
appreciated (even knowing it can or cannot be done will be a help).
I want to write a C program running in Linux userspace to read some
SPRs on a PowerPC (IBM PPC970 to be exact). Starting with MSR, of
course. How do I do it?
syscall? if yes, which one?
I assume the privilege level has nothing to do with being the user
'root'?