Rev 2410 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2410 | Rev 2411 | ||
---|---|---|---|
Line 123... | Line 123... | ||
123 | static inline int istate_from_uspace(istate_t *istate) |
123 | static inline int istate_from_uspace(istate_t *istate) |
124 | { |
124 | { |
125 | return (istate->spsr & STATUS_REG_MODE_MASK) == USER_MODE; |
125 | return (istate->spsr & STATUS_REG_MODE_MASK) == USER_MODE; |
126 | } |
126 | } |
127 | 127 | ||
- | 128 | ||
128 | /** Returns Program Counter member of given istate structure. */ |
129 | /** Returns Program Counter member of given istate structure. */ |
129 | static inline unative_t istate_get_pc(istate_t *istate) |
130 | static inline unative_t istate_get_pc(istate_t *istate) |
130 | { |
131 | { |
131 | return istate->pc; |
132 | return istate->pc; |
132 | } |
133 | } |