HelenOS sources

STATUS_REG_MODE_MASK   66 kernel/arch/arm32/include/arch/istate.h 	return (istate->spsr & STATUS_REG_MODE_MASK) == USER_MODE;
STATUS_REG_MODE_MASK   85 kernel/arch/arm32/src/userspace.c 	    (~STATUS_REG_MODE_MASK | USER_MODE);
STATUS_REG_MODE_MASK   66 uspace/lib/c/arch/arm32/include/libarch/istate.h 	return (istate->spsr & STATUS_REG_MODE_MASK) == USER_MODE;
HelenOS homepage, sources at GitHub