Home
last modified time | relevance | path

Searched refs:pstate (Results 1 – 25 of 60) sorted by relevance

123

/arch/arm64/kernel/
Dprocess.c162 u64 pstate = regs->pstate; in print_pstate() local
166 pstate, in print_pstate()
167 pstate & PSR_AA32_N_BIT ? 'N' : 'n', in print_pstate()
168 pstate & PSR_AA32_Z_BIT ? 'Z' : 'z', in print_pstate()
169 pstate & PSR_AA32_C_BIT ? 'C' : 'c', in print_pstate()
170 pstate & PSR_AA32_V_BIT ? 'V' : 'v', in print_pstate()
171 pstate & PSR_AA32_Q_BIT ? 'Q' : 'q', in print_pstate()
172 pstate & PSR_AA32_T_BIT ? "T32" : "A32", in print_pstate()
173 pstate & PSR_AA32_E_BIT ? "BE" : "LE", in print_pstate()
174 pstate & PSR_AA32_A_BIT ? 'A' : 'a', in print_pstate()
[all …]
Dtraps.c51 static bool __kprobes __check_eq(unsigned long pstate) in __check_eq() argument
53 return (pstate & PSR_Z_BIT) != 0; in __check_eq()
56 static bool __kprobes __check_ne(unsigned long pstate) in __check_ne() argument
58 return (pstate & PSR_Z_BIT) == 0; in __check_ne()
61 static bool __kprobes __check_cs(unsigned long pstate) in __check_cs() argument
63 return (pstate & PSR_C_BIT) != 0; in __check_cs()
66 static bool __kprobes __check_cc(unsigned long pstate) in __check_cc() argument
68 return (pstate & PSR_C_BIT) == 0; in __check_cc()
71 static bool __kprobes __check_mi(unsigned long pstate) in __check_mi() argument
73 return (pstate & PSR_N_BIT) != 0; in __check_mi()
[all …]
Dptrace.c92 REG_OFFSET_NAME(pstate),
1259 return pstate_to_compat_psr(regs->pstate); in compat_get_user_reg()
1321 newregs.pstate = reg; in compat_gpr_set()
1543 newregs.pstate = compat_psr_to_pstate(val); in compat_ptrace_write_user()
1896 regs->pstate &= ~SPSR_EL1_AARCH32_RES0_BITS; in valid_compat_regs()
1900 regs->pstate |= PSR_AA32_E_BIT; in valid_compat_regs()
1902 regs->pstate &= ~PSR_AA32_E_BIT; in valid_compat_regs()
1905 if (user_mode(regs) && (regs->pstate & PSR_MODE32_BIT) && in valid_compat_regs()
1906 (regs->pstate & PSR_AA32_A_BIT) == 0 && in valid_compat_regs()
1907 (regs->pstate & PSR_AA32_I_BIT) == 0 && in valid_compat_regs()
[all …]
Darmv8_deprecated.c182 switch (aarch32_check_condition(instr, regs->pstate)) { in swp_handler()
264 switch (aarch32_check_condition(instr, regs->pstate)) { in cp15barrier_handler()
365 regs->pstate |= PSR_AA32_E_BIT; in compat_setend_handler()
368 regs->pstate &= ~PSR_AA32_E_BIT; in compat_setend_handler()
/arch/arm64/include/asm/
Dptrace.h151 unsigned long pstate; in compat_psr_to_pstate() local
153 pstate = psr & ~COMPAT_PSR_DIT_BIT; in compat_psr_to_pstate()
156 pstate |= PSR_AA32_DIT_BIT; in compat_psr_to_pstate()
158 return pstate; in compat_psr_to_pstate()
161 static inline unsigned long pstate_to_compat_psr(const unsigned long pstate) in pstate_to_compat_psr() argument
165 psr = pstate & ~PSR_AA32_DIT_BIT; in pstate_to_compat_psr()
167 if (pstate & PSR_AA32_DIT_BIT) in pstate_to_compat_psr()
185 u64 pstate; member
216 #define MAX_REG_OFFSET offsetof(struct pt_regs, pstate)
222 (((regs)->pstate & PSR_AA32_T_BIT))
[all …]
Dsdei.h27 unsigned long pc, unsigned long pstate);
33 unsigned long pstate);
Dprocessor.h224 regs->pstate = PSR_MODE_EL0t; in start_thread()
234 regs->pstate = PSR_AA32_MODE_USR; in compat_start_thread()
236 regs->pstate |= PSR_AA32_T_BIT; in compat_start_thread()
239 regs->pstate |= PSR_AA32_E_BIT; in compat_start_thread()
/arch/sparc/kernel/
Drtrap_64.S28 661: wrpr %g0, RTRAP_PSTATE, %pstate
36 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
39 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
44 661: wrpr %g0, RTRAP_PSTATE, %pstate
52 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
55 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
70 661: wrpr %g0, RTRAP_PSTATE, %pstate
78 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
80 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
159 to_user: wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
[all …]
Dspiterrs.S159 rdpr %pstate, %g4
160 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
187 rdpr %pstate, %g4
188 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
207 rdpr %pstate, %g4
208 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
226 rdpr %pstate, %g4
227 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
Dhelpers.S29 rdpr %pstate, %o0
30 wrpr %o0, PSTATE_IE, %pstate
45 wrpr %o0, %pstate
Ddtlb_prot.S21 rdpr %pstate, %g5 ! Move into alt-globals
22 wrpr %g5, PSTATE_AG|PSTATE_MG, %pstate
Dtsb.S147 661: rdpr %pstate, %g5
148 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
254 661: rdpr %pstate, %g5
255 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
320 rdpr %pstate, %o5
321 wrpr %o5, PSTATE_IE, %pstate
324 wrpr %o5, %pstate
374 rdpr %pstate, %g1
375 wrpr %g1, PSTATE_IE, %pstate
457 wrpr %g1, %pstate
Dktlb.S86 661: rdpr %pstate, %g5
87 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
244 661: rdpr %pstate, %g5
245 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
Dsmp_64.c396 static void spitfire_xcall_helper(u64 data0, u64 data1, u64 data2, u64 pstate, unsigned long cpu) in spitfire_xcall_helper() argument
431 : "r" (pstate), "i" (PSTATE_IE), "i" (ASI_INTR_W), in spitfire_xcall_helper()
444 : : "r" (pstate)); in spitfire_xcall_helper()
452 : : "r" (pstate)); in spitfire_xcall_helper()
466 u64 pstate; in spitfire_xcall_deliver() local
469 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in spitfire_xcall_deliver()
476 spitfire_xcall_helper(data0, data1, data2, pstate, cpu_list[i]); in spitfire_xcall_deliver()
486 u64 *mondo, pstate, ver, busy_mask; in cheetah_xcall_deliver() local
500 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in cheetah_xcall_deliver()
505 : : "r" (pstate), "i" (PSTATE_IE)); in cheetah_xcall_deliver()
[all …]
Dhvtramp.S82 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF), %pstate
125 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF | PSTATE_IE), %pstate
Durtt_fill.S53 661: wrpr %g0, RTRAP_PSTATE, %pstate
57 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
Dasm-offsets.c38 OFFSET(SC_REG_PSTATE, saved_context, pstate); in sparc64_foo()
/arch/arm64/kvm/hyp/include/hyp/
Dadjust_pc.h36 vcpu_gp_regs(vcpu)->pstate = read_sysreg_el2(SYS_SPSR); in __kvm_skip_instr()
40 write_sysreg_el2(vcpu_gp_regs(vcpu)->pstate, SYS_SPSR); in __kvm_skip_instr()
Dsysreg-sr.h78 ctxt->regs.pstate = read_sysreg_el2(SYS_SPSR); in __sysreg_save_el2_return_state()
161 u64 pstate = ctxt->regs.pstate; in __sysreg_restore_el2_return_state() local
162 u64 mode = pstate & PSR_AA32_MODE_MASK; in __sysreg_restore_el2_return_state()
176 pstate = PSR_MODE_EL2h | PSR_IL_BIT; in __sysreg_restore_el2_return_state()
179 write_sysreg_el2(pstate, SYS_SPSR); in __sysreg_restore_el2_return_state()
/arch/arm64/kvm/
Dreset.c205 u32 pstate; in kvm_reset_vcpu() local
246 pstate = VCPU_RESET_PSTATE_SVC; in kvm_reset_vcpu()
248 pstate = VCPU_RESET_PSTATE_EL1; in kvm_reset_vcpu()
265 vcpu_gp_regs(vcpu)->pstate = pstate; in kvm_reset_vcpu()
/arch/sparc/lib/
Dclear_page.S66 rdpr %pstate, %o4
67 wrpr %o4, PSTATE_IE, %pstate
72 wrpr %o4, 0x0, %pstate
/arch/sparc/mm/
Dultra.S60 rdpr %pstate, %g7
62 wrpr %g2, %pstate
77 wrpr %g7, 0x0, %pstate
87 rdpr %pstate, %g7
90 wrpr %g2, %pstate
109 wrpr %g7, 0x0, %pstate
174 rdpr %pstate, %g1
175 wrpr %g1, PSTATE_IE, %pstate
184 wrpr %g1, 0, %pstate
251 rdpr %pstate, %g7
[all …]
/arch/sparc/include/asm/
Dhibernate.h17 unsigned long pstate; member
/arch/arm64/kernel/probes/
Dkprobes.c174 kcb->saved_irqflag = regs->pstate & DAIF_MASK; in kprobes_save_local_irqflag()
175 regs->pstate |= DAIF_MASK; in kprobes_save_local_irqflag()
181 regs->pstate &= ~DAIF_MASK; in kprobes_restore_local_irqflag()
182 regs->pstate |= kcb->saved_irqflag; in kprobes_restore_local_irqflag()
/arch/sparc/power/
Dhibernate_asm.S31 rdpr %pstate, %g2
111 wrpr %g2, %pstate

123