diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h index 94ec9e12b34b..fbbb50158372 100644 --- a/sys/powerpc/include/cpufunc.h +++ b/sys/powerpc/include/cpufunc.h @@ -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) {