SPSR_MODE_MASK 65 kernel/arch/arm64/include/arch/istate.h return (istate->spsr & SPSR_MODE_MASK) >> SPSR_MODE_SHIFT == SPSR_MODE_MASK 160 kernel/arch/arm64/src/arm64.c SPSR_EL1_write((SPSR_EL1_read() & ~SPSR_MODE_MASK) | SPSR_MODE_MASK 65 uspace/lib/c/arch/arm64/include/libarch/istate.h return (istate->spsr & SPSR_MODE_MASK) >> SPSR_MODE_SHIFT ==HelenOS homepage, sources at GitHub