Go to the documentation of this file.
7 #include "../../util/header.h"
9 #define __stringify_1(x) #x
10 #define __stringify(x) __stringify_1(x)
12 #define mfspr(rn) ({unsigned long rval; \
13 asm volatile("mfspr %0," __stringify(rn) \
14 : "=r" (rval)); rval; })
16 #define SPRN_PVR 0x11F
17 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF)
18 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF)