Lines Matching refs:spsr
417 uint64_t spsr = SPSR_64(SPSR_64_MODE_EL1, SPSR_64_MODE_SP_EL0, 0); in spsr_from_pstate() local
419 spsr |= read_daif(); in spsr_from_pstate()
421 spsr |= SPSR_64_PAN; in spsr_from_pstate()
423 return spsr; in spsr_from_pstate()
908 static bool get_spsr(bool is_32bit, unsigned long entry_func, uint32_t *spsr) in get_spsr() argument
920 *spsr = s; in get_spsr()
926 static bool get_spsr(bool is_32bit, unsigned long entry_func, uint32_t *spsr) in get_spsr() argument
938 *spsr = s; in get_spsr()
946 uint32_t spsr, in set_ctx_regs() argument
961 regs->cpsr = spsr; in set_ctx_regs()
969 regs->cpsr = spsr; in set_ctx_regs()
1008 uint32_t spsr = 0; in thread_enter_user_mode() local
1019 if (!get_spsr(is_32bit, entry_func, &spsr)) { in thread_enter_user_mode()
1033 set_ctx_regs(regs, a0, a1, a2, a3, user_sp, entry_func, spsr, keys); in thread_enter_user_mode()
1070 regs->spsr = read_cpsr(); in setup_unwind_user_mode()
1074 regs->spsr = spsr_from_pstate(); in setup_unwind_user_mode()