HelenOS sources
TSTATE_PSTATE_SHIFT 49 kernel/arch/sparc64/include/arch/regdef.h #define TSTATE_PRIV_BIT (PSTATE_PRIV_BIT << TSTATE_PSTATE_SHIFT)
TSTATE_PSTATE_SHIFT 50 kernel/arch/sparc64/include/arch/regdef.h #define TSTATE_IE_BIT (PSTATE_IE_BIT << TSTATE_PSTATE_SHIFT)
TSTATE_PSTATE_SHIFT 51 kernel/arch/sparc64/include/arch/regdef.h #define TSTATE_PEF_BIT (PSTATE_PEF_BIT << TSTATE_PSTATE_SHIFT)
TSTATE_PSTATE_SHIFT 49 uspace/lib/c/arch/sparc64/include/libarch/regdef.h #define TSTATE_PRIV_BIT (PSTATE_PRIV_BIT << TSTATE_PSTATE_SHIFT)
TSTATE_PSTATE_SHIFT 50 uspace/lib/c/arch/sparc64/include/libarch/regdef.h #define TSTATE_IE_BIT (PSTATE_IE_BIT << TSTATE_PSTATE_SHIFT)
TSTATE_PSTATE_SHIFT 51 uspace/lib/c/arch/sparc64/include/libarch/regdef.h #define TSTATE_PEF_BIT (PSTATE_PEF_BIT << TSTATE_PSTATE_SHIFT)
HelenOS homepage, sources at GitHub