Rev 1851 | Rev 1857 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1851 | Rev 1852 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef KERN_sparc64_REGDEF_H_ |
35 | #ifndef KERN_sparc64_REGDEF_H_ |
36 | #define KERN_sparc64_REGDEF_H_ |
36 | #define KERN_sparc64_REGDEF_H_ |
37 | 37 | ||
38 | #define PSTATE_IE_BIT 2 |
38 | #define PSTATE_IE_BIT (1<<1) |
39 | #define PSTATE_AM_BIT 8 |
39 | #define PSTATE_AM_BIT (1<<3) |
40 | 40 | ||
41 | #define PSTATE_AG_BIT (1<<0) |
41 | #define PSTATE_AG_BIT (1<<0) |
42 | #define PSTATE_IG_BIT (1<<11) |
42 | #define PSTATE_IG_BIT (1<<11) |
43 | #define PSTATE_MG_BIT (1<<10) |
43 | #define PSTATE_MG_BIT (1<<10) |
44 | 44 | ||
- | 45 | #define PSTATE_PRIV_BIT (1<<2) |
|
- | 46 | ||
- | 47 | #define TSTATE_PSTATE_SHIFT 8 |
|
- | 48 | #define TSTATE_PRIV_BIT (PSTATE_PRIV_BIT<<TSTATE_PSTATE_SHIFT) |
|
- | 49 | ||
- | 50 | #define TSTATE_CWP_MASK 0x1f |
|
- | 51 | ||
45 | #endif |
52 | #endif |
46 | 53 | ||
47 | /** @} |
54 | /** @} |
48 | */ |
55 | */ |