Add an inline function wrapper for the mfpvf (Move From Processor Version
Register) instruction.
This commit is contained in:
parent
c31c26450b
commit
43e87179f8
@ -101,6 +101,16 @@ mfdec(void)
|
||||
return (value);
|
||||
}
|
||||
|
||||
static __inline register_t
|
||||
mfpvr(void)
|
||||
{
|
||||
register_t value;
|
||||
|
||||
__asm __volatile ("mfpvr %0" : "=r"(value));
|
||||
|
||||
return (value);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
eieio(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user