Subversion Repositories HelenOS

Rev

Rev 1860 | Rev 1903 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1860 Rev 1882
Line 41... Line 41...
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)
45
#define PSTATE_PRIV_BIT (1<<2)
-
 
46
#define PSTATE_PEF_BIT  (1<<4)
46
 
47
 
47
#define TSTATE_PSTATE_SHIFT 8
48
#define TSTATE_PSTATE_SHIFT 8
48
#define TSTATE_PRIV_BIT     (PSTATE_PRIV_BIT<<TSTATE_PSTATE_SHIFT)
49
#define TSTATE_PRIV_BIT     (PSTATE_PRIV_BIT<<TSTATE_PSTATE_SHIFT)
49
#define TSTATE_IE_BIT       (PSTATE_IE_BIT<<TSTATE_PSTATE_SHIFT)
50
#define TSTATE_IE_BIT       (PSTATE_IE_BIT<<TSTATE_PSTATE_SHIFT)
-
 
51
#define TSTATE_PEF_BIT      (PSTATE_PEF_BIT<<TSTATE_PSTATE_SHIFT)
50
 
52
 
51
#define TSTATE_CWP_MASK     0x1f
53
#define TSTATE_CWP_MASK     0x1f
52
 
54
 
53
#define WSTATE_NORMAL(n)    (n)
55
#define WSTATE_NORMAL(n)    (n)
54
#define WSTATE_OTHER(n)     ((n)<<3)
56
#define WSTATE_OTHER(n)     ((n)<<3)