Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2352 → Rev 2355

/branches/arm/kernel/arch/arm32/include/exception.h
91,7 → 91,11
} istate_t;
 
 
 
/** Sets Program Counter member of given istate structure.
*
* @param istate istate structure
* @param retaddr new value of istate's PC member
*/
static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr)
{
istate->pc = retaddr;
98,13 → 102,13
}
 
 
/** Return true if exception happened while in userspace. */
/** Returns true if exception happened while in userspace. */
static inline int istate_from_uspace(istate_t *istate)
{
return (istate->spsr & STATUS_REG_MODE_MASK) == USER_MODE;
}
 
 
/** Returns Program Counter member of given istate structure. */
static inline unative_t istate_get_pc(istate_t *istate)
{
return istate->pc;