Rev 3743 | Rev 3862 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3743 | Rev 3798 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | 35 | ||
36 | #ifndef KERN_sparc64_sun4v_REGDEF_H_ |
36 | #ifndef KERN_sparc64_sun4v_REGDEF_H_ |
37 | #define KERN_sparc64_sun4v_REGDEF_H_ |
37 | #define KERN_sparc64_sun4v_REGDEF_H_ |
38 | 38 | ||
39 | #define PSTATE_PRIV_BIT (1 << 2) |
39 | #define PSTATE_PRIV_BIT (1 << 2) |
- | 40 | #define PSTATE_PEF_BIT (1 << 4) |
|
- | 41 | ||
- | 42 | #define TSTATE_PSTATE_SHIFT 8 |
|
- | 43 | #define TSTATE_PRIV_BIT (PSTATE_PRIV_BIT << TSTATE_PSTATE_SHIFT) |
|
- | 44 | #define TSTATE_CWP_MASK 0x1f |
|
- | 45 | ||
- | 46 | #define WSTATE_NORMAL(n) (n) |
|
- | 47 | #define WSTATE_OTHER(n) ((n) << 3) |
|
- | 48 | ||
- | 49 | #define TSTATE_PEF_BIT (PSTATE_PEF_BIT << TSTATE_PSTATE_SHIFT) |
|
40 | 50 | ||
41 | /* |
51 | /* |
42 | 52 | ||
43 | #define PSTATE_IE_BIT (1 << 1) |
53 | #define PSTATE_IE_BIT (1 << 1) |
44 | #define PSTATE_AM_BIT (1 << 3) |
54 | #define PSTATE_AM_BIT (1 << 3) |